[
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "_railgun",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "_wBase",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "constructor"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "callIndex",
                "type": "uint256"
            },
            {
                "internalType": "bytes",
                "name": "revertReason",
                "type": "bytes"
            }
        ],
        "name": "CallFailed",
        "type": "error"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "uint256",
                "name": "callIndex",
                "type": "uint256"
            },
            {
                "indexed": false,
                "internalType": "bytes",
                "name": "revertReason",
                "type": "bytes"
            }
        ],
        "name": "CallError",
        "type": "event"
    },
    {
        "inputs": [],
        "name": "DOMAIN_SEPARATOR",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "EXECUTE_TYPEHASH",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "MULTICALL_TYPEHASH",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "adaptImplementation",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "components": [
                    {
                        "components": [
                            {
                                "components": [
                                    {
                                        "internalType": "uint256",
                                        "name": "x",
                                        "type": "uint256"
                                    },
                                    {
                                        "internalType": "uint256",
                                        "name": "y",
                                        "type": "uint256"
                                    }
                                ],
                                "internalType": "struct G1Point",
                                "name": "a",
                                "type": "tuple"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "uint256[2]",
                                        "name": "x",
                                        "type": "uint256[2]"
                                    },
                                    {
                                        "internalType": "uint256[2]",
                                        "name": "y",
                                        "type": "uint256[2]"
                                    }
                                ],
                                "internalType": "struct G2Point",
                                "name": "b",
                                "type": "tuple"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "uint256",
                                        "name": "x",
                                        "type": "uint256"
                                    },
                                    {
                                        "internalType": "uint256",
                                        "name": "y",
                                        "type": "uint256"
                                    }
                                ],
                                "internalType": "struct G1Point",
                                "name": "c",
                                "type": "tuple"
                            }
                        ],
                        "internalType": "struct SnarkProof",
                        "name": "proof",
                        "type": "tuple"
                    },
                    {
                        "internalType": "bytes32",
                        "name": "merkleRoot",
                        "type": "bytes32"
                    },
                    {
                        "internalType": "bytes32[]",
                        "name": "nullifiers",
                        "type": "bytes32[]"
                    },
                    {
                        "internalType": "bytes32[]",
                        "name": "commitments",
                        "type": "bytes32[]"
                    },
                    {
                        "components": [
                            {
                                "internalType": "uint16",
                                "name": "treeNumber",
                                "type": "uint16"
                            },
                            {
                                "internalType": "uint72",
                                "name": "minGasPrice",
                                "type": "uint72"
                            },
                            {
                                "internalType": "enum UnshieldType",
                                "name": "unshield",
                                "type": "uint8"
                            },
                            {
                                "internalType": "uint64",
                                "name": "chainID",
                                "type": "uint64"
                            },
                            {
                                "internalType": "address",
                                "name": "adaptContract",
                                "type": "address"
                            },
                            {
                                "internalType": "bytes32",
                                "name": "adaptParams",
                                "type": "bytes32"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "bytes32[4]",
                                        "name": "ciphertext",
                                        "type": "bytes32[4]"
                                    },
                                    {
                                        "internalType": "bytes32",
                                        "name": "blindedSenderViewingKey",
                                        "type": "bytes32"
                                    },
                                    {
                                        "internalType": "bytes32",
                                        "name": "blindedReceiverViewingKey",
                                        "type": "bytes32"
                                    },
                                    {
                                        "internalType": "bytes",
                                        "name": "annotationData",
                                        "type": "bytes"
                                    },
                                    {
                                        "internalType": "bytes",
                                        "name": "memo",
                                        "type": "bytes"
                                    }
                                ],
                                "internalType": "struct CommitmentCiphertext[]",
                                "name": "commitmentCiphertext",
                                "type": "tuple[]"
                            }
                        ],
                        "internalType": "struct BoundParams",
                        "name": "boundParams",
                        "type": "tuple"
                    },
                    {
                        "components": [
                            {
                                "internalType": "bytes32",
                                "name": "npk",
                                "type": "bytes32"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "enum TokenType",
                                        "name": "tokenType",
                                        "type": "uint8"
                                    },
                                    {
                                        "internalType": "address",
                                        "name": "tokenAddress",
                                        "type": "address"
                                    },
                                    {
                                        "internalType": "uint256",
                                        "name": "tokenSubID",
                                        "type": "uint256"
                                    }
                                ],
                                "internalType": "struct TokenData",
                                "name": "token",
                                "type": "tuple"
                            },
                            {
                                "internalType": "uint120",
                                "name": "value",
                                "type": "uint120"
                            }
                        ],
                        "internalType": "struct CommitmentPreimage",
                        "name": "unshieldPreimage",
                        "type": "tuple"
                    }
                ],
                "internalType": "struct Transaction[]",
                "name": "_transactions",
                "type": "tuple[]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "requireSuccess",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "minGasLimit",
                        "type": "uint256"
                    },
                    {
                        "components": [
                            {
                                "internalType": "address",
                                "name": "to",
                                "type": "address"
                            },
                            {
                                "internalType": "bytes",
                                "name": "data",
                                "type": "bytes"
                            },
                            {
                                "internalType": "uint256",
                                "name": "value",
                                "type": "uint256"
                            }
                        ],
                        "internalType": "struct RelayAdapt7702.Call[]",
                        "name": "calls",
                        "type": "tuple[]"
                    }
                ],
                "internalType": "struct RelayAdapt7702.ActionData",
                "name": "_actionData",
                "type": "tuple"
            },
            {
                "internalType": "bytes",
                "name": "_signature",
                "type": "bytes"
            }
        ],
        "name": "execute",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "components": [
                    {
                        "components": [
                            {
                                "components": [
                                    {
                                        "internalType": "uint256",
                                        "name": "x",
                                        "type": "uint256"
                                    },
                                    {
                                        "internalType": "uint256",
                                        "name": "y",
                                        "type": "uint256"
                                    }
                                ],
                                "internalType": "struct G1Point",
                                "name": "a",
                                "type": "tuple"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "uint256[2]",
                                        "name": "x",
                                        "type": "uint256[2]"
                                    },
                                    {
                                        "internalType": "uint256[2]",
                                        "name": "y",
                                        "type": "uint256[2]"
                                    }
                                ],
                                "internalType": "struct G2Point",
                                "name": "b",
                                "type": "tuple"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "uint256",
                                        "name": "x",
                                        "type": "uint256"
                                    },
                                    {
                                        "internalType": "uint256",
                                        "name": "y",
                                        "type": "uint256"
                                    }
                                ],
                                "internalType": "struct G1Point",
                                "name": "c",
                                "type": "tuple"
                            }
                        ],
                        "internalType": "struct SnarkProof",
                        "name": "proof",
                        "type": "tuple"
                    },
                    {
                        "internalType": "bytes32",
                        "name": "merkleRoot",
                        "type": "bytes32"
                    },
                    {
                        "internalType": "bytes32[]",
                        "name": "nullifiers",
                        "type": "bytes32[]"
                    },
                    {
                        "internalType": "bytes32[]",
                        "name": "commitments",
                        "type": "bytes32[]"
                    },
                    {
                        "components": [
                            {
                                "internalType": "uint16",
                                "name": "treeNumber",
                                "type": "uint16"
                            },
                            {
                                "internalType": "uint72",
                                "name": "minGasPrice",
                                "type": "uint72"
                            },
                            {
                                "internalType": "enum UnshieldType",
                                "name": "unshield",
                                "type": "uint8"
                            },
                            {
                                "internalType": "uint64",
                                "name": "chainID",
                                "type": "uint64"
                            },
                            {
                                "internalType": "address",
                                "name": "adaptContract",
                                "type": "address"
                            },
                            {
                                "internalType": "bytes32",
                                "name": "adaptParams",
                                "type": "bytes32"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "bytes32[4]",
                                        "name": "ciphertext",
                                        "type": "bytes32[4]"
                                    },
                                    {
                                        "internalType": "bytes32",
                                        "name": "blindedSenderViewingKey",
                                        "type": "bytes32"
                                    },
                                    {
                                        "internalType": "bytes32",
                                        "name": "blindedReceiverViewingKey",
                                        "type": "bytes32"
                                    },
                                    {
                                        "internalType": "bytes",
                                        "name": "annotationData",
                                        "type": "bytes"
                                    },
                                    {
                                        "internalType": "bytes",
                                        "name": "memo",
                                        "type": "bytes"
                                    }
                                ],
                                "internalType": "struct CommitmentCiphertext[]",
                                "name": "commitmentCiphertext",
                                "type": "tuple[]"
                            }
                        ],
                        "internalType": "struct BoundParams",
                        "name": "boundParams",
                        "type": "tuple"
                    },
                    {
                        "components": [
                            {
                                "internalType": "bytes32",
                                "name": "npk",
                                "type": "bytes32"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "enum TokenType",
                                        "name": "tokenType",
                                        "type": "uint8"
                                    },
                                    {
                                        "internalType": "address",
                                        "name": "tokenAddress",
                                        "type": "address"
                                    },
                                    {
                                        "internalType": "uint256",
                                        "name": "tokenSubID",
                                        "type": "uint256"
                                    }
                                ],
                                "internalType": "struct TokenData",
                                "name": "token",
                                "type": "tuple"
                            },
                            {
                                "internalType": "uint120",
                                "name": "value",
                                "type": "uint120"
                            }
                        ],
                        "internalType": "struct CommitmentPreimage",
                        "name": "unshieldPreimage",
                        "type": "tuple"
                    }
                ],
                "internalType": "struct Transaction[]",
                "name": "_transactions",
                "type": "tuple[]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "requireSuccess",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "minGasLimit",
                        "type": "uint256"
                    },
                    {
                        "components": [
                            {
                                "internalType": "address",
                                "name": "to",
                                "type": "address"
                            },
                            {
                                "internalType": "bytes",
                                "name": "data",
                                "type": "bytes"
                            },
                            {
                                "internalType": "uint256",
                                "name": "value",
                                "type": "uint256"
                            }
                        ],
                        "internalType": "struct RelayAdapt7702.Call[]",
                        "name": "calls",
                        "type": "tuple[]"
                    }
                ],
                "internalType": "struct RelayAdapt7702.ActionData",
                "name": "_actionData",
                "type": "tuple"
            }
        ],
        "name": "getExecutePayloadHash",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bool",
                "name": "_requireSuccess",
                "type": "bool"
            },
            {
                "components": [
                    {
                        "internalType": "address",
                        "name": "to",
                        "type": "address"
                    },
                    {
                        "internalType": "bytes",
                        "name": "data",
                        "type": "bytes"
                    },
                    {
                        "internalType": "uint256",
                        "name": "value",
                        "type": "uint256"
                    }
                ],
                "internalType": "struct RelayAdapt7702.Call[]",
                "name": "_calls",
                "type": "tuple[]"
            },
            {
                "internalType": "uint256",
                "name": "_nonce",
                "type": "uint256"
            }
        ],
        "name": "getMulticallPayloadHash",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bool",
                "name": "_requireSuccess",
                "type": "bool"
            },
            {
                "components": [
                    {
                        "internalType": "address",
                        "name": "to",
                        "type": "address"
                    },
                    {
                        "internalType": "bytes",
                        "name": "data",
                        "type": "bytes"
                    },
                    {
                        "internalType": "uint256",
                        "name": "value",
                        "type": "uint256"
                    }
                ],
                "internalType": "struct RelayAdapt7702.Call[]",
                "name": "_calls",
                "type": "tuple[]"
            },
            {
                "internalType": "uint256",
                "name": "_nonce",
                "type": "uint256"
            },
            {
                "internalType": "bytes",
                "name": "_signature",
                "type": "bytes"
            }
        ],
        "name": "multicall",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "nonce",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "railgun",
        "outputs": [
            {
                "internalType": "contract RailgunSmartWallet",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "components": [
                    {
                        "components": [
                            {
                                "internalType": "bytes32",
                                "name": "npk",
                                "type": "bytes32"
                            },
                            {
                                "components": [
                                    {
                                        "internalType": "enum TokenType",
                                        "name": "tokenType",
                                        "type": "uint8"
                                    },
                                    {
                                        "internalType": "address",
                                        "name": "tokenAddress",
                                        "type": "address"
                                    },
                                    {
                                        "internalType": "uint256",
                                        "name": "tokenSubID",
                                        "type": "uint256"
                                    }
                                ],
                                "internalType": "struct TokenData",
                                "name": "token",
                                "type": "tuple"
                            },
                            {
                                "internalType": "uint120",
                                "name": "value",
                                "type": "uint120"
                            }
                        ],
                        "internalType": "struct CommitmentPreimage",
                        "name": "preimage",
                        "type": "tuple"
                    },
                    {
                        "components": [
                            {
                                "internalType": "bytes32[3]",
                                "name": "encryptedBundle",
                                "type": "bytes32[3]"
                            },
                            {
                                "internalType": "bytes32",
                                "name": "shieldKey",
                                "type": "bytes32"
                            }
                        ],
                        "internalType": "struct ShieldCiphertext",
                        "name": "ciphertext",
                        "type": "tuple"
                    }
                ],
                "internalType": "struct ShieldRequest[]",
                "name": "_shieldRequests",
                "type": "tuple[]"
            }
        ],
        "name": "shield",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "components": [
                    {
                        "components": [
                            {
                                "internalType": "enum TokenType",
                                "name": "tokenType",
                                "type": "uint8"
                            },
                            {
                                "internalType": "address",
                                "name": "tokenAddress",
                                "type": "address"
                            },
                            {
                                "internalType": "uint256",
                                "name": "tokenSubID",
                                "type": "uint256"
                            }
                        ],
                        "internalType": "struct TokenData",
                        "name": "token",
                        "type": "tuple"
                    },
                    {
                        "internalType": "address",
                        "name": "to",
                        "type": "address"
                    },
                    {
                        "internalType": "uint256",
                        "name": "value",
                        "type": "uint256"
                    }
                ],
                "internalType": "struct RelayAdapt7702.TokenTransfer[]",
                "name": "_transfers",
                "type": "tuple[]"
            }
        ],
        "name": "transfer",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "_amount",
                "type": "uint256"
            }
        ],
        "name": "unwrapBase",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "wBase",
        "outputs": [
            {
                "internalType": "contract IWBase",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "_amount",
                "type": "uint256"
            }
        ],
        "name": "wrapBase",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "stateMutability": "payable",
        "type": "receive"
    }
]
