Documentation ¶
Index ¶
- Constants
- func AwaitAddressUnspentOutputToBeAccepted(ctx context.Context, logger log.Logger, clt models.Client, addr iotago.Address) (outputID iotago.OutputID, output iotago.Output, err error)
- func AwaitBlockAcceptance(ctx context.Context, logger log.Logger, clt models.Client, ...) error
- func AwaitBlockAndPayloadAcceptance(ctx context.Context, logger log.Logger, clt models.Client, ...) error
- func AwaitBlockWithTransactionToBeAccepted(ctx context.Context, logger log.Logger, clt models.Client, ...) error
- func AwaitCommitment(ctx context.Context, logger log.Logger, clt models.Client, ...) error
- func AwaitOutputToBeAccepted(ctx context.Context, clt models.Client, outputID iotago.OutputID) error
- func DelegationEnd(apiForSlot iotago.API, issuingSlot iotago.SlotIndex, ...) iotago.EpochIndex
- func DelegationRegistrationSlot(apiForSlot iotago.API, slot iotago.SlotIndex) iotago.SlotIndex
- func GetAccountIssuerKeys(pubKey crypto.PublicKey) (iotago.BlockIssuerKeys, error)
- func SplitBalanceEqually[T iotago.BaseToken | iotago.Mana](splitNumber int, balance T) []T
- func SprintAccount(acc *iotago.AccountOutput) string
- func SprintAvailableManaResult(results *builder.AvailableManaResult) string
- func SprintCommittee(resp *api.CommitteeResponse) string
- func SprintCommitteeMember(resp *api.CommitteeMemberResponse) string
- func SprintTransaction(api iotago.API, tx *iotago.SignedTransaction) string
- func SprintValidator(resp *api.ValidatorResponse) string
- func SprintValidators(resp *api.ValidatorsResponse) string
- func SumOutputsBalance(outputs []*models.OutputData) iotago.BaseToken
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func AwaitAddressUnspentOutputToBeAccepted ¶
func AwaitAddressUnspentOutputToBeAccepted(ctx context.Context, logger log.Logger, clt models.Client, addr iotago.Address) (outputID iotago.OutputID, output iotago.Output, err error)
AwaitAddressUnspentOutputToBeAccepted awaits for acceptance of an output created for an address, based on the status of the transaction.
func AwaitBlockAcceptance ¶
func AwaitBlockAndPayloadAcceptance ¶
func AwaitBlockAndPayloadAcceptance(ctx context.Context, logger log.Logger, clt models.Client, blockID iotago.BlockID) error
AwaitBlockAndPayloadAcceptance waits for the block and, if provided, tx to be accepted.
func AwaitBlockWithTransactionToBeAccepted ¶
func AwaitBlockWithTransactionToBeAccepted(ctx context.Context, logger log.Logger, clt models.Client, txID iotago.TransactionID) error
AwaitBlockWithTransactionToBeAccepted awaits for acceptance of a single transaction.
func AwaitCommitment ¶
func AwaitCommitment(ctx context.Context, logger log.Logger, clt models.Client, targetSlot iotago.SlotIndex) error
AwaitCommitment awaits for the commitment of a slot.
func AwaitOutputToBeAccepted ¶
func AwaitOutputToBeAccepted(ctx context.Context, clt models.Client, outputID iotago.OutputID) error
AwaitOutputToBeAccepted awaits for output from a provided outputID is accepted. Timeout is waitFor. Useful when we have only an address and no transactionID, e.g. faucet funds request.
func DelegationEnd ¶
func GetAccountIssuerKeys ¶
func GetAccountIssuerKeys(pubKey crypto.PublicKey) (iotago.BlockIssuerKeys, error)
func SplitBalanceEqually ¶
SplitBalanceEqually splits the balance equally between `splitNumber` outputs.
func SprintAccount ¶
func SprintAccount(acc *iotago.AccountOutput) string
func SprintAvailableManaResult ¶
func SprintAvailableManaResult(results *builder.AvailableManaResult) string
func SprintCommittee ¶
func SprintCommittee(resp *api.CommitteeResponse) string
func SprintCommitteeMember ¶
func SprintCommitteeMember(resp *api.CommitteeMemberResponse) string
func SprintTransaction ¶
func SprintTransaction(api iotago.API, tx *iotago.SignedTransaction) string
func SprintValidator ¶
func SprintValidator(resp *api.ValidatorResponse) string
func SprintValidators ¶
func SprintValidators(resp *api.ValidatorsResponse) string
func SumOutputsBalance ¶
func SumOutputsBalance(outputs []*models.OutputData) iotago.BaseToken
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.