iscmagic

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed ISC.abi
	ABI string
)

Functions

This section is empty.

Types

type ISCAgentID

type ISCAgentID struct {
	Data []byte
}

ISCAgentID matches the struct definition in ISC.sol

func WrapISCAgentID

func WrapISCAgentID(a isc.AgentID) ISCAgentID

func (ISCAgentID) MustUnwrap

func (a ISCAgentID) MustUnwrap() isc.AgentID

func (ISCAgentID) Unwrap

func (a ISCAgentID) Unwrap() (isc.AgentID, error)

type ISCAllowance

type ISCAllowance struct {
	BaseTokens uint64
	Tokens     []NativeToken
	Nfts       []NFTID
}

ISCAllowance matches the struct definition in ISC.sol

func WrapISCAllowance

func WrapISCAllowance(a *isc.Allowance) ISCAllowance

func (ISCAllowance) Unwrap

func (a ISCAllowance) Unwrap() *isc.Allowance

type ISCChainID

type ISCChainID [isc.ChainIDLength]byte

ISCChainID matches the type definition in ISC.sol

func WrapISCChainID

func WrapISCChainID(c *isc.ChainID) (ret ISCChainID)

func (ISCChainID) MustUnwrap

func (c ISCChainID) MustUnwrap() *isc.ChainID

func (ISCChainID) Unwrap

func (c ISCChainID) Unwrap() (*isc.ChainID, error)

type ISCDict

type ISCDict struct {
	Items []ISCDictItem
}

ISCDict matches the struct definition in ISC.sol

func WrapISCDict

func WrapISCDict(d dict.Dict) ISCDict

func (ISCDict) Unwrap

func (d ISCDict) Unwrap() dict.Dict

type ISCDictItem

type ISCDictItem struct {
	Key   []byte
	Value []byte
}

ISCDictItem matches the struct definition in ISC.sol

type ISCExpiration

type ISCExpiration struct {
	Time          int64
	ReturnAddress L1Address
}

func WrapISCExpiration

func WrapISCExpiration(data *isc.Expiration) ISCExpiration

func (*ISCExpiration) Unwrap

func (i *ISCExpiration) Unwrap() *isc.Expiration

type ISCFungibleTokens

type ISCFungibleTokens struct {
	BaseTokens uint64
	Tokens     []NativeToken
}

func WrapISCFungibleTokens

func WrapISCFungibleTokens(fungibleTokens isc.FungibleTokens) ISCFungibleTokens

func (ISCFungibleTokens) Unwrap

func (t ISCFungibleTokens) Unwrap() *isc.FungibleTokens

type ISCNFT

type ISCNFT struct {
	ID       NFTID
	Issuer   L1Address
	Metadata []byte
}

ISCNFT matches the struct definition in ISC.sol

func WrapISCNFT

func WrapISCNFT(n *isc.NFT) ISCNFT

func (ISCNFT) MustUnwrap

func (n ISCNFT) MustUnwrap() *isc.NFT

func (ISCNFT) Unwrap

func (n ISCNFT) Unwrap() (*isc.NFT, error)

type ISCSendMetadata

type ISCSendMetadata struct {
	TargetContract uint32
	Entrypoint     uint32
	Params         ISCDict
	Allowance      ISCAllowance
	GasBudget      uint64
}

func WrapISCSendMetadata

func WrapISCSendMetadata(metadata isc.SendMetadata) ISCSendMetadata

func (ISCSendMetadata) Unwrap

func (i ISCSendMetadata) Unwrap() *isc.SendMetadata

type ISCSendOptions

type ISCSendOptions struct {
	Timelock   int64
	Expiration ISCExpiration
}

func WrapISCSendOptions

func WrapISCSendOptions(options isc.SendOptions) ISCSendOptions

func (*ISCSendOptions) Unwrap

func (i *ISCSendOptions) Unwrap() isc.SendOptions

type L1Address

type L1Address struct {
	Data []byte
}

L1Address matches the struct definition in ISC.sol

func WrapL1Address

func WrapL1Address(a iotago.Address) L1Address

func (L1Address) MustUnwrap

func (a L1Address) MustUnwrap() iotago.Address

func (L1Address) Unwrap

func (a L1Address) Unwrap() (iotago.Address, error)

type NFTID

type NFTID [iotago.NFTIDLength]byte

NFTID matches the type definition in ISC.sol

func WrapNFTID

func WrapNFTID(c iotago.NFTID) (ret NFTID)

func (NFTID) Unwrap

func (c NFTID) Unwrap() (ret iotago.NFTID)

type NativeToken

type NativeToken struct {
	ID     NativeTokenID
	Amount *big.Int
}

NativeToken matches the struct definition in ISC.sol

func WrapNativeToken

func WrapNativeToken(nt *iotago.NativeToken) NativeToken

func (NativeToken) Unwrap

func (nt NativeToken) Unwrap() *iotago.NativeToken

type NativeTokenID

type NativeTokenID struct {
	Data []byte
}

NativeTokenID matches the struct definition in ISC.sol

func WrapNativeTokenID

func WrapNativeTokenID(id *iotago.NativeTokenID) NativeTokenID

func (NativeTokenID) Unwrap

func (a NativeTokenID) Unwrap() (ret iotago.NativeTokenID)

Jump to

Keyboard shortcuts

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