Documentation ¶
Index ¶
- Constants
- Variables
- func AccountAddCoins(builder *flatbuffers.Builder, coins flatbuffers.UOffsetT)
- func AccountAddPubkey(builder *flatbuffers.Builder, pubkey flatbuffers.UOffsetT)
- func AccountEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func AccountStart(builder *flatbuffers.Builder)
- func AccountStartCoinsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- func CoinAddAmount(builder *flatbuffers.Builder, amount int64)
- func CoinAddDenom(builder *flatbuffers.Builder, denom flatbuffers.UOffsetT)
- func CoinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func CoinStart(builder *flatbuffers.Builder)
- func CreateCoin(builder *flatbuffers.Builder, denom string, amount int64) flatbuffers.UOffsetT
- func CreatePubKey(builder *flatbuffers.Builder, typ int, data []byte) flatbuffers.UOffsetT
- func CreateSimpleAccount(builder *flatbuffers.Builder, denom string, amount int64, typ int, data []byte) flatbuffers.UOffsetT
- func PubKeyAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT)
- func PubKeyAddType(builder *flatbuffers.Builder, type_ int8)
- func PubKeyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func PubKeyStart(builder *flatbuffers.Builder)
- func PubKeyStartKeyVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- type Account
- type Coin
- type PubKey
Constants ¶
View Source
const ( KeyTypeEd25519 = 1 KeyTypeSecp256k1 = 2 )
Variables ¶
View Source
var EnumNamesKeyType = map[int]string{ KeyTypeEd25519: "Ed25519", KeyTypeSecp256k1: "Secp256k1", }
Functions ¶
func AccountAddCoins ¶
func AccountAddCoins(builder *flatbuffers.Builder, coins flatbuffers.UOffsetT)
func AccountAddPubkey ¶
func AccountAddPubkey(builder *flatbuffers.Builder, pubkey flatbuffers.UOffsetT)
func AccountEnd ¶
func AccountEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func AccountStart ¶
func AccountStart(builder *flatbuffers.Builder)
func AccountStartCoinsVector ¶
func AccountStartCoinsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
func CoinAddAmount ¶
func CoinAddAmount(builder *flatbuffers.Builder, amount int64)
func CoinAddDenom ¶
func CoinAddDenom(builder *flatbuffers.Builder, denom flatbuffers.UOffsetT)
func CoinEnd ¶
func CoinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func CoinStart ¶
func CoinStart(builder *flatbuffers.Builder)
func CreateCoin ¶
func CreateCoin(builder *flatbuffers.Builder, denom string, amount int64) flatbuffers.UOffsetT
CreateCoin encodes a new coin
func CreatePubKey ¶
func CreatePubKey(builder *flatbuffers.Builder, typ int, data []byte) flatbuffers.UOffsetT
CreatePubKey encodes a new pubkey
func CreateSimpleAccount ¶
func CreateSimpleAccount(builder *flatbuffers.Builder, denom string, amount int64, typ int, data []byte) flatbuffers.UOffsetT
CreateSimpleAccount starts an account with a pub key and one type of coin
func PubKeyAddKey ¶
func PubKeyAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT)
func PubKeyAddType ¶
func PubKeyAddType(builder *flatbuffers.Builder, type_ int8)
func PubKeyEnd ¶
func PubKeyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func PubKeyStart ¶
func PubKeyStart(builder *flatbuffers.Builder)
func PubKeyStartKeyVector ¶
func PubKeyStartKeyVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func GetRootAsAccount ¶
func GetRootAsAccount(buf []byte, offset flatbuffers.UOffsetT) *Account
func (*Account) CoinsLength ¶
func (*Account) Table ¶
func (rcv *Account) Table() flatbuffers.Table
type Coin ¶
type Coin struct {
// contains filtered or unexported fields
}
func GetRootAsCoin ¶
func GetRootAsCoin(buf []byte, offset flatbuffers.UOffsetT) *Coin
func (*Coin) MutateAmount ¶
func (*Coin) Table ¶
func (rcv *Coin) Table() flatbuffers.Table
type PubKey ¶
type PubKey struct {
// contains filtered or unexported fields
}
func GetRootAsPubKey ¶
func GetRootAsPubKey(buf []byte, offset flatbuffers.UOffsetT) *PubKey
func (*PubKey) MutateType ¶
func (*PubKey) Table ¶
func (rcv *PubKey) Table() flatbuffers.Table
Click to show internal directories.
Click to hide internal directories.