rmn_proxy

package
v0.0.0-...-b0effef Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 5 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.

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 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 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 RmnProxyClient

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

RmnProxyClient provides methods to interact with the RmnProxy contract.

func NewRmnProxyClient

func NewRmnProxyClient(invoker bindings.Invoker, contractID string) *RmnProxyClient

NewRmnProxyClient creates a new RmnProxyClient.

func (*RmnProxyClient) AcceptOwnership

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

AcceptOwnership calls the accept_ownership function on the contract.

func (*RmnProxyClient) CancelOwnershipTransfer

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

CancelOwnershipTransfer calls the cancel_ownership_transfer function on the contract.

func (*RmnProxyClient) ContractID

func (c *RmnProxyClient) ContractID() string

ContractID returns the contract ID.

func (*RmnProxyClient) GetPendingOwner

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

GetPendingOwner calls the get_pending_owner function on the contract.

func (*RmnProxyClient) GetRmn

func (c *RmnProxyClient) GetRmn(ctx context.Context) (string, error)

GetRmn calls the get_rmn function on the contract.

func (*RmnProxyClient) InitOwner

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

InitOwner calls the init_owner function on the contract.

func (*RmnProxyClient) Initialize

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

Initialize calls the initialize function on the contract.

func (*RmnProxyClient) IsCursed

func (c *RmnProxyClient) IsCursed(ctx context.Context) (bool, error)

IsCursed calls the is_cursed function on the contract.

func (*RmnProxyClient) IsOwner

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

IsOwner calls the is_owner function on the contract.

func (*RmnProxyClient) Owner

func (c *RmnProxyClient) Owner(ctx context.Context) (*string, error)

Owner calls the owner function on the contract.

func (*RmnProxyClient) RequireOwner

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

RequireOwner calls the require_owner function on the contract.

func (*RmnProxyClient) SetNewOwner

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

SetNewOwner calls the set_new_owner function on the contract.

func (*RmnProxyClient) SetRmn

func (c *RmnProxyClient) SetRmn(ctx context.Context, rmn string) error

SetRmn calls the set_rmn function on the contract.

func (*RmnProxyClient) TransferOwnership

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

TransferOwnership calls the transfer_ownership function on the contract.

func (*RmnProxyClient) TypeAndVersion

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

TypeAndVersion calls the type_and_version function on the contract.

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 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.

Jump to

Keyboard shortcuts

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