@anton-seriesfi/doppler-v3-sdk
Version:
SDK for interacting with Doppler v3 protocol
1,568 lines (1,567 loc) • 100 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.v4MigratorAbi = exports.BundlerAbi = exports.uniswapV2Router02Abi = exports.quoterV2Abi = exports.uniswapV3InitializerAbi = exports.airlockAbi = exports.uniswapV3PoolAbi = exports.derc20Abi = void 0;
exports.derc20Abi = [
{
type: "constructor",
inputs: [
{ name: "name_", type: "string", internalType: "string" },
{ name: "symbol_", type: "string", internalType: "string" },
{ name: "initialSupply", type: "uint256", internalType: "uint256" },
{ name: "recipient", type: "address", internalType: "address" },
{ name: "owner_", type: "address", internalType: "address" },
{ name: "yearlyMintRate_", type: "uint256", internalType: "uint256" },
{ name: "vestingDuration_", type: "uint256", internalType: "uint256" },
{ name: "recipients_", type: "address[]", internalType: "address[]" },
{ name: "amounts_", type: "uint256[]", internalType: "uint256[]" },
{ name: "tokenURI_", type: "string", internalType: "string" },
],
stateMutability: "nonpayable",
},
{
type: "function",
name: "CLOCK_MODE",
inputs: [],
outputs: [{ name: "", type: "string", internalType: "string" }],
stateMutability: "view",
},
{
type: "function",
name: "DOMAIN_SEPARATOR",
inputs: [],
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
stateMutability: "view",
},
{
type: "function",
name: "allowance",
inputs: [
{ name: "owner", type: "address", internalType: "address" },
{ name: "spender", type: "address", internalType: "address" },
],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "approve",
inputs: [
{ name: "spender", type: "address", internalType: "address" },
{ name: "value", type: "uint256", internalType: "uint256" },
],
outputs: [{ name: "", type: "bool", internalType: "bool" }],
stateMutability: "nonpayable",
},
{
type: "function",
name: "balanceOf",
inputs: [{ name: "account", type: "address", internalType: "address" }],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "burn",
inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "checkpoints",
inputs: [
{ name: "account", type: "address", internalType: "address" },
{ name: "pos", type: "uint32", internalType: "uint32" },
],
outputs: [
{
name: "",
type: "tuple",
internalType: "struct Checkpoints.Checkpoint208",
components: [
{ name: "_key", type: "uint48", internalType: "uint48" },
{ name: "_value", type: "uint208", internalType: "uint208" },
],
},
],
stateMutability: "view",
},
{
type: "function",
name: "clock",
inputs: [],
outputs: [{ name: "", type: "uint48", internalType: "uint48" }],
stateMutability: "view",
},
{
type: 'function',
name: 'computeAvailableVestedAmount',
inputs: [{ name: 'account', type: 'address', internalType: 'address' }],
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
stateMutability: 'view',
},
{
type: "function",
name: "currentYearStart",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "decimals",
inputs: [],
outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
stateMutability: "view",
},
{
type: "function",
name: "delegate",
inputs: [{ name: "delegatee", type: "address", internalType: "address" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "delegateBySig",
inputs: [
{ name: "delegatee", type: "address", internalType: "address" },
{ name: "nonce", type: "uint256", internalType: "uint256" },
{ name: "expiry", type: "uint256", internalType: "uint256" },
{ name: "v", type: "uint8", internalType: "uint8" },
{ name: "r", type: "bytes32", internalType: "bytes32" },
{ name: "s", type: "bytes32", internalType: "bytes32" },
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "delegates",
inputs: [{ name: "account", type: "address", internalType: "address" }],
outputs: [{ name: "", type: "address", internalType: "address" }],
stateMutability: "view",
},
{
type: "function",
name: "eip712Domain",
inputs: [],
outputs: [
{ name: "fields", type: "bytes1", internalType: "bytes1" },
{ name: "name", type: "string", internalType: "string" },
{ name: "version", type: "string", internalType: "string" },
{ name: "chainId", type: "uint256", internalType: "uint256" },
{ name: "verifyingContract", type: "address", internalType: "address" },
{ name: "salt", type: "bytes32", internalType: "bytes32" },
{ name: "extensions", type: "uint256[]", internalType: "uint256[]" },
],
stateMutability: "view",
},
{
type: "function",
name: "getPastTotalSupply",
inputs: [{ name: "timepoint", type: "uint256", internalType: "uint256" }],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "getPastVotes",
inputs: [
{ name: "account", type: "address", internalType: "address" },
{ name: "timepoint", type: "uint256", internalType: "uint256" },
],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "getVestingDataOf",
inputs: [{ name: "account", type: "address", internalType: "address" }],
outputs: [
{ name: "totalAmount", type: "uint256", internalType: "uint256" },
{ name: "releasedAmount", type: "uint256", internalType: "uint256" },
],
stateMutability: "view",
},
{
type: "function",
name: "getVotes",
inputs: [{ name: "account", type: "address", internalType: "address" }],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "isPoolUnlocked",
inputs: [],
outputs: [{ name: "", type: "bool", internalType: "bool" }],
stateMutability: "view",
},
{
type: "function",
name: "lastMintTimestamp",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "lockPool",
inputs: [{ name: "pool_", type: "address", internalType: "address" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "mintInflation",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "name",
inputs: [],
outputs: [{ name: "", type: "string", internalType: "string" }],
stateMutability: "view",
},
{
type: "function",
name: "nonces",
inputs: [{ name: "owner_", type: "address", internalType: "address" }],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "numCheckpoints",
inputs: [{ name: "account", type: "address", internalType: "address" }],
outputs: [{ name: "", type: "uint32", internalType: "uint32" }],
stateMutability: "view",
},
{
type: "function",
name: "owner",
inputs: [],
outputs: [{ name: "", type: "address", internalType: "address" }],
stateMutability: "view",
},
{
type: "function",
name: "permit",
inputs: [
{ name: "owner", type: "address", internalType: "address" },
{ name: "spender", type: "address", internalType: "address" },
{ name: "value", type: "uint256", internalType: "uint256" },
{ name: "deadline", type: "uint256", internalType: "uint256" },
{ name: "v", type: "uint8", internalType: "uint8" },
{ name: "r", type: "bytes32", internalType: "bytes32" },
{ name: "s", type: "bytes32", internalType: "bytes32" },
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "pool",
inputs: [],
outputs: [{ name: "", type: "address", internalType: "address" }],
stateMutability: "view",
},
{
type: "function",
name: "release",
inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "renounceOwnership",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "symbol",
inputs: [],
outputs: [{ name: "", type: "string", internalType: "string" }],
stateMutability: "view",
},
{
type: "function",
name: "tokenURI",
inputs: [],
outputs: [{ name: "", type: "string", internalType: "string" }],
stateMutability: "view",
},
{
type: "function",
name: "totalSupply",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "transfer",
inputs: [
{ name: "to", type: "address", internalType: "address" },
{ name: "value", type: "uint256", internalType: "uint256" },
],
outputs: [{ name: "", type: "bool", internalType: "bool" }],
stateMutability: "nonpayable",
},
{
type: "function",
name: "transferFrom",
inputs: [
{ name: "from", type: "address", internalType: "address" },
{ name: "to", type: "address", internalType: "address" },
{ name: "value", type: "uint256", internalType: "uint256" },
],
outputs: [{ name: "", type: "bool", internalType: "bool" }],
stateMutability: "nonpayable",
},
{
type: "function",
name: "transferOwnership",
inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "unlockPool",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "updateMintRate",
inputs: [{ name: "newMintRate", type: "uint256", internalType: "uint256" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "vestedTotalAmount",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "vestingDuration",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "vestingStart",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "yearlyMintRate",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "event",
name: "Approval",
inputs: [
{
name: "owner",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "spender",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "value",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "DelegateChanged",
inputs: [
{
name: "delegator",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "fromDelegate",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "toDelegate",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "DelegateVotesChanged",
inputs: [
{
name: "delegate",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "previousVotes",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "newVotes",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{ type: "event", name: "EIP712DomainChanged", inputs: [], anonymous: false },
{
type: "event",
name: "OwnershipTransferred",
inputs: [
{
name: "previousOwner",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "newOwner",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "Transfer",
inputs: [
{ name: "from", type: "address", indexed: true, internalType: "address" },
{ name: "to", type: "address", indexed: true, internalType: "address" },
{
name: "value",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{ type: "error", name: "ArrayLengthsMismatch", inputs: [] },
{ type: "error", name: "CheckpointUnorderedInsertion", inputs: [] },
{ type: "error", name: "ECDSAInvalidSignature", inputs: [] },
{
type: "error",
name: "ECDSAInvalidSignatureLength",
inputs: [{ name: "length", type: "uint256", internalType: "uint256" }],
},
{
type: "error",
name: "ECDSAInvalidSignatureS",
inputs: [{ name: "s", type: "bytes32", internalType: "bytes32" }],
},
{
type: "error",
name: "ERC20ExceededSafeSupply",
inputs: [
{ name: "increasedSupply", type: "uint256", internalType: "uint256" },
{ name: "cap", type: "uint256", internalType: "uint256" },
],
},
{
type: "error",
name: "ERC20InsufficientAllowance",
inputs: [
{ name: "spender", type: "address", internalType: "address" },
{ name: "allowance", type: "uint256", internalType: "uint256" },
{ name: "needed", type: "uint256", internalType: "uint256" },
],
},
{
type: "error",
name: "ERC20InsufficientBalance",
inputs: [
{ name: "sender", type: "address", internalType: "address" },
{ name: "balance", type: "uint256", internalType: "uint256" },
{ name: "needed", type: "uint256", internalType: "uint256" },
],
},
{
type: "error",
name: "ERC20InvalidApprover",
inputs: [{ name: "approver", type: "address", internalType: "address" }],
},
{
type: "error",
name: "ERC20InvalidReceiver",
inputs: [{ name: "receiver", type: "address", internalType: "address" }],
},
{
type: "error",
name: "ERC20InvalidSender",
inputs: [{ name: "sender", type: "address", internalType: "address" }],
},
{
type: "error",
name: "ERC20InvalidSpender",
inputs: [{ name: "spender", type: "address", internalType: "address" }],
},
{
type: "error",
name: "ERC2612ExpiredSignature",
inputs: [{ name: "deadline", type: "uint256", internalType: "uint256" }],
},
{
type: "error",
name: "ERC2612InvalidSigner",
inputs: [
{ name: "signer", type: "address", internalType: "address" },
{ name: "owner", type: "address", internalType: "address" },
],
},
{
type: "error",
name: "ERC5805FutureLookup",
inputs: [
{ name: "timepoint", type: "uint256", internalType: "uint256" },
{ name: "clock", type: "uint48", internalType: "uint48" },
],
},
{ type: "error", name: "ERC6372InconsistentClock", inputs: [] },
{
type: "error",
name: "InvalidAccountNonce",
inputs: [
{ name: "account", type: "address", internalType: "address" },
{ name: "currentNonce", type: "uint256", internalType: "uint256" },
],
},
{ type: "error", name: "InvalidShortString", inputs: [] },
{
type: "error",
name: "MaxPreMintPerAddressExceeded",
inputs: [
{ name: "amount", type: "uint256", internalType: "uint256" },
{ name: "limit", type: "uint256", internalType: "uint256" },
],
},
{
type: "error",
name: "MaxTotalPreMintExceeded",
inputs: [
{ name: "amount", type: "uint256", internalType: "uint256" },
{ name: "limit", type: "uint256", internalType: "uint256" },
],
},
{
type: "error",
name: "MaxTotalVestedExceeded",
inputs: [
{ name: "amount", type: "uint256", internalType: "uint256" },
{ name: "limit", type: "uint256", internalType: "uint256" },
],
},
{
type: "error",
name: "MaxYearlyMintRateExceeded",
inputs: [
{ name: "amount", type: "uint256", internalType: "uint256" },
{ name: "limit", type: "uint256", internalType: "uint256" },
],
},
{ type: "error", name: "MintingNotStartedYet", inputs: [] },
{ type: "error", name: "NoMintableAmount", inputs: [] },
{
type: "error",
name: "OwnableInvalidOwner",
inputs: [{ name: "owner", type: "address", internalType: "address" }],
},
{
type: "error",
name: "OwnableUnauthorizedAccount",
inputs: [{ name: "account", type: "address", internalType: "address" }],
},
{ type: "error", name: "PoolLocked", inputs: [] },
{ type: "error", name: "ReleaseAmountInvalid", inputs: [] },
{
type: "error",
name: "SafeCastOverflowedUintDowncast",
inputs: [
{ name: "bits", type: "uint8", internalType: "uint8" },
{ name: "value", type: "uint256", internalType: "uint256" },
],
},
{
type: "error",
name: "StringTooLong",
inputs: [{ name: "str", type: "string", internalType: "string" }],
},
{ type: "error", name: "VestingNotStartedYet", inputs: [] },
{
type: "error",
name: "VotesExpiredSignature",
inputs: [{ name: "expiry", type: "uint256", internalType: "uint256" }],
},
];
exports.uniswapV3PoolAbi = [
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24",
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24",
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128",
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256",
},
],
name: "Burn",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24",
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24",
},
{
indexed: false,
internalType: "uint128",
name: "amount0",
type: "uint128",
},
{
indexed: false,
internalType: "uint128",
name: "amount1",
type: "uint128",
},
],
name: "Collect",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: false,
internalType: "uint128",
name: "amount0",
type: "uint128",
},
{
indexed: false,
internalType: "uint128",
name: "amount1",
type: "uint128",
},
],
name: "CollectProtocol",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "paid0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "paid1",
type: "uint256",
},
],
name: "Flash",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint16",
name: "observationCardinalityNextOld",
type: "uint16",
},
{
indexed: false,
internalType: "uint16",
name: "observationCardinalityNextNew",
type: "uint16",
},
],
name: "IncreaseObservationCardinalityNext",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160",
},
{ indexed: false, internalType: "int24", name: "tick", type: "int24" },
],
name: "Initialize",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "sender",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24",
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24",
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128",
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256",
},
],
name: "Mint",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint8",
name: "feeProtocol0Old",
type: "uint8",
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol1Old",
type: "uint8",
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol0New",
type: "uint8",
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol1New",
type: "uint8",
},
],
name: "SetFeeProtocol",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: false,
internalType: "int256",
name: "amount0",
type: "int256",
},
{
indexed: false,
internalType: "int256",
name: "amount1",
type: "int256",
},
{
indexed: false,
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160",
},
{
indexed: false,
internalType: "uint128",
name: "liquidity",
type: "uint128",
},
{ indexed: false, internalType: "int24", name: "tick", type: "int24" },
],
name: "Swap",
type: "event",
},
{
inputs: [
{ internalType: "int24", name: "tickLower", type: "int24" },
{ internalType: "int24", name: "tickUpper", type: "int24" },
{ internalType: "uint128", name: "amount", type: "uint128" },
],
name: "burn",
outputs: [
{ internalType: "uint256", name: "amount0", type: "uint256" },
{ internalType: "uint256", name: "amount1", type: "uint256" },
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "recipient", type: "address" },
{ internalType: "int24", name: "tickLower", type: "int24" },
{ internalType: "int24", name: "tickUpper", type: "int24" },
{ internalType: "uint128", name: "amount0Requested", type: "uint128" },
{ internalType: "uint128", name: "amount1Requested", type: "uint128" },
],
name: "collect",
outputs: [
{ internalType: "uint128", name: "amount0", type: "uint128" },
{ internalType: "uint128", name: "amount1", type: "uint128" },
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "recipient", type: "address" },
{ internalType: "uint128", name: "amount0Requested", type: "uint128" },
{ internalType: "uint128", name: "amount1Requested", type: "uint128" },
],
name: "collectProtocol",
outputs: [
{ internalType: "uint128", name: "amount0", type: "uint128" },
{ internalType: "uint128", name: "amount1", type: "uint128" },
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "factory",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "fee",
outputs: [{ internalType: "uint24", name: "", type: "uint24" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "feeGrowthGlobal0X128",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "feeGrowthGlobal1X128",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "recipient", type: "address" },
{ internalType: "uint256", name: "amount0", type: "uint256" },
{ internalType: "uint256", name: "amount1", type: "uint256" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "flash",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint16",
name: "observationCardinalityNext",
type: "uint16",
},
],
name: "increaseObservationCardinalityNext",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "uint160", name: "sqrtPriceX96", type: "uint160" },
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "liquidity",
outputs: [{ internalType: "uint128", name: "", type: "uint128" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "maxLiquidityPerTick",
outputs: [{ internalType: "uint128", name: "", type: "uint128" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "recipient", type: "address" },
{ internalType: "int24", name: "tickLower", type: "int24" },
{ internalType: "int24", name: "tickUpper", type: "int24" },
{ internalType: "uint128", name: "amount", type: "uint128" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "mint",
outputs: [
{ internalType: "uint256", name: "amount0", type: "uint256" },
{ internalType: "uint256", name: "amount1", type: "uint256" },
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
name: "observations",
outputs: [
{ internalType: "uint32", name: "blockTimestamp", type: "uint32" },
{ internalType: "int56", name: "tickCumulative", type: "int56" },
{
internalType: "uint160",
name: "secondsPerLiquidityCumulativeX128",
type: "uint160",
},
{ internalType: "bool", name: "initialized", type: "bool" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "uint32[]", name: "secondsAgos", type: "uint32[]" },
],
name: "observe",
outputs: [
{ internalType: "int56[]", name: "tickCumulatives", type: "int56[]" },
{
internalType: "uint160[]",
name: "secondsPerLiquidityCumulativeX128s",
type: "uint160[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
name: "positions",
outputs: [
{ internalType: "uint128", name: "liquidity", type: "uint128" },
{
internalType: "uint256",
name: "feeGrowthInside0LastX128",
type: "uint256",
},
{
internalType: "uint256",
name: "feeGrowthInside1LastX128",
type: "uint256",
},
{ internalType: "uint128", name: "tokensOwed0", type: "uint128" },
{ internalType: "uint128", name: "tokensOwed1", type: "uint128" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "protocolFees",
outputs: [
{ internalType: "uint128", name: "token0", type: "uint128" },
{ internalType: "uint128", name: "token1", type: "uint128" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "uint8", name: "feeProtocol0", type: "uint8" },
{ internalType: "uint8", name: "feeProtocol1", type: "uint8" },
],
name: "setFeeProtocol",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "slot0",
outputs: [
{ internalType: "uint160", name: "sqrtPriceX96", type: "uint160" },
{ internalType: "int24", name: "tick", type: "int24" },
{ internalType: "uint16", name: "observationIndex", type: "uint16" },
{
internalType: "uint16",
name: "observationCardinality",
type: "uint16",
},
{
internalType: "uint16",
name: "observationCardinalityNext",
type: "uint16",
},
{ internalType: "uint8", name: "feeProtocol", type: "uint8" },
{ internalType: "bool", name: "unlocked", type: "bool" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "int24", name: "tickLower", type: "int24" },
{ internalType: "int24", name: "tickUpper", type: "int24" },
],
name: "snapshotCumulativesInside",
outputs: [
{ internalType: "int56", name: "tickCumulativeInside", type: "int56" },
{
internalType: "uint160",
name: "secondsPerLiquidityInsideX128",
type: "uint160",
},
{ internalType: "uint32", name: "secondsInside", type: "uint32" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "recipient", type: "address" },
{ internalType: "bool", name: "zeroForOne", type: "bool" },
{ internalType: "int256", name: "amountSpecified", type: "int256" },
{ internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "swap",
outputs: [
{ internalType: "int256", name: "amount0", type: "int256" },
{ internalType: "int256", name: "amount1", type: "int256" },
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "int16", name: "", type: "int16" }],
name: "tickBitmap",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "tickSpacing",
outputs: [{ internalType: "int24", name: "", type: "int24" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "int24", name: "", type: "int24" }],
name: "ticks",
outputs: [
{ internalType: "uint128", name: "liquidityGross", type: "uint128" },
{ internalType: "int128", name: "liquidityNet", type: "int128" },
{
internalType: "uint256",
name: "feeGrowthOutside0X128",
type: "uint256",
},
{
internalType: "uint256",
name: "feeGrowthOutside1X128",
type: "uint256",
},
{ internalType: "int56", name: "tickCumulativeOutside", type: "int56" },
{
internalType: "uint160",
name: "secondsPerLiquidityOutsideX128",
type: "uint160",
},
{ internalType: "uint32", name: "secondsOutside", type: "uint32" },
{ internalType: "bool", name: "initialized", type: "bool" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "token0",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "token1",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
];
exports.airlockAbi = [
{
type: "constructor",
inputs: [{ name: "owner_", type: "address", internalType: "address" }],
stateMutability: "nonpayable",
},
{ type: "receive", stateMutability: "payable" },
{
type: "function",
name: "collectIntegratorFees",
inputs: [
{ name: "to", type: "address", internalType: "address" },
{ name: "token", type: "address", internalType: "address" },
{ name: "amount", type: "uint256", internalType: "uint256" },
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "collectProtocolFees",
inputs: [
{ name: "to", type: "address", internalType: "address" },
{ name: "token", type: "address", internalType: "address" },
{ name: "amount", type: "uint256", internalType: "uint256" },
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "create",
inputs: [
{
name: "createData",
type: "tuple",
internalType: "struct CreateParams",
components: [
{ name: "initialSupply", type: "uint256", internalType: "uint256" },
{ name: "numTokensToSell", type: "uint256", internalType: "uint256" },
{ name: "numeraire", type: "address", internalType: "address" },
{
name: "tokenFactory",
type: "address",
internalType: "contract ITokenFactory",
},
{ name: "tokenFactoryData", type: "bytes", internalType: "bytes" },
{
name: "governanceFactory",
type: "address",
internalType: "contract IGovernanceFactory",
},
{
name: "governanceFactoryData",
type: "bytes",
internalType: "bytes",
},
{
name: "poolInitializer",
type: "address",
internalType: "contract IPoolInitializer",
},
{ name: "poolInitializerData", type: "bytes", internalType: "bytes" },
{
name: "liquidityMigrator",
type: "address",
internalType: "contract ILiquidityMigrator",
},
{
name: "liquidityMigratorData",
type: "bytes",
internalType: "bytes",
},
{ name: "integrator", type: "address", internalType: "address" },
{ name: "salt", type: "bytes32", internalType: "bytes32" },
],
},
],
outputs: [
{ name: "asset", type: "address", internalType: "address" },
{ name: "pool", type: "address", internalType: "address" },
{ name: "governance", type: "address", internalType: "address" },
{ name: "timelock", type: "address", internalType: "address" },
{ name: "migrationPool", type: "address", internalType: "address" },
],
stateMutability: "nonpayable",
},
{
type: "function",
name: "getAssetData",
inputs: [{ name: "asset", type: "address", internalType: "address" }],
outputs: [
{ name: "numeraire", type: "address", internalType: "address" },
{ name: "timelock", type: "address", internalType: "address" },
{ name: "governance", type: "address", internalType: "address" },
{
name: "liquidityMigrator",
type: "address",
internalType: "contract ILiquidityMigrator",
},
{
name: "poolInitializer",
type: "address",
internalType: "contract IPoolInitializer",
},
{ name: "pool", type: "address", internalType: "address" },
{ name: "migrationPool", type: "address", internalType: "address" },
{ name: "numTokensToSell", type: "uint256", internalType: "uint256" },
{ name: "totalSupply", type: "uint256", internalType: "uint256" },
{ name: "integrator", type: "address", internalType: "address" },
],
stateMutability: "view",
},
{
type: "function",
name: "getModuleState",
inputs: [{ name: "module", type: "address", internalType: "address" }],
outputs: [
{ name: "state", type: "uint8", internalType: "enum ModuleState" },
],
stateMutability: "view",
},
{
type: "function",
name: "integratorFees",
inputs: [
{ name: "integrator", type: "address", internalType: "address" },
{ name: "token", type: "address", internalType: "address" },
],
outputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "migrate",
inputs: [{ name: "asset", type: "address", internalType: "address" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "owner",
inputs: [],
outputs: [{ name: "", type: "address", internalType: "address" }],
stateMutability: "view",
},
{
type: "function",
name: "protocolFees",
inputs: [{ name: "token", type: "address", internalType: "address" }],
outputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "renounceOwnership",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setModuleState",
inputs: [
{ name: "modules", type: "address[]", internalType: "address[]" },
{ name: "states", type: "uint8[]", internalType: "enum ModuleState[]" },
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "transferOwnership",
inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "Collect",
inputs: [
{ name: "to", type: "address", indexed: true, internalType: "address" },
{
name: "token",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "amount",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "Create",
inputs: [
{
name: "asset",
type: "address",
indexed: false,
internalType: "address",
},
{
name: "numeraire",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "initializer",
type: "address",
indexed: false,
internalType: "address",
},
{
name: "poolOrHook",
type: "address",
indexed: false,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "Migrate",
inputs: [
{
name: "asset",
type: "address",
indexed: true,
internalType: "address",
},
{ name: "pool", type: "address", indexed: true, internalType: "address" },
],
anonymous: false,
},
{
type: "event",
name: "OwnershipTransferred",
inputs: [
{
name: "previousOwner",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "newOwner",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "SetModuleState",
inputs: [
{
name: "module",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "state",
type: "uint8",
indexed: true,
internalType: "enum ModuleState",
},
],
anonymous: false,
},
{ type: "error", name: "ArrayLengthsMismatch", inputs: [] },
{
type: "error",