Documentation ¶
Index ¶
- func GetEntryPointByProgHash(ctx WaspContext, targetContract, epCode isc.Hname, progHash hashing.HashValue) isc.VMProcessorEntryPoint
- func GetProgramBinary(ctx WaspContext, programHash hashing.HashValue) (vmtype string, binary []byte, err error)
- func NewKVStoreReaderWithGasBurn(r kv.KVStoreReader, gas GasContext) kv.KVStoreReader
- func NewKVStoreWithGasBurn(s kv.KVStore, gas GasContext) kv.KVStore
- type GasContext
- type WaspCallContext
- type WaspContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEntryPointByProgHash ¶
func GetEntryPointByProgHash(ctx WaspContext, targetContract, epCode isc.Hname, progHash hashing.HashValue) isc.VMProcessorEntryPoint
func GetProgramBinary ¶
func NewKVStoreReaderWithGasBurn ¶ added in v1.0.3
func NewKVStoreReaderWithGasBurn(r kv.KVStoreReader, gas GasContext) kv.KVStoreReader
func NewKVStoreWithGasBurn ¶ added in v1.0.3
func NewKVStoreWithGasBurn(s kv.KVStore, gas GasContext) kv.KVStore
Types ¶
type GasContext ¶ added in v1.0.3
type WaspCallContext ¶ added in v1.0.3
type WaspCallContext interface { WaspContext GasContext isc.LogInterface Timestamp() time.Time CurrentContractAccountID() isc.AgentID Caller() isc.AgentID GetNativeTokens(agentID isc.AgentID) iotago.NativeTokens GetBaseTokensBalance(agentID isc.AgentID) uint64 GetNativeTokenBalance(agentID isc.AgentID, nativeTokenID iotago.NativeTokenID) *big.Int Call(contractHname, entryPoint isc.Hname, params dict.Dict, allowance *isc.Assets) dict.Dict ChainID() isc.ChainID ChainOwnerID() isc.AgentID ChainInfo() *isc.ChainInfo CurrentContractHname() isc.Hname Params() *isc.Params ContractStateReaderWithGasBurn() kv.KVStoreReader SchemaVersion() isc.SchemaVersion GasBurned() uint64 GasBudgetLeft() uint64 GetAccountNFTs(agentID isc.AgentID) []iotago.NFTID GetNFTData(nftID iotago.NFTID) *isc.NFT }
type WaspContext ¶
Click to show internal directories.
Click to hide internal directories.