sandbox

package
v0.5.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSandboxView added in v0.3.0

func NewSandboxView(ctx execution.WaspContext) isc.SandboxView

func NewUtils added in v0.3.0

func NewUtils(g isc.Gas) isc.Utils

Types

type SandboxBase added in v0.3.0

type SandboxBase struct {
	Ctx execution.WaspContext
	// 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) CallView added in v0.3.0

func (s *SandboxBase) CallView(contractHname, entryPoint isc.Hname, params dict.Dict) dict.Dict

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) 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 (s *SandboxBase) HasInAccount(agentID isc.AgentID, assets *isc.Assets) bool

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) 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

Jump to

Keyboard shortcuts

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