Documentation
¶
Overview ¶
Code generated by stellar-bindings-generator. DO NOT EDIT.
Code generated by stellar-bindings-generator. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type AuthorizedCallerAddedEvent
- type AuthorizedCallerRemovedEvent
- type CCVAddedEvent
- type CCVAllowlistUpdatedEvent
- type CCVRemovedEvent
- type ConfigSetEvent
- type DestChainAddedEvent
- type DestChainRemovedEvent
- type DynamicConfig
- type ExecutorClient
- func (c *ExecutorClient) AcceptOwnership(ctx context.Context) error
- func (c *ExecutorClient) ApplyAllowedCcvUpdates(ctx context.Context, ccvsToRemove []string, ccvsToAdd []string, ...) error
- func (c *ExecutorClient) ApplyDestChainUpdates(ctx context.Context, destChainSelectorsToRemove []uint64, ...) error
- func (c *ExecutorClient) CancelOwnershipTransfer(ctx context.Context) error
- func (c *ExecutorClient) ContractID() string
- func (c *ExecutorClient) GetAllowedCcvs(ctx context.Context) ([]string, error)
- func (c *ExecutorClient) GetAllowedFinalityConfig(ctx context.Context) (uint32, error)
- func (c *ExecutorClient) GetDestChainConfig(ctx context.Context, destChainSelector uint64) (*RemoteChainConfig, error)
- func (c *ExecutorClient) GetDestChains(ctx context.Context) ([]RemoteChainConfigArgs, error)
- func (c *ExecutorClient) GetDynamicConfig(ctx context.Context) (*DynamicConfig, error)
- func (c *ExecutorClient) GetFee(ctx context.Context, destChainSelector uint64, requestedFinalityConfig uint32, ...) (uint32, error)
- func (c *ExecutorClient) GetMaxCcvsPerMessage(ctx context.Context) (uint32, error)
- func (c *ExecutorClient) GetPendingOwner(ctx context.Context) (*string, error)
- func (c *ExecutorClient) InitOwner(ctx context.Context, owner string) error
- func (c *ExecutorClient) Initialize(ctx context.Context, owner string, maxCcvsPerMsg uint32, ...) error
- func (c *ExecutorClient) IsOwner(ctx context.Context, addr string) (bool, error)
- func (c *ExecutorClient) Owner(ctx context.Context) (*string, error)
- func (c *ExecutorClient) RequireOwner(ctx context.Context) (string, error)
- func (c *ExecutorClient) SetDynamicConfig(ctx context.Context, dynamicConfig DynamicConfig) error
- func (c *ExecutorClient) TransferOwnership(ctx context.Context, newOwner string) error
- func (c *ExecutorClient) TypeAndVersion(ctx context.Context) (string, error)
- func (c *ExecutorClient) Upgrade(ctx context.Context, newWasmHash [32]byte) error
- func (c *ExecutorClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerAddedEvent, error)
- func (c *ExecutorClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerRemovedEvent, error)
- func (c *ExecutorClient) WaitForCCVAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*CCVAddedEvent, error)
- func (c *ExecutorClient) WaitForCCVAllowlistUpdatedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*CCVAllowlistUpdatedEvent, error)
- func (c *ExecutorClient) WaitForCCVRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*CCVRemovedEvent, error)
- func (c *ExecutorClient) WaitForConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*ConfigSetEvent, error)
- func (c *ExecutorClient) WaitForDestChainAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*DestChainAddedEvent, error)
- func (c *ExecutorClient) WaitForDestChainRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*DestChainRemovedEvent, error)
- func (c *ExecutorClient) WaitForFeeTokenWithdrawnEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*FeeTokenWithdrawnEvent, error)
- func (c *ExecutorClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*OwnershipTransferStartedEvent, error)
- func (c *ExecutorClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleGrantedEvent, error)
- func (c *ExecutorClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleRevokedEvent, error)
- func (c *ExecutorClient) WithdrawFeeTokens(ctx context.Context, feeTokens []string) error
- type FeeTokenWithdrawnEvent
- type OwnershipTransferStartedEvent
- type RemoteChainConfig
- type RemoteChainConfigArgs
- type RoleGrantedEvent
- type RoleRevokedEvent
Constants ¶
const ( CCIPErrorNotInitialized = 1 CCIPErrorAlreadyInitialized = 2 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 CCIPErrorInvalidOptionalThreshold = 117 CCIPErrorOptionalCCVQuorumNotReached = 118 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 CCIPErrorInvalidSourcePoolAddress = 319 CCIPErrorDuplicateCCVNotAllowed = 320 CCIPErrorInvalidTokenTransferFeeConfig = 321 CCIPErrorInvalidTransferFeeBps = 322 CCIPErrorInvalidFeeCalculation = 801 CCIPErrorInvalidFeeTokenConversion = 802 CCIPErrorZeroFeeAggregatorNotAllowed = 803 CCIPErrorExceedsMaxCCVs = 804 CCIPErrorCCVNotAllowed = 805 CCIPErrorPolicyEngineDetachReverted = 806 CCIPErrorUnsupportedSelector = 807 CCIPErrorZeroAddressNotAllowed = 808 )
CCIPError represents the contract error codes.
const AuthorizedCallerAddedEventTopic = "auth_CallerAdded"
AuthorizedCallerAddedEventTopic is the event topic identifier.
const AuthorizedCallerRemovedEventTopic = "auth_CallerRemoved"
AuthorizedCallerRemovedEventTopic is the event topic identifier.
const CCVAddedEventTopic = "exec_CCVAdded"
CCVAddedEventTopic is the event topic identifier.
const CCVAllowlistUpdatedEventTopic = "exec_CCVAllowlistUpdated"
CCVAllowlistUpdatedEventTopic is the event topic identifier.
const CCVRemovedEventTopic = "exec_CCVRemoved"
CCVRemovedEventTopic is the event topic identifier.
const ConfigSetEventTopic = "exec_ConfigSet"
ConfigSetEventTopic is the event topic identifier.
const DestChainAddedEventTopic = "exec_DestChainAdded"
DestChainAddedEventTopic is the event topic identifier.
const DestChainRemovedEventTopic = "exec_DestChainRemoved"
DestChainRemovedEventTopic is the event topic identifier.
const FeeTokenWithdrawnEventTopic = "exec_FeeTokenWithdrawn"
FeeTokenWithdrawnEventTopic is the event topic identifier.
const OwnershipTransferStartedEventTopic = "auth_OwnerTransferStart"
OwnershipTransferStartedEventTopic is the event topic identifier.
const RoleGrantedEventTopic = "auth_RoleGranted"
RoleGrantedEventTopic is the event topic identifier.
const RoleRevokedEventTopic = "auth_RoleRevoked"
RoleRevokedEventTopic is the event topic identifier.
Variables ¶
var CCIPErrorMessage = map[int]string{}/* 127 elements not displayed */
CCIPErrorMessage returns a human-readable message for error codes.
Functions ¶
This section is empty.
Types ¶
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]
func ParseAuthorizedCallerRemovedEvent ¶
func ParseAuthorizedCallerRemovedEvent(e protocolrpc.EventInfo) (*AuthorizedCallerRemovedEvent, error)
type CCVAddedEvent ¶
CCVAddedEvent represents the CCVAddedEvent event. Topics: [exec_CCVAdded]
func ParseCCVAddedEvent ¶
func ParseCCVAddedEvent(e protocolrpc.EventInfo) (*CCVAddedEvent, error)
type CCVAllowlistUpdatedEvent ¶
CCVAllowlistUpdatedEvent represents the CCVAllowlistUpdatedEvent event. Topics: [exec_CCVAllowlistUpdated]
func ParseCCVAllowlistUpdatedEvent ¶
func ParseCCVAllowlistUpdatedEvent(e protocolrpc.EventInfo) (*CCVAllowlistUpdatedEvent, error)
type CCVRemovedEvent ¶
CCVRemovedEvent represents the CCVRemovedEvent event. Topics: [exec_CCVRemoved]
func ParseCCVRemovedEvent ¶
func ParseCCVRemovedEvent(e protocolrpc.EventInfo) (*CCVRemovedEvent, error)
type ConfigSetEvent ¶
type ConfigSetEvent struct {
DynamicConfig DynamicConfig
// Event metadata
Ledger uint32
TxHash string
}
ConfigSetEvent represents the ConfigSetEvent event. Topics: [exec_ConfigSet]
func ParseConfigSetEvent ¶
func ParseConfigSetEvent(e protocolrpc.EventInfo) (*ConfigSetEvent, error)
type DestChainAddedEvent ¶
type DestChainAddedEvent struct {
DestChainSelector uint64
Config RemoteChainConfig
// Event metadata
Ledger uint32
TxHash string
}
DestChainAddedEvent represents the DestChainAddedEvent event. Topics: [exec_DestChainAdded]
func ParseDestChainAddedEvent ¶
func ParseDestChainAddedEvent(e protocolrpc.EventInfo) (*DestChainAddedEvent, error)
type DestChainRemovedEvent ¶
type DestChainRemovedEvent struct {
DestChainSelector uint64
// Event metadata
Ledger uint32
TxHash string
}
DestChainRemovedEvent represents the DestChainRemovedEvent event. Topics: [exec_DestChainRemoved]
func ParseDestChainRemovedEvent ¶
func ParseDestChainRemovedEvent(e protocolrpc.EventInfo) (*DestChainRemovedEvent, error)
type DynamicConfig ¶
type DynamicConfig struct {
AllowedFinalityConfig uint32
CcvAllowlistEnabled bool
FeeAggregator *string
}
DynamicConfig represents the DynamicConfig struct from the contract.
func DynamicConfigFromScVal ¶
func DynamicConfigFromScVal(val xdr.ScVal) (*DynamicConfig, error)
DynamicConfigFromScVal parses an xdr.ScVal into DynamicConfig.
type ExecutorClient ¶
type ExecutorClient struct {
// contains filtered or unexported fields
}
ExecutorClient provides methods to interact with the Executor contract.
func NewExecutorClient ¶
func NewExecutorClient(invoker bindings.Invoker, contractID string) *ExecutorClient
NewExecutorClient creates a new ExecutorClient.
func (*ExecutorClient) AcceptOwnership ¶
func (c *ExecutorClient) AcceptOwnership(ctx context.Context) error
AcceptOwnership calls the accept_ownership function on the contract.
func (*ExecutorClient) ApplyAllowedCcvUpdates ¶
func (c *ExecutorClient) ApplyAllowedCcvUpdates(ctx context.Context, ccvsToRemove []string, ccvsToAdd []string, ccvAllowlistEnabled bool) error
ApplyAllowedCcvUpdates calls the apply_allowed_ccv_updates function on the contract.
func (*ExecutorClient) ApplyDestChainUpdates ¶
func (c *ExecutorClient) ApplyDestChainUpdates(ctx context.Context, destChainSelectorsToRemove []uint64, destChainSelectorsToAdd []RemoteChainConfigArgs) error
ApplyDestChainUpdates calls the apply_dest_chain_updates function on the contract.
func (*ExecutorClient) CancelOwnershipTransfer ¶
func (c *ExecutorClient) CancelOwnershipTransfer(ctx context.Context) error
CancelOwnershipTransfer calls the cancel_ownership_transfer function on the contract.
func (*ExecutorClient) ContractID ¶
func (c *ExecutorClient) ContractID() string
ContractID returns the contract ID.
func (*ExecutorClient) GetAllowedCcvs ¶
func (c *ExecutorClient) GetAllowedCcvs(ctx context.Context) ([]string, error)
GetAllowedCcvs calls the get_allowed_ccvs function on the contract.
func (*ExecutorClient) GetAllowedFinalityConfig ¶
func (c *ExecutorClient) GetAllowedFinalityConfig(ctx context.Context) (uint32, error)
GetAllowedFinalityConfig calls the get_allowed_finality_config function on the contract.
func (*ExecutorClient) GetDestChainConfig ¶
func (c *ExecutorClient) GetDestChainConfig(ctx context.Context, destChainSelector uint64) (*RemoteChainConfig, error)
GetDestChainConfig calls the get_dest_chain_config function on the contract.
func (*ExecutorClient) GetDestChains ¶
func (c *ExecutorClient) GetDestChains(ctx context.Context) ([]RemoteChainConfigArgs, error)
GetDestChains calls the get_dest_chains function on the contract.
func (*ExecutorClient) GetDynamicConfig ¶
func (c *ExecutorClient) GetDynamicConfig(ctx context.Context) (*DynamicConfig, error)
GetDynamicConfig calls the get_dynamic_config function on the contract.
func (*ExecutorClient) GetFee ¶
func (c *ExecutorClient) GetFee(ctx context.Context, destChainSelector uint64, requestedFinalityConfig uint32, ccvAddresses []string, extraArgs []byte, feeToken string) (uint32, error)
GetFee calls the get_fee function on the contract.
func (*ExecutorClient) GetMaxCcvsPerMessage ¶
func (c *ExecutorClient) GetMaxCcvsPerMessage(ctx context.Context) (uint32, error)
GetMaxCcvsPerMessage calls the get_max_ccvs_per_message function on the contract.
func (*ExecutorClient) GetPendingOwner ¶
func (c *ExecutorClient) GetPendingOwner(ctx context.Context) (*string, error)
GetPendingOwner calls the get_pending_owner function on the contract.
func (*ExecutorClient) InitOwner ¶
func (c *ExecutorClient) InitOwner(ctx context.Context, owner string) error
InitOwner calls the init_owner function on the contract.
func (*ExecutorClient) Initialize ¶
func (c *ExecutorClient) Initialize(ctx context.Context, owner string, maxCcvsPerMsg uint32, dynamicConfig DynamicConfig) error
Initialize calls the initialize function on the contract.
func (*ExecutorClient) Owner ¶
func (c *ExecutorClient) Owner(ctx context.Context) (*string, error)
Owner calls the owner function on the contract.
func (*ExecutorClient) RequireOwner ¶
func (c *ExecutorClient) RequireOwner(ctx context.Context) (string, error)
RequireOwner calls the require_owner function on the contract.
func (*ExecutorClient) SetDynamicConfig ¶
func (c *ExecutorClient) SetDynamicConfig(ctx context.Context, dynamicConfig DynamicConfig) error
SetDynamicConfig calls the set_dynamic_config function on the contract.
func (*ExecutorClient) TransferOwnership ¶
func (c *ExecutorClient) TransferOwnership(ctx context.Context, newOwner string) error
TransferOwnership calls the transfer_ownership function on the contract.
func (*ExecutorClient) TypeAndVersion ¶
func (c *ExecutorClient) TypeAndVersion(ctx context.Context) (string, error)
TypeAndVersion calls the type_and_version function on the contract.
func (*ExecutorClient) Upgrade ¶
func (c *ExecutorClient) Upgrade(ctx context.Context, newWasmHash [32]byte) error
Upgrade calls the upgrade function on the contract.
func (*ExecutorClient) WaitForAuthorizedCallerAddedEvent ¶
func (c *ExecutorClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerAddedEvent) bool) (*AuthorizedCallerAddedEvent, error)
WaitForAuthorizedCallerAddedEvent waits for a AuthorizedCallerAddedEvent event.
func (*ExecutorClient) WaitForAuthorizedCallerRemovedEvent ¶
func (c *ExecutorClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerRemovedEvent) bool) (*AuthorizedCallerRemovedEvent, error)
WaitForAuthorizedCallerRemovedEvent waits for a AuthorizedCallerRemovedEvent event.
func (*ExecutorClient) WaitForCCVAddedEvent ¶
func (c *ExecutorClient) WaitForCCVAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*CCVAddedEvent) bool) (*CCVAddedEvent, error)
WaitForCCVAddedEvent waits for a CCVAddedEvent event.
func (*ExecutorClient) WaitForCCVAllowlistUpdatedEvent ¶
func (c *ExecutorClient) WaitForCCVAllowlistUpdatedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*CCVAllowlistUpdatedEvent) bool) (*CCVAllowlistUpdatedEvent, error)
WaitForCCVAllowlistUpdatedEvent waits for a CCVAllowlistUpdatedEvent event.
func (*ExecutorClient) WaitForCCVRemovedEvent ¶
func (c *ExecutorClient) WaitForCCVRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*CCVRemovedEvent) bool) (*CCVRemovedEvent, error)
WaitForCCVRemovedEvent waits for a CCVRemovedEvent event.
func (*ExecutorClient) WaitForConfigSetEvent ¶
func (c *ExecutorClient) WaitForConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*ConfigSetEvent) bool) (*ConfigSetEvent, error)
WaitForConfigSetEvent waits for a ConfigSetEvent event.
func (*ExecutorClient) WaitForDestChainAddedEvent ¶
func (c *ExecutorClient) WaitForDestChainAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*DestChainAddedEvent) bool) (*DestChainAddedEvent, error)
WaitForDestChainAddedEvent waits for a DestChainAddedEvent event.
func (*ExecutorClient) WaitForDestChainRemovedEvent ¶
func (c *ExecutorClient) WaitForDestChainRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*DestChainRemovedEvent) bool) (*DestChainRemovedEvent, error)
WaitForDestChainRemovedEvent waits for a DestChainRemovedEvent event.
func (*ExecutorClient) WaitForFeeTokenWithdrawnEvent ¶
func (c *ExecutorClient) WaitForFeeTokenWithdrawnEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*FeeTokenWithdrawnEvent) bool) (*FeeTokenWithdrawnEvent, error)
WaitForFeeTokenWithdrawnEvent waits for a FeeTokenWithdrawnEvent event.
func (*ExecutorClient) WaitForOwnershipTransferStartedEvent ¶
func (c *ExecutorClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OwnershipTransferStartedEvent) bool) (*OwnershipTransferStartedEvent, error)
WaitForOwnershipTransferStartedEvent waits for a OwnershipTransferStartedEvent event.
func (*ExecutorClient) WaitForRoleGrantedEvent ¶
func (c *ExecutorClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleGrantedEvent) bool) (*RoleGrantedEvent, error)
WaitForRoleGrantedEvent waits for a RoleGrantedEvent event.
func (*ExecutorClient) WaitForRoleRevokedEvent ¶
func (c *ExecutorClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleRevokedEvent) bool) (*RoleRevokedEvent, error)
WaitForRoleRevokedEvent waits for a RoleRevokedEvent event.
func (*ExecutorClient) WithdrawFeeTokens ¶
func (c *ExecutorClient) WithdrawFeeTokens(ctx context.Context, feeTokens []string) error
WithdrawFeeTokens calls the withdraw_fee_tokens function on the contract.
type FeeTokenWithdrawnEvent ¶
type FeeTokenWithdrawnEvent struct {
Receiver string
FeeToken string
Amount *big.Int
// Event metadata
Ledger uint32
TxHash string
}
FeeTokenWithdrawnEvent represents the FeeTokenWithdrawnEvent event. Topics: [exec_FeeTokenWithdrawn]
func ParseFeeTokenWithdrawnEvent ¶
func ParseFeeTokenWithdrawnEvent(e protocolrpc.EventInfo) (*FeeTokenWithdrawnEvent, error)
type OwnershipTransferStartedEvent ¶
type OwnershipTransferStartedEvent struct {
PreviousOwner string
NewOwner string
// Event metadata
Ledger uint32
TxHash string
}
OwnershipTransferStartedEvent represents the OwnershipTransferStartedEvent event. Topics: [auth_OwnerTransferStart]
func ParseOwnershipTransferStartedEvent ¶
func ParseOwnershipTransferStartedEvent(e protocolrpc.EventInfo) (*OwnershipTransferStartedEvent, error)
type RemoteChainConfig ¶
RemoteChainConfig represents the RemoteChainConfig struct from the contract.
func RemoteChainConfigFromScVal ¶
func RemoteChainConfigFromScVal(val xdr.ScVal) (*RemoteChainConfig, error)
RemoteChainConfigFromScVal parses an xdr.ScVal into RemoteChainConfig.
type RemoteChainConfigArgs ¶
type RemoteChainConfigArgs struct {
Config RemoteChainConfig
DestChainSelector uint64
}
RemoteChainConfigArgs represents the RemoteChainConfigArgs struct from the contract.
func RemoteChainConfigArgsFromScVal ¶
func RemoteChainConfigArgsFromScVal(val xdr.ScVal) (*RemoteChainConfigArgs, error)
RemoteChainConfigArgsFromScVal parses an xdr.ScVal into RemoteChainConfigArgs.
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)