@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
576 lines • 17.9 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.BasePaymaster__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferred",
type: "event",
},
{
inputs: [],
name: "CALLDATA_SIZE_LIMIT",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "FORWARDER_HUB_OVERHEAD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "PAYMASTER_ACCEPTANCE_BUDGET",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "POST_RELAYED_CALL_GAS_LIMIT",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "PRE_RELAYED_CALL_GAS_LIMIT",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "context",
type: "bytes",
},
{
internalType: "bool",
name: "success",
type: "bool",
},
{
internalType: "uint256",
name: "gasUseWithoutPost",
type: "uint256",
},
{
components: [
{
internalType: "uint256",
name: "gasPrice",
type: "uint256",
},
{
internalType: "uint256",
name: "pctRelayFee",
type: "uint256",
},
{
internalType: "uint256",
name: "baseRelayFee",
type: "uint256",
},
{
internalType: "address",
name: "relayWorker",
type: "address",
},
{
internalType: "address",
name: "paymaster",
type: "address",
},
{
internalType: "address",
name: "forwarder",
type: "address",
},
{
internalType: "bytes",
name: "paymasterData",
type: "bytes",
},
{
internalType: "uint256",
name: "clientId",
type: "uint256",
},
],
internalType: "struct GsnTypes.RelayData",
name: "relayData",
type: "tuple",
},
],
name: "postRelayedCall",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
components: [
{
components: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "value",
type: "uint256",
},
{
internalType: "uint256",
name: "gas",
type: "uint256",
},
{
internalType: "uint256",
name: "nonce",
type: "uint256",
},
{
internalType: "bytes",
name: "data",
type: "bytes",
},
{
internalType: "uint256",
name: "validUntil",
type: "uint256",
},
],
internalType: "struct IForwarder.ForwardRequest",
name: "request",
type: "tuple",
},
{
components: [
{
internalType: "uint256",
name: "gasPrice",
type: "uint256",
},
{
internalType: "uint256",
name: "pctRelayFee",
type: "uint256",
},
{
internalType: "uint256",
name: "baseRelayFee",
type: "uint256",
},
{
internalType: "address",
name: "relayWorker",
type: "address",
},
{
internalType: "address",
name: "paymaster",
type: "address",
},
{
internalType: "address",
name: "forwarder",
type: "address",
},
{
internalType: "bytes",
name: "paymasterData",
type: "bytes",
},
{
internalType: "uint256",
name: "clientId",
type: "uint256",
},
],
internalType: "struct GsnTypes.RelayData",
name: "relayData",
type: "tuple",
},
],
internalType: "struct GsnTypes.RelayRequest",
name: "relayRequest",
type: "tuple",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
{
internalType: "bytes",
name: "approvalData",
type: "bytes",
},
{
internalType: "uint256",
name: "maxPossibleGas",
type: "uint256",
},
],
name: "preRelayedCall",
outputs: [
{
internalType: "bytes",
name: "context",
type: "bytes",
},
{
internalType: "bool",
name: "rejectOnRecipientRevert",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "versionPaymaster",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
stateMutability: "payable",
type: "receive",
},
{
inputs: [],
name: "getHubAddr",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getGasAndDataLimits",
outputs: [
{
components: [
{
internalType: "uint256",
name: "acceptanceBudget",
type: "uint256",
},
{
internalType: "uint256",
name: "preRelayedCallGasLimit",
type: "uint256",
},
{
internalType: "uint256",
name: "postRelayedCallGasLimit",
type: "uint256",
},
{
internalType: "uint256",
name: "calldataSizeLimit",
type: "uint256",
},
],
internalType: "struct IPaymaster.GasAndDataLimits",
name: "limits",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
components: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "value",
type: "uint256",
},
{
internalType: "uint256",
name: "gas",
type: "uint256",
},
{
internalType: "uint256",
name: "nonce",
type: "uint256",
},
{
internalType: "bytes",
name: "data",
type: "bytes",
},
{
internalType: "uint256",
name: "validUntil",
type: "uint256",
},
],
internalType: "struct IForwarder.ForwardRequest",
name: "request",
type: "tuple",
},
{
components: [
{
internalType: "uint256",
name: "gasPrice",
type: "uint256",
},
{
internalType: "uint256",
name: "pctRelayFee",
type: "uint256",
},
{
internalType: "uint256",
name: "baseRelayFee",
type: "uint256",
},
{
internalType: "address",
name: "relayWorker",
type: "address",
},
{
internalType: "address",
name: "paymaster",
type: "address",
},
{
internalType: "address",
name: "forwarder",
type: "address",
},
{
internalType: "bytes",
name: "paymasterData",
type: "bytes",
},
{
internalType: "uint256",
name: "clientId",
type: "uint256",
},
],
internalType: "struct GsnTypes.RelayData",
name: "relayData",
type: "tuple",
},
],
internalType: "struct GsnTypes.RelayRequest",
name: "relayRequest",
type: "tuple",
},
],
name: "_verifyForwarder",
outputs: [],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IRelayHub",
name: "hub",
type: "address",
},
],
name: "setRelayHub",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "forwarder",
type: "address",
},
],
name: "setTrustedForwarder",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "trustedForwarder",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRelayHubDeposit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "address payable",
name: "target",
type: "address",
},
],
name: "withdrawRelayHubDepositTo",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class BasePaymaster__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.BasePaymaster__factory = BasePaymaster__factory;
BasePaymaster__factory.abi = _abi;
//# sourceMappingURL=BasePaymaster__factory.js.map