@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
264 lines • 7.38 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IForwarder__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "domainSeparator",
type: "bytes32",
},
{
indexed: false,
internalType: "bytes",
name: "domainValue",
type: "bytes",
},
],
name: "DomainRegistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "typeHash",
type: "bytes32",
},
{
indexed: false,
internalType: "string",
name: "typeStr",
type: "string",
},
],
name: "RequestTypeRegistered",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
],
name: "getNonce",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
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: "forwardRequest",
type: "tuple",
},
{
internalType: "bytes32",
name: "domainSeparator",
type: "bytes32",
},
{
internalType: "bytes32",
name: "requestTypeHash",
type: "bytes32",
},
{
internalType: "bytes",
name: "suffixData",
type: "bytes",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
],
name: "verify",
outputs: [],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
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: "forwardRequest",
type: "tuple",
},
{
internalType: "bytes32",
name: "domainSeparator",
type: "bytes32",
},
{
internalType: "bytes32",
name: "requestTypeHash",
type: "bytes32",
},
{
internalType: "bytes",
name: "suffixData",
type: "bytes",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
],
name: "execute",
outputs: [
{
internalType: "bool",
name: "success",
type: "bool",
},
{
internalType: "bytes",
name: "ret",
type: "bytes",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "typeName",
type: "string",
},
{
internalType: "string",
name: "typeSuffix",
type: "string",
},
],
name: "registerRequestType",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "string",
name: "version",
type: "string",
},
],
name: "registerDomainSeparator",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class IForwarder__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IForwarder__factory = IForwarder__factory;
IForwarder__factory.abi = _abi;
//# sourceMappingURL=IForwarder__factory.js.map