Documentation
¶
Overview ¶
Package v2 defines models exposed by algod rest api
Index ¶
- func AccountApplicationModelMaxSize() (s int)
- func AccountAssetModelMaxSize() (s int)
- type AccountApplicationModel
- func (_ *AccountApplicationModel) CanMarshalMsg(z interface{}) bool
- func (_ *AccountApplicationModel) CanUnmarshalMsg(z interface{}) bool
- func (z *AccountApplicationModel) MarshalMsg(b []byte) (o []byte)
- func (z *AccountApplicationModel) MsgIsZero() bool
- func (z *AccountApplicationModel) Msgsize() (s int)
- func (z *AccountApplicationModel) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (z *AccountApplicationModel) UnmarshalMsgWithState(bts []byte, st msgp.UnmarshalState) (o []byte, err error)
- type AccountAssetModel
- func (_ *AccountAssetModel) CanMarshalMsg(z interface{}) bool
- func (_ *AccountAssetModel) CanUnmarshalMsg(z interface{}) bool
- func (z *AccountAssetModel) MarshalMsg(b []byte) (o []byte)
- func (z *AccountAssetModel) MsgIsZero() bool
- func (z *AccountAssetModel) Msgsize() (s int)
- func (z *AccountAssetModel) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (z *AccountAssetModel) UnmarshalMsgWithState(bts []byte, st msgp.UnmarshalState) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountApplicationModelMaxSize ¶
func AccountApplicationModelMaxSize() (s int)
MaxSize returns a maximum valid message size for this message type
func AccountAssetModelMaxSize ¶
func AccountAssetModelMaxSize() (s int)
MaxSize returns a maximum valid message size for this message type
Types ¶
type AccountApplicationModel ¶
type AccountApplicationModel struct { AppLocalState *basics.AppLocalState `codec:"app-local-state"` AppParams *basics.AppParams `codec:"app-params"` // contains filtered or unexported fields }
AccountApplicationModel is returned by AccountApplicationInformation when msgpack format is specified
func AppResourceToAccountApplicationModel ¶
func AppResourceToAccountApplicationModel(resource ledgercore.AppResource) AccountApplicationModel
AppResourceToAccountApplicationModel converts AppResource to AccountApplicationModel
func (*AccountApplicationModel) CanMarshalMsg ¶
func (_ *AccountApplicationModel) CanMarshalMsg(z interface{}) bool
func (*AccountApplicationModel) CanUnmarshalMsg ¶
func (_ *AccountApplicationModel) CanUnmarshalMsg(z interface{}) bool
func (*AccountApplicationModel) MarshalMsg ¶
func (z *AccountApplicationModel) MarshalMsg(b []byte) (o []byte)
MarshalMsg implements msgp.Marshaler
func (*AccountApplicationModel) MsgIsZero ¶
func (z *AccountApplicationModel) MsgIsZero() bool
MsgIsZero returns whether this is a zero value
func (*AccountApplicationModel) Msgsize ¶
func (z *AccountApplicationModel) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*AccountApplicationModel) UnmarshalMsg ¶
func (z *AccountApplicationModel) UnmarshalMsg(bts []byte) (o []byte, err error)
func (*AccountApplicationModel) UnmarshalMsgWithState ¶
func (z *AccountApplicationModel) UnmarshalMsgWithState(bts []byte, st msgp.UnmarshalState) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type AccountAssetModel ¶
type AccountAssetModel struct { AssetParams *basics.AssetParams `codec:"asset-params"` AssetHolding *basics.AssetHolding `codec:"asset-holding"` // contains filtered or unexported fields }
AccountAssetModel is returned by AccountAssetInformation when msgpack format is specified
func AssetResourceToAccountAssetModel ¶
func AssetResourceToAccountAssetModel(resource ledgercore.AssetResource) AccountAssetModel
AssetResourceToAccountAssetModel converts AssetResource to AccountAssetModel
func (*AccountAssetModel) CanMarshalMsg ¶
func (_ *AccountAssetModel) CanMarshalMsg(z interface{}) bool
func (*AccountAssetModel) CanUnmarshalMsg ¶
func (_ *AccountAssetModel) CanUnmarshalMsg(z interface{}) bool
func (*AccountAssetModel) MarshalMsg ¶
func (z *AccountAssetModel) MarshalMsg(b []byte) (o []byte)
MarshalMsg implements msgp.Marshaler
func (*AccountAssetModel) MsgIsZero ¶
func (z *AccountAssetModel) MsgIsZero() bool
MsgIsZero returns whether this is a zero value
func (*AccountAssetModel) Msgsize ¶
func (z *AccountAssetModel) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*AccountAssetModel) UnmarshalMsg ¶
func (z *AccountAssetModel) UnmarshalMsg(bts []byte) (o []byte, err error)
func (*AccountAssetModel) UnmarshalMsgWithState ¶
func (z *AccountAssetModel) UnmarshalMsgWithState(bts []byte, st msgp.UnmarshalState) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler