Skip to main content

StakedIota

type StakedIota

A typed view of an on-chain `0x3::staking_pool::StakedIota` object.

type StakedIota struct {
// contains filtered or unexported fields
}

func LiftFromExternalStakedIota

func LiftFromExternalStakedIota(handle uint64) *StakedIota

func StakedIotaTryFromBcs

func StakedIotaTryFromBcs(bytes []byte) (*StakedIota, error)

Decode from BCS bytes, without validating the on-chain type tag.

func StakedIotaTryFromObject

func StakedIotaTryFromObject(object *Object) (*StakedIota, error)

Decode from an on-chain object, validating its Move type tag.

func (*StakedIota) DebugString

func (_self *StakedIota) DebugString() string

func (*StakedIota) Destroy

func (object *StakedIota) Destroy()

func (*StakedIota) Id

func (_self *StakedIota) Id() *ObjectId

The object's ID.

func (*StakedIota) PoolId

func (_self *StakedIota) PoolId() *ObjectId

func (*StakedIota) Principal

func (_self *StakedIota) Principal() uint64

Staked principal in nanos.

func (*StakedIota) StakeActivationEpoch

func (_self *StakedIota) StakeActivationEpoch() uint64