Documentation ¶
Index ¶
- func NewSandboxView(ctx execution.WaspCallContext) isc.SandboxView
- func NewUtils(g isc.Gas) isc.Utils
- type SandboxBase
- func (s *SandboxBase) AccountID() isc.AgentID
- func (s *SandboxBase) BalanceBaseTokens() uint64
- func (s *SandboxBase) BalanceNativeToken(nativeTokenID iotago.NativeTokenID) *big.Int
- func (s *SandboxBase) BalanceNativeTokens() iotago.NativeTokens
- func (s *SandboxBase) Budget() uint64
- func (s *SandboxBase) Burn(burnCode gas.BurnCode, par ...uint64)
- func (s *SandboxBase) Burned() uint64
- func (s *SandboxBase) CallView(contractHname, entryPoint isc.Hname, params dict.Dict) dict.Dict
- func (s *SandboxBase) Caller() isc.AgentID
- func (s *SandboxBase) ChainID() isc.ChainID
- func (s *SandboxBase) ChainInfo() *isc.ChainInfo
- func (s *SandboxBase) ChainOwnerID() isc.AgentID
- func (s *SandboxBase) Contract() isc.Hname
- func (s *SandboxBase) EstimateGasMode() bool
- func (s *SandboxBase) Gas() isc.Gas
- func (s *SandboxBase) GetNFTData(nftID iotago.NFTID) *isc.NFT
- func (s *SandboxBase) HasInAccount(agentID isc.AgentID, assets *isc.Assets) bool
- func (s *SandboxBase) Log() isc.LogInterface
- func (s *SandboxBase) OwnedNFTs() []iotago.NFTID
- func (s *SandboxBase) Params() *isc.Params
- func (s *SandboxBase) RequireNoError(err error, str ...string)
- func (s *SandboxBase) Requiref(cond bool, format string, args ...interface{})
- func (s *SandboxBase) SchemaVersion() isc.SchemaVersion
- func (s *SandboxBase) StateR() kv.KVStoreReader
- func (s *SandboxBase) Timestamp() time.Time
- func (s *SandboxBase) Utils() isc.Utils
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSandboxView ¶ added in v0.3.0
func NewSandboxView(ctx execution.WaspCallContext) isc.SandboxView
Types ¶
type SandboxBase ¶ added in v0.3.0
type SandboxBase struct { Ctx execution.WaspCallContext // contains filtered or unexported fields }
func (*SandboxBase) AccountID ¶ added in v0.3.0
func (s *SandboxBase) AccountID() isc.AgentID
func (*SandboxBase) BalanceBaseTokens ¶ added in v0.3.0
func (s *SandboxBase) BalanceBaseTokens() uint64
func (*SandboxBase) BalanceNativeToken ¶ added in v0.3.0
func (s *SandboxBase) BalanceNativeToken(nativeTokenID iotago.NativeTokenID) *big.Int
func (*SandboxBase) BalanceNativeTokens ¶ added in v1.0.3
func (s *SandboxBase) BalanceNativeTokens() iotago.NativeTokens
func (*SandboxBase) Budget ¶ added in v0.3.0
func (s *SandboxBase) Budget() uint64
func (*SandboxBase) Burn ¶ added in v0.3.0
func (s *SandboxBase) Burn(burnCode gas.BurnCode, par ...uint64)
func (*SandboxBase) Burned ¶ added in v0.3.7
func (s *SandboxBase) Burned() uint64
func (*SandboxBase) Caller ¶ added in v1.0.3
func (s *SandboxBase) Caller() isc.AgentID
func (*SandboxBase) ChainID ¶ added in v0.3.0
func (s *SandboxBase) ChainID() isc.ChainID
func (*SandboxBase) ChainInfo ¶ added in v1.0.3
func (s *SandboxBase) ChainInfo() *isc.ChainInfo
func (*SandboxBase) ChainOwnerID ¶ added in v0.3.0
func (s *SandboxBase) ChainOwnerID() isc.AgentID
func (*SandboxBase) Contract ¶ added in v0.3.0
func (s *SandboxBase) Contract() isc.Hname
func (*SandboxBase) EstimateGasMode ¶ added in v1.0.3
func (s *SandboxBase) EstimateGasMode() bool
func (*SandboxBase) Gas ¶ added in v0.3.0
func (s *SandboxBase) Gas() isc.Gas
func (*SandboxBase) GetNFTData ¶ added in v0.3.0
func (s *SandboxBase) GetNFTData(nftID iotago.NFTID) *isc.NFT
func (*SandboxBase) HasInAccount ¶ added in v0.3.5
func (*SandboxBase) Log ¶ added in v0.3.0
func (s *SandboxBase) Log() isc.LogInterface
func (*SandboxBase) OwnedNFTs ¶ added in v0.3.0
func (s *SandboxBase) OwnedNFTs() []iotago.NFTID
func (*SandboxBase) Params ¶ added in v0.3.0
func (s *SandboxBase) Params() *isc.Params
func (*SandboxBase) RequireNoError ¶ added in v0.3.0
func (s *SandboxBase) RequireNoError(err error, str ...string)
func (*SandboxBase) Requiref ¶ added in v0.3.0
func (s *SandboxBase) Requiref(cond bool, format string, args ...interface{})
-- helper methods
func (*SandboxBase) SchemaVersion ¶ added in v1.0.3
func (s *SandboxBase) SchemaVersion() isc.SchemaVersion
func (*SandboxBase) StateR ¶ added in v0.3.0
func (s *SandboxBase) StateR() kv.KVStoreReader
func (*SandboxBase) Timestamp ¶ added in v0.3.0
func (s *SandboxBase) Timestamp() time.Time
func (*SandboxBase) Utils ¶ added in v0.3.0
func (s *SandboxBase) Utils() isc.Utils
Click to show internal directories.
Click to hide internal directories.