@astonic-io/astonic-bindings-ts
Version:
Astonic type generation and npm package deployment repo
84 lines (83 loc) • 9.22 kB
TypeScript
import { Signer, ContractFactory, Overrides } from "ethers";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import type { PromiseOrValue } from "../common";
import type { ConstantProductPricingModule, ConstantProductPricingModuleInterface } from "../ConstantProductPricingModule";
type ConstantProductPricingModuleConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
export declare class ConstantProductPricingModule__factory extends ContractFactory {
constructor(...args: ConstantProductPricingModuleConstructorParams);
deploy(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ConstantProductPricingModule>;
getDeployTransaction(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): TransactionRequest;
attach(address: string): ConstantProductPricingModule;
connect(signer: Signer): ConstantProductPricingModule__factory;
static readonly bytecode = "0x608060405234801561001057600080fd5b50610b6e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806306fdde031461004657806352707d8c14610064578063571fd01214610084575b600080fd5b61004e610097565b60405161005b9190610a1f565b60405180910390f35b610077610072366004610771565b6100c0565b60405161005b9190610ac0565b610077610092366004610771565b610192565b60408051808201909152600f81526e10dbdb9cdd185b9d141c9bd91d58dd608a1b602082015290565b6000816100cf5750600061018a565b6100d7610753565b6100e08461020d565b90506100ea610753565b61011a6100f685610227565b61010e8461010261027f565b9063ffffffff6102a316565b9063ffffffff6102e716565b9050610124610753565b61013d61013088610227565b839063ffffffff6102e716565b9050610147610753565b610160836101548b610227565b9063ffffffff61055016565b905061018361016e82610594565b61017784610594565b9063ffffffff61059816565b9450505050505b949350505050565b600061019c610753565b6101a58461020d565b90506101af610753565b6101c76101c2858963ffffffff6105e116565b610227565b90506101d1610753565b6101f36101e08461010261027f565b61010e6101c28a8963ffffffff61061b16565b905061020161016e82610594565b98975050505050505050565b610215610753565b50604080516020810190915290815290565b61022f610753565b61023761065d565b82111561025f5760405162461bcd60e51b815260040161025690610a60565b60405180910390fd5b50604080516020810190915269d3c21bcecceda100000082028152919050565b610287610753565b50604080516020810190915269d3c21bcecceda1000000815290565b6102ab610753565b8151835110156102cd5760405162461bcd60e51b815260040161025690610a40565b506040805160208101909152815183510381525b92915050565b6102ef610753565b825115806102fc57508151155b1561031657506040805160208101909152600081526102e1565b815169d3c21bcecceda100000014156103305750816102e1565b825169d3c21bcecceda1000000141561034a5750806102e1565b600069d3c21bcecceda100000061036085610678565b518161036857fe5b0490506000610376856106ad565b519050600069d3c21bcecceda100000061038f86610678565b518161039757fe5b04905060006103a5866106ad565b51905083820284156103d957828582816103bb57fe5b04146103d95760405162461bcd60e51b815260040161025690610a30565b69d3c21bcecceda10000008102811561041e5769d3c21bcecceda100000082828161040057fe5b041461041e5760405162461bcd60e51b815260040161025690610aa0565b9050808484028515610452578486828161043457fe5b04146104525760405162461bcd60e51b815260040161025690610ab0565b8684028715610483578488828161046557fe5b04146104835760405162461bcd60e51b815260040161025690610a80565b61048b6106e7565b878161049357fe5b04965061049e6106e7565b85816104a657fe5b04945086850287156104da57858882816104bc57fe5b04146104da5760405162461bcd60e51b815260040161025690610a50565b6104e2610753565b604051806020016040528087815250905061050b81604051806020016040528087815250610550565b905061052581604051806020016040528086815250610550565b905061053f81604051806020016040528085815250610550565b9d9c50505050505050505050505050565b610558610753565b815183519081019081101561057f5760405162461bcd60e51b815260040161025690610a90565b60408051602081019091529081529392505050565b5190565b60006105da83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506106f0565b9392505050565b6000826105f0575060006102e1565b828202828482816105fd57fe5b04146105da5760405162461bcd60e51b815260040161025690610a70565b60006105da83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610727565b7601357c299a88ea76a58924d52ce4f26a85af186c2b9e7490565b610680610753565b604051806020016040528069d3c21bcecceda1000000808560000151816106a357fe5b0402905292915050565b6106b5610753565b604051806020016040528069d3c21bcecceda1000000808560000151816106d857fe5b95519504029093039092525090565b64e8d4a5100090565b600081836107115760405162461bcd60e51b81526004016102569190610a1f565b50600083858161071d57fe5b0495945050505050565b6000818484111561074b5760405162461bcd60e51b81526004016102569190610a1f565b505050900390565b6040518060200160405280600081525090565b80356102e181610b14565b6000806000806080858703121561078757600080fd5b60006107938787610766565b94505060206107a487828801610766565b93505060406107b587828801610766565b92505060606107c687828801610766565b91505092959194509250565b60006107dd82610594565b6107e78185610ace565b93506107f7818560208601610ada565b61080081610b0a565b9093019392505050565b6000610817601683610ace565b751bdd995c999b1bddc81e0c5e4c4819195d1958dd195960521b815260200192915050565b6000610849601f83610ace565b7f737562737472616374696f6e20756e646572666c6f7720646574656374656400815260200192915050565b6000610882601683610ace565b751bdd995c999b1bddc81e0c9e4c8819195d1958dd195960521b815260200192915050565b60006108b4603683610ace565b7f63616e277420637265617465206669786964697479206e756d626572206c6172815275676572207468616e206d61784e65774669786564282960501b602082015260400192915050565b600061090c602183610ace565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b600061094f601683610ace565b751bdd995c999b1bddc81e0c5e4c8819195d1958dd195960521b815260200192915050565b6000610981601583610ace565b74185919081bdd995c999b1bddc819195d1958dd1959605a1b815260200192915050565b60006109b2601f83610ace565b7f6f766572666c6f772078317931202a2066697865643120646574656374656400815260200192915050565b60006109eb601683610ace565b751bdd995c999b1bddc81e0c9e4c4819195d1958dd195960521b815260200192915050565b610a1981610ad7565b82525050565b602080825281016105da81846107d2565b602080825281016102e18161080a565b602080825281016102e18161083c565b602080825281016102e181610875565b602080825281016102e1816108a7565b602080825281016102e1816108ff565b602080825281016102e181610942565b602080825281016102e181610974565b602080825281016102e1816109a5565b602080825281016102e1816109de565b602081016102e18284610a10565b90815260200190565b90565b60005b83811015610af5578181015183820152602001610add565b83811115610b04576000848401525b50505050565b601f01601f191690565b610b1d81610ad7565b8114610b2857600080fd5b5056fea365627a7a72315820c929672a6bbc4ed411ceb93188a864fc152de8cfe2740c6ff713cec5960a1fd16c6578706572696d656e74616cf564736f6c63430005110040";
static readonly abi: readonly [{
readonly type: "function";
readonly name: "getAmountIn";
readonly inputs: readonly [{
readonly name: "tokenInBucketSize";
readonly type: "uint256";
readonly internalType: "uint256";
}, {
readonly name: "tokenOutBucketSize";
readonly type: "uint256";
readonly internalType: "uint256";
}, {
readonly name: "spread";
readonly type: "uint256";
readonly internalType: "uint256";
}, {
readonly name: "amountOut";
readonly type: "uint256";
readonly internalType: "uint256";
}];
readonly outputs: readonly [{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "getAmountOut";
readonly inputs: readonly [{
readonly name: "tokenInBucketSize";
readonly type: "uint256";
readonly internalType: "uint256";
}, {
readonly name: "tokenOutBucketSize";
readonly type: "uint256";
readonly internalType: "uint256";
}, {
readonly name: "spread";
readonly type: "uint256";
readonly internalType: "uint256";
}, {
readonly name: "amountIn";
readonly type: "uint256";
readonly internalType: "uint256";
}];
readonly outputs: readonly [{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "name";
readonly inputs: readonly [];
readonly outputs: readonly [{
readonly name: "";
readonly type: "string";
readonly internalType: "string";
}];
readonly stateMutability: "view";
}];
static createInterface(): ConstantProductPricingModuleInterface;
static connect(address: string, signerOrProvider: Signer | Provider): ConstantProductPricingModule;
}
export {};