Preparing search index...
The search index is not available
Hop Protocol v2 SDK - v0.0.1-beta.21
Hop Protocol v2 SDK
RailsGateway
Class RailsGateway
Hierarchy
Base
RailsGateway
Index
Constructors
constructor
Properties
batch
Blocks
chain
Id
contract
Addresses
gas
Price
Multiplier
hub
Chain
Id
l1
Chain
Id
network
signers
Or
Providers
Event
Name
Accessors
helpers
populate
Transaction
utils
Methods
add
Decoded
Types
To
Event
add
Decoded
Types
To
Events
bond
claim
Fees
From
Path
confirm
Claim
counterpart
Chain
Ids
default
Token
Fee
dispatcher
distribute
Claimed
Fees
executor
fee
Manager
gateways
get
Amount
Out
get
Chain
Ids
Supported
By
Token
Symbol
get
Color
For
Chain
Id
get
Config
Address
get
Config
Start
Block
get
Contract
Addresses
get
Contract
Exists
get
Counterpart
Chain
Id
get
Default
Provider
get
Default
Providers
get
Ethers
Web3
Signer
get
Event
Fetcher
get
Event
Filter
get
Event
Names
get
Explorer
Api
Base
Url
get
Hub
Chain
Id
get
Message
Fee
get
Next
Hops
Hash
get
Path
get
Path
Id
get
Provider
get
Push
Claim
Fee
get
Rails
Gateway
Contract
get
Rails
Gateway
Contract
Address
get
Rails
Path
get
Remove
Fee
get
Send
Fee
get
Signer
get
Signer
Address
get
Signer
Or
Provider
get
Signer
Provider
Chain
Id
get
Staking
Registry
get
Staking
Registry
Contract
Address
get
Supported
Chain
Ids
get
Supported
Token
Symbols
get
Supported
Token
Symbols
By
Chain
Id
get
Token
Address
By
Token
Symbol
get
Token
Symbol
By
Token
Address
get
Transfer
Data
Hash
get
Tx
Overrides
init
Chain
init
Path
is
Path
Initialized
push
Claim
push
Claim
And
Bond
push
Claim
And
Withdraw
rails
Path
Implementation
readd
Claim
remove
Claim
send
send
Transaction
set
Contract
Addresses
set
Default
Token
Fee
set
Explorer
Api
Base
Url
set
Hub
Chain
Id
set
Provider
set
Provider
Url
set
Provider
Urls
set
Providers
set
Staking
Registry
set
Token
Fee
Recipient
staking
Registry
throw
Error
tokens
update
Default
Token
Fee
update
Token
Fee
withdraw
Bonds
withdraw
Claim
add
Decoded
Types
To
Event
add
Decoded
Types
To
Events
derive
Network
get
Computed
Next
Hops
Hash
get
Default
Provider
get
Default
Providers
get
Event
Names
get
Event
Signature
Constructors
constructor
new
Rails
Gateway
(
__namedParameters
)
:
RailsGateway
Parameters
__namedParameters
:
RailsGatewayConstructorInput
Returns
RailsGateway
Properties
batch
Blocks
batch
Blocks
:
number
chain
Id
chain
Id
:
BigNumberish
contract
Addresses
contract
Addresses
:
Addresses
gas
Price
Multiplier
gas
Price
Multiplier
:
number
hub
Chain
Id
hub
Chain
Id
:
string
l1
Chain
Id
l1
Chain
Id
:
number
network
network
:
string
signers
Or
Providers
signers
Or
Providers
:
SignersOrProviders
Static
Event
Name
Event
Name
:
typeof
RailsGatewayEventName
= EventName
Accessors
helpers
get
helpers
(
)
:
{
approveBond
:
(
(
input
,
txOverrides
?
)
=>
Promise
<
TransactionResponse
>
)
;
approveSend
:
(
(
input
,
txOverrides
?
)
=>
Promise
<
TransactionResponse
>
)
;
decodeBondTxInputData
:
(
(
data
)
=>
Promise
<
DecodedBondInputData
>
)
;
decodeSendTxInputData
:
(
(
data
)
=>
Promise
<
DecodedSendInputData
>
)
;
estimateGasCostForSend
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getBucketIndex
:
(
(
__namedParameters
)
=>
Promise
<
number
>
)
;
getClaim
:
(
(
__namedParameters
)
=>
Promise
<
Claim
>
)
;
getComputedNextHopsHash
:
(
(
input
)
=>
string
)
;
getComputedTransferDataHash
:
(
(
input
)
=>
string
)
;
getComputedTransferId
:
(
(
__namedParameters
)
=>
string
)
;
getHasSufficientBalance
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getHeadClaimId
:
(
(
__namedParameters
)
=>
Promise
<
string
>
)
;
getHopBalance
:
(
(
address
?
)
=>
Promise
<
BigNumber
>
)
;
getHopTokenAddress
:
(
(
)
=>
Promise
<
string
>
)
;
getHopTokenContract
:
(
(
)
=>
Promise
<
Contract
>
)
;
getInitialReserve
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getInitialReserveByTokenAddress
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getInitialReserveByTokenSymbol
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getIsPathIdLive
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getIsTransferBonded
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getIsTransferClaimed
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getNeedsApprovalForBond
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getNeedsApprovalForSend
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getPathInfo
:
(
(
__namedParameters
)
=>
Promise
<
Path
>
)
;
getSourcePool
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getTokenContract
:
(
(
__namedParameters
)
=>
Contract
)
;
getTokenInfo
:
(
(
__namedParameters
)
=>
Promise
<
Token
>
)
;
getTotalSent
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getTransferBondedEventFromTransactionHash
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
;
getTransferBondedEventFromTransactionReceipt
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
;
getTransferBondedEventFromTransferId
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
;
getTransferSentEventFromTransactionHash
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
;
getTransferSentEventFromTransactionReceipt
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
;
getTransferSentEventFromTransferId
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
;
getWithdrawableBalance
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
isValidClaim
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
isValidTransfer
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getAbi
(
)
:
readonly
[
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"_stakingRegistry"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageDispatcher"
;
name
:
"_dispatcher"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageExecutor"
;
name
:
"_executor"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IFeeManager"
;
name
:
"_feeManager"
;
type
:
"address"
;
}
,
{
internalType
:
"address"
;
name
:
"_railsPathImplementation"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"_defaultTokenFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"_tokenFeeRecipient"
;
type
:
"address"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"constructor"
;
}
,
{
stateMutability
:
"payable"
;
type
:
"receive"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"bond"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"claimFeesFromPath"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"confirmClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"counterpartChainIds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"defaultTokenFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"dispatcher"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageDispatcher"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"account"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"totalFees"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"lastClaimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"distributeClaimedFees"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"executor"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageExecutor"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"feeManager"
;
outputs
:
readonly
[
{
internalType
:
"contract IFeeManager"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
name
:
"gateways"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
]
;
name
:
"getAmountOut"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getCounterpartChainId"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
]
;
name
:
"getMessageFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"messageFee"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getPath"
;
outputs
:
readonly
[
{
internalType
:
"contract IRailsPath"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId0"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token0"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"chainId1"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token1"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"getPathId"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"pure"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getPushClaimFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getRemoveFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getSendFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"gateway"
;
type
:
"address"
;
}
]
;
name
:
"initChain"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"initPath"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"isPathInitialized"
;
outputs
:
readonly
[
{
internalType
:
"bool"
;
name
:
""
;
type
:
"bool"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"owner"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"nextHopsHash"
;
type
:
"bytes32"
;
}
]
;
name
:
"pushClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndBond"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndWithdraw"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"railsPathImplementation"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"transferDataHash"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"readdClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"removeClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"renounceOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"hops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"send"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"setDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"newStakingRegistry"
;
type
:
"address"
;
}
]
;
name
:
"setStakingRegistry"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"recipient"
;
type
:
"address"
;
}
]
;
name
:
"setTokenFeeRecipient"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"stakingRegistry"
;
outputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"tokens"
;
outputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"transferOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"withdrawBonds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"withdrawClaim"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"previousOwner"
;
type
:
"address"
;
}
,
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"OwnershipTransferred"
;
type
:
"event"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
false
;
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"address"
;
name
:
"path"
;
type
:
"address"
;
}
]
;
name
:
"PathInitialized"
;
type
:
"event"
;
}
]
;
}
Returns
{
approveBond
:
(
(
input
,
txOverrides
?
)
=>
Promise
<
TransactionResponse
>
)
;
approveSend
:
(
(
input
,
txOverrides
?
)
=>
Promise
<
TransactionResponse
>
)
;
decodeBondTxInputData
:
(
(
data
)
=>
Promise
<
DecodedBondInputData
>
)
;
decodeSendTxInputData
:
(
(
data
)
=>
Promise
<
DecodedSendInputData
>
)
;
estimateGasCostForSend
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getBucketIndex
:
(
(
__namedParameters
)
=>
Promise
<
number
>
)
;
getClaim
:
(
(
__namedParameters
)
=>
Promise
<
Claim
>
)
;
getComputedNextHopsHash
:
(
(
input
)
=>
string
)
;
getComputedTransferDataHash
:
(
(
input
)
=>
string
)
;
getComputedTransferId
:
(
(
__namedParameters
)
=>
string
)
;
getHasSufficientBalance
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getHeadClaimId
:
(
(
__namedParameters
)
=>
Promise
<
string
>
)
;
getHopBalance
:
(
(
address
?
)
=>
Promise
<
BigNumber
>
)
;
getHopTokenAddress
:
(
(
)
=>
Promise
<
string
>
)
;
getHopTokenContract
:
(
(
)
=>
Promise
<
Contract
>
)
;
getInitialReserve
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getInitialReserveByTokenAddress
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getInitialReserveByTokenSymbol
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getIsPathIdLive
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getIsTransferBonded
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getIsTransferClaimed
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getNeedsApprovalForBond
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getNeedsApprovalForSend
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getPathInfo
:
(
(
__namedParameters
)
=>
Promise
<
Path
>
)
;
getSourcePool
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getTokenContract
:
(
(
__namedParameters
)
=>
Contract
)
;
getTokenInfo
:
(
(
__namedParameters
)
=>
Promise
<
Token
>
)
;
getTotalSent
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
getTransferBondedEventFromTransactionHash
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
;
getTransferBondedEventFromTransactionReceipt
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
;
getTransferBondedEventFromTransferId
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
;
getTransferSentEventFromTransactionHash
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
;
getTransferSentEventFromTransactionReceipt
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
;
getTransferSentEventFromTransferId
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
;
getWithdrawableBalance
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
;
isValidClaim
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
isValidTransfer
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
;
getAbi
(
)
:
readonly
[
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"_stakingRegistry"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageDispatcher"
;
name
:
"_dispatcher"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageExecutor"
;
name
:
"_executor"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IFeeManager"
;
name
:
"_feeManager"
;
type
:
"address"
;
}
,
{
internalType
:
"address"
;
name
:
"_railsPathImplementation"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"_defaultTokenFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"_tokenFeeRecipient"
;
type
:
"address"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"constructor"
;
}
,
{
stateMutability
:
"payable"
;
type
:
"receive"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"bond"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"claimFeesFromPath"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"confirmClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"counterpartChainIds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"defaultTokenFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"dispatcher"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageDispatcher"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"account"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"totalFees"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"lastClaimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"distributeClaimedFees"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"executor"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageExecutor"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"feeManager"
;
outputs
:
readonly
[
{
internalType
:
"contract IFeeManager"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
name
:
"gateways"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
]
;
name
:
"getAmountOut"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getCounterpartChainId"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
]
;
name
:
"getMessageFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"messageFee"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getPath"
;
outputs
:
readonly
[
{
internalType
:
"contract IRailsPath"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId0"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token0"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"chainId1"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token1"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"getPathId"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"pure"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getPushClaimFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getRemoveFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getSendFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"gateway"
;
type
:
"address"
;
}
]
;
name
:
"initChain"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"initPath"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"isPathInitialized"
;
outputs
:
readonly
[
{
internalType
:
"bool"
;
name
:
""
;
type
:
"bool"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"owner"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"nextHopsHash"
;
type
:
"bytes32"
;
}
]
;
name
:
"pushClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndBond"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndWithdraw"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"railsPathImplementation"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"transferDataHash"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"readdClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"removeClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"renounceOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"hops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"send"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"setDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"newStakingRegistry"
;
type
:
"address"
;
}
]
;
name
:
"setStakingRegistry"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"recipient"
;
type
:
"address"
;
}
]
;
name
:
"setTokenFeeRecipient"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"stakingRegistry"
;
outputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"tokens"
;
outputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"transferOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"withdrawBonds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"withdrawClaim"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"previousOwner"
;
type
:
"address"
;
}
,
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"OwnershipTransferred"
;
type
:
"event"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
false
;
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"address"
;
name
:
"path"
;
type
:
"address"
;
}
]
;
name
:
"PathInitialized"
;
type
:
"event"
;
}
]
;
}
approve
Bond
:
(
(
input
,
txOverrides
?
)
=>
Promise
<
TransactionResponse
>
)
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
ApproveBondInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
approve
Send
:
(
(
input
,
txOverrides
?
)
=>
Promise
<
TransactionResponse
>
)
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
ApproveSendInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
decode
Bond
Tx
Input
Data
:
(
(
data
)
=>
Promise
<
DecodedBondInputData
>
)
(
data
)
:
Promise
<
DecodedBondInputData
>
Parameters
data
:
string
Returns
Promise
<
DecodedBondInputData
>
decode
Send
Tx
Input
Data
:
(
(
data
)
=>
Promise
<
DecodedSendInputData
>
)
(
data
)
:
Promise
<
DecodedSendInputData
>
Parameters
data
:
string
Returns
Promise
<
DecodedSendInputData
>
estimate
Gas
Cost
For
Send
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
EstimateGasCostForSendInput
Returns
Promise
<
BigNumber
>
get
Bucket
Index
:
(
(
__namedParameters
)
=>
Promise
<
number
>
)
(
__namedParameters
)
:
Promise
<
number
>
Parameters
__namedParameters
:
GetBucketIndexInput
Returns
Promise
<
number
>
get
Claim
:
(
(
__namedParameters
)
=>
Promise
<
Claim
>
)
(
__namedParameters
)
:
Promise
<
Claim
>
Parameters
__namedParameters
:
GetClaimInput
Returns
Promise
<
Claim
>
get
Computed
Next
Hops
Hash
:
(
(
input
)
=>
string
)
(
input
)
:
string
Parameters
input
:
GetNextHopsHashInput
Returns
string
get
Computed
Transfer
Data
Hash
:
(
(
input
)
=>
string
)
(
input
)
:
string
Parameters
input
:
GetComputedTransferDataHashInput
Returns
string
get
Computed
Transfer
Id
:
(
(
__namedParameters
)
=>
string
)
(
__namedParameters
)
:
string
Parameters
__namedParameters
:
GetComputedTransferIdInput
Returns
string
get
Has
Sufficient
Balance
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetHasSufficientBalanceInput
Returns
Promise
<
boolean
>
get
Head
Claim
Id
:
(
(
__namedParameters
)
=>
Promise
<
string
>
)
(
__namedParameters
)
:
Promise
<
string
>
Parameters
__namedParameters
:
GetHeadClaimIdInput
Returns
Promise
<
string
>
get
Hop
Balance
:
(
(
address
?
)
=>
Promise
<
BigNumber
>
)
(
address
?
)
:
Promise
<
BigNumber
>
Parameters
Optional
address
:
null
|
string
Returns
Promise
<
BigNumber
>
get
Hop
Token
Address
:
(
(
)
=>
Promise
<
string
>
)
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Hop
Token
Contract
:
(
(
)
=>
Promise
<
Contract
>
)
(
)
:
Promise
<
Contract
>
Returns
Promise
<
Contract
>
get
Initial
Reserve
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetInitialReserveInput
Returns
Promise
<
BigNumber
>
get
Initial
Reserve
By
Token
Address
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetInitialReserveByTokenAddressInput
Returns
Promise
<
BigNumber
>
get
Initial
Reserve
By
Token
Symbol
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetInitialReserveByTokenSymbolInput
Returns
Promise
<
BigNumber
>
get
Is
Path
Id
Live
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetIsPathIdLiveInput
Returns
Promise
<
boolean
>
get
Is
Transfer
Bonded
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetIsTransferBondedInput
Returns
Promise
<
boolean
>
get
Is
Transfer
Claimed
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetIsTransferClaimedInput
Returns
Promise
<
boolean
>
get
Needs
Approval
For
Bond
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetNeedsApprovalForBondInput
Returns
Promise
<
boolean
>
get
Needs
Approval
For
Send
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetNeedsApprovalForSendInput
Returns
Promise
<
boolean
>
get
Path
Info
:
(
(
__namedParameters
)
=>
Promise
<
Path
>
)
(
__namedParameters
)
:
Promise
<
Path
>
Parameters
__namedParameters
:
GetPathInfoInput
Returns
Promise
<
Path
>
get
Source
Pool
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetSourcePoolInput
Returns
Promise
<
BigNumber
>
get
Token
Contract
:
(
(
__namedParameters
)
=>
Contract
)
(
__namedParameters
)
:
Contract
Parameters
__namedParameters
:
GetTokenContractInput
Returns
Contract
get
Token
Info
:
(
(
__namedParameters
)
=>
Promise
<
Token
>
)
(
__namedParameters
)
:
Promise
<
Token
>
Parameters
__namedParameters
:
GetTokenInfoInput
Returns
Promise
<
Token
>
get
Total
Sent
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetTotalSentInput
Returns
Promise
<
BigNumber
>
get
Transfer
Bonded
Event
From
Transaction
Hash
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
(
__namedParameters
)
:
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
Parameters
__namedParameters
:
GetTransferBondedEventFromTransactionHashInput
Returns
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
get
Transfer
Bonded
Event
From
Transaction
Receipt
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
(
__namedParameters
)
:
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
Parameters
__namedParameters
:
GetTransferBondedEventFromTransactionReceiptInput
Returns
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
get
Transfer
Bonded
Event
From
Transfer
Id
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
)
(
__namedParameters
)
:
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
Parameters
__namedParameters
:
GetTransferBondedEventFromTransferIdInput
Returns
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferBonded
>
>
get
Transfer
Sent
Event
From
Transaction
Hash
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
(
__namedParameters
)
:
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
Parameters
__namedParameters
:
GetTransferSentEventFromTransactionHashInput
Returns
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
get
Transfer
Sent
Event
From
Transaction
Receipt
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
(
__namedParameters
)
:
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
Parameters
__namedParameters
:
GetTransferSentEventFromTransactionReceiptInput
Returns
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
get
Transfer
Sent
Event
From
Transfer
Id
:
(
(
__namedParameters
)
=>
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
)
(
__namedParameters
)
:
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
Parameters
__namedParameters
:
GetTransferSentEventFromTransferIdInput
Returns
Promise
<
null
|
EthersEventWithDecodedTypes
<
TransferSent
>
>
get
Withdrawable
Balance
:
(
(
__namedParameters
)
=>
Promise
<
BigNumber
>
)
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetWithdrawableBalanceInput
Returns
Promise
<
BigNumber
>
is
Valid
Claim
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetIsClaimIdValidInput
Returns
Promise
<
boolean
>
is
Valid
Transfer
:
(
(
__namedParameters
)
=>
Promise
<
boolean
>
)
(
__namedParameters
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
GetIsTransferIdValidInput
Returns
Promise
<
boolean
>
get
Abi
:
function
get
Abi
(
)
:
readonly
[
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"_stakingRegistry"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageDispatcher"
;
name
:
"_dispatcher"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageExecutor"
;
name
:
"_executor"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IFeeManager"
;
name
:
"_feeManager"
;
type
:
"address"
;
}
,
{
internalType
:
"address"
;
name
:
"_railsPathImplementation"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"_defaultTokenFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"_tokenFeeRecipient"
;
type
:
"address"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"constructor"
;
}
,
{
stateMutability
:
"payable"
;
type
:
"receive"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"bond"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"claimFeesFromPath"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"confirmClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"counterpartChainIds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"defaultTokenFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"dispatcher"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageDispatcher"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"account"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"totalFees"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"lastClaimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"distributeClaimedFees"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"executor"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageExecutor"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"feeManager"
;
outputs
:
readonly
[
{
internalType
:
"contract IFeeManager"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
name
:
"gateways"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
]
;
name
:
"getAmountOut"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getCounterpartChainId"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
]
;
name
:
"getMessageFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"messageFee"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getPath"
;
outputs
:
readonly
[
{
internalType
:
"contract IRailsPath"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId0"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token0"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"chainId1"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token1"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"getPathId"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"pure"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getPushClaimFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getRemoveFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getSendFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"gateway"
;
type
:
"address"
;
}
]
;
name
:
"initChain"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"initPath"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"isPathInitialized"
;
outputs
:
readonly
[
{
internalType
:
"bool"
;
name
:
""
;
type
:
"bool"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"owner"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"nextHopsHash"
;
type
:
"bytes32"
;
}
]
;
name
:
"pushClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndBond"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndWithdraw"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"railsPathImplementation"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"transferDataHash"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"readdClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"removeClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"renounceOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"hops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"send"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"setDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"newStakingRegistry"
;
type
:
"address"
;
}
]
;
name
:
"setStakingRegistry"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"recipient"
;
type
:
"address"
;
}
]
;
name
:
"setTokenFeeRecipient"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"stakingRegistry"
;
outputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"tokens"
;
outputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"transferOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"withdrawBonds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"withdrawClaim"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"previousOwner"
;
type
:
"address"
;
}
,
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"OwnershipTransferred"
;
type
:
"event"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
false
;
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"address"
;
name
:
"path"
;
type
:
"address"
;
}
]
;
name
:
"PathInitialized"
;
type
:
"event"
;
}
]
Returns
readonly
[
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"_stakingRegistry"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageDispatcher"
;
name
:
"_dispatcher"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IMessageExecutor"
;
name
:
"_executor"
;
type
:
"address"
;
}
,
{
internalType
:
"contract IFeeManager"
;
name
:
"_feeManager"
;
type
:
"address"
;
}
,
{
internalType
:
"address"
;
name
:
"_railsPathImplementation"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"_defaultTokenFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"_tokenFeeRecipient"
;
type
:
"address"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"constructor"
;
}
,
{
stateMutability
:
"payable"
;
type
:
"receive"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"bond"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"claimFeesFromPath"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"confirmClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"counterpartChainIds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"defaultTokenFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"dispatcher"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageDispatcher"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"account"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"totalFees"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"lastClaimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"distributeClaimedFees"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"executor"
;
outputs
:
readonly
[
{
internalType
:
"contract IMessageExecutor"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"feeManager"
;
outputs
:
readonly
[
{
internalType
:
"contract IFeeManager"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
name
:
"gateways"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
]
;
name
:
"getAmountOut"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getCounterpartChainId"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
]
;
name
:
"getMessageFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"messageFee"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getPath"
;
outputs
:
readonly
[
{
internalType
:
"contract IRailsPath"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId0"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token0"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"chainId1"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"token1"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"getPathId"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"pure"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getPushClaimFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"getRemoveFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"getSendFee"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
""
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"chainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"address"
;
name
:
"gateway"
;
type
:
"address"
;
}
]
;
name
:
"initChain"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
]
;
name
:
"initPath"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
]
;
name
:
"isPathInitialized"
;
outputs
:
readonly
[
{
internalType
:
"bool"
;
name
:
""
;
type
:
"bool"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"owner"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"nextHopsHash"
;
type
:
"bytes32"
;
}
]
;
name
:
"pushClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"bonderFee"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndBond"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amountOut"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"sourcePool"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"pushClaimAndWithdraw"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"railsPathImplementation"
;
outputs
:
readonly
[
{
internalType
:
"address"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"transferDataHash"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"readdClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"removeClaim"
;
outputs
:
readonly
[
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"renounceOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"to"
;
type
:
"address"
;
}
,
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"hops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"send"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"setDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
"newStakingRegistry"
;
type
:
"address"
;
}
]
;
name
:
"setStakingRegistry"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"recipient"
;
type
:
"address"
;
}
]
;
name
:
"setTokenFeeRecipient"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
]
;
name
:
"stakingRegistry"
;
outputs
:
readonly
[
{
internalType
:
"contract IStakingRegistry"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
""
;
type
:
"bytes32"
;
}
]
;
name
:
"tokens"
;
outputs
:
readonly
[
{
internalType
:
"contract IERC20"
;
name
:
""
;
type
:
"address"
;
}
]
;
stateMutability
:
"view"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"transferOwnership"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateDefaultTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"fee"
;
type
:
"uint256"
;
}
]
;
name
:
"updateTokenFee"
;
outputs
:
readonly
[
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
]
;
name
:
"withdrawBonds"
;
outputs
:
readonly
[
{
internalType
:
"uint256"
;
name
:
"amount"
;
type
:
"uint256"
;
}
]
;
stateMutability
:
"nonpayable"
;
type
:
"function"
;
}
,
{
inputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"claimId"
;
type
:
"bytes32"
;
}
,
{
components
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxBonderFee"
;
type
:
"uint256"
;
}
,
{
internalType
:
"uint256"
;
name
:
"maxTotalSent"
;
type
:
"uint256"
;
}
,
{
internalType
:
"bytes32"
;
name
:
"attestedClaimId"
;
type
:
"bytes32"
;
}
]
;
internalType
:
"struct Hop[]"
;
name
:
"nextHops"
;
type
:
"tuple[]"
;
}
]
;
name
:
"withdrawClaim"
;
outputs
:
readonly
[
{
internalType
:
"bytes32"
;
name
:
"transferId"
;
type
:
"bytes32"
;
}
]
;
stateMutability
:
"payable"
;
type
:
"function"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"previousOwner"
;
type
:
"address"
;
}
,
{
indexed
:
true
;
internalType
:
"address"
;
name
:
"newOwner"
;
type
:
"address"
;
}
]
;
name
:
"OwnershipTransferred"
;
type
:
"event"
;
}
,
{
anonymous
:
false
;
inputs
:
readonly
[
{
indexed
:
false
;
internalType
:
"bytes32"
;
name
:
"pathId"
;
type
:
"bytes32"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"token"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"counterpartChainId"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"contract IERC20"
;
name
:
"counterpartToken"
;
type
:
"address"
;
}
,
{
indexed
:
false
;
internalType
:
"uint256"
;
name
:
"initialReserve"
;
type
:
"uint256"
;
}
,
{
indexed
:
false
;
internalType
:
"address"
;
name
:
"path"
;
type
:
"address"
;
}
]
;
name
:
"PathInitialized"
;
type
:
"event"
;
}
]
populate
Transaction
get
populateTransaction
(
)
:
{
approveBond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
approveSend
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
bond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
claimFeesFromPath
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
confirmClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
distributeClaimedFees
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
pushClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
pushClaimAndBond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
pushClaimAndWithdraw
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
readdClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
removeClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
send
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
withdrawBonds
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
withdrawClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
}
Returns
{
approveBond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
approveSend
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
bond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
claimFeesFromPath
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
confirmClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
distributeClaimedFees
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
pushClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
pushClaimAndBond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
pushClaimAndWithdraw
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
readdClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
removeClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
send
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
withdrawBonds
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
withdrawClaim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
;
}
approve
Bond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
ApproveBondInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
approve
Send
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
ApproveSendInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
bond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
BondInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
claim
Fees
From
Path
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
ClaimFeesFromPathInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
confirm
Claim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
ConfirmClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
distribute
Claimed
Fees
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
DistributeClaimedFeesInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
push
Claim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
PushClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
push
Claim
And
Bond
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
PushClaimAndBondInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
push
Claim
And
Withdraw
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
PushClaimAndWithdrawInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
readd
Claim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
ReaddClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
remove
Claim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
RemoveClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
send
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
SendInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
withdraw
Bonds
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
WithdrawBondsInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
withdraw
Claim
:
(
(
__namedParameters
,
txOverrides
?
)
=>
Promise
<
TransactionRequest
>
)
(
__namedParameters
,
txOverrides
?
)
:
Promise
<
TransactionRequest
>
Parameters
__namedParameters
:
WithdrawClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionRequest
>
utils
get
utils
(
)
:
{
estimateGas
:
(
(
provider
,
tx
)
=>
Promise
<
BigNumber
>
)
;
generateZeroBytes32
:
(
(
)
=>
string
)
;
getAddressExplorerUrl
:
(
(
address
,
chainId
)
=>
string
)
;
getBumpedGasPrice
:
(
(
provider
,
percent
)
=>
Promise
<
BigNumber
>
)
;
getChainInfo
:
(
(
chainId
)
=>
any
)
;
getChainSlug
:
(
(
chainId
)
=>
string
)
;
getConnectedChainId
:
(
(
provider
)
=>
Promise
<
BigNumber
>
)
;
getGasPrice
:
(
(
signerOrProvider
)
=>
Promise
<
BigNumber
>
)
;
getLogoForChainId
:
(
(
chainId
)
=>
string
)
;
getLogoForChainSlug
:
(
(
chainSlug
)
=>
string
)
;
getLogoForTokenSymbol
:
(
(
tokenSymbol
)
=>
string
)
;
getTokenExplorerUrl
:
(
(
address
,
chainId
)
=>
string
)
;
getTransactionHashExplorerUrl
:
(
(
txHash
,
chainId
)
=>
string
)
;
isContractError
:
(
(
err
)
=>
boolean
)
;
isValidAddress
:
(
(
address
)
=>
boolean
)
;
isValidBytes
:
(
(
bytes
)
=>
boolean
)
;
isValidBytes32
:
(
(
hash
)
=>
boolean
)
;
isValidChainId
:
(
(
chainId
)
=>
boolean
)
;
isValidFilterBlock
:
(
(
blockTag
)
=>
boolean
)
;
isValidNumericValue
:
(
(
value
)
=>
boolean
)
;
isValidObject
:
(
(
obj
)
=>
boolean
)
;
isValidTxHash
:
(
(
txHash
)
=>
boolean
)
;
switchChain
:
(
(
chainId
,
provider
)
=>
Promise
<
void
>
)
;
willTransactionFail
:
(
(
provider
,
tx
)
=>
Promise
<
boolean
>
)
;
}
Returns
{
estimateGas
:
(
(
provider
,
tx
)
=>
Promise
<
BigNumber
>
)
;
generateZeroBytes32
:
(
(
)
=>
string
)
;
getAddressExplorerUrl
:
(
(
address
,
chainId
)
=>
string
)
;
getBumpedGasPrice
:
(
(
provider
,
percent
)
=>
Promise
<
BigNumber
>
)
;
getChainInfo
:
(
(
chainId
)
=>
any
)
;
getChainSlug
:
(
(
chainId
)
=>
string
)
;
getConnectedChainId
:
(
(
provider
)
=>
Promise
<
BigNumber
>
)
;
getGasPrice
:
(
(
signerOrProvider
)
=>
Promise
<
BigNumber
>
)
;
getLogoForChainId
:
(
(
chainId
)
=>
string
)
;
getLogoForChainSlug
:
(
(
chainSlug
)
=>
string
)
;
getLogoForTokenSymbol
:
(
(
tokenSymbol
)
=>
string
)
;
getTokenExplorerUrl
:
(
(
address
,
chainId
)
=>
string
)
;
getTransactionHashExplorerUrl
:
(
(
txHash
,
chainId
)
=>
string
)
;
isContractError
:
(
(
err
)
=>
boolean
)
;
isValidAddress
:
(
(
address
)
=>
boolean
)
;
isValidBytes
:
(
(
bytes
)
=>
boolean
)
;
isValidBytes32
:
(
(
hash
)
=>
boolean
)
;
isValidChainId
:
(
(
chainId
)
=>
boolean
)
;
isValidFilterBlock
:
(
(
blockTag
)
=>
boolean
)
;
isValidNumericValue
:
(
(
value
)
=>
boolean
)
;
isValidObject
:
(
(
obj
)
=>
boolean
)
;
isValidTxHash
:
(
(
txHash
)
=>
boolean
)
;
switchChain
:
(
(
chainId
,
provider
)
=>
Promise
<
void
>
)
;
willTransactionFail
:
(
(
provider
,
tx
)
=>
Promise
<
boolean
>
)
;
}
estimate
Gas
:
(
(
provider
,
tx
)
=>
Promise
<
BigNumber
>
)
(
provider
,
tx
)
:
Promise
<
BigNumber
>
Parameters
provider
:
Provider
tx
:
TransactionRequest
Returns
Promise
<
BigNumber
>
generate
Zero
Bytes32
:
(
(
)
=>
string
)
(
)
:
string
Returns
string
get
Address
Explorer
Url
:
(
(
address
,
chainId
)
=>
string
)
(
address
,
chainId
)
:
string
Parameters
address
:
string
chainId
:
BigNumberish
Returns
string
get
Bumped
Gas
Price
:
(
(
provider
,
percent
)
=>
Promise
<
BigNumber
>
)
(
provider
,
percent
)
:
Promise
<
BigNumber
>
Parameters
provider
:
Provider
percent
:
number
Returns
Promise
<
BigNumber
>
get
Chain
Info
:
(
(
chainId
)
=>
any
)
(
chainId
)
:
any
Parameters
chainId
:
BigNumberish
Returns
any
get
Chain
Slug
:
(
(
chainId
)
=>
string
)
(
chainId
)
:
string
Parameters
chainId
:
BigNumberish
Returns
string
get
Connected
Chain
Id
:
(
(
provider
)
=>
Promise
<
BigNumber
>
)
(
provider
)
:
Promise
<
BigNumber
>
Parameters
provider
:
Provider
Returns
Promise
<
BigNumber
>
get
Gas
Price
:
(
(
signerOrProvider
)
=>
Promise
<
BigNumber
>
)
(
signerOrProvider
)
:
Promise
<
BigNumber
>
Parameters
signerOrProvider
:
Provider
|
Signer
Returns
Promise
<
BigNumber
>
get
Logo
For
Chain
Id
:
(
(
chainId
)
=>
string
)
(
chainId
)
:
string
Parameters
chainId
:
BigNumberish
Returns
string
get
Logo
For
Chain
Slug
:
(
(
chainSlug
)
=>
string
)
(
chainSlug
)
:
string
Parameters
chainSlug
:
string
Returns
string
get
Logo
For
Token
Symbol
:
(
(
tokenSymbol
)
=>
string
)
(
tokenSymbol
)
:
string
Parameters
tokenSymbol
:
string
Returns
string
get
Token
Explorer
Url
:
(
(
address
,
chainId
)
=>
string
)
(
address
,
chainId
)
:
string
Parameters
address
:
string
chainId
:
BigNumberish
Returns
string
get
Transaction
Hash
Explorer
Url
:
(
(
txHash
,
chainId
)
=>
string
)
(
txHash
,
chainId
)
:
string
Parameters
txHash
:
string
chainId
:
BigNumberish
Returns
string
is
Contract
Error
:
(
(
err
)
=>
boolean
)
(
err
)
:
boolean
Parameters
err
:
unknown
Returns
boolean
is
Valid
Address
:
(
(
address
)
=>
boolean
)
(
address
)
:
boolean
Parameters
address
:
string
Returns
boolean
is
Valid
Bytes
:
(
(
bytes
)
=>
boolean
)
(
bytes
)
:
boolean
Parameters
bytes
:
string
Returns
boolean
is
Valid
Bytes32
:
(
(
hash
)
=>
boolean
)
(
hash
)
:
boolean
Parameters
hash
:
string
Returns
boolean
is
Valid
Chain
Id
:
(
(
chainId
)
=>
boolean
)
(
chainId
)
:
boolean
Parameters
chainId
:
BigNumberish
Returns
boolean
is
Valid
Filter
Block
:
(
(
blockTag
)
=>
boolean
)
(
blockTag
)
:
boolean
Parameters
blockTag
:
string
|
number
Returns
boolean
is
Valid
Numeric
Value
:
(
(
value
)
=>
boolean
)
(
value
)
:
boolean
Parameters
value
:
null
|
object
|
BigNumberish
Returns
boolean
is
Valid
Object
:
(
(
obj
)
=>
boolean
)
(
obj
)
:
boolean
Parameters
obj
:
any
Returns
boolean
is
Valid
Tx
Hash
:
(
(
txHash
)
=>
boolean
)
(
txHash
)
:
boolean
Parameters
txHash
:
string
Returns
boolean
switch
Chain
:
(
(
chainId
,
provider
)
=>
Promise
<
void
>
)
(
chainId
,
provider
)
:
Promise
<
void
>
Parameters
chainId
:
BigNumberish
provider
:
Provider
Returns
Promise
<
void
>
will
Transaction
Fail
:
(
(
provider
,
tx
)
=>
Promise
<
boolean
>
)
(
provider
,
tx
)
:
Promise
<
boolean
>
Parameters
provider
:
Provider
tx
:
TransactionRequest
Returns
Promise
<
boolean
>
Methods
add
Decoded
Types
To
Event
add
Decoded
Types
To
Event
(
event
)
:
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
Parameters
event
:
any
Returns
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
add
Decoded
Types
To
Events
add
Decoded
Types
To
Events
(
events
)
:
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
[]
Parameters
events
:
any
[]
Returns
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
[]
bond
bond
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
BondInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
claim
Fees
From
Path
claim
Fees
From
Path
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
ClaimFeesFromPathInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
confirm
Claim
confirm
Claim
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
ConfirmClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
counterpart
Chain
Ids
counterpart
Chain
Ids
(
__namedParameters
)
:
Promise
<
BigNumber
[]
>
Parameters
__namedParameters
:
CounterpartChainIdsInput
Returns
Promise
<
BigNumber
[]
>
default
Token
Fee
default
Token
Fee
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
dispatcher
dispatcher
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
distribute
Claimed
Fees
distribute
Claimed
Fees
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
DistributeClaimedFeesInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
executor
executor
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
fee
Manager
fee
Manager
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
gateways
gateways
(
__namedParameters
)
:
Promise
<
string
>
Parameters
__namedParameters
:
GetGatewaysInput
Returns
Promise
<
string
>
get
Amount
Out
get
Amount
Out
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetAmountOutInput
Returns
Promise
<
BigNumber
>
get
Chain
Ids
Supported
By
Token
Symbol
get
Chain
Ids
Supported
By
Token
Symbol
(
tokenSymbol
)
:
string
[]
Parameters
tokenSymbol
:
string
Returns
string
[]
get
Color
For
Chain
Id
get
Color
For
Chain
Id
(
chainId
)
:
string
Parameters
chainId
:
BigNumberish
Returns
string
get
Config
Address
get
Config
Address
(
chainId
,
key
)
:
string
Parameters
chainId
:
BigNumberish
key
:
string
Returns
string
get
Config
Start
Block
get
Config
Start
Block
(
chainId
)
:
number
Parameters
chainId
:
BigNumberish
Returns
number
get
Contract
Addresses
get
Contract
Addresses
(
)
:
Addresses
Returns
Addresses
get
Contract
Exists
get
Contract
Exists
(
address
,
provider
)
:
Promise
<
boolean
>
Parameters
address
:
string
provider
:
Provider
Returns
Promise
<
boolean
>
get
Counterpart
Chain
Id
get
Counterpart
Chain
Id
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
GetCounterpartChainIdInput
Returns
Promise
<
BigNumber
>
get
Default
Provider
get
Default
Provider
(
chainId
)
:
Provider
Parameters
chainId
:
BigNumberish
Returns
Provider
get
Default
Providers
get
Default
Providers
(
)
:
SignersOrProviders
Returns
SignersOrProviders
get
Ethers
Web3
Signer
get
Ethers
Web3
Signer
(
signer
)
:
Signer
Parameters
signer
:
any
Returns
Signer
get
Event
Fetcher
get
Event
Fetcher
(
eventName
)
:
any
Parameters
eventName
:
string
Returns
any
get
Event
Filter
get
Event
Filter
(
eventName
,
input
?
)
:
any
Parameters
eventName
:
PathInitialized
input
:
PathInitializedIndexes
= {}
Returns
any
get
Event
Names
get
Event
Names
(
)
:
string
[]
EVENT HANDLERS
Returns
string
[]
get
Explorer
Api
Base
Url
get
Explorer
Api
Base
Url
(
)
:
string
Returns
string
get
Hub
Chain
Id
get
Hub
Chain
Id
(
)
:
string
Returns
string
get
Message
Fee
get
Message
Fee
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
RailsGatewayGetMessageFeeInput
Returns
Promise
<
BigNumber
>
get
Next
Hops
Hash
get
Next
Hops
Hash
(
__namedParameters
)
:
Promise
<
string
>
Parameters
__namedParameters
:
GetNextHopsHashInput
Returns
Promise
<
string
>
get
Path
get
Path
(
__namedParameters
)
:
Promise
<
string
>
Parameters
__namedParameters
:
GetPathInput
Returns
Promise
<
string
>
get
Path
Id
get
Path
Id
(
__namedParameters
)
:
Promise
<
string
>
Parameters
__namedParameters
:
GetPathIdInput
Returns
Promise
<
string
>
get
Provider
get
Provider
(
chainId
)
:
null
|
Provider
Parameters
chainId
:
BigNumberish
Returns
null
|
Provider
get
Push
Claim
Fee
get
Push
Claim
Fee
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
get
Rails
Gateway
Contract
get
Rails
Gateway
Contract
(
)
:
Promise
<
Contract
>
Returns
Promise
<
Contract
>
get
Rails
Gateway
Contract
Address
get
Rails
Gateway
Contract
Address
(
)
:
string
Returns
string
get
Rails
Path
get
Rails
Path
(
pathId
?
,
address
?
)
:
Promise
<
RailsPath
>
Parameters
Optional
pathId
:
string
Optional
address
:
string
Returns
Promise
<
RailsPath
>
get
Remove
Fee
get
Remove
Fee
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
get
Send
Fee
get
Send
Fee
(
__namedParameters
)
:
Promise
<
BigNumber
>
Parameters
__namedParameters
:
RailsGatewayGetSendFeeInput
Returns
Promise
<
BigNumber
>
get
Signer
get
Signer
(
chainId
)
:
Promise
<
null
|
Signer
>
Parameters
chainId
:
BigNumberish
Returns
Promise
<
null
|
Signer
>
get
Signer
Address
get
Signer
Address
(
chainId
)
:
Promise
<
null
|
string
>
Parameters
chainId
:
BigNumberish
Returns
Promise
<
null
|
string
>
get
Signer
Or
Provider
get
Signer
Or
Provider
(
chainId
)
:
Promise
<
Provider
|
Signer
>
Parameters
chainId
:
BigNumberish
Returns
Promise
<
Provider
|
Signer
>
get
Signer
Provider
Chain
Id
get
Signer
Provider
Chain
Id
(
chainId
)
:
Promise
<
BigNumber
>
Parameters
chainId
:
BigNumberish
Returns
Promise
<
BigNumber
>
get
Staking
Registry
get
Staking
Registry
(
)
:
StakingRegistry
Returns
StakingRegistry
get
Staking
Registry
Contract
Address
get
Staking
Registry
Contract
Address
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Supported
Chain
Ids
get
Supported
Chain
Ids
(
)
:
string
[]
Returns
string
[]
get
Supported
Token
Symbols
get
Supported
Token
Symbols
(
)
:
string
[]
Returns
string
[]
get
Supported
Token
Symbols
By
Chain
Id
get
Supported
Token
Symbols
By
Chain
Id
(
chainId
)
:
string
[]
Parameters
chainId
:
BigNumberish
Returns
string
[]
get
Token
Address
By
Token
Symbol
get
Token
Address
By
Token
Symbol
(
chainId
,
tokenSymbol
)
:
string
Parameters
chainId
:
BigNumberish
tokenSymbol
:
string
Returns
string
get
Token
Symbol
By
Token
Address
get
Token
Symbol
By
Token
Address
(
chainId
,
tokenAddress
)
:
string
Parameters
chainId
:
BigNumberish
tokenAddress
:
string
Returns
string
get
Transfer
Data
Hash
get
Transfer
Data
Hash
(
__namedParameters
)
:
Promise
<
string
>
Parameters
__namedParameters
:
GetTransferDataHashInput
Returns
Promise
<
string
>
get
Tx
Overrides
get
Tx
Overrides
(
fromChainId
,
toChainId
)
:
Promise
<
TxOverrides
>
Parameters
fromChainId
:
BigNumberish
toChainId
:
BigNumberish
Returns
Promise
<
TxOverrides
>
init
Chain
init
Chain
(
__namedParameters
)
:
Promise
<
TransactionResponse
>
ADMIN FUNCTIONS
Parameters
__namedParameters
:
InitChainInput
Returns
Promise
<
TransactionResponse
>
init
Path
init
Path
(
__namedParameters
)
:
Promise
<
TransactionResponse
>
Parameters
__namedParameters
:
InitPathInput
Returns
Promise
<
TransactionResponse
>
is
Path
Initialized
is
Path
Initialized
(
__namedParameters
)
:
Promise
<
boolean
>
/END ADMIN FUNCTIONS
Parameters
__namedParameters
:
IsPathInitializedInput
Returns
Promise
<
boolean
>
push
Claim
push
Claim
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
PushClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
push
Claim
And
Bond
push
Claim
And
Bond
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
PushClaimAndBondInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
push
Claim
And
Withdraw
push
Claim
And
Withdraw
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
PushClaimAndWithdrawInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
rails
Path
Implementation
rails
Path
Implementation
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
readd
Claim
readd
Claim
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
ReaddClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
remove
Claim
remove
Claim
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
RemoveClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
send
send
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
SendInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
send
Transaction
send
Transaction
(
transactionRequest
,
chainId
?
,
customSigner
?
)
:
Promise
<
TransactionResponse
>
Parameters
transactionRequest
:
TransactionRequest
Optional
chainId
:
BigNumberish
Optional
customSigner
:
null
|
Signer
Returns
Promise
<
TransactionResponse
>
set
Contract
Addresses
set
Contract
Addresses
(
contractAddresses
)
:
void
Parameters
contractAddresses
:
Addresses
Returns
void
set
Default
Token
Fee
set
Default
Token
Fee
(
__namedParameters
)
:
Promise
<
TransactionResponse
>
Parameters
__namedParameters
:
SetDefaultTokenFeeInput
Returns
Promise
<
TransactionResponse
>
set
Explorer
Api
Base
Url
set
Explorer
Api
Base
Url
(
url
)
:
void
Parameters
url
:
string
Returns
void
set
Hub
Chain
Id
set
Hub
Chain
Id
(
newChainId
)
:
void
Parameters
newChainId
:
BigNumberish
Returns
void
set
Provider
set
Provider
(
chainId
,
provider
)
:
void
Parameters
chainId
:
BigNumberish
provider
:
Provider
|
Signer
Returns
void
set
Provider
Url
set
Provider
Url
(
chainId
,
url
)
:
void
Parameters
chainId
:
BigNumberish
url
:
string
|
string
[]
Returns
void
set
Provider
Urls
set
Provider
Urls
(
signersOrProvidersUrls
)
:
void
Parameters
signersOrProvidersUrls
:
Record
<
string
,
string
|
string
[]
>
Returns
void
set
Providers
set
Providers
(
signersOrProviders
)
:
void
Parameters
signersOrProviders
:
SignersOrProviders
Returns
void
set
Staking
Registry
set
Staking
Registry
(
__namedParameters
)
:
Promise
<
TransactionResponse
>
Parameters
__namedParameters
:
SetStakingRegistryInput
Returns
Promise
<
TransactionResponse
>
set
Token
Fee
Recipient
set
Token
Fee
Recipient
(
__namedParameters
)
:
Promise
<
TransactionResponse
>
Parameters
__namedParameters
:
SetTokenFeeRecipientInput
Returns
Promise
<
TransactionResponse
>
staking
Registry
staking
Registry
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
throw
Error
throw
Error
(
err
)
:
unknown
Parameters
err
:
unknown
Returns
unknown
tokens
tokens
(
__namedParameters
)
:
Promise
<
string
>
Parameters
__namedParameters
:
TokensInput
Returns
Promise
<
string
>
update
Default
Token
Fee
update
Default
Token
Fee
(
__namedParameters
)
:
Promise
<
TransactionResponse
>
Parameters
__namedParameters
:
UpdateDefaultTokenFeeInput
Returns
Promise
<
TransactionResponse
>
update
Token
Fee
update
Token
Fee
(
__namedParameters
)
:
Promise
<
TransactionResponse
>
Parameters
__namedParameters
:
UpdateTokenFeeInput
Returns
Promise
<
TransactionResponse
>
withdraw
Bonds
withdraw
Bonds
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
WithdrawBondsInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
withdraw
Claim
withdraw
Claim
(
input
,
txOverrides
?
)
:
Promise
<
TransactionResponse
>
Parameters
input
:
WithdrawClaimInput
txOverrides
:
TxOverrides
= {}
Returns
Promise
<
TransactionResponse
>
Static
add
Decoded
Types
To
Event
add
Decoded
Types
To
Event
(
event
,
chainId
?
)
:
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
Parameters
event
:
any
Optional
chainId
:
BigNumberish
Returns
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
Static
add
Decoded
Types
To
Events
add
Decoded
Types
To
Events
(
events
,
chainId
?
)
:
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
[]
Parameters
events
:
any
[]
Optional
chainId
:
BigNumberish
Returns
EthersEventWithDecodedTypesAndBaseContext
<
PathInitialized
>
[]
Static
derive
Network
derive
Network
(
chainId
)
:
string
Parameters
chainId
:
BigNumberish
Returns
string
Static
get
Computed
Next
Hops
Hash
get
Computed
Next
Hops
Hash
(
__namedParameters
)
:
string
STATIC METHODS
Parameters
__namedParameters
:
GetNextHopsHashInput
Returns
string
Static
get
Default
Provider
get
Default
Provider
(
chainId
)
:
Provider
Parameters
chainId
:
BigNumberish
Returns
Provider
Static
get
Default
Providers
get
Default
Providers
(
network
)
:
SignersOrProviders
Parameters
network
:
string
Returns
SignersOrProviders
Static
get
Event
Names
get
Event
Names
(
)
:
string
[]
Returns
string
[]
Static
get
Event
Signature
get
Event
Signature
(
eventName
)
:
string
Parameters
eventName
:
PathInitialized
Returns
string
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
batch
Blocks
chain
Id
contract
Addresses
gas
Price
Multiplier
hub
Chain
Id
l1
Chain
Id
network
signers
Or
Providers
Event
Name
helpers
populate
Transaction
utils
add
Decoded
Types
To
Event
add
Decoded
Types
To
Events
bond
claim
Fees
From
Path
confirm
Claim
counterpart
Chain
Ids
default
Token
Fee
dispatcher
distribute
Claimed
Fees
executor
fee
Manager
gateways
get
Amount
Out
get
Chain
Ids
Supported
By
Token
Symbol
get
Color
For
Chain
Id
get
Config
Address
get
Config
Start
Block
get
Contract
Addresses
get
Contract
Exists
get
Counterpart
Chain
Id
get
Default
Provider
get
Default
Providers
get
Ethers
Web3
Signer
get
Event
Fetcher
get
Event
Filter
get
Event
Names
get
Explorer
Api
Base
Url
get
Hub
Chain
Id
get
Message
Fee
get
Next
Hops
Hash
get
Path
get
Path
Id
get
Provider
get
Push
Claim
Fee
get
Rails
Gateway
Contract
get
Rails
Gateway
Contract
Address
get
Rails
Path
get
Remove
Fee
get
Send
Fee
get
Signer
get
Signer
Address
get
Signer
Or
Provider
get
Signer
Provider
Chain
Id
get
Staking
Registry
get
Staking
Registry
Contract
Address
get
Supported
Chain
Ids
get
Supported
Token
Symbols
get
Supported
Token
Symbols
By
Chain
Id
get
Token
Address
By
Token
Symbol
get
Token
Symbol
By
Token
Address
get
Transfer
Data
Hash
get
Tx
Overrides
init
Chain
init
Path
is
Path
Initialized
push
Claim
push
Claim
And
Bond
push
Claim
And
Withdraw
rails
Path
Implementation
readd
Claim
remove
Claim
send
send
Transaction
set
Contract
Addresses
set
Default
Token
Fee
set
Explorer
Api
Base
Url
set
Hub
Chain
Id
set
Provider
set
Provider
Url
set
Provider
Urls
set
Providers
set
Staking
Registry
set
Token
Fee
Recipient
staking
Registry
throw
Error
tokens
update
Default
Token
Fee
update
Token
Fee
withdraw
Bonds
withdraw
Claim
add
Decoded
Types
To
Event
add
Decoded
Types
To
Events
derive
Network
get
Computed
Next
Hops
Hash
get
Default
Provider
get
Default
Providers
get
Event
Names
get
Event
Signature
Visit App
V2 Playground
Explorer
Hop Protocol v2 SDK - v0.0.1-beta.21
EventName
MessengerEventName
RailsGatewayEventName
RailsPathEventName
TransferState
BonderPreferenceEventFetcher
ClaimPushedEventFetcher
ClaimReaddedEventFetcher
ClaimRemovedEventFetcher
ConfigError
ContractFunctionRevertedError
CustomError
Hop
HubConnector
InputError
InsufficientApprovalError
InsufficientBalanceError
Messenger
PathInitializedEventFetcher
PriceFeed
RailsGateway
Loading...
EVENT HANDLERS