abi
abi: readonly [{
inputs: readonly [{
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: "address";
name: "to";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
name: "claimChain";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "confirmClaim";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "counterpartChainId";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "counterpartToken";
outputs: readonly [{
internalType: "contract IERC20";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "gateway";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
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: "uint256";
name: "index";
type: "uint256";
}];
name: "getBucket";
outputs: readonly [{
components: readonly [{
internalType: "uint256";
name: "completedAt";
type: "uint256";
}, {
internalType: "bytes32";
name: "finalClaimId";
type: "bytes32";
}, {
internalType: "uint256";
name: "totalAttested";
type: "uint256";
}, {
internalType: "uint256";
name: "maxConfirmed";
type: "uint256";
}];
internalType: "struct Bucket";
name: "";
type: "tuple";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "getBucketIndex";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "getClaim";
outputs: readonly [{
components: readonly [{
internalType: "uint256";
name: "createdAt";
type: "uint256";
}, {
internalType: "uint256";
name: "index";
type: "uint256";
}, {
internalType: "address";
name: "to";
type: "address";
}, {
internalType: "uint256";
name: "amountOut";
type: "uint256";
}, {
internalType: "uint256";
name: "maxBonderFee";
type: "uint256";
}, {
internalType: "uint256";
name: "totalClaims";
type: "uint256";
}, {
internalType: "bytes32";
name: "nextHopsHash";
type: "bytes32";
}, {
internalType: "uint256";
name: "totalAttested";
type: "uint256";
}, {
internalType: "uint256";
name: "totalAddedToBucketMaxConfirmed";
type: "uint256";
}, {
internalType: "address";
name: "bondedOrWithdrawnBy";
type: "address";
}];
internalType: "struct Claim";
name: "";
type: "tuple";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "getHeadClaimId";
outputs: readonly [{
internalType: "bytes32";
name: "headClaimId";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "getHeadTransferId";
outputs: readonly [{
internalType: "bytes32";
name: "headTransferId";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "chainId";
type: "uint256";
}];
name: "getInitialId";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
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: "getNextHopsHash";
outputs: readonly [{
internalType: "bytes32";
name: "nextHopsHash";
type: "bytes32";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
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: "getNextHopsHashFromHops";
outputs: readonly [{
internalType: "bytes32";
name: "nextHopsHash";
type: "bytes32";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [];
name: "getPathInfo";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}, {
internalType: "contract IERC20";
name: "";
type: "address";
}, {
internalType: "uint256";
name: "";
type: "uint256";
}, {
internalType: "contract IERC20";
name: "";
type: "address";
}, {
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "attestedClaimId";
type: "bytes32";
}];
name: "getSourcePool";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "getTotalClaimsAtClaimId";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "getTotalConfirmed";
outputs: readonly [{
internalType: "uint256";
name: "totalConfirmed";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "transferId";
type: "bytes32";
}];
name: "getTransfer";
outputs: readonly [{
components: readonly [{
internalType: "uint256";
name: "index";
type: "uint256";
}, {
internalType: "uint256";
name: "totalSent";
type: "uint256";
}];
internalType: "struct Transfer";
name: "";
type: "tuple";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "previousTransferId";
type: "bytes32";
}, {
internalType: "bytes32";
name: "transferDataHash";
type: "bytes32";
}];
name: "getTransferId";
outputs: readonly [{
internalType: "bytes32";
name: "transferId";
type: "bytes32";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "bonder";
type: "address";
}, {
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "getWithdrawableBalance";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "hardConfirmedBucketIndex";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "hardConfirmedClaimId";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "initialReserve";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "_pathId";
type: "bytes32";
}, {
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";
}, {
internalType: "address";
name: "_gateway";
type: "address";
}];
name: "initialize";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "isValidClaim";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "isValidTransfer";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
name: "lastBondedClaimIdForBonder";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "pathId";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
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: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "transferDataHash";
type: "bytes32";
}, {
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "readdClaim";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "removeClaim";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
name: "removedBalance";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
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 [];
name: "token";
outputs: readonly [{
internalType: "contract IERC20";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "totalClaims";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "totalSent";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}, {
internalType: "bytes32";
name: "";
type: "bytes32";
}];
name: "totalWithdrawableAtClaimId";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
name: "transferChain";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
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: "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: "address";
name: "to";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
name: "withdrawn";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "bytes32";
name: "pathId";
type: "bytes32";
}, {
indexed: true;
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "ClaimPushed";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "bytes32";
name: "pathId";
type: "bytes32";
}, {
indexed: true;
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "ClaimReadded";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "bytes32";
name: "pathId";
type: "bytes32";
}, {
indexed: true;
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}];
name: "ClaimRemoved";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "bytes32";
name: "pathId";
type: "bytes32";
}, {
indexed: true;
internalType: "bytes32";
name: "claimId";
type: "bytes32";
}, {
indexed: true;
internalType: "address";
name: "to";
type: "address";
}, {
indexed: false;
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
indexed: false;
internalType: "uint256";
name: "bonderFee";
type: "uint256";
}];
name: "TransferBonded";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "bytes32";
name: "pathId";
type: "bytes32";
}, {
indexed: true;
internalType: "bytes32";
name: "transferId";
type: "bytes32";
}, {
indexed: true;
internalType: "address";
name: "to";
type: "address";
}, {
indexed: false;
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
indexed: false;
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";
}];
indexed: false;
internalType: "struct Hop[]";
name: "hops";
type: "tuple[]";
}];
name: "TransferSent";
type: "event";
}] = RailsPath__factory.abi