@deliquifiedlabs/uniswapx-sdk
Version:
SDK for the UniswapX protocol
165 lines • 7.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExclusiveFillerValidation__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [
{
internalType: "address",
name: "filler",
type: "address",
},
],
name: "NotExclusiveFiller",
type: "error",
},
{
inputs: [
{
internalType: "address",
name: "filler",
type: "address",
},
{
components: [
{
components: [
{
internalType: "contract IReactor",
name: "reactor",
type: "address",
},
{
internalType: "address",
name: "swapper",
type: "address",
},
{
internalType: "uint256",
name: "nonce",
type: "uint256",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
{
internalType: "contract IValidationCallback",
name: "additionalValidationContract",
type: "address",
},
{
internalType: "bytes",
name: "additionalValidationData",
type: "bytes",
},
],
internalType: "struct OrderInfo",
name: "info",
type: "tuple",
},
{
components: [
{
internalType: "contract ERC20",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint256",
name: "maxAmount",
type: "uint256",
},
],
internalType: "struct InputToken",
name: "input",
type: "tuple",
},
{
components: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "address",
name: "recipient",
type: "address",
},
],
internalType: "struct OutputToken[]",
name: "outputs",
type: "tuple[]",
},
{
internalType: "bytes",
name: "sig",
type: "bytes",
},
{
internalType: "bytes32",
name: "hash",
type: "bytes32",
},
],
internalType: "struct ResolvedOrder",
name: "resolvedOrder",
type: "tuple",
},
],
name: "validate",
outputs: [],
stateMutability: "view",
type: "function",
},
];
const _bytecode = "0x608060405234801561001057600080fd5b5061028e806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80636e84ba2b14610030575b600080fd5b61004361003e36600461012b565b610045565b005b6000806100528380610182565b6100609060a08101906101c0565b81019061006d919061022c565b915091504281101580156100ad57508173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b15610100576040517f75c1bb1400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260240160405180910390fd5b50505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461012857600080fd5b50565b6000806040838503121561013e57600080fd5b823561014981610106565b9150602083013567ffffffffffffffff81111561016557600080fd5b830160e0818603121561017757600080fd5b809150509250929050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff418336030181126101b657600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126101f557600080fd5b83018035915067ffffffffffffffff82111561021057600080fd5b60200191503681900382131561022557600080fd5b9250929050565b6000806040838503121561023f57600080fd5b823561024a81610106565b94602093909301359350505056fea26469706673582212202652af5f1081880a9970e6ddff1d7310c1d0628325e5337a98595a88d332dd8164736f6c63430008130033";
const isSuperArgs = (xs) => xs.length > 1;
class ExclusiveFillerValidation__factory extends ethers_1.ContractFactory {
constructor(...args) {
if (isSuperArgs(args)) {
super(...args);
}
else {
super(_abi, _bytecode, args[0]);
}
}
deploy(overrides) {
return super.deploy(overrides || {});
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
attach(address) {
return super.attach(address);
}
connect(signer) {
return super.connect(signer);
}
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.ExclusiveFillerValidation__factory = ExclusiveFillerValidation__factory;
ExclusiveFillerValidation__factory.bytecode = _bytecode;
ExclusiveFillerValidation__factory.abi = _abi;
//# sourceMappingURL=ExclusiveFillerValidation__factory.js.map