Documentation
¶
Overview ¶
Code generated by stellar-bindings-generator. DO NOT EDIT.
Code generated by stellar-bindings-generator. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type AllowListEntry
- type AllowListUpdate
- type AnyToStellarMessage
- type AuthorizedCallerAddedEvent
- type AuthorizedCallerRemovedEvent
- type DataKey
- type DataKeyExecState
- type ExecutionStateChangedEvent
- type GenericExtraArgsV3
- type MessageExecutionState
- type OffRampClient
- func (c *OffRampClient) AcceptOwnership(ctx context.Context) error
- func (c *OffRampClient) ApplySourceChainCfgUpdates(ctx context.Context, sourceChainConfigArgs []SourceChainConfigArgs) error
- func (c *OffRampClient) CancelOwnershipTransfer(ctx context.Context) error
- func (c *OffRampClient) ContractID() string
- func (c *OffRampClient) Execute(ctx context.Context, encodedMessage []byte, ccvs []string, ...) error
- func (c *OffRampClient) ExtendExecutionStateTtl(ctx context.Context, messageId [32]byte) error
- func (c *OffRampClient) GetAllSourceChainConfigs(ctx context.Context) ([]uint64, []SourceChainConfig, error)
- func (c *OffRampClient) GetExecutionState(ctx context.Context, messageId [32]byte) (MessageExecutionState, error)
- func (c *OffRampClient) GetPendingOwner(ctx context.Context) (*string, error)
- func (c *OffRampClient) GetSourceChainConfig(ctx context.Context, sourceChainSelector uint64) (*SourceChainConfig, error)
- func (c *OffRampClient) GetStaticConfig(ctx context.Context) (*StaticConfig, error)
- func (c *OffRampClient) Init(ctx context.Context, rmnProxy string) error
- func (c *OffRampClient) InitOwner(ctx context.Context, owner string) error
- func (c *OffRampClient) Initialize(ctx context.Context, owner string, staticConfig StaticConfig) error
- func (c *OffRampClient) IsCursed(ctx context.Context) (bool, error)
- func (c *OffRampClient) IsOwner(ctx context.Context, addr string) (bool, error)
- func (c *OffRampClient) IsSubjectCursed(ctx context.Context, subject [16]byte) (bool, error)
- func (c *OffRampClient) Owner(ctx context.Context) (*string, error)
- func (c *OffRampClient) RequireChainNotCursed(ctx context.Context, chainSelector uint64) error
- func (c *OffRampClient) RequireNotCursed(ctx context.Context) error
- func (c *OffRampClient) RequireOwner(ctx context.Context) (string, error)
- func (c *OffRampClient) RequireSubjectNotCursed(ctx context.Context, subject [16]byte) error
- func (c *OffRampClient) SetNewOwner(ctx context.Context, newOwner string) error
- func (c *OffRampClient) TransferOwnership(ctx context.Context, newOwner string) error
- func (c *OffRampClient) TypeAndVersion(ctx context.Context) (string, error)
- func (c *OffRampClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerAddedEvent, error)
- func (c *OffRampClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerRemovedEvent, error)
- func (c *OffRampClient) WaitForExecutionStateChangedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*ExecutionStateChangedEvent, error)
- func (c *OffRampClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*OwnershipTransferStartedEvent, error)
- func (c *OffRampClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleGrantedEvent, error)
- func (c *OffRampClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleRevokedEvent, error)
- func (c *OffRampClient) WaitForSourceChainConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*SourceChainConfigSetEvent, error)
- func (c *OffRampClient) WaitForStaticConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*StaticConfigSetEvent, error)
- type OwnershipTransferStartedEvent
- type RoleGrantedEvent
- type RoleRevokedEvent
- type SourceChainConfig
- type SourceChainConfigArgs
- type SourceChainConfigSetEvent
- type StaticConfig
- type StaticConfigSetEvent
- type StellarToAnyMessage
- type TokenAmount
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 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.
const AuthorizedCallerAddedEventTopic = "auth_CallerAdded"
AuthorizedCallerAddedEventTopic is the event topic identifier.
const AuthorizedCallerRemovedEventTopic = "auth_CallerRemoved"
AuthorizedCallerRemovedEventTopic is the event topic identifier.
const ExecutionStateChangedEventTopic = "offramp_1_7_ExecStateChanged"
ExecutionStateChangedEventTopic 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.
const SourceChainConfigSetEventTopic = "offramp_1_7_SrcChainCfgSet"
SourceChainConfigSetEventTopic is the event topic identifier.
const StaticConfigSetEventTopic = "offramp_1_7_StaticConfigSet"
StaticConfigSetEventTopic is the event topic identifier.
Variables ¶
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 AllowListEntry ¶
AllowListEntry represents the AllowListEntry struct from the contract.
func AllowListEntryFromScVal ¶
func AllowListEntryFromScVal(val xdr.ScVal) (*AllowListEntry, error)
AllowListEntryFromScVal parses an xdr.ScVal into AllowListEntry.
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.
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.
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 DataKey ¶
type DataKey struct {
ExecState *DataKeyExecState
}
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 ¶
DataKeyFromScVal parses an xdr.ScVal into DataKey.
type DataKeyExecState ¶
type DataKeyExecState struct {
Field0 [32]byte
}
DataKeyExecState is the tuple variant DataKey::ExecState.
type ExecutionStateChangedEvent ¶
type ExecutionStateChangedEvent struct {
SourceChainSelector uint64
SequenceNumber uint64
MessageId [32]byte
State MessageExecutionState
ReturnData []byte
// Event metadata
Ledger uint32
TxHash string
}
ExecutionStateChangedEvent represents the ExecutionStateChangedEvent event. Topics: [offramp_1_7_ExecStateChanged]
func ParseExecutionStateChangedEvent ¶
func ParseExecutionStateChangedEvent(e protocolrpc.EventInfo) (*ExecutionStateChangedEvent, error)
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.
type MessageExecutionState ¶
type MessageExecutionState uint32
MessageExecutionState represents the MessageExecutionState enum (unit-only Soroban contracttype, encoded as ScVal::U32).
const ( MessageExecutionStateUntouched MessageExecutionState = 0 MessageExecutionStateInProgress MessageExecutionState = 1 MessageExecutionStateSuccess MessageExecutionState = 2 MessageExecutionStateFailure MessageExecutionState = 3 )
func MessageExecutionStateFromScVal ¶
func MessageExecutionStateFromScVal(val xdr.ScVal) (MessageExecutionState, error)
MessageExecutionStateFromScVal parses an xdr.ScVal into MessageExecutionState.
type OffRampClient ¶
type OffRampClient struct {
// contains filtered or unexported fields
}
OffRampClient provides methods to interact with the OffRamp contract.
func NewOffRampClient ¶
func NewOffRampClient(invoker bindings.Invoker, contractID string) *OffRampClient
NewOffRampClient creates a new OffRampClient.
func (*OffRampClient) AcceptOwnership ¶
func (c *OffRampClient) AcceptOwnership(ctx context.Context) error
AcceptOwnership calls the accept_ownership function on the contract.
func (*OffRampClient) ApplySourceChainCfgUpdates ¶
func (c *OffRampClient) ApplySourceChainCfgUpdates(ctx context.Context, sourceChainConfigArgs []SourceChainConfigArgs) error
ApplySourceChainCfgUpdates calls the apply_source_chain_cfg_updates function on the contract.
func (*OffRampClient) CancelOwnershipTransfer ¶
func (c *OffRampClient) CancelOwnershipTransfer(ctx context.Context) error
CancelOwnershipTransfer calls the cancel_ownership_transfer function on the contract.
func (*OffRampClient) ContractID ¶
func (c *OffRampClient) ContractID() string
ContractID returns the contract ID.
func (*OffRampClient) Execute ¶
func (c *OffRampClient) Execute(ctx context.Context, encodedMessage []byte, ccvs []string, verifierResults [][]byte, gasLimitOverride uint32) error
Execute calls the execute function on the contract.
func (*OffRampClient) ExtendExecutionStateTtl ¶
func (c *OffRampClient) ExtendExecutionStateTtl(ctx context.Context, messageId [32]byte) error
ExtendExecutionStateTtl calls the extend_execution_state_ttl function on the contract.
func (*OffRampClient) GetAllSourceChainConfigs ¶
func (c *OffRampClient) GetAllSourceChainConfigs(ctx context.Context) ([]uint64, []SourceChainConfig, error)
GetAllSourceChainConfigs calls the get_all_source_chain_configs function on the contract.
func (*OffRampClient) GetExecutionState ¶
func (c *OffRampClient) GetExecutionState(ctx context.Context, messageId [32]byte) (MessageExecutionState, error)
GetExecutionState calls the get_execution_state function on the contract.
func (*OffRampClient) GetPendingOwner ¶
func (c *OffRampClient) GetPendingOwner(ctx context.Context) (*string, error)
GetPendingOwner calls the get_pending_owner function on the contract.
func (*OffRampClient) GetSourceChainConfig ¶
func (c *OffRampClient) GetSourceChainConfig(ctx context.Context, sourceChainSelector uint64) (*SourceChainConfig, error)
GetSourceChainConfig calls the get_source_chain_config function on the contract.
func (*OffRampClient) GetStaticConfig ¶
func (c *OffRampClient) GetStaticConfig(ctx context.Context) (*StaticConfig, error)
GetStaticConfig calls the get_static_config function on the contract.
func (*OffRampClient) Init ¶
func (c *OffRampClient) Init(ctx context.Context, rmnProxy string) error
Init calls the init function on the contract.
func (*OffRampClient) InitOwner ¶
func (c *OffRampClient) InitOwner(ctx context.Context, owner string) error
InitOwner calls the init_owner function on the contract.
func (*OffRampClient) Initialize ¶
func (c *OffRampClient) Initialize(ctx context.Context, owner string, staticConfig StaticConfig) error
Initialize calls the initialize function on the contract.
func (*OffRampClient) IsCursed ¶
func (c *OffRampClient) IsCursed(ctx context.Context) (bool, error)
IsCursed calls the is_cursed function on the contract.
func (*OffRampClient) IsSubjectCursed ¶
IsSubjectCursed calls the is_subject_cursed function on the contract.
func (*OffRampClient) Owner ¶
func (c *OffRampClient) Owner(ctx context.Context) (*string, error)
Owner calls the owner function on the contract.
func (*OffRampClient) RequireChainNotCursed ¶
func (c *OffRampClient) RequireChainNotCursed(ctx context.Context, chainSelector uint64) error
RequireChainNotCursed calls the require_chain_not_cursed function on the contract.
func (*OffRampClient) RequireNotCursed ¶
func (c *OffRampClient) RequireNotCursed(ctx context.Context) error
RequireNotCursed calls the require_not_cursed function on the contract.
func (*OffRampClient) RequireOwner ¶
func (c *OffRampClient) RequireOwner(ctx context.Context) (string, error)
RequireOwner calls the require_owner function on the contract.
func (*OffRampClient) RequireSubjectNotCursed ¶
func (c *OffRampClient) RequireSubjectNotCursed(ctx context.Context, subject [16]byte) error
RequireSubjectNotCursed calls the require_subject_not_cursed function on the contract.
func (*OffRampClient) SetNewOwner ¶
func (c *OffRampClient) SetNewOwner(ctx context.Context, newOwner string) error
SetNewOwner calls the set_new_owner function on the contract.
func (*OffRampClient) TransferOwnership ¶
func (c *OffRampClient) TransferOwnership(ctx context.Context, newOwner string) error
TransferOwnership calls the transfer_ownership function on the contract.
func (*OffRampClient) TypeAndVersion ¶
func (c *OffRampClient) TypeAndVersion(ctx context.Context) (string, error)
TypeAndVersion calls the type_and_version function on the contract.
func (*OffRampClient) WaitForAuthorizedCallerAddedEvent ¶
func (c *OffRampClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerAddedEvent) bool) (*AuthorizedCallerAddedEvent, error)
WaitForAuthorizedCallerAddedEvent waits for a AuthorizedCallerAddedEvent event.
func (*OffRampClient) WaitForAuthorizedCallerRemovedEvent ¶
func (c *OffRampClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerRemovedEvent) bool) (*AuthorizedCallerRemovedEvent, error)
WaitForAuthorizedCallerRemovedEvent waits for a AuthorizedCallerRemovedEvent event.
func (*OffRampClient) WaitForExecutionStateChangedEvent ¶
func (c *OffRampClient) WaitForExecutionStateChangedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*ExecutionStateChangedEvent) bool) (*ExecutionStateChangedEvent, error)
WaitForExecutionStateChangedEvent waits for a ExecutionStateChangedEvent event.
func (*OffRampClient) WaitForOwnershipTransferStartedEvent ¶
func (c *OffRampClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OwnershipTransferStartedEvent) bool) (*OwnershipTransferStartedEvent, error)
WaitForOwnershipTransferStartedEvent waits for a OwnershipTransferStartedEvent event.
func (*OffRampClient) WaitForRoleGrantedEvent ¶
func (c *OffRampClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleGrantedEvent) bool) (*RoleGrantedEvent, error)
WaitForRoleGrantedEvent waits for a RoleGrantedEvent event.
func (*OffRampClient) WaitForRoleRevokedEvent ¶
func (c *OffRampClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleRevokedEvent) bool) (*RoleRevokedEvent, error)
WaitForRoleRevokedEvent waits for a RoleRevokedEvent event.
func (*OffRampClient) WaitForSourceChainConfigSetEvent ¶
func (c *OffRampClient) WaitForSourceChainConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*SourceChainConfigSetEvent) bool) (*SourceChainConfigSetEvent, error)
WaitForSourceChainConfigSetEvent waits for a SourceChainConfigSetEvent event.
func (*OffRampClient) WaitForStaticConfigSetEvent ¶
func (c *OffRampClient) WaitForStaticConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*StaticConfigSetEvent) bool) (*StaticConfigSetEvent, error)
WaitForStaticConfigSetEvent waits for a StaticConfigSetEvent event.
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 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 SourceChainConfig ¶
type SourceChainConfig struct {
DefaultCcvs []string
IsEnabled bool
LaneMandatedCcvs []string
OnRamps [][]byte
Router string
}
SourceChainConfig represents the SourceChainConfig struct from the contract.
func SourceChainConfigFromScVal ¶
func SourceChainConfigFromScVal(val xdr.ScVal) (*SourceChainConfig, error)
SourceChainConfigFromScVal parses an xdr.ScVal into SourceChainConfig.
type SourceChainConfigArgs ¶
type SourceChainConfigArgs struct {
DefaultCcvs []string
IsEnabled bool
LaneMandatedCcvs []string
OnRamps [][]byte
Router string
SourceChainSelector uint64
}
SourceChainConfigArgs represents the SourceChainConfigArgs struct from the contract.
func SourceChainConfigArgsFromScVal ¶
func SourceChainConfigArgsFromScVal(val xdr.ScVal) (*SourceChainConfigArgs, error)
SourceChainConfigArgsFromScVal parses an xdr.ScVal into SourceChainConfigArgs.
type SourceChainConfigSetEvent ¶
type SourceChainConfigSetEvent struct {
SourceChainSelector uint64
SourceConfig SourceChainConfig
// Event metadata
Ledger uint32
TxHash string
}
SourceChainConfigSetEvent represents the SourceChainConfigSetEvent event. Topics: [offramp_1_7_SrcChainCfgSet]
func ParseSourceChainConfigSetEvent ¶
func ParseSourceChainConfigSetEvent(e protocolrpc.EventInfo) (*SourceChainConfigSetEvent, error)
type StaticConfig ¶
StaticConfig represents the StaticConfig struct from the contract.
func StaticConfigFromScVal ¶
func StaticConfigFromScVal(val xdr.ScVal) (*StaticConfig, error)
StaticConfigFromScVal parses an xdr.ScVal into StaticConfig.
type StaticConfigSetEvent ¶
type StaticConfigSetEvent struct {
StaticConfig StaticConfig
// Event metadata
Ledger uint32
TxHash string
}
StaticConfigSetEvent represents the StaticConfigSetEvent event. Topics: [offramp_1_7_StaticConfigSet]
func ParseStaticConfigSetEvent ¶
func ParseStaticConfigSetEvent(e protocolrpc.EventInfo) (*StaticConfigSetEvent, 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.
type TokenAmount ¶
TokenAmount represents the TokenAmount struct from the contract.
func TokenAmountFromScVal ¶
func TokenAmountFromScVal(val xdr.ScVal) (*TokenAmount, error)
TokenAmountFromScVal parses an xdr.ScVal into TokenAmount.