@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
307 lines • 9.92 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IPaymaster__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
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: [],
name: "trustedForwarder",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getHubAddr",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRelayHubDeposit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
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",
},
{
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: [
{
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: [],
name: "versionPaymaster",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
];
class IPaymaster__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IPaymaster__factory = IPaymaster__factory;
IPaymaster__factory.abi = _abi;
//# sourceMappingURL=IPaymaster__factory.js.map