Documentation
¶
Overview ¶
nolint
Index ¶
Constants ¶
View Source
const BridgeABI = "" /* 11083-byte string literal not displayed */
Variables ¶
View Source
var HubPoolABI, _ = abi.JSON(strings.NewReader(`
[
{
"inputs": [
{
"internalType": "uint256",
"name": "destinationChainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "l1Token",
"type": "address"
}
],
"name": "poolRebalanceRoute",
"outputs": [
{
"internalType": "address",
"name": "destinationToken",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
`))
View Source
var LifiABI, _ = abi.JSON(strings.NewReader(`[{
"name": "fillOrderOutputs",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{"name": "orderId", "type": "bytes32"},
{
"name": "outputs",
"type": "tuple[]",
"components": [
{"name": "oracle", "type": "bytes32"},
{"name": "settler", "type": "bytes32"},
{"name": "chainId", "type": "uint256"},
{"name": "token", "type": "bytes32"},
{"name": "amount", "type": "uint256"},
{"name": "recipient", "type": "bytes32"},
{"name": "call", "type": "bytes"},
{"name": "context", "type": "bytes"}
]
},
{"name": "fillDeadline", "type": "uint48"},
{"name": "fillerData", "type": "bytes"}
],
"outputs": []
}]`))
View Source
var LighterABI, _ = abi.JSON(strings.NewReader(`[{
"name": "withdraw",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{"name": "txHash", "type": "bytes32"},
{"name": "toAddress", "type": "address"},
{"name": "amount", "type": "uint256"}
],
"outputs": []
}]`))
View Source
var MayanSwiftABI, _ = abi.JSON(strings.NewReader(`[
{
"inputs":[
{
"internalType":"address",
"name":"_wormhole",
"type":"address"
},
{
"internalType":"address",
"name":"_feeManager",
"type":"address"
},
{
"internalType":"uint16",
"name":"_auctionChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"_auctionAddr",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"_solanaEmitter",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"_consistencyLevel",
"type":"uint8"
}
],
"stateMutability":"nonpayable",
"type":"constructor"
},
{
"inputs":[
],
"name":"DeadlineViolation",
"type":"error"
},
{
"inputs":[
],
"name":"DuplicateOrder",
"type":"error"
},
{
"inputs":[
],
"name":"FeesTooHigh",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidAction",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidAmount",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidAuctionMode",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidBpsFee",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidDestChain",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidEmitterAddress",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidEmitterChain",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidEvmAddr",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidGasDrop",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidOrderHash",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidOrderStatus",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidSrcChain",
"type":"error"
},
{
"inputs":[
],
"name":"InvalidWormholeFee",
"type":"error"
},
{
"inputs":[
],
"name":"OrderNotExists",
"type":"error"
},
{
"inputs":[
],
"name":"Paused",
"type":"error"
},
{
"inputs":[
],
"name":"SmallAmountIn",
"type":"error"
},
{
"inputs":[
],
"name":"Unauthorized",
"type":"error"
},
{
"anonymous":false,
"inputs":[
{
"indexed":false,
"internalType":"bytes32",
"name":"key",
"type":"bytes32"
},
{
"indexed":false,
"internalType":"uint64",
"name":"sequence",
"type":"uint64"
}
],
"name":"OrderCanceled",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":false,
"internalType":"bytes32",
"name":"key",
"type":"bytes32"
}
],
"name":"OrderCreated",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":false,
"internalType":"bytes32",
"name":"key",
"type":"bytes32"
},
{
"indexed":false,
"internalType":"uint64",
"name":"sequence",
"type":"uint64"
},
{
"indexed":false,
"internalType":"uint256",
"name":"netAmount",
"type":"uint256"
}
],
"name":"OrderFulfilled",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":false,
"internalType":"bytes32",
"name":"key",
"type":"bytes32"
},
{
"indexed":false,
"internalType":"uint256",
"name":"netAmount",
"type":"uint256"
}
],
"name":"OrderRefunded",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":false,
"internalType":"bytes32",
"name":"key",
"type":"bytes32"
}
],
"name":"OrderUnlocked",
"type":"event"
},
{
"inputs":[
],
"name":"auctionAddr",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
],
"name":"auctionChainId",
"outputs":[
{
"internalType":"uint16",
"name":"",
"type":"uint16"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"tokenIn",
"type":"bytes32"
},
{
"components":[
{
"internalType":"bytes32",
"name":"trader",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"tokenOut",
"type":"bytes32"
},
{
"internalType":"uint64",
"name":"minAmountOut",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"gasDrop",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"cancelFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"refundFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"deadline",
"type":"uint64"
},
{
"internalType":"bytes32",
"name":"destAddr",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"referrerAddr",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"referrerBps",
"type":"uint8"
},
{
"internalType":"uint8",
"name":"auctionMode",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"random",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.OrderParams",
"name":"params",
"type":"tuple"
},
{
"internalType":"uint16",
"name":"srcChainId",
"type":"uint16"
},
{
"internalType":"uint8",
"name":"protocolBps",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"canceler",
"type":"bytes32"
}
],
"name":"cancelOrder",
"outputs":[
{
"internalType":"uint64",
"name":"sequence",
"type":"uint64"
}
],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"newGuardian",
"type":"address"
}
],
"name":"changeGuardian",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
],
"name":"claimGuardian",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
],
"name":"consistencyLevel",
"outputs":[
{
"internalType":"uint8",
"name":"",
"type":"uint8"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"components":[
{
"internalType":"bytes32",
"name":"trader",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"tokenOut",
"type":"bytes32"
},
{
"internalType":"uint64",
"name":"minAmountOut",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"gasDrop",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"cancelFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"refundFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"deadline",
"type":"uint64"
},
{
"internalType":"bytes32",
"name":"destAddr",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"referrerAddr",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"referrerBps",
"type":"uint8"
},
{
"internalType":"uint8",
"name":"auctionMode",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"random",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.OrderParams",
"name":"params",
"type":"tuple"
}
],
"name":"createOrderWithEth",
"outputs":[
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
}
],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"tokenIn",
"type":"address"
},
{
"internalType":"uint256",
"name":"amountIn",
"type":"uint256"
},
{
"components":[
{
"internalType":"bytes32",
"name":"trader",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"tokenOut",
"type":"bytes32"
},
{
"internalType":"uint64",
"name":"minAmountOut",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"gasDrop",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"cancelFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"refundFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"deadline",
"type":"uint64"
},
{
"internalType":"bytes32",
"name":"destAddr",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"referrerAddr",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"referrerBps",
"type":"uint8"
},
{
"internalType":"uint8",
"name":"auctionMode",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"random",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.OrderParams",
"name":"params",
"type":"tuple"
},
{
"internalType":"uint256",
"name":"submissionFee",
"type":"uint256"
},
{
"internalType":"bytes",
"name":"signedOrderHash",
"type":"bytes"
},
{
"components":[
{
"internalType":"uint256",
"name":"value",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"deadline",
"type":"uint256"
},
{
"internalType":"uint8",
"name":"v",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"r",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"s",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.PermitParams",
"name":"permitParams",
"type":"tuple"
}
],
"name":"createOrderWithSig",
"outputs":[
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
}
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"tokenIn",
"type":"address"
},
{
"internalType":"uint256",
"name":"amountIn",
"type":"uint256"
},
{
"components":[
{
"internalType":"bytes32",
"name":"trader",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"tokenOut",
"type":"bytes32"
},
{
"internalType":"uint64",
"name":"minAmountOut",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"gasDrop",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"cancelFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"refundFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"deadline",
"type":"uint64"
},
{
"internalType":"bytes32",
"name":"destAddr",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"referrerAddr",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"referrerBps",
"type":"uint8"
},
{
"internalType":"uint8",
"name":"auctionMode",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"random",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.OrderParams",
"name":"params",
"type":"tuple"
}
],
"name":"createOrderWithToken",
"outputs":[
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
}
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
],
"name":"feeManager",
"outputs":[
{
"internalType":"contract IFeeManager",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"uint256",
"name":"fulfillAmount",
"type":"uint256"
},
{
"internalType":"bytes",
"name":"encodedVm",
"type":"bytes"
},
{
"internalType":"bytes32",
"name":"recepient",
"type":"bytes32"
},
{
"internalType":"bool",
"name":"batch",
"type":"bool"
}
],
"name":"fulfillOrder",
"outputs":[
{
"internalType":"uint64",
"name":"sequence",
"type":"uint64"
}
],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"uint256",
"name":"fulfillAmount",
"type":"uint256"
},
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"srcChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"tokenIn",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"protocolBps",
"type":"uint8"
},
{
"components":[
{
"internalType":"bytes32",
"name":"trader",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"tokenOut",
"type":"bytes32"
},
{
"internalType":"uint64",
"name":"minAmountOut",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"gasDrop",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"cancelFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"refundFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"deadline",
"type":"uint64"
},
{
"internalType":"bytes32",
"name":"destAddr",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"referrerAddr",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"referrerBps",
"type":"uint8"
},
{
"internalType":"uint8",
"name":"auctionMode",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"random",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.OrderParams",
"name":"params",
"type":"tuple"
},
{
"internalType":"bytes32",
"name":"recepient",
"type":"bytes32"
},
{
"internalType":"bool",
"name":"batch",
"type":"bool"
}
],
"name":"fulfillSimple",
"outputs":[
{
"internalType":"uint64",
"name":"sequence",
"type":"uint64"
}
],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32[]",
"name":"orderHashes",
"type":"bytes32[]"
}
],
"name":"getOrders",
"outputs":[
{
"components":[
{
"internalType":"enum MayanSwift.Status",
"name":"status",
"type":"uint8"
},
{
"internalType":"uint64",
"name":"amountIn",
"type":"uint64"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
}
],
"internalType":"struct MayanSwift.Order[]",
"name":"",
"type":"tuple[]"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
],
"name":"guardian",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
],
"name":"nextGuardian",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"name":"orders",
"outputs":[
{
"internalType":"enum MayanSwift.Status",
"name":"status",
"type":"uint8"
},
{
"internalType":"uint64",
"name":"amountIn",
"type":"uint64"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes",
"name":"encoded",
"type":"bytes"
}
],
"name":"parseFulfillPayload",
"outputs":[
{
"components":[
{
"internalType":"uint8",
"name":"action",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"destChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"destAddr",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"driver",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"tokenOut",
"type":"bytes32"
},
{
"internalType":"uint64",
"name":"promisedAmount",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"gasDrop",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"deadline",
"type":"uint64"
},
{
"internalType":"bytes32",
"name":"referrerAddr",
"type":"bytes32"
},
{
"internalType":"uint8",
"name":"referrerBps",
"type":"uint8"
},
{
"internalType":"uint8",
"name":"protocolBps",
"type":"uint8"
},
{
"internalType":"uint16",
"name":"srcChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"tokenIn",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.FulfillMsg",
"name":"fulfillMsg",
"type":"tuple"
}
],
"stateMutability":"pure",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes",
"name":"encoded",
"type":"bytes"
}
],
"name":"parseRefundPayload",
"outputs":[
{
"components":[
{
"internalType":"uint8",
"name":"action",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"srcChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"tokenIn",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"recipient",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"canceler",
"type":"bytes32"
},
{
"internalType":"uint64",
"name":"cancelFee",
"type":"uint64"
},
{
"internalType":"uint64",
"name":"refundFee",
"type":"uint64"
}
],
"internalType":"struct MayanSwift.RefundMsg",
"name":"refundMsg",
"type":"tuple"
}
],
"stateMutability":"pure",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes",
"name":"encoded",
"type":"bytes"
}
],
"name":"parseUnlockPayload",
"outputs":[
{
"components":[
{
"internalType":"uint8",
"name":"action",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"srcChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"tokenIn",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"recipient",
"type":"bytes32"
}
],
"internalType":"struct MayanSwift.UnlockMsg",
"name":"unlockMsg",
"type":"tuple"
}
],
"stateMutability":"pure",
"type":"function"
},
{
"inputs":[
],
"name":"paused",
"outputs":[
{
"internalType":"bool",
"name":"",
"type":"bool"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32[]",
"name":"orderHashes",
"type":"bytes32[]"
}
],
"name":"postBatch",
"outputs":[
{
"internalType":"uint64",
"name":"sequence",
"type":"uint64"
}
],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes",
"name":"encodedVm",
"type":"bytes"
}
],
"name":"refundOrder",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"uint8",
"name":"_consistencyLevel",
"type":"uint8"
}
],
"name":"setConsistencyLevel",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"_feeManager",
"type":"address"
}
],
"name":"setFeeManager",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"bool",
"name":"_pause",
"type":"bool"
}
],
"name":"setPause",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
],
"name":"solanaEmitter",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes",
"name":"encodedVm",
"type":"bytes"
}
],
"name":"unlockBatch",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"name":"unlockMsgs",
"outputs":[
{
"internalType":"uint8",
"name":"action",
"type":"uint8"
},
{
"internalType":"bytes32",
"name":"orderHash",
"type":"bytes32"
},
{
"internalType":"uint16",
"name":"srcChainId",
"type":"uint16"
},
{
"internalType":"bytes32",
"name":"tokenIn",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"recipient",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes",
"name":"encodedVm",
"type":"bytes"
}
],
"name":"unlockSingle",
"outputs":[
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
],
"name":"wormhole",
"outputs":[
{
"internalType":"contract IWormhole",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"stateMutability":"payable",
"type":"receive"
}
]`))
View Source
var RhinestoneABI, _ = abi.JSON(strings.NewReader(`
[
{
"type":"function",
"name":"fill",
"inputs":[
{
"name":"payload",
"type":"tuple",
"internalType":"struct IRhinestoneSpokePool.IntentFillPayload",
"components":[
{
"name":"segments",
"type":"tuple[]",
"internalType":"struct IRhinestoneSpokePool.SegmentData[]",
"components":[
{
"name":"tokenIn",
"type":"uint256[2][]",
"internalType":"uint256[2][]"
},
{
"name":"tokenOut",
"type":"uint256[2][]",
"internalType":"uint256[2][]"
},
{
"name":"originModule",
"type":"address",
"internalType":"address"
},
{
"name":"originWETHAddress",
"type":"address",
"internalType":"address"
},
{
"name":"originChainId",
"type":"uint256",
"internalType":"uint256"
},
{
"name":"compactNonce",
"type":"uint256",
"internalType":"uint256"
}
]
},
{
"name":"message",
"type":"bytes",
"internalType":"bytes"
},
{
"name":"orchestratorSig",
"type":"bytes",
"internalType":"bytes"
}
]
},
{
"name":"exclusiveRelayer",
"type":"address",
"internalType":"address"
},
{
"name":"repaymentAddresses",
"type":"address[]",
"internalType":"address[]"
},
{
"name":"repaymentChainIds",
"type":"uint256[]",
"internalType":"uint256[]"
},
{
"name":"accountCreation",
"type":"tuple",
"internalType":"AccountCreation ",
"components":[
{
"name":"account",
"type":"address",
"internalType":"address"
},
{
"name":"initCode",
"type":"bytes",
"internalType":"bytes"
}
]
}
],
"outputs":[
],
"stateMutability":"nonpayable"
},
{
"type":"function",
"name":"fill",
"inputs":[
{
"name":"payload",
"type":"tuple",
"internalType":"struct IRhinestoneSpokePool.IntentFillPayload",
"components":[
{
"name":"segments",
"type":"tuple[]",
"internalType":"struct IRhinestoneSpokePool.SegmentData[]",
"components":[
{
"name":"tokenIn",
"type":"uint256[2][]",
"internalType":"uint256[2][]"
},
{
"name":"tokenOut",
"type":"uint256[2][]",
"internalType":"uint256[2][]"
},
{
"name":"originModule",
"type":"address",
"internalType":"address"
},
{
"name":"originWETHAddress",
"type":"address",
"internalType":"address"
},
{
"name":"originChainId",
"type":"uint256",
"internalType":"uint256"
},
{
"name":"compactNonce",
"type":"uint256",
"internalType":"uint256"
}
]
},
{
"name":"message",
"type":"bytes",
"internalType":"bytes"
},
{
"name":"orchestratorSig",
"type":"bytes",
"internalType":"bytes"
}
]
},
{
"name":"exclusiveRelayer",
"type":"address",
"internalType":"address"
},
{
"name":"repaymentAddresses",
"type":"address[]",
"internalType":"address[]"
},
{
"name":"repaymentChainIds",
"type":"uint256[]",
"internalType":"uint256[]"
}
],
"outputs":[
],
"stateMutability":"nonpayable"
}
]
`))
View Source
var SpokePoolABI, _ = abi.JSON(strings.NewReader(`
[
{
"inputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "depositor",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "recipient",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "exclusiveRelayer",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "inputToken",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "outputToken",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "inputAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "outputAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "originChainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "depositId",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "fillDeadline",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "exclusivityDeadline",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "message",
"type": "bytes"
}
],
"internalType": "struct V3SpokePoolInterface.V3RelayData",
"name": "relayData",
"type": "tuple"
},
{
"internalType": "uint256",
"name": "repaymentChainId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "repaymentAddress",
"type": "bytes32"
}
],
"name": "fillRelay",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "inputToken",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "outputToken",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "inputAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "outputAmount",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "destinationChainId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "depositId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint32",
"name": "quoteTimestamp",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "fillDeadline",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "exclusivityDeadline",
"type": "uint32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "depositor",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "recipient",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "exclusiveRelayer",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "message",
"type": "bytes"
}
],
"name": "FundsDeposited",
"type": "event"
}
]
`))
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.