Documentation
¶
Index ¶
- Constants
- Variables
- type Account
- func (a *Account) Clone() *Account
- func (a *Account) IsBuiltin() bool
- func (a *Account) IsExecutable() bool
- func (a *Account) MarshalWithEncoder(encoder *bin.Encoder) error
- func (a *Account) Resize(newLen uint64, fillVal byte)
- func (a *Account) SetData(data []byte)
- func (a *Account) SetExecutable(isExecutable bool)
- func (a *Account) SetLamports(lamports uint64)
- func (a *Account) UnmarshalWithDecoder(decoder *bin.Decoder) (err error)
- type Accounts
- type MemAccounts
- func (m MemAccounts) AllAccounts() []*Account
- func (m MemAccounts) GetAccount(pubkey *[32]byte) (*Account, error)
- func (m MemAccounts) GetAccountWithoutLock(pubkey solana.PublicKey) (*Account, error)
- func (m MemAccounts) SetAccount(pubkey *[32]byte, acct *Account) error
- func (m MemAccounts) SetAccountWithoutLock(pubkey solana.PublicKey, acct *Account) error
Constants ¶
View Source
const NativeLoaderAddrStr = "NativeLoader1111111111111111111111111111111"
Variables ¶
View Source
var NativeLoaderAddr = base58.MustDecodeFromString(NativeLoaderAddrStr)
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Slot uint64
Key solana.PublicKey
Lamports uint64
Data []byte
Owner [32]byte
Executable bool
RentEpoch uint64
IsDummy bool
}
func (*Account) Clone ¶
This makes a fresh copy of the account's data in 'newCopy' by allocating a new slice and copying the existing data into it. Without this, 'newCopy' would be a shallow copy, and its 'Data' member would point into the same underlying data slice as 'a'.
func (*Account) IsExecutable ¶
func (*Account) MarshalWithEncoder ¶
func (*Account) SetExecutable ¶
func (*Account) SetLamports ¶
type MemAccounts ¶
func NewMemAccounts ¶
func NewMemAccounts() MemAccounts
func NewMemAccountsWithLen ¶
func NewMemAccountsWithLen(len uint64) MemAccounts
func (MemAccounts) AllAccounts ¶
func (m MemAccounts) AllAccounts() []*Account
func (MemAccounts) GetAccount ¶
func (m MemAccounts) GetAccount(pubkey *[32]byte) (*Account, error)
func (MemAccounts) GetAccountWithoutLock ¶
func (m MemAccounts) GetAccountWithoutLock(pubkey solana.PublicKey) (*Account, error)
func (MemAccounts) SetAccount ¶
func (m MemAccounts) SetAccount(pubkey *[32]byte, acct *Account) error
func (MemAccounts) SetAccountWithoutLock ¶
func (m MemAccounts) SetAccountWithoutLock(pubkey solana.PublicKey, acct *Account) error
Click to show internal directories.
Click to hide internal directories.