Documentation ¶
Index ¶
- func UnixTimeNow() uint64
- 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 ED25519PrivateKey
- type Errors
- 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 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 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) Done() (*messaging.Envelope, error)
- func (b SignatureBuilder) Load(q api.Querier) SignatureBuilder
- func (b SignatureBuilder) NoInitiator() SignatureBuilder
- func (b SignatureBuilder) PrivateKey(key []byte) 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) 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 TransactionBuilder
- func (b TransactionBuilder) ActivateProtocolVersion(version protocol.ExecutorVersion) ActivateProtocolVersionBuilder
- func (b TransactionBuilder) AddCredits() AddCreditsBuilder
- 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) For(principal any, path ...string) TransactionBuilder
- func (b TransactionBuilder) HoldUntil(threshold protocol.BlockThreshold) 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 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 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 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 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 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 // 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) 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) 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 []byte) 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) 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 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) 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) For ¶
func (b TransactionBuilder) For(principal any, path ...string) TransactionBuilder
func (TransactionBuilder) HoldUntil ¶ added in v1.2.0
func (b TransactionBuilder) HoldUntil(threshold protocol.BlockThreshold) 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
Click to show internal directories.
Click to hide internal directories.