v2

package
v0.0.0-...-548b26a Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v2 defines models exposed by algod rest api

Index

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

Jump to

Keyboard shortcuts

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