Versions in this module Expand all Collapse all v0 v0.0.8 Apr 29, 2024 v0.0.7 Apr 27, 2024 Changes in this version + const MaxSeedLength + const MaxSeeds + const PDA_MARKER + var ErrMaxSeedLengthExceeded = errors.New("Max seed length exceeded") + func CreateProgramAddress(seeds [][]byte, programID common.Address) (common.Address, error) + func FindAssociatedTokenAddress(wallet common.Address, mint common.Address, options ...common.Address) (common.Address, uint8, error) + func FindAssociatedTokenAddressAndBumpSeed(walletAddress common.Address, splTokenMintAddress common.Address, ...) (common.Address, uint8, error) + func FindProgramAddress(seed [][]byte, programID common.Address) (common.Address, uint8, error) + func IsOnCurve(b []byte) bool + type Create struct + AccountMetaSlice []*types.AccountMeta + Mint common.Address + Payer common.Address + TokenProgramID common.Address + Wallet common.Address + func NewCreateInstruction(payer common.Address, walletAddress common.Address, ...) *Create + func NewCreateInstructionBuilder() *Create + func (inst *Create) SetMint(mint common.Address) *Create + func (inst *Create) SetPayer(payer common.Address) *Create + func (inst *Create) SetTokenProgramID(tokenProgramID common.Address) *Create + func (inst *Create) SetWallet(wallet common.Address) *Create + func (inst Create) Build() *Instruction + func (inst Create) MarshalWithEncoder(encoder *encodbin.Encoder) error + type Element struct + func (r *Element) SqrtRatio(u, v *Element) (R *Element, wasSquare int) + func (v *Element) Absolute(u *Element) *Element + func (v *Element) Add(a, b *Element) *Element + func (v *Element) Bytes() []byte + func (v *Element) Equal(u *Element) int + func (v *Element) Invert(z *Element) *Element + func (v *Element) IsNegative() int + func (v *Element) Mult32(x *Element, y uint32) *Element + func (v *Element) Multiply(x, y *Element) *Element + func (v *Element) Negate(a *Element) *Element + func (v *Element) One() *Element + func (v *Element) Pow22523(x *Element) *Element + func (v *Element) Select(a, b *Element, cond int) *Element + func (v *Element) Set(a *Element) *Element + func (v *Element) SetBytes(x []byte) (*Element, error) + func (v *Element) Square(x *Element) *Element + func (v *Element) Subtract(a, b *Element) *Element + func (v *Element) Swap(u *Element, cond int) + func (v *Element) Zero() *Element + type Instruction struct + func (inst *Instruction) Accounts() (out []*types.AccountMeta) + func (inst *Instruction) Data() ([]byte, error) + func (inst *Instruction) MarshalWithEncoder(encoder *encodbin.Encoder) error + func (inst *Instruction) ProgramID() common.Address + type Point struct + func (v *Point) SetBytes(x []byte) (*Point, error)