encode

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEncodedAssetType

func GetEncodedAssetType(
	ctx context.Context,
	encodingAPI api.EncodingApi,
	encodeAssetRequestToken *api.EncodeAssetRequestToken,
	assetType string) (*big.Int, error)

GetEncodedAssetType performs encoding on asset details to get an AssetType (required for stark contract request)

func GetEncodedAssetTypeForERC20

func GetEncodedAssetTypeForERC20(
	ctx context.Context,
	encodingAPI api.EncodingApi,
	tokenAddress string) (*big.Int, error)

GetEncodedAssetTypeForERC20 returns encoded AssetType for ERC20 token.

func GetEncodedAssetTypeForERC721

func GetEncodedAssetTypeForERC721(
	ctx context.Context,
	encodingAPI api.EncodingApi,
	tokenID, tokenAddress string) (*big.Int, error)

GetEncodedAssetTypeForERC721 returns encoded AssetType for ERC721 token.

func GetEncodedAssetTypeForEth

func GetEncodedAssetTypeForEth(
	ctx context.Context,
	encodingAPI api.EncodingApi) (*big.Int, error)

GetEncodedAssetTypeForEth returns encoded AssetType for ETH.

func GetEncodedMintableAssetTypeForERC721

func GetEncodedMintableAssetTypeForERC721(
	ctx context.Context,
	encodingAPI api.EncodingApi,
	tokenID, tokenAddress, blueprint string) (*big.Int, error)

GetEncodedMintableAssetTypeForERC721 returns encoded MintableAssetType for ERC721 token.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL