Documentation
¶
Index ¶
- func GetEncodedAssetType(ctx context.Context, encodingAPI api.EncodingApi, ...) (*big.Int, error)
- func GetEncodedAssetTypeForERC20(ctx context.Context, encodingAPI api.EncodingApi, tokenAddress string) (*big.Int, error)
- func GetEncodedAssetTypeForERC721(ctx context.Context, encodingAPI api.EncodingApi, tokenID, tokenAddress string) (*big.Int, error)
- func GetEncodedAssetTypeForEth(ctx context.Context, encodingAPI api.EncodingApi) (*big.Int, error)
- func GetEncodedMintableAssetTypeForERC721(ctx context.Context, encodingAPI api.EncodingApi, ...) (*big.Int, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.