dtos

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressState

type AddressState struct {
	Address          string            `json:"address"`
	Nonce            *uint64           `json:"nonce,omitempty"`
	Balance          string            `json:"balance,omitempty"`
	Code             string            `json:"code,omitempty"`
	RootHash         string            `json:"rootHash,omitempty"`
	CodeMetadata     string            `json:"codeMetadata,omitempty"`
	CodeHash         string            `json:"codeHash,omitempty"`
	DeveloperRewards string            `json:"developerReward,omitempty"`
	Owner            string            `json:"ownerAddress,omitempty"`
	Keys             map[string]string `json:"keys,omitempty"`
}

AddressState will hold the address state

type BLSKey added in v1.7.5

type BLSKey struct {
	Hex   string
	Bytes []byte
}

BLSKey holds the BLS key in multiple formats

type InitialWalletKeys

type InitialWalletKeys struct {
	StakeWallets   []*WalletKey          `json:"stakeWallets"`
	BalanceWallets map[uint32]*WalletKey `json:"balanceWallets"`
}

InitialWalletKeys holds the initial wallet keys

type WalletAddress

type WalletAddress struct {
	Bech32 string `json:"bech32"`
	Bytes  []byte `json:"bytes"`
}

WalletAddress holds the address in multiple formats

type WalletKey

type WalletKey struct {
	Address       WalletAddress `json:"address"`
	PrivateKeyHex string        `json:"privateKeyHex"`
}

WalletKey holds the public and the private key of a wallet

Jump to

Keyboard shortcuts

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