Documentation ¶
Index ¶
- func UnixTimeNow() uint64
- type AccountBuilder
- type ActivateProtocolVersionBuilder
- type AddCreditsBuilder
- func (b AddCreditsBuilder) Done() (*protocol.Transaction, error)
- func (b AddCreditsBuilder) FinishTransaction() TransactionBuilder
- func (b AddCreditsBuilder) Purchase(amount float64) AddCreditsBuilder
- func (b AddCreditsBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b AddCreditsBuilder) Spend(amount float64) AddCreditsBuilder
- func (b AddCreditsBuilder) To(url any, path ...string) AddCreditsBuilder
- func (b AddCreditsBuilder) WithOracle(value float64) AddCreditsBuilder
- type AddKeyOperationBuilder
- type BurnCreditsBuilder
- type BurnTokensBuilder
- type CreateDataAccountBuilder
- func (b CreateDataAccountBuilder) Done() (*protocol.Transaction, error)
- func (b CreateDataAccountBuilder) FinishTransaction() TransactionBuilder
- func (b CreateDataAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b CreateDataAccountBuilder) WithAuthority(book any, path ...string) CreateDataAccountBuilder
- type CreateIdentityBuilder
- func (b CreateIdentityBuilder) Done() (*protocol.Transaction, error)
- func (b CreateIdentityBuilder) FinishTransaction() TransactionBuilder
- func (b CreateIdentityBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b CreateIdentityBuilder) WithAuthority(book any, path ...string) CreateIdentityBuilder
- func (b CreateIdentityBuilder) WithKey(key any, typ protocol.SignatureType) CreateIdentityBuilder
- func (b CreateIdentityBuilder) WithKeyBook(book any, path ...string) CreateIdentityBuilder
- func (b CreateIdentityBuilder) WithKeyHash(hash any) CreateIdentityBuilder
- type CreateKeyBookBuilder
- func (b CreateKeyBookBuilder) Done() (*protocol.Transaction, error)
- func (b CreateKeyBookBuilder) FinishTransaction() TransactionBuilder
- func (b CreateKeyBookBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b CreateKeyBookBuilder) WithAuthority(book any, path ...string) CreateKeyBookBuilder
- func (b CreateKeyBookBuilder) WithKey(key any, typ protocol.SignatureType) CreateKeyBookBuilder
- func (b CreateKeyBookBuilder) WithKeyHash(hash any) CreateKeyBookBuilder
- type CreateKeyPageBuilder
- func (b CreateKeyPageBuilder) Done() (*protocol.Transaction, error)
- func (b CreateKeyPageBuilder) FinishTransaction() TransactionBuilder
- func (b CreateKeyPageBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b CreateKeyPageBuilder) WithEntry() KeyPageEntryBuilder[CreateKeyPageBuilder]
- type CreateLiteTokenAccountBuilder
- type CreateTokenAccountBuilder
- func (b CreateTokenAccountBuilder) Done() (*protocol.Transaction, error)
- func (b CreateTokenAccountBuilder) FinishTransaction() TransactionBuilder
- func (b CreateTokenAccountBuilder) ForToken(token any, path ...string) CreateTokenAccountBuilder
- func (b CreateTokenAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b CreateTokenAccountBuilder) WithAuthority(book any, path ...string) CreateTokenAccountBuilder
- type CreateTokenBuilder
- func (b CreateTokenBuilder) Done() (*protocol.Transaction, error)
- func (b CreateTokenBuilder) FinishTransaction() TransactionBuilder
- func (b CreateTokenBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b CreateTokenBuilder) WithAuthority(book any, path ...string) CreateTokenBuilder
- func (b CreateTokenBuilder) WithPrecision(precision any) CreateTokenBuilder
- func (b CreateTokenBuilder) WithSupplyLimit(limit any) CreateTokenBuilder
- func (b CreateTokenBuilder) WithSymbol(symbol string) CreateTokenBuilder
- type DataAccountBuilder
- func (b *DataAccountBuilder) AccountID() []byte
- func (b *DataAccountBuilder) Build(dbr DbResolver) error
- func (b *DataAccountBuilder) Create() *DataAccountBuilder
- func (b *DataAccountBuilder) Identity() *IdentityBuilder
- func (b *DataAccountBuilder) Load(dbr DbResolver) (T, error)
- func (b *DataAccountBuilder) Update(fn func(acct *protocol.DataAccount)) *DataAccountBuilder
- func (b *DataAccountBuilder) Url() *url.URL
- type DbResolver
- type ED25519PrivateKey
- type Errors
- type IdentityBuilder
- func (b *IdentityBuilder) AccountID() []byte
- func (b *IdentityBuilder) Book(path string) *KeyBookBuilder
- func (b *IdentityBuilder) Build(dbr DbResolver) error
- func (b *IdentityBuilder) Create(bookPath string) *IdentityBuilder
- func (b *IdentityBuilder) Data(path string) *DataAccountBuilder
- func (b *IdentityBuilder) Identity() *IdentityBuilder
- func (b *IdentityBuilder) Load(dbr DbResolver) (T, error)
- func (b *IdentityBuilder) Tokens(path string) *TokenAccountBuilder
- func (b *IdentityBuilder) Update(fn func(adi *protocol.ADI)) *IdentityBuilder
- func (b *IdentityBuilder) Url() *url.URL
- type IssueTokensBuilder
- func (b IssueTokensBuilder) And(amount any, precision uint64) IssueTokensBuilder
- func (b IssueTokensBuilder) Done() (*protocol.Transaction, error)
- func (b IssueTokensBuilder) FinishTransaction() TransactionBuilder
- func (b IssueTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b IssueTokensBuilder) To(recipient any, path ...string) IssueTokensBuilder
- type KeyBookBuilder
- func (b *KeyBookBuilder) AccountID() []byte
- func (b *KeyBookBuilder) Build(dbr DbResolver) error
- func (b *KeyBookBuilder) Create() *KeyBookBuilder
- func (b *KeyBookBuilder) Identity() *IdentityBuilder
- func (b *KeyBookBuilder) Load(dbr DbResolver) (T, error)
- func (b *KeyBookBuilder) Page(page int) *KeyPageBuilder
- func (b *KeyBookBuilder) Update(fn func(book *protocol.KeyBook)) *KeyBookBuilder
- func (b *KeyBookBuilder) Url() *url.URL
- type KeyPageBuilder
- func (b *KeyPageBuilder) AccountID() []byte
- func (b *KeyPageBuilder) AddCredits(amount any) *KeyPageBuilder
- func (b *KeyPageBuilder) AddDelegate(base any, path ...string) *KeyPageBuilder
- func (b *KeyPageBuilder) AddEntry(entry protocol.KeySpec) *KeyPageBuilder
- func (b *KeyPageBuilder) AddKey(key any) *KeyPageBuilder
- func (b *KeyPageBuilder) Book() *KeyBookBuilder
- func (b *KeyPageBuilder) Build(dbr DbResolver) error
- func (b *KeyPageBuilder) Create() *KeyPageBuilder
- func (b *KeyPageBuilder) GenerateKey(typ protocol.SignatureType, seedParts ...any) address.Address
- func (b *KeyPageBuilder) Load(dbr DbResolver) (T, error)
- func (b *KeyPageBuilder) SetAcceptThreshold(v uint64) *KeyPageBuilder
- func (b *KeyPageBuilder) SetRejectThreshold(v uint64) *KeyPageBuilder
- func (b *KeyPageBuilder) SetResponseThreshold(v uint64) *KeyPageBuilder
- func (b *KeyPageBuilder) Update(fn func(page *protocol.KeyPage)) *KeyPageBuilder
- func (b *KeyPageBuilder) Url() *url.URL
- type KeyPageEntryBuilder
- func (b KeyPageEntryBuilder[T]) FinishEntry() T
- func (b KeyPageEntryBuilder[T]) Hash(hash any) KeyPageEntryBuilder[T]
- func (b KeyPageEntryBuilder[T]) Key(key any, typ protocol.SignatureType) KeyPageEntryBuilder[T]
- func (b KeyPageEntryBuilder[T]) Owner(owner any, path ...string) KeyPageEntryBuilder[T]
- type LiteIdentityBuilder
- func (b *LiteIdentityBuilder) AccountID() []byte
- func (b *LiteIdentityBuilder) AddCredits(amount any) *LiteIdentityBuilder
- func (b *LiteIdentityBuilder) Build(dbr DbResolver) error
- func (b *LiteIdentityBuilder) For(key any) *LiteIdentityBuilder
- func (b *LiteIdentityBuilder) Generate(seedParts ...any) *LiteIdentityBuilder
- func (b *LiteIdentityBuilder) Load(dbr DbResolver) (T, error)
- func (b *LiteIdentityBuilder) Tokens(path string) *LiteTokenAccountBuilder
- func (b *LiteIdentityBuilder) Update(fn func(lid *protocol.LiteIdentity)) *LiteIdentityBuilder
- func (b *LiteIdentityBuilder) Url() *url.URL
- type LiteTokenAccountBuilder
- func (b *LiteTokenAccountBuilder) AccountID() []byte
- func (b *LiteTokenAccountBuilder) Add(amount any) *LiteTokenAccountBuilder
- func (b *LiteTokenAccountBuilder) Build(dbr DbResolver) error
- func (b *LiteTokenAccountBuilder) Create() *LiteTokenAccountBuilder
- func (b *LiteTokenAccountBuilder) Identity() *LiteIdentityBuilder
- func (b *LiteTokenAccountBuilder) Load(dbr DbResolver) (T, error)
- func (b *LiteTokenAccountBuilder) Update(fn func(acct *protocol.LiteTokenAccount)) *LiteTokenAccountBuilder
- func (b *LiteTokenAccountBuilder) Url() *url.URL
- type LockAccountBuilder
- type RemoveKeyOperationBuilder
- type SendTokensBuilder
- func (b SendTokensBuilder) And(amount any, precision uint64) SendTokensBuilder
- func (b SendTokensBuilder) Done() (*protocol.Transaction, error)
- func (b SendTokensBuilder) FinishTransaction() TransactionBuilder
- func (b SendTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b SendTokensBuilder) To(recipient any, path ...string) SendTokensBuilder
- type SignatureBuilder
- func Faucet(recipient any, path ...string) SignatureBuilder
- func SignatureForHash(hash []byte) SignatureBuilder
- func SignatureForMessage(msg messaging.Message) SignatureBuilder
- func SignatureForTransaction(txn *protocol.Transaction) SignatureBuilder
- func SignatureForTxID(txid *url.TxID) SignatureBuilder
- func (b SignatureBuilder) Abstain() SignatureBuilder
- func (b SignatureBuilder) Accept() SignatureBuilder
- func (b SignatureBuilder) Delegator(delegator any, path ...string) SignatureBuilder
- func (b SignatureBuilder) Delegators(delegators ...*url.URL) SignatureBuilder
- func (b SignatureBuilder) Done() (*messaging.Envelope, error)
- func (b SignatureBuilder) Load(q api.Querier) SignatureBuilder
- func (b SignatureBuilder) Memo(s string) SignatureBuilder
- func (b SignatureBuilder) Metadata(v any) SignatureBuilder
- func (b SignatureBuilder) NoInitiator() SignatureBuilder
- func (b SignatureBuilder) PrivateKey(key any) SignatureBuilder
- func (b SignatureBuilder) Reject() SignatureBuilder
- func (b SignatureBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b SignatureBuilder) Signer(signer any) SignatureBuilder
- func (b SignatureBuilder) Suggest() SignatureBuilder
- func (b SignatureBuilder) Timestamp(timestamp any) SignatureBuilder
- func (b SignatureBuilder) Type(typ protocol.SignatureType) SignatureBuilder
- func (b SignatureBuilder) Url(signer any, path ...string) SignatureBuilder
- func (b SignatureBuilder) Version(version any) SignatureBuilder
- func (b SignatureBuilder) Vote(vote protocol.VoteType) SignatureBuilder
- type Signer
- type TokenAccountBuilder
- func (b *TokenAccountBuilder) AccountID() []byte
- func (b *TokenAccountBuilder) Add(amount any) *TokenAccountBuilder
- func (b *TokenAccountBuilder) Build(dbr DbResolver) error
- func (b *TokenAccountBuilder) Create(issuer any, path ...string) *TokenAccountBuilder
- func (b *TokenAccountBuilder) Identity() *IdentityBuilder
- func (b *TokenAccountBuilder) Load(dbr DbResolver) (T, error)
- func (b *TokenAccountBuilder) Update(fn func(acct *protocol.TokenAccount)) *TokenAccountBuilder
- func (b *TokenAccountBuilder) Url() *url.URL
- type TransactionBuilder
- func (b TransactionBuilder) ActivateProtocolVersion(version protocol.ExecutorVersion) ActivateProtocolVersionBuilder
- func (b TransactionBuilder) AddCredits() AddCreditsBuilder
- func (b TransactionBuilder) AdditionalAuthority(signer any, path ...string) TransactionBuilder
- func (b TransactionBuilder) Body(body protocol.TransactionBody) TransactionBuilder
- func (b TransactionBuilder) BurnCredits(amount any) BurnCreditsBuilder
- func (b TransactionBuilder) BurnTokens(amount any, precision uint64) BurnTokensBuilder
- func (b TransactionBuilder) CreateDataAccount(url any, path ...string) CreateDataAccountBuilder
- func (b TransactionBuilder) CreateIdentity(url any, path ...string) CreateIdentityBuilder
- func (b TransactionBuilder) CreateKeyBook(url any, path ...string) CreateKeyBookBuilder
- func (b TransactionBuilder) CreateKeyPage() CreateKeyPageBuilder
- func (b TransactionBuilder) CreateLiteTokenAccount() CreateLiteTokenAccountBuilder
- func (b TransactionBuilder) CreateToken(url any, path ...string) CreateTokenBuilder
- func (b TransactionBuilder) CreateTokenAccount(url any, path ...string) CreateTokenAccountBuilder
- func (b TransactionBuilder) Done() (*protocol.Transaction, error)
- func (b TransactionBuilder) ExpireAtTime(v time.Time) TransactionBuilder
- func (b TransactionBuilder) For(principal any, path ...string) TransactionBuilder
- func (b TransactionBuilder) HoldUntil(opts protocol.HoldUntilOptions) TransactionBuilder
- func (b TransactionBuilder) Initiator(init any) TransactionBuilder
- func (b TransactionBuilder) IssueTokens(amount any, precision uint64) IssueTokensBuilder
- func (b TransactionBuilder) LockAccount(height uint64) LockAccountBuilder
- func (b TransactionBuilder) Memo(memo string) TransactionBuilder
- func (b TransactionBuilder) Metadata(metadata []byte) TransactionBuilder
- func (b TransactionBuilder) SendTokens(amount any, precision uint64) SendTokensBuilder
- func (b TransactionBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b TransactionBuilder) TransferCredits(amount any) TransferCreditsBuilder
- func (b TransactionBuilder) UpdateAccountAuth() UpdateAccountAuthBuilder
- func (b TransactionBuilder) UpdateKey(newKey any, typ protocol.SignatureType) UpdateKeyBuilder
- func (b TransactionBuilder) UpdateKeyPage() UpdateKeyPageBuilder
- func (b TransactionBuilder) WriteData(data ...any) WriteDataBuilder
- type TransferCreditsBuilder
- func (b TransferCreditsBuilder) And(amount any) TransferCreditsBuilder
- func (b TransferCreditsBuilder) Done() (*protocol.Transaction, error)
- func (b TransferCreditsBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b TransferCreditsBuilder) To(recipient any, path ...string) TransferCreditsBuilder
- type UpdateAccountAuthBuilder
- func (b UpdateAccountAuthBuilder) Add(authority any, path ...string) UpdateAccountAuthBuilder
- func (b UpdateAccountAuthBuilder) Disable(authority any, path ...string) UpdateAccountAuthBuilder
- func (b UpdateAccountAuthBuilder) Done() (*protocol.Transaction, error)
- func (b UpdateAccountAuthBuilder) Enable(authority any, path ...string) UpdateAccountAuthBuilder
- func (b UpdateAccountAuthBuilder) FinishTransaction() TransactionBuilder
- func (b UpdateAccountAuthBuilder) Remove(authority any, path ...string) UpdateAccountAuthBuilder
- func (b UpdateAccountAuthBuilder) SignWith(signer any, path ...string) SignatureBuilder
- type UpdateAllowedKeyPageOperationBuilder
- func (b UpdateAllowedKeyPageOperationBuilder) Allow(typ protocol.TransactionType) UpdateAllowedKeyPageOperationBuilder
- func (b UpdateAllowedKeyPageOperationBuilder) Deny(typ protocol.TransactionType) UpdateAllowedKeyPageOperationBuilder
- func (b UpdateAllowedKeyPageOperationBuilder) FinishOperation() UpdateKeyPageBuilder
- type UpdateKeyBuilder
- type UpdateKeyOperationBuilder
- type UpdateKeyPageBuilder
- func (b UpdateKeyPageBuilder) Add() AddKeyOperationBuilder
- func (b UpdateKeyPageBuilder) Done() (*protocol.Transaction, error)
- func (b UpdateKeyPageBuilder) FinishTransaction() TransactionBuilder
- func (b UpdateKeyPageBuilder) Remove() RemoveKeyOperationBuilder
- func (b UpdateKeyPageBuilder) SetRejectThreshold(v uint64) UpdateKeyPageBuilder
- func (b UpdateKeyPageBuilder) SetResponseThreshold(v uint64) UpdateKeyPageBuilder
- func (b UpdateKeyPageBuilder) SetThreshold(v uint64) UpdateKeyPageBuilder
- func (b UpdateKeyPageBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b UpdateKeyPageBuilder) Update() UpdateKeyOperationBuilder
- func (b UpdateKeyPageBuilder) UpdateAllowed() UpdateAllowedKeyPageOperationBuilder
- type WriteDataBuilder
- func (b WriteDataBuilder) Accumulate(data ...any) WriteDataBuilder
- func (b WriteDataBuilder) Done() (*protocol.Transaction, error)
- func (b WriteDataBuilder) DoubleHash(data ...any) WriteDataBuilder
- func (b WriteDataBuilder) Entry(e protocol.DataEntry) WriteDataBuilder
- func (b WriteDataBuilder) FinishTransaction() TransactionBuilder
- func (b WriteDataBuilder) Scratch() WriteDataBuilder
- func (b WriteDataBuilder) SignWith(signer any, path ...string) SignatureBuilder
- func (b WriteDataBuilder) To(recipient any, path ...string) WriteDataToBuilder
- func (b WriteDataBuilder) ToState() WriteDataBuilder
- type WriteDataToBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnixTimeNow ¶
func UnixTimeNow() uint64
UnixTimeNow returns the current time as a number of milliseconds since the Unix epoch. This is the recommended timestamp value.
Types ¶
type AccountBuilder ¶ added in v1.4.0
type AccountBuilder interface { Url() *url.URL Build(dbr DbResolver) error // contains filtered or unexported methods }
type ActivateProtocolVersionBuilder ¶ added in v1.0.2
type ActivateProtocolVersionBuilder struct {
// contains filtered or unexported fields
}
func (ActivateProtocolVersionBuilder) Done ¶ added in v1.0.2
func (b ActivateProtocolVersionBuilder) Done() (*protocol.Transaction, error)
func (ActivateProtocolVersionBuilder) FinishTransaction ¶ added in v1.1.0
func (b ActivateProtocolVersionBuilder) FinishTransaction() TransactionBuilder
func (ActivateProtocolVersionBuilder) SignWith ¶ added in v1.0.2
func (b ActivateProtocolVersionBuilder) SignWith(signer any, path ...string) SignatureBuilder
type AddCreditsBuilder ¶
type AddCreditsBuilder struct {
// contains filtered or unexported fields
}
func (AddCreditsBuilder) Done ¶
func (b AddCreditsBuilder) Done() (*protocol.Transaction, error)
func (AddCreditsBuilder) FinishTransaction ¶ added in v1.1.0
func (b AddCreditsBuilder) FinishTransaction() TransactionBuilder
func (AddCreditsBuilder) Purchase ¶ added in v1.0.1
func (b AddCreditsBuilder) Purchase(amount float64) AddCreditsBuilder
func (AddCreditsBuilder) SignWith ¶
func (b AddCreditsBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (AddCreditsBuilder) Spend ¶
func (b AddCreditsBuilder) Spend(amount float64) AddCreditsBuilder
func (AddCreditsBuilder) To ¶
func (b AddCreditsBuilder) To(url any, path ...string) AddCreditsBuilder
func (AddCreditsBuilder) WithOracle ¶
func (b AddCreditsBuilder) WithOracle(value float64) AddCreditsBuilder
type AddKeyOperationBuilder ¶
type AddKeyOperationBuilder struct {
// contains filtered or unexported fields
}
func (AddKeyOperationBuilder) Entry ¶
func (b AddKeyOperationBuilder) Entry() KeyPageEntryBuilder[AddKeyOperationBuilder]
func (AddKeyOperationBuilder) FinishOperation ¶
func (b AddKeyOperationBuilder) FinishOperation() UpdateKeyPageBuilder
type BurnCreditsBuilder ¶ added in v1.1.0
type BurnCreditsBuilder struct {
// contains filtered or unexported fields
}
func (BurnCreditsBuilder) Done ¶ added in v1.1.0
func (b BurnCreditsBuilder) Done() (*protocol.Transaction, error)
func (BurnCreditsBuilder) SignWith ¶ added in v1.1.0
func (b BurnCreditsBuilder) SignWith(signer any, path ...string) SignatureBuilder
type BurnTokensBuilder ¶
type BurnTokensBuilder struct {
// contains filtered or unexported fields
}
func (BurnTokensBuilder) Done ¶
func (b BurnTokensBuilder) Done() (*protocol.Transaction, error)
func (BurnTokensBuilder) FinishTransaction ¶ added in v1.1.0
func (b BurnTokensBuilder) FinishTransaction() TransactionBuilder
func (BurnTokensBuilder) SignWith ¶
func (b BurnTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder
type CreateDataAccountBuilder ¶
type CreateDataAccountBuilder struct {
// contains filtered or unexported fields
}
func (CreateDataAccountBuilder) Done ¶
func (b CreateDataAccountBuilder) Done() (*protocol.Transaction, error)
func (CreateDataAccountBuilder) FinishTransaction ¶ added in v1.1.0
func (b CreateDataAccountBuilder) FinishTransaction() TransactionBuilder
func (CreateDataAccountBuilder) SignWith ¶
func (b CreateDataAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (CreateDataAccountBuilder) WithAuthority ¶
func (b CreateDataAccountBuilder) WithAuthority(book any, path ...string) CreateDataAccountBuilder
type CreateIdentityBuilder ¶
type CreateIdentityBuilder struct {
// contains filtered or unexported fields
}
func (CreateIdentityBuilder) Done ¶
func (b CreateIdentityBuilder) Done() (*protocol.Transaction, error)
func (CreateIdentityBuilder) FinishTransaction ¶ added in v1.1.0
func (b CreateIdentityBuilder) FinishTransaction() TransactionBuilder
func (CreateIdentityBuilder) SignWith ¶
func (b CreateIdentityBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (CreateIdentityBuilder) WithAuthority ¶
func (b CreateIdentityBuilder) WithAuthority(book any, path ...string) CreateIdentityBuilder
func (CreateIdentityBuilder) WithKey ¶
func (b CreateIdentityBuilder) WithKey(key any, typ protocol.SignatureType) CreateIdentityBuilder
func (CreateIdentityBuilder) WithKeyBook ¶
func (b CreateIdentityBuilder) WithKeyBook(book any, path ...string) CreateIdentityBuilder
func (CreateIdentityBuilder) WithKeyHash ¶
func (b CreateIdentityBuilder) WithKeyHash(hash any) CreateIdentityBuilder
type CreateKeyBookBuilder ¶
type CreateKeyBookBuilder struct {
// contains filtered or unexported fields
}
func (CreateKeyBookBuilder) Done ¶
func (b CreateKeyBookBuilder) Done() (*protocol.Transaction, error)
func (CreateKeyBookBuilder) FinishTransaction ¶ added in v1.1.0
func (b CreateKeyBookBuilder) FinishTransaction() TransactionBuilder
func (CreateKeyBookBuilder) SignWith ¶
func (b CreateKeyBookBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (CreateKeyBookBuilder) WithAuthority ¶
func (b CreateKeyBookBuilder) WithAuthority(book any, path ...string) CreateKeyBookBuilder
func (CreateKeyBookBuilder) WithKey ¶
func (b CreateKeyBookBuilder) WithKey(key any, typ protocol.SignatureType) CreateKeyBookBuilder
func (CreateKeyBookBuilder) WithKeyHash ¶
func (b CreateKeyBookBuilder) WithKeyHash(hash any) CreateKeyBookBuilder
type CreateKeyPageBuilder ¶
type CreateKeyPageBuilder struct {
// contains filtered or unexported fields
}
func (CreateKeyPageBuilder) Done ¶
func (b CreateKeyPageBuilder) Done() (*protocol.Transaction, error)
func (CreateKeyPageBuilder) FinishTransaction ¶ added in v1.1.0
func (b CreateKeyPageBuilder) FinishTransaction() TransactionBuilder
func (CreateKeyPageBuilder) SignWith ¶
func (b CreateKeyPageBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (CreateKeyPageBuilder) WithEntry ¶
func (b CreateKeyPageBuilder) WithEntry() KeyPageEntryBuilder[CreateKeyPageBuilder]
type CreateLiteTokenAccountBuilder ¶ added in v1.1.0
type CreateLiteTokenAccountBuilder struct {
// contains filtered or unexported fields
}
func (CreateLiteTokenAccountBuilder) Done ¶ added in v1.1.0
func (b CreateLiteTokenAccountBuilder) Done() (*protocol.Transaction, error)
func (CreateLiteTokenAccountBuilder) FinishTransaction ¶ added in v1.1.0
func (b CreateLiteTokenAccountBuilder) FinishTransaction() TransactionBuilder
func (CreateLiteTokenAccountBuilder) SignWith ¶ added in v1.1.0
func (b CreateLiteTokenAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder
type CreateTokenAccountBuilder ¶
type CreateTokenAccountBuilder struct {
// contains filtered or unexported fields
}
func (CreateTokenAccountBuilder) Done ¶
func (b CreateTokenAccountBuilder) Done() (*protocol.Transaction, error)
func (CreateTokenAccountBuilder) FinishTransaction ¶ added in v1.1.0
func (b CreateTokenAccountBuilder) FinishTransaction() TransactionBuilder
func (CreateTokenAccountBuilder) ForToken ¶
func (b CreateTokenAccountBuilder) ForToken(token any, path ...string) CreateTokenAccountBuilder
func (CreateTokenAccountBuilder) SignWith ¶
func (b CreateTokenAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (CreateTokenAccountBuilder) WithAuthority ¶
func (b CreateTokenAccountBuilder) WithAuthority(book any, path ...string) CreateTokenAccountBuilder
type CreateTokenBuilder ¶
type CreateTokenBuilder struct {
// contains filtered or unexported fields
}
func (CreateTokenBuilder) Done ¶
func (b CreateTokenBuilder) Done() (*protocol.Transaction, error)
func (CreateTokenBuilder) FinishTransaction ¶ added in v1.1.0
func (b CreateTokenBuilder) FinishTransaction() TransactionBuilder
func (CreateTokenBuilder) SignWith ¶
func (b CreateTokenBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (CreateTokenBuilder) WithAuthority ¶
func (b CreateTokenBuilder) WithAuthority(book any, path ...string) CreateTokenBuilder
func (CreateTokenBuilder) WithPrecision ¶
func (b CreateTokenBuilder) WithPrecision(precision any) CreateTokenBuilder
func (CreateTokenBuilder) WithSupplyLimit ¶
func (b CreateTokenBuilder) WithSupplyLimit(limit any) CreateTokenBuilder
func (CreateTokenBuilder) WithSymbol ¶
func (b CreateTokenBuilder) WithSymbol(symbol string) CreateTokenBuilder
type DataAccountBuilder ¶ added in v1.4.0
type DataAccountBuilder struct {
// contains filtered or unexported fields
}
func (*DataAccountBuilder) AccountID ¶ added in v1.4.0
func (b *DataAccountBuilder) AccountID() []byte
AccountID returns Url().AccountID(). AccountID exists solely to allow builders to be passed to record.NewKey and friends.
func (*DataAccountBuilder) Build ¶ added in v1.4.0
func (b *DataAccountBuilder) Build(dbr DbResolver) error
func (*DataAccountBuilder) Create ¶ added in v1.4.0
func (b *DataAccountBuilder) Create() *DataAccountBuilder
func (*DataAccountBuilder) Identity ¶ added in v1.4.0
func (b *DataAccountBuilder) Identity() *IdentityBuilder
func (*DataAccountBuilder) Load ¶ added in v1.4.0
func (b *DataAccountBuilder) Load(dbr DbResolver) (T, error)
func (*DataAccountBuilder) Update ¶ added in v1.4.0
func (b *DataAccountBuilder) Update(fn func(acct *protocol.DataAccount)) *DataAccountBuilder
type ED25519PrivateKey ¶ added in v1.1.0
type ED25519PrivateKey []byte
ED25519PrivateKey is an ED25519 private key used as a Signer.
func (ED25519PrivateKey) Address ¶ added in v1.1.0
func (sk ED25519PrivateKey) Address() address.Address
type IdentityBuilder ¶ added in v1.4.0
type IdentityBuilder struct {
// contains filtered or unexported fields
}
func Identity ¶ added in v1.4.0
func Identity(base any, path ...string) *IdentityBuilder
func (*IdentityBuilder) AccountID ¶ added in v1.4.0
func (b *IdentityBuilder) AccountID() []byte
AccountID returns Url().AccountID(). AccountID exists solely to allow builders to be passed to record.NewKey and friends.
func (*IdentityBuilder) Book ¶ added in v1.4.0
func (b *IdentityBuilder) Book(path string) *KeyBookBuilder
func (*IdentityBuilder) Build ¶ added in v1.4.0
func (b *IdentityBuilder) Build(dbr DbResolver) error
func (*IdentityBuilder) Create ¶ added in v1.4.0
func (b *IdentityBuilder) Create(bookPath string) *IdentityBuilder
func (*IdentityBuilder) Data ¶ added in v1.4.0
func (b *IdentityBuilder) Data(path string) *DataAccountBuilder
func (*IdentityBuilder) Identity ¶ added in v1.4.0
func (b *IdentityBuilder) Identity() *IdentityBuilder
func (*IdentityBuilder) Load ¶ added in v1.4.0
func (b *IdentityBuilder) Load(dbr DbResolver) (T, error)
func (*IdentityBuilder) Tokens ¶ added in v1.4.0
func (b *IdentityBuilder) Tokens(path string) *TokenAccountBuilder
func (*IdentityBuilder) Update ¶ added in v1.4.0
func (b *IdentityBuilder) Update(fn func(adi *protocol.ADI)) *IdentityBuilder
type IssueTokensBuilder ¶
type IssueTokensBuilder struct {
// contains filtered or unexported fields
}
func (IssueTokensBuilder) And ¶
func (b IssueTokensBuilder) And(amount any, precision uint64) IssueTokensBuilder
func (IssueTokensBuilder) Done ¶
func (b IssueTokensBuilder) Done() (*protocol.Transaction, error)
func (IssueTokensBuilder) FinishTransaction ¶ added in v1.1.0
func (b IssueTokensBuilder) FinishTransaction() TransactionBuilder
func (IssueTokensBuilder) SignWith ¶
func (b IssueTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (IssueTokensBuilder) To ¶
func (b IssueTokensBuilder) To(recipient any, path ...string) IssueTokensBuilder
type KeyBookBuilder ¶ added in v1.4.0
type KeyBookBuilder struct {
// contains filtered or unexported fields
}
func (*KeyBookBuilder) AccountID ¶ added in v1.4.0
func (b *KeyBookBuilder) AccountID() []byte
AccountID returns Url().AccountID(). AccountID exists solely to allow builders to be passed to record.NewKey and friends.
func (*KeyBookBuilder) Build ¶ added in v1.4.0
func (b *KeyBookBuilder) Build(dbr DbResolver) error
func (*KeyBookBuilder) Create ¶ added in v1.4.0
func (b *KeyBookBuilder) Create() *KeyBookBuilder
func (*KeyBookBuilder) Identity ¶ added in v1.4.0
func (b *KeyBookBuilder) Identity() *IdentityBuilder
func (*KeyBookBuilder) Load ¶ added in v1.4.0
func (b *KeyBookBuilder) Load(dbr DbResolver) (T, error)
func (*KeyBookBuilder) Page ¶ added in v1.4.0
func (b *KeyBookBuilder) Page(page int) *KeyPageBuilder
func (*KeyBookBuilder) Update ¶ added in v1.4.0
func (b *KeyBookBuilder) Update(fn func(book *protocol.KeyBook)) *KeyBookBuilder
type KeyPageBuilder ¶ added in v1.4.0
type KeyPageBuilder struct {
// contains filtered or unexported fields
}
func (*KeyPageBuilder) AccountID ¶ added in v1.4.0
func (b *KeyPageBuilder) AccountID() []byte
AccountID returns Url().AccountID(). AccountID exists solely to allow builders to be passed to record.NewKey and friends.
func (*KeyPageBuilder) AddCredits ¶ added in v1.4.0
func (b *KeyPageBuilder) AddCredits(amount any) *KeyPageBuilder
func (*KeyPageBuilder) AddDelegate ¶ added in v1.4.0
func (b *KeyPageBuilder) AddDelegate(base any, path ...string) *KeyPageBuilder
func (*KeyPageBuilder) AddEntry ¶ added in v1.4.0
func (b *KeyPageBuilder) AddEntry(entry protocol.KeySpec) *KeyPageBuilder
func (*KeyPageBuilder) AddKey ¶ added in v1.4.0
func (b *KeyPageBuilder) AddKey(key any) *KeyPageBuilder
func (*KeyPageBuilder) Book ¶ added in v1.4.0
func (b *KeyPageBuilder) Book() *KeyBookBuilder
func (*KeyPageBuilder) Build ¶ added in v1.4.0
func (b *KeyPageBuilder) Build(dbr DbResolver) error
func (*KeyPageBuilder) Create ¶ added in v1.4.0
func (b *KeyPageBuilder) Create() *KeyPageBuilder
func (*KeyPageBuilder) GenerateKey ¶ added in v1.4.0
func (b *KeyPageBuilder) GenerateKey(typ protocol.SignatureType, seedParts ...any) address.Address
func (*KeyPageBuilder) Load ¶ added in v1.4.0
func (b *KeyPageBuilder) Load(dbr DbResolver) (T, error)
func (*KeyPageBuilder) SetAcceptThreshold ¶ added in v1.4.0
func (b *KeyPageBuilder) SetAcceptThreshold(v uint64) *KeyPageBuilder
func (*KeyPageBuilder) SetRejectThreshold ¶ added in v1.4.0
func (b *KeyPageBuilder) SetRejectThreshold(v uint64) *KeyPageBuilder
func (*KeyPageBuilder) SetResponseThreshold ¶ added in v1.4.0
func (b *KeyPageBuilder) SetResponseThreshold(v uint64) *KeyPageBuilder
func (*KeyPageBuilder) Update ¶ added in v1.4.0
func (b *KeyPageBuilder) Update(fn func(page *protocol.KeyPage)) *KeyPageBuilder
type KeyPageEntryBuilder ¶
type KeyPageEntryBuilder[T keyPageEntryBuilderArg[T]] struct {
// contains filtered or unexported fields
}
func (KeyPageEntryBuilder[T]) FinishEntry ¶
func (b KeyPageEntryBuilder[T]) FinishEntry() T
func (KeyPageEntryBuilder[T]) Hash ¶
func (b KeyPageEntryBuilder[T]) Hash(hash any) KeyPageEntryBuilder[T]
func (KeyPageEntryBuilder[T]) Key ¶
func (b KeyPageEntryBuilder[T]) Key(key any, typ protocol.SignatureType) KeyPageEntryBuilder[T]
func (KeyPageEntryBuilder[T]) Owner ¶
func (b KeyPageEntryBuilder[T]) Owner(owner any, path ...string) KeyPageEntryBuilder[T]
type LiteIdentityBuilder ¶ added in v1.4.0
func LiteIdentity ¶ added in v1.4.0
func LiteIdentity() *LiteIdentityBuilder
func (*LiteIdentityBuilder) AccountID ¶ added in v1.4.0
func (b *LiteIdentityBuilder) AccountID() []byte
AccountID returns Url().AccountID(). AccountID exists solely to allow builders to be passed to record.NewKey and friends.
func (*LiteIdentityBuilder) AddCredits ¶ added in v1.4.0
func (b *LiteIdentityBuilder) AddCredits(amount any) *LiteIdentityBuilder
func (*LiteIdentityBuilder) Build ¶ added in v1.4.0
func (b *LiteIdentityBuilder) Build(dbr DbResolver) error
func (*LiteIdentityBuilder) For ¶ added in v1.4.0
func (b *LiteIdentityBuilder) For(key any) *LiteIdentityBuilder
func (*LiteIdentityBuilder) Generate ¶ added in v1.4.0
func (b *LiteIdentityBuilder) Generate(seedParts ...any) *LiteIdentityBuilder
func (*LiteIdentityBuilder) Load ¶ added in v1.4.0
func (b *LiteIdentityBuilder) Load(dbr DbResolver) (T, error)
func (*LiteIdentityBuilder) Tokens ¶ added in v1.4.0
func (b *LiteIdentityBuilder) Tokens(path string) *LiteTokenAccountBuilder
func (*LiteIdentityBuilder) Update ¶ added in v1.4.0
func (b *LiteIdentityBuilder) Update(fn func(lid *protocol.LiteIdentity)) *LiteIdentityBuilder
type LiteTokenAccountBuilder ¶ added in v1.4.0
type LiteTokenAccountBuilder struct {
// contains filtered or unexported fields
}
func (*LiteTokenAccountBuilder) AccountID ¶ added in v1.4.0
func (b *LiteTokenAccountBuilder) AccountID() []byte
AccountID returns Url().AccountID(). AccountID exists solely to allow builders to be passed to record.NewKey and friends.
func (*LiteTokenAccountBuilder) Add ¶ added in v1.4.0
func (b *LiteTokenAccountBuilder) Add(amount any) *LiteTokenAccountBuilder
func (*LiteTokenAccountBuilder) Build ¶ added in v1.4.0
func (b *LiteTokenAccountBuilder) Build(dbr DbResolver) error
func (*LiteTokenAccountBuilder) Create ¶ added in v1.4.0
func (b *LiteTokenAccountBuilder) Create() *LiteTokenAccountBuilder
func (*LiteTokenAccountBuilder) Identity ¶ added in v1.4.0
func (b *LiteTokenAccountBuilder) Identity() *LiteIdentityBuilder
func (*LiteTokenAccountBuilder) Load ¶ added in v1.4.0
func (b *LiteTokenAccountBuilder) Load(dbr DbResolver) (T, error)
func (*LiteTokenAccountBuilder) Update ¶ added in v1.4.0
func (b *LiteTokenAccountBuilder) Update(fn func(acct *protocol.LiteTokenAccount)) *LiteTokenAccountBuilder
type LockAccountBuilder ¶ added in v1.1.0
type LockAccountBuilder struct {
// contains filtered or unexported fields
}
func (LockAccountBuilder) Done ¶ added in v1.1.0
func (b LockAccountBuilder) Done() (*protocol.Transaction, error)
func (LockAccountBuilder) FinishTransaction ¶ added in v1.1.0
func (b LockAccountBuilder) FinishTransaction() TransactionBuilder
func (LockAccountBuilder) SignWith ¶ added in v1.1.0
func (b LockAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder
type RemoveKeyOperationBuilder ¶
type RemoveKeyOperationBuilder struct {
// contains filtered or unexported fields
}
func (RemoveKeyOperationBuilder) Entry ¶
func (b RemoveKeyOperationBuilder) Entry() KeyPageEntryBuilder[RemoveKeyOperationBuilder]
func (RemoveKeyOperationBuilder) FinishOperation ¶
func (b RemoveKeyOperationBuilder) FinishOperation() UpdateKeyPageBuilder
type SendTokensBuilder ¶
type SendTokensBuilder struct {
// contains filtered or unexported fields
}
func (SendTokensBuilder) And ¶
func (b SendTokensBuilder) And(amount any, precision uint64) SendTokensBuilder
func (SendTokensBuilder) Done ¶
func (b SendTokensBuilder) Done() (*protocol.Transaction, error)
func (SendTokensBuilder) FinishTransaction ¶ added in v1.1.0
func (b SendTokensBuilder) FinishTransaction() TransactionBuilder
func (SendTokensBuilder) SignWith ¶
func (b SendTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (SendTokensBuilder) To ¶
func (b SendTokensBuilder) To(recipient any, path ...string) SendTokensBuilder
type SignatureBuilder ¶
type SignatureBuilder struct { // Ignore64Byte (when set) stops the signature builder from automatically // correcting a transaction header or body that marshals to 64 bytes. Ignore64Byte bool // Use a Merkle hash to initiate the transaction. Only intended for testing // purposes. // // Deprecated: Use plain hashes for initiation instead. InitMerkle bool // contains filtered or unexported fields }
SignatureBuilder builds a signature. SignatureBuilder should not be constructed directly.
func Faucet ¶ added in v1.1.0
func Faucet(recipient any, path ...string) SignatureBuilder
func SignatureForHash ¶
func SignatureForHash(hash []byte) SignatureBuilder
func SignatureForMessage ¶ added in v1.1.0
func SignatureForMessage(msg messaging.Message) SignatureBuilder
func SignatureForTransaction ¶
func SignatureForTransaction(txn *protocol.Transaction) SignatureBuilder
func SignatureForTxID ¶ added in v1.0.1
func SignatureForTxID(txid *url.TxID) SignatureBuilder
func (SignatureBuilder) Abstain ¶ added in v1.2.0
func (b SignatureBuilder) Abstain() SignatureBuilder
func (SignatureBuilder) Accept ¶ added in v1.2.0
func (b SignatureBuilder) Accept() SignatureBuilder
func (SignatureBuilder) Delegator ¶
func (b SignatureBuilder) Delegator(delegator any, path ...string) SignatureBuilder
func (SignatureBuilder) Delegators ¶ added in v1.3.0
func (b SignatureBuilder) Delegators(delegators ...*url.URL) SignatureBuilder
func (SignatureBuilder) Load ¶ added in v1.1.0
func (b SignatureBuilder) Load(q api.Querier) SignatureBuilder
Load loads the transaction using the querier. Load panics if the existing transaction is not remote.
func (SignatureBuilder) Memo ¶ added in v1.3.0
func (b SignatureBuilder) Memo(s string) SignatureBuilder
func (SignatureBuilder) Metadata ¶ added in v1.3.0
func (b SignatureBuilder) Metadata(v any) SignatureBuilder
func (SignatureBuilder) NoInitiator ¶ added in v1.2.0
func (b SignatureBuilder) NoInitiator() SignatureBuilder
NoInitiator tells the signature builder not to initiate the transaction, even if the initiator hash is not set.
func (SignatureBuilder) PrivateKey ¶
func (b SignatureBuilder) PrivateKey(key any) SignatureBuilder
func (SignatureBuilder) Reject ¶ added in v1.2.0
func (b SignatureBuilder) Reject() SignatureBuilder
func (SignatureBuilder) SignWith ¶
func (b SignatureBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (SignatureBuilder) Signer ¶
func (b SignatureBuilder) Signer(signer any) SignatureBuilder
func (SignatureBuilder) Suggest ¶ added in v1.4.0
func (b SignatureBuilder) Suggest() SignatureBuilder
func (SignatureBuilder) Timestamp ¶
func (b SignatureBuilder) Timestamp(timestamp any) SignatureBuilder
func (SignatureBuilder) Type ¶
func (b SignatureBuilder) Type(typ protocol.SignatureType) SignatureBuilder
func (SignatureBuilder) Url ¶
func (b SignatureBuilder) Url(signer any, path ...string) SignatureBuilder
func (SignatureBuilder) Version ¶
func (b SignatureBuilder) Version(version any) SignatureBuilder
func (SignatureBuilder) Vote ¶ added in v1.2.0
func (b SignatureBuilder) Vote(vote protocol.VoteType) SignatureBuilder
type TokenAccountBuilder ¶ added in v1.4.0
type TokenAccountBuilder struct {
// contains filtered or unexported fields
}
func (*TokenAccountBuilder) AccountID ¶ added in v1.4.0
func (b *TokenAccountBuilder) AccountID() []byte
AccountID returns Url().AccountID(). AccountID exists solely to allow builders to be passed to record.NewKey and friends.
func (*TokenAccountBuilder) Add ¶ added in v1.4.0
func (b *TokenAccountBuilder) Add(amount any) *TokenAccountBuilder
func (*TokenAccountBuilder) Build ¶ added in v1.4.0
func (b *TokenAccountBuilder) Build(dbr DbResolver) error
func (*TokenAccountBuilder) Create ¶ added in v1.4.0
func (b *TokenAccountBuilder) Create(issuer any, path ...string) *TokenAccountBuilder
func (*TokenAccountBuilder) Identity ¶ added in v1.4.0
func (b *TokenAccountBuilder) Identity() *IdentityBuilder
func (*TokenAccountBuilder) Load ¶ added in v1.4.0
func (b *TokenAccountBuilder) Load(dbr DbResolver) (T, error)
func (*TokenAccountBuilder) Update ¶ added in v1.4.0
func (b *TokenAccountBuilder) Update(fn func(acct *protocol.TokenAccount)) *TokenAccountBuilder
type TransactionBuilder ¶
type TransactionBuilder struct {
// contains filtered or unexported fields
}
func Transaction ¶
func Transaction() TransactionBuilder
func (TransactionBuilder) ActivateProtocolVersion ¶ added in v1.0.2
func (b TransactionBuilder) ActivateProtocolVersion(version protocol.ExecutorVersion) ActivateProtocolVersionBuilder
func (TransactionBuilder) AddCredits ¶
func (b TransactionBuilder) AddCredits() AddCreditsBuilder
func (TransactionBuilder) AdditionalAuthority ¶ added in v1.3.0
func (b TransactionBuilder) AdditionalAuthority(signer any, path ...string) TransactionBuilder
func (TransactionBuilder) Body ¶
func (b TransactionBuilder) Body(body protocol.TransactionBody) TransactionBuilder
func (TransactionBuilder) BurnCredits ¶ added in v1.1.0
func (b TransactionBuilder) BurnCredits(amount any) BurnCreditsBuilder
func (TransactionBuilder) BurnTokens ¶
func (b TransactionBuilder) BurnTokens(amount any, precision uint64) BurnTokensBuilder
func (TransactionBuilder) CreateDataAccount ¶
func (b TransactionBuilder) CreateDataAccount(url any, path ...string) CreateDataAccountBuilder
func (TransactionBuilder) CreateIdentity ¶
func (b TransactionBuilder) CreateIdentity(url any, path ...string) CreateIdentityBuilder
func (TransactionBuilder) CreateKeyBook ¶
func (b TransactionBuilder) CreateKeyBook(url any, path ...string) CreateKeyBookBuilder
func (TransactionBuilder) CreateKeyPage ¶
func (b TransactionBuilder) CreateKeyPage() CreateKeyPageBuilder
func (TransactionBuilder) CreateLiteTokenAccount ¶ added in v1.1.0
func (b TransactionBuilder) CreateLiteTokenAccount() CreateLiteTokenAccountBuilder
func (TransactionBuilder) CreateToken ¶
func (b TransactionBuilder) CreateToken(url any, path ...string) CreateTokenBuilder
func (TransactionBuilder) CreateTokenAccount ¶
func (b TransactionBuilder) CreateTokenAccount(url any, path ...string) CreateTokenAccountBuilder
func (TransactionBuilder) Done ¶
func (b TransactionBuilder) Done() (*protocol.Transaction, error)
func (TransactionBuilder) ExpireAtTime ¶ added in v1.3.0
func (b TransactionBuilder) ExpireAtTime(v time.Time) TransactionBuilder
func (TransactionBuilder) For ¶
func (b TransactionBuilder) For(principal any, path ...string) TransactionBuilder
func (TransactionBuilder) HoldUntil ¶ added in v1.2.0
func (b TransactionBuilder) HoldUntil(opts protocol.HoldUntilOptions) TransactionBuilder
func (TransactionBuilder) Initiator ¶
func (b TransactionBuilder) Initiator(init any) TransactionBuilder
func (TransactionBuilder) IssueTokens ¶
func (b TransactionBuilder) IssueTokens(amount any, precision uint64) IssueTokensBuilder
func (TransactionBuilder) LockAccount ¶ added in v1.1.0
func (b TransactionBuilder) LockAccount(height uint64) LockAccountBuilder
func (TransactionBuilder) Memo ¶
func (b TransactionBuilder) Memo(memo string) TransactionBuilder
func (TransactionBuilder) Metadata ¶
func (b TransactionBuilder) Metadata(metadata []byte) TransactionBuilder
func (TransactionBuilder) SendTokens ¶
func (b TransactionBuilder) SendTokens(amount any, precision uint64) SendTokensBuilder
func (TransactionBuilder) SignWith ¶
func (b TransactionBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (TransactionBuilder) TransferCredits ¶ added in v1.1.0
func (b TransactionBuilder) TransferCredits(amount any) TransferCreditsBuilder
func (TransactionBuilder) UpdateAccountAuth ¶
func (b TransactionBuilder) UpdateAccountAuth() UpdateAccountAuthBuilder
func (TransactionBuilder) UpdateKey ¶
func (b TransactionBuilder) UpdateKey(newKey any, typ protocol.SignatureType) UpdateKeyBuilder
func (TransactionBuilder) UpdateKeyPage ¶
func (b TransactionBuilder) UpdateKeyPage() UpdateKeyPageBuilder
func (TransactionBuilder) WriteData ¶
func (b TransactionBuilder) WriteData(data ...any) WriteDataBuilder
type TransferCreditsBuilder ¶ added in v1.1.0
type TransferCreditsBuilder struct {
// contains filtered or unexported fields
}
func (TransferCreditsBuilder) And ¶ added in v1.1.0
func (b TransferCreditsBuilder) And(amount any) TransferCreditsBuilder
func (TransferCreditsBuilder) Done ¶ added in v1.1.0
func (b TransferCreditsBuilder) Done() (*protocol.Transaction, error)
func (TransferCreditsBuilder) SignWith ¶ added in v1.1.0
func (b TransferCreditsBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (TransferCreditsBuilder) To ¶ added in v1.1.0
func (b TransferCreditsBuilder) To(recipient any, path ...string) TransferCreditsBuilder
type UpdateAccountAuthBuilder ¶
type UpdateAccountAuthBuilder struct {
// contains filtered or unexported fields
}
func (UpdateAccountAuthBuilder) Add ¶
func (b UpdateAccountAuthBuilder) Add(authority any, path ...string) UpdateAccountAuthBuilder
func (UpdateAccountAuthBuilder) Disable ¶
func (b UpdateAccountAuthBuilder) Disable(authority any, path ...string) UpdateAccountAuthBuilder
func (UpdateAccountAuthBuilder) Done ¶
func (b UpdateAccountAuthBuilder) Done() (*protocol.Transaction, error)
func (UpdateAccountAuthBuilder) Enable ¶
func (b UpdateAccountAuthBuilder) Enable(authority any, path ...string) UpdateAccountAuthBuilder
func (UpdateAccountAuthBuilder) FinishTransaction ¶ added in v1.1.0
func (b UpdateAccountAuthBuilder) FinishTransaction() TransactionBuilder
func (UpdateAccountAuthBuilder) Remove ¶
func (b UpdateAccountAuthBuilder) Remove(authority any, path ...string) UpdateAccountAuthBuilder
func (UpdateAccountAuthBuilder) SignWith ¶
func (b UpdateAccountAuthBuilder) SignWith(signer any, path ...string) SignatureBuilder
type UpdateAllowedKeyPageOperationBuilder ¶
type UpdateAllowedKeyPageOperationBuilder struct {
// contains filtered or unexported fields
}
func (UpdateAllowedKeyPageOperationBuilder) FinishOperation ¶
func (b UpdateAllowedKeyPageOperationBuilder) FinishOperation() UpdateKeyPageBuilder
type UpdateKeyBuilder ¶
type UpdateKeyBuilder struct {
// contains filtered or unexported fields
}
func (UpdateKeyBuilder) Done ¶
func (b UpdateKeyBuilder) Done() (*protocol.Transaction, error)
func (UpdateKeyBuilder) FinishTransaction ¶ added in v1.1.0
func (b UpdateKeyBuilder) FinishTransaction() TransactionBuilder
func (UpdateKeyBuilder) SignWith ¶
func (b UpdateKeyBuilder) SignWith(signer any, path ...string) SignatureBuilder
type UpdateKeyOperationBuilder ¶
type UpdateKeyOperationBuilder struct {
// contains filtered or unexported fields
}
func (UpdateKeyOperationBuilder) Entry ¶
func (b UpdateKeyOperationBuilder) Entry() KeyPageEntryBuilder[UpdateKeyOperationBuilder]
func (UpdateKeyOperationBuilder) FinishOperation ¶
func (b UpdateKeyOperationBuilder) FinishOperation() UpdateKeyPageBuilder
type UpdateKeyPageBuilder ¶
type UpdateKeyPageBuilder struct {
// contains filtered or unexported fields
}
func (UpdateKeyPageBuilder) Add ¶
func (b UpdateKeyPageBuilder) Add() AddKeyOperationBuilder
func (UpdateKeyPageBuilder) Done ¶
func (b UpdateKeyPageBuilder) Done() (*protocol.Transaction, error)
func (UpdateKeyPageBuilder) FinishTransaction ¶ added in v1.1.0
func (b UpdateKeyPageBuilder) FinishTransaction() TransactionBuilder
func (UpdateKeyPageBuilder) Remove ¶
func (b UpdateKeyPageBuilder) Remove() RemoveKeyOperationBuilder
func (UpdateKeyPageBuilder) SetRejectThreshold ¶ added in v1.2.0
func (b UpdateKeyPageBuilder) SetRejectThreshold(v uint64) UpdateKeyPageBuilder
func (UpdateKeyPageBuilder) SetResponseThreshold ¶ added in v1.2.0
func (b UpdateKeyPageBuilder) SetResponseThreshold(v uint64) UpdateKeyPageBuilder
func (UpdateKeyPageBuilder) SetThreshold ¶
func (b UpdateKeyPageBuilder) SetThreshold(v uint64) UpdateKeyPageBuilder
func (UpdateKeyPageBuilder) SignWith ¶
func (b UpdateKeyPageBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (UpdateKeyPageBuilder) Update ¶
func (b UpdateKeyPageBuilder) Update() UpdateKeyOperationBuilder
func (UpdateKeyPageBuilder) UpdateAllowed ¶
func (b UpdateKeyPageBuilder) UpdateAllowed() UpdateAllowedKeyPageOperationBuilder
type WriteDataBuilder ¶
type WriteDataBuilder struct {
// contains filtered or unexported fields
}
func (WriteDataBuilder) Accumulate ¶ added in v1.1.1
func (b WriteDataBuilder) Accumulate(data ...any) WriteDataBuilder
func (WriteDataBuilder) Done ¶
func (b WriteDataBuilder) Done() (*protocol.Transaction, error)
func (WriteDataBuilder) DoubleHash ¶ added in v1.1.1
func (b WriteDataBuilder) DoubleHash(data ...any) WriteDataBuilder
func (WriteDataBuilder) Entry ¶ added in v1.1.0
func (b WriteDataBuilder) Entry(e protocol.DataEntry) WriteDataBuilder
func (WriteDataBuilder) FinishTransaction ¶ added in v1.1.0
func (b WriteDataBuilder) FinishTransaction() TransactionBuilder
func (WriteDataBuilder) Scratch ¶
func (b WriteDataBuilder) Scratch() WriteDataBuilder
func (WriteDataBuilder) SignWith ¶
func (b WriteDataBuilder) SignWith(signer any, path ...string) SignatureBuilder
func (WriteDataBuilder) To ¶
func (b WriteDataBuilder) To(recipient any, path ...string) WriteDataToBuilder
func (WriteDataBuilder) ToState ¶
func (b WriteDataBuilder) ToState() WriteDataBuilder
type WriteDataToBuilder ¶
type WriteDataToBuilder struct {
// contains filtered or unexported fields
}
func (WriteDataToBuilder) Done ¶
func (b WriteDataToBuilder) Done() (*protocol.Transaction, error)
func (WriteDataToBuilder) FinishTransaction ¶ added in v1.1.0
func (b WriteDataToBuilder) FinishTransaction() TransactionBuilder
func (WriteDataToBuilder) SignWith ¶
func (b WriteDataToBuilder) SignWith(signer any, path ...string) SignatureBuilder