token_admin_registry

package
v0.0.0-...-773544c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by stellar-bindings-generator. DO NOT EDIT.

Code generated by stellar-bindings-generator. DO NOT EDIT.

Index

Constants

View Source
const (
	CCIPErrorNotInitialized                      = 1
	CCIPErrorAlreadyInitialized                  = 2
	CCIPErrorUnauthorized                        = 3
	CCIPErrorNotOwner                            = 4
	CCIPErrorNoPendingOwner                      = 5
	CCIPErrorCallerNotAuthorized                 = 6
	CCIPErrorCallerAlreadyAuthorized             = 7
	CCIPErrorCallerNotFound                      = 8
	CCIPErrorRoleNotGranted                      = 9
	CCIPErrorFeatureNotEnabled                   = 10
	CCIPErrorRoleAlreadyGranted                  = 11
	CCIPErrorCannotRenounceRole                  = 12
	CCIPErrorInvalidVersionTag                   = 13
	CCIPErrorInvalidSignatureLength              = 14
	CCIPErrorInvalidSignature                    = 15
	CCIPErrorInvalidSignatureCount               = 16
	CCIPErrorInvalidSignatureThreshold           = 17
	CCIPErrorInvalidSignaturePubkey              = 18
	CCIPErrorSourceSignersNotConfigured          = 19
	CCIPErrorInvalidVerifierResults              = 20
	CCIPErrorReentrantCall                       = 21
	CCIPErrorTokenNotSupported                   = 22
	CCIPErrorFeeTokenNotSupported                = 23
	CCIPErrorNoGasPriceAvailable                 = 24
	CCIPErrorDestinationChainNotEnabled          = 25
	CCIPErrorInvalidExtraArgsTag                 = 26
	CCIPErrorInvalidExtraArgsData                = 27
	CCIPErrorMessageGasLimitTooHigh              = 28
	CCIPErrorMessageTooLarge                     = 29
	CCIPErrorUnsupportedNumberOfTokens           = 30
	CCIPErrorInvalidDestChainConfig              = 31
	CCIPErrorMessageFeeTooHigh                   = 32
	CCIPErrorInvalidStaticConfig                 = 33
	CCIPErrorInvalidTokenReceiver                = 34
	CCIPErrorSourceTokenDataTooLarge             = 35
	CCIPErrorInvalidDestBytesOverhead            = 36
	CCIPErrorDestinationChainNotSupported        = 37
	CCIPErrorMustBeCalledByRouter                = 38
	CCIPErrorRouterMustSetOriginalSender         = 39
	CCIPErrorCannotSendZeroTokens                = 40
	CCIPErrorCanOnlySendOneTokenPerMessage       = 41
	CCIPErrorUnsupportedToken                    = 42
	CCIPErrorInvalidDestChainAddress             = 43
	CCIPErrorFeeExceedsMaxAllowed                = 44
	CCIPErrorInsufficientFeeTokenAmount          = 45
	CCIPErrorTokenReceiverNotAllowed             = 46
	CCIPErrorCursedByRMN                         = 47
	CCIPErrorRemoteChainNotSupported             = 48
	CCIPErrorSenderNotAllowed                    = 49
	CCIPErrorInvalidTokenAmount                  = 50
	CCIPErrorInvalidReceiverAddress              = 51
	CCIPErrorInvalidConfig                       = 52
	CCIPErrorInvalidVerifierResultsLength        = 53
	CCIPErrorInboundImplementationNotFound       = 54
	CCIPErrorOutboundImplementationNotFound      = 55
	CCIPErrorInvalidAddress                      = 56
	CCIPErrorInvalidChainSelector                = 57
	CCIPErrorInvalidVersion                      = 58
	CCIPErrorInvalidCCVVersion                   = 59
	CCIPErrorOffRampAlreadyExists                = 60
	CCIPErrorOffRampMismatch                     = 61
	CCIPErrorBadRMNSignal                        = 62
	CCIPErrorUnsupportedDestinationChain         = 63
	CCIPErrorAlreadyCursed                       = 64
	CCIPErrorConfigNotSet                        = 65
	CCIPErrorDuplicateOnchainPublicKey           = 66
	CCIPErrorInvalidSignerOrder                  = 67
	CCIPErrorNotEnoughSigners                    = 68
	CCIPErrorNotCursed                           = 69
	CCIPErrorOutOfOrderSignatures                = 70
	CCIPErrorThresholdNotMet                     = 71
	CCIPErrorUnexpectedSigner                    = 72
	CCIPErrorZeroValueNotAllowed                 = 73
	CCIPErrorSourceChainNotEnabled               = 100
	CCIPErrorInvalidSourceChainConfig            = 101
	CCIPErrorInvalidOnRampAddress                = 102
	CCIPErrorInvalidOffRampAddress               = 103
	CCIPErrorInvalidMessageDestination           = 104
	CCIPErrorMessageAlreadyExecuted              = 105
	CCIPErrorInvalidExecutionState               = 106
	CCIPErrorCCVLengthMismatch                   = 107
	CCIPErrorCCVQuorumNotMet                     = 108
	CCIPErrorReceiverError                       = 109
	CCIPErrorGasLimitOverrideTooLow              = 110
	CCIPErrorInvalidReceiverLength               = 111
	CCIPErrorTokenHandlingError                  = 112
	CCIPErrorMessageDecodingError                = 113
	CCIPErrorReceiverDoesNotExist                = 114
	CCIPErrorReceiverNotWasmContract             = 115
	CCIPErrorRequiredCCVMissing                  = 116
	CCIPErrorOnlyRegistryModuleOrOwner           = 201
	CCIPErrorOnlyAdministrator                   = 202
	CCIPErrorOnlyPendingAdministrator            = 203
	CCIPErrorTokenAlreadyRegistered              = 204
	CCIPErrorInvalidTokenPoolToken               = 205
	CCIPErrorPoolTokenMismatch                   = 301
	CCIPErrorChainNotSupported                   = 302
	CCIPErrorCallerIsNotRamp                     = 303
	CCIPErrorInsufficientPoolLiquidity           = 304
	CCIPErrorInvalidRemotePoolAddress            = 305
	CCIPErrorInvalidRemoteChainConfig            = 306
	CCIPErrorInvalidRemoteChainDecimals          = 307
	CCIPErrorDecimalAmountOverflow               = 308
	CCIPErrorInvalidPoolTokenDecimals            = 309
	CCIPErrorBucketOverfilled                    = 310
	CCIPErrorTokenMaxCapacityExceeded            = 311
	CCIPErrorTokenRateLimitReached               = 312
	CCIPErrorInvalidRateLimitRate                = 313
	CCIPErrorDisabledNonZeroRateLimit            = 314
	CCIPErrorInvalidRequestedFinality            = 315
	CCIPErrorRequestedFinalityCanOnlyHaveOneMode = 316
	CCIPErrorInvalidChainForClient               = 317
	CCIPErrorRouterNotConfigured                 = 318
	CCIPErrorInvalidFeeCalculation               = 801
	CCIPErrorInvalidFeeTokenConversion           = 802
	CCIPErrorZeroFeeAggregatorNotAllowed         = 803
)

CCIPError represents the contract error codes.

View Source
const AdminTransferRequestedEventTopic = "tar_AdminTransferReq"

AdminTransferRequestedEventTopic is the event topic identifier.

View Source
const AdministratorTransferredEventTopic = "tar_AdminTransferred"

AdministratorTransferredEventTopic is the event topic identifier.

View Source
const AuthorizedCallerAddedEventTopic = "auth_CallerAdded"

AuthorizedCallerAddedEventTopic is the event topic identifier.

View Source
const AuthorizedCallerRemovedEventTopic = "auth_CallerRemoved"

AuthorizedCallerRemovedEventTopic is the event topic identifier.

View Source
const OwnershipTransferStartedEventTopic = "auth_OwnerTransferStart"

OwnershipTransferStartedEventTopic is the event topic identifier.

View Source
const PoolSetEventTopic = "tar_PoolSet"

PoolSetEventTopic is the event topic identifier.

View Source
const RegistryModuleAddedEventTopic = "tar_ModuleAdded"

RegistryModuleAddedEventTopic is the event topic identifier.

View Source
const RegistryModuleRemovedEventTopic = "tar_ModuleRemoved"

RegistryModuleRemovedEventTopic is the event topic identifier.

View Source
const RoleGrantedEventTopic = "auth_RoleGranted"

RoleGrantedEventTopic is the event topic identifier.

View Source
const RoleRevokedEventTopic = "auth_RoleRevoked"

RoleRevokedEventTopic is the event topic identifier.

Variables

View Source
var CCIPErrorMessage = map[int]string{}/* 116 elements not displayed */

CCIPErrorMessage returns a human-readable message for error codes.

Functions

This section is empty.

Types

type AdminTransferRequestedEvent

type AdminTransferRequestedEvent struct {
	Token        string
	CurrentAdmin *string
	NewAdmin     *string
	// Event metadata
	Ledger uint32
	TxHash string
}

AdminTransferRequestedEvent represents the AdminTransferRequestedEvent event. Topics: [tar_AdminTransferReq]

type AdministratorTransferredEvent

type AdministratorTransferredEvent struct {
	Token    string
	NewAdmin string
	// Event metadata
	Ledger uint32
	TxHash string
}

AdministratorTransferredEvent represents the AdministratorTransferredEvent event. Topics: [tar_AdminTransferred]

type AllowListEntry

type AllowListEntry struct {
	Allowlist        []string
	AllowlistEnabled bool
}

AllowListEntry represents the AllowListEntry struct from the contract.

func AllowListEntryFromScVal

func AllowListEntryFromScVal(val xdr.ScVal) (*AllowListEntry, error)

AllowListEntryFromScVal parses an xdr.ScVal into AllowListEntry.

func (AllowListEntry) ToScVal

func (s AllowListEntry) ToScVal() (xdr.ScVal, error)

ToScVal converts AllowListEntry to an xdr.ScVal for contract calls.

type AllowListUpdate

type AllowListUpdate struct {
	AddedAllowlistedSenders   []string
	AllowlistEnabled          bool
	DestChainSelector         uint64
	RemovedAllowlistedSenders []string
}

AllowListUpdate represents the AllowListUpdate struct from the contract.

func AllowListUpdateFromScVal

func AllowListUpdateFromScVal(val xdr.ScVal) (*AllowListUpdate, error)

AllowListUpdateFromScVal parses an xdr.ScVal into AllowListUpdate.

func (AllowListUpdate) ToScVal

func (s AllowListUpdate) ToScVal() (xdr.ScVal, error)

ToScVal converts AllowListUpdate to an xdr.ScVal for contract calls.

type AnyToStellarMessage

type AnyToStellarMessage struct {
	Data                []byte
	DestTokenAmounts    []TokenAmount
	MessageId           [32]byte
	Sender              []byte
	SourceChainSelector uint64
}

AnyToStellarMessage represents the AnyToStellarMessage struct from the contract.

func AnyToStellarMessageFromScVal

func AnyToStellarMessageFromScVal(val xdr.ScVal) (*AnyToStellarMessage, error)

AnyToStellarMessageFromScVal parses an xdr.ScVal into AnyToStellarMessage.

func (AnyToStellarMessage) ToScVal

func (s AnyToStellarMessage) ToScVal() (xdr.ScVal, error)

ToScVal converts AnyToStellarMessage to an xdr.ScVal for contract calls.

type AuthorizedCallerAddedEvent

type AuthorizedCallerAddedEvent struct {
	Caller string
	// Event metadata
	Ledger uint32
	TxHash string
}

AuthorizedCallerAddedEvent represents the AuthorizedCallerAddedEvent event. Topics: [auth_CallerAdded]

func ParseAuthorizedCallerAddedEvent

func ParseAuthorizedCallerAddedEvent(e protocolrpc.EventInfo) (*AuthorizedCallerAddedEvent, error)

type AuthorizedCallerRemovedEvent

type AuthorizedCallerRemovedEvent struct {
	Caller string
	// Event metadata
	Ledger uint32
	TxHash string
}

AuthorizedCallerRemovedEvent represents the AuthorizedCallerRemovedEvent event. Topics: [auth_CallerRemoved]

type DataKey

type DataKey struct {
	TokenConfig *DataKeyTokenConfig
	TokenIndex  *DataKeyTokenIndex
}

DataKey is a Soroban discriminated-union (#[contracttype] enum with payload(s)). Wire format: ScVal::Vec([ScVal::Symbol(<VariantName>), <payload fields...>]). Construct by setting exactly one variant pointer to a non-nil value.

func DataKeyFromScVal

func DataKeyFromScVal(val xdr.ScVal) (DataKey, error)

DataKeyFromScVal parses an xdr.ScVal into DataKey.

func (DataKey) ToScVal

func (e DataKey) ToScVal() (xdr.ScVal, error)

ToScVal converts DataKey to its Soroban discriminated-union encoding. Returns an error if zero or multiple variant pointers are set.

type DataKeyTokenConfig

type DataKeyTokenConfig struct {
	Field0 string
}

DataKeyTokenConfig is the tuple variant DataKey::TokenConfig.

type DataKeyTokenIndex

type DataKeyTokenIndex struct {
	Field0 uint32
}

DataKeyTokenIndex is the tuple variant DataKey::TokenIndex.

type GenericExtraArgsV3

type GenericExtraArgsV3 struct {
	BlockConfirmations uint32
	CcvArgs            [][]byte
	Ccvs               []string
	Executor           string
	ExecutorArgs       []byte
	GasLimit           uint32
	TokenArgs          []byte
	TokenReceiver      []byte
}

GenericExtraArgsV3 represents the GenericExtraArgsV3 struct from the contract.

func GenericExtraArgsV3FromScVal

func GenericExtraArgsV3FromScVal(val xdr.ScVal) (*GenericExtraArgsV3, error)

GenericExtraArgsV3FromScVal parses an xdr.ScVal into GenericExtraArgsV3.

func (GenericExtraArgsV3) ToScVal

func (s GenericExtraArgsV3) ToScVal() (xdr.ScVal, error)

ToScVal converts GenericExtraArgsV3 to an xdr.ScVal for contract calls.

type OwnershipTransferStartedEvent

type OwnershipTransferStartedEvent struct {
	PreviousOwner string
	NewOwner      string
	// Event metadata
	Ledger uint32
	TxHash string
}

OwnershipTransferStartedEvent represents the OwnershipTransferStartedEvent event. Topics: [auth_OwnerTransferStart]

type PoolSetEvent

type PoolSetEvent struct {
	Token        string
	PreviousPool *string
	NewPool      *string
	// Event metadata
	Ledger uint32
	TxHash string
}

PoolSetEvent represents the PoolSetEvent event. Topics: [tar_PoolSet]

func ParsePoolSetEvent

func ParsePoolSetEvent(e protocolrpc.EventInfo) (*PoolSetEvent, error)

type RegistryModuleAddedEvent

type RegistryModuleAddedEvent struct {
	Module string
	// Event metadata
	Ledger uint32
	TxHash string
}

RegistryModuleAddedEvent represents the RegistryModuleAddedEvent event. Topics: [tar_ModuleAdded]

func ParseRegistryModuleAddedEvent

func ParseRegistryModuleAddedEvent(e protocolrpc.EventInfo) (*RegistryModuleAddedEvent, error)

type RegistryModuleRemovedEvent

type RegistryModuleRemovedEvent struct {
	Module string
	// Event metadata
	Ledger uint32
	TxHash string
}

RegistryModuleRemovedEvent represents the RegistryModuleRemovedEvent event. Topics: [tar_ModuleRemoved]

func ParseRegistryModuleRemovedEvent

func ParseRegistryModuleRemovedEvent(e protocolrpc.EventInfo) (*RegistryModuleRemovedEvent, error)

type RoleGrantedEvent

type RoleGrantedEvent struct {
	Role    string
	Account string
	Sender  string
	// Event metadata
	Ledger uint32
	TxHash string
}

RoleGrantedEvent represents the RoleGrantedEvent event. Topics: [auth_RoleGranted]

func ParseRoleGrantedEvent

func ParseRoleGrantedEvent(e protocolrpc.EventInfo) (*RoleGrantedEvent, error)

type RoleRevokedEvent

type RoleRevokedEvent struct {
	Role    string
	Account string
	Sender  string
	// Event metadata
	Ledger uint32
	TxHash string
}

RoleRevokedEvent represents the RoleRevokedEvent event. Topics: [auth_RoleRevoked]

func ParseRoleRevokedEvent

func ParseRoleRevokedEvent(e protocolrpc.EventInfo) (*RoleRevokedEvent, error)

type StellarToAnyMessage

type StellarToAnyMessage struct {
	Data         []byte
	ExtraArgs    []byte
	FeeToken     string
	Receiver     []byte
	TokenAmounts []TokenAmount
}

StellarToAnyMessage represents the StellarToAnyMessage struct from the contract.

func StellarToAnyMessageFromScVal

func StellarToAnyMessageFromScVal(val xdr.ScVal) (*StellarToAnyMessage, error)

StellarToAnyMessageFromScVal parses an xdr.ScVal into StellarToAnyMessage.

func (StellarToAnyMessage) ToScVal

func (s StellarToAnyMessage) ToScVal() (xdr.ScVal, error)

ToScVal converts StellarToAnyMessage to an xdr.ScVal for contract calls.

type TokenAdminRegistryClient

type TokenAdminRegistryClient struct {
	// contains filtered or unexported fields
}

TokenAdminRegistryClient provides methods to interact with the TokenAdminRegistry contract.

func NewTokenAdminRegistryClient

func NewTokenAdminRegistryClient(invoker bindings.Invoker, contractID string) *TokenAdminRegistryClient

NewTokenAdminRegistryClient creates a new TokenAdminRegistryClient.

func (*TokenAdminRegistryClient) AcceptAdminRole

func (c *TokenAdminRegistryClient) AcceptAdminRole(ctx context.Context, localToken string) error

AcceptAdminRole calls the accept_admin_role function on the contract.

func (*TokenAdminRegistryClient) AcceptOwnership

func (c *TokenAdminRegistryClient) AcceptOwnership(ctx context.Context) error

AcceptOwnership calls the accept_ownership function on the contract.

func (*TokenAdminRegistryClient) AddRegistryModule

func (c *TokenAdminRegistryClient) AddRegistryModule(ctx context.Context, module string) error

AddRegistryModule calls the add_registry_module function on the contract.

func (*TokenAdminRegistryClient) CancelOwnershipTransfer

func (c *TokenAdminRegistryClient) CancelOwnershipTransfer(ctx context.Context) error

CancelOwnershipTransfer calls the cancel_ownership_transfer function on the contract.

func (*TokenAdminRegistryClient) ContractID

func (c *TokenAdminRegistryClient) ContractID() string

ContractID returns the contract ID.

func (*TokenAdminRegistryClient) GetAllConfiguredTokens

func (c *TokenAdminRegistryClient) GetAllConfiguredTokens(ctx context.Context, startIndex uint32, maxCount uint32) ([]string, error)

GetAllConfiguredTokens calls the get_all_configured_tokens function on the contract.

func (*TokenAdminRegistryClient) GetPendingOwner

func (c *TokenAdminRegistryClient) GetPendingOwner(ctx context.Context) (*string, error)

GetPendingOwner calls the get_pending_owner function on the contract.

func (*TokenAdminRegistryClient) GetPool

func (c *TokenAdminRegistryClient) GetPool(ctx context.Context, token string) (*string, error)

GetPool calls the get_pool function on the contract.

func (*TokenAdminRegistryClient) GetPools

func (c *TokenAdminRegistryClient) GetPools(ctx context.Context, tokens []string) ([]*string, error)

GetPools calls the get_pools function on the contract.

func (*TokenAdminRegistryClient) GetTokenConfig

func (c *TokenAdminRegistryClient) GetTokenConfig(ctx context.Context, token string) (*TokenConfig, error)

GetTokenConfig calls the get_token_config function on the contract.

func (*TokenAdminRegistryClient) InitOwner

func (c *TokenAdminRegistryClient) InitOwner(ctx context.Context, owner string) error

InitOwner calls the init_owner function on the contract.

func (*TokenAdminRegistryClient) Initialize

func (c *TokenAdminRegistryClient) Initialize(ctx context.Context, owner string) error

Initialize calls the initialize function on the contract.

func (*TokenAdminRegistryClient) IsAdministrator

func (c *TokenAdminRegistryClient) IsAdministrator(ctx context.Context, localToken string, administrator string) (bool, error)

IsAdministrator calls the is_administrator function on the contract.

func (*TokenAdminRegistryClient) IsOwner

func (c *TokenAdminRegistryClient) IsOwner(ctx context.Context, addr string) (bool, error)

IsOwner calls the is_owner function on the contract.

func (*TokenAdminRegistryClient) IsRegistryModule

func (c *TokenAdminRegistryClient) IsRegistryModule(ctx context.Context, module string) (bool, error)

IsRegistryModule calls the is_registry_module function on the contract.

func (*TokenAdminRegistryClient) Owner

Owner calls the owner function on the contract.

func (*TokenAdminRegistryClient) ProposeAdministrator

func (c *TokenAdminRegistryClient) ProposeAdministrator(ctx context.Context, caller string, localToken string, administrator string) error

ProposeAdministrator calls the propose_administrator function on the contract.

func (*TokenAdminRegistryClient) RemoveRegistryModule

func (c *TokenAdminRegistryClient) RemoveRegistryModule(ctx context.Context, module string) error

RemoveRegistryModule calls the remove_registry_module function on the contract.

func (*TokenAdminRegistryClient) RequireOwner

func (c *TokenAdminRegistryClient) RequireOwner(ctx context.Context) (string, error)

RequireOwner calls the require_owner function on the contract.

func (*TokenAdminRegistryClient) SetNewOwner

func (c *TokenAdminRegistryClient) SetNewOwner(ctx context.Context, newOwner string) error

SetNewOwner calls the set_new_owner function on the contract.

func (*TokenAdminRegistryClient) SetPool

func (c *TokenAdminRegistryClient) SetPool(ctx context.Context, localToken string, pool *string) error

SetPool calls the set_pool function on the contract.

func (*TokenAdminRegistryClient) TransferAdminRole

func (c *TokenAdminRegistryClient) TransferAdminRole(ctx context.Context, localToken string, newAdmin *string) error

TransferAdminRole calls the transfer_admin_role function on the contract.

func (*TokenAdminRegistryClient) TransferOwnership

func (c *TokenAdminRegistryClient) TransferOwnership(ctx context.Context, newOwner string) error

TransferOwnership calls the transfer_ownership function on the contract.

func (*TokenAdminRegistryClient) TypeAndVersion

func (c *TokenAdminRegistryClient) TypeAndVersion(ctx context.Context) (string, error)

TypeAndVersion calls the type_and_version function on the contract.

func (*TokenAdminRegistryClient) WaitForAdminTransferRequestedEvent

func (c *TokenAdminRegistryClient) WaitForAdminTransferRequestedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AdminTransferRequestedEvent) bool) (*AdminTransferRequestedEvent, error)

WaitForAdminTransferRequestedEvent waits for a AdminTransferRequestedEvent event.

func (*TokenAdminRegistryClient) WaitForAdministratorTransferredEvent

func (c *TokenAdminRegistryClient) WaitForAdministratorTransferredEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AdministratorTransferredEvent) bool) (*AdministratorTransferredEvent, error)

WaitForAdministratorTransferredEvent waits for a AdministratorTransferredEvent event.

func (*TokenAdminRegistryClient) WaitForAuthorizedCallerAddedEvent

func (c *TokenAdminRegistryClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerAddedEvent) bool) (*AuthorizedCallerAddedEvent, error)

WaitForAuthorizedCallerAddedEvent waits for a AuthorizedCallerAddedEvent event.

func (*TokenAdminRegistryClient) WaitForAuthorizedCallerRemovedEvent

func (c *TokenAdminRegistryClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerRemovedEvent) bool) (*AuthorizedCallerRemovedEvent, error)

WaitForAuthorizedCallerRemovedEvent waits for a AuthorizedCallerRemovedEvent event.

func (*TokenAdminRegistryClient) WaitForOwnershipTransferStartedEvent

func (c *TokenAdminRegistryClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OwnershipTransferStartedEvent) bool) (*OwnershipTransferStartedEvent, error)

WaitForOwnershipTransferStartedEvent waits for a OwnershipTransferStartedEvent event.

func (*TokenAdminRegistryClient) WaitForPoolSetEvent

func (c *TokenAdminRegistryClient) WaitForPoolSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*PoolSetEvent) bool) (*PoolSetEvent, error)

WaitForPoolSetEvent waits for a PoolSetEvent event.

func (*TokenAdminRegistryClient) WaitForRegistryModuleAddedEvent

func (c *TokenAdminRegistryClient) WaitForRegistryModuleAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RegistryModuleAddedEvent) bool) (*RegistryModuleAddedEvent, error)

WaitForRegistryModuleAddedEvent waits for a RegistryModuleAddedEvent event.

func (*TokenAdminRegistryClient) WaitForRegistryModuleRemovedEvent

func (c *TokenAdminRegistryClient) WaitForRegistryModuleRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RegistryModuleRemovedEvent) bool) (*RegistryModuleRemovedEvent, error)

WaitForRegistryModuleRemovedEvent waits for a RegistryModuleRemovedEvent event.

func (*TokenAdminRegistryClient) WaitForRoleGrantedEvent

func (c *TokenAdminRegistryClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleGrantedEvent) bool) (*RoleGrantedEvent, error)

WaitForRoleGrantedEvent waits for a RoleGrantedEvent event.

func (*TokenAdminRegistryClient) WaitForRoleRevokedEvent

func (c *TokenAdminRegistryClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleRevokedEvent) bool) (*RoleRevokedEvent, error)

WaitForRoleRevokedEvent waits for a RoleRevokedEvent event.

type TokenAmount

type TokenAmount struct {
	Amount int64
	Token  string
}

TokenAmount represents the TokenAmount struct from the contract.

func TokenAmountFromScVal

func TokenAmountFromScVal(val xdr.ScVal) (*TokenAmount, error)

TokenAmountFromScVal parses an xdr.ScVal into TokenAmount.

func (TokenAmount) ToScVal

func (s TokenAmount) ToScVal() (xdr.ScVal, error)

ToScVal converts TokenAmount to an xdr.ScVal for contract calls.

type TokenConfig

type TokenConfig struct {
	Administrator        *string
	PendingAdministrator *string
	TokenPool            *string
}

TokenConfig represents the TokenConfig struct from the contract.

func TokenConfigFromScVal

func TokenConfigFromScVal(val xdr.ScVal) (*TokenConfig, error)

TokenConfigFromScVal parses an xdr.ScVal into TokenConfig.

func (TokenConfig) ToScVal

func (s TokenConfig) ToScVal() (xdr.ScVal, error)

ToScVal converts TokenConfig to an xdr.ScVal for contract calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL