UNPKG

@astonic-io/astonic-bindings-ts

Version:

Astonic type generation and npm package deployment repo

84 lines (83 loc) 8.64 kB
import { Signer, ContractFactory, Overrides } from "ethers"; import type { Provider, TransactionRequest } from "@ethersproject/providers"; import type { PromiseOrValue } from "../common"; import type { ConstantSumPricingModule, ConstantSumPricingModuleInterface } from "../ConstantSumPricingModule"; type ConstantSumPricingModuleConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; export declare class ConstantSumPricingModule__factory extends ContractFactory { constructor(...args: ConstantSumPricingModuleConstructorParams); deploy(overrides?: Overrides & { from?: PromiseOrValue<string>; }): Promise<ConstantSumPricingModule>; getDeployTransaction(overrides?: Overrides & { from?: PromiseOrValue<string>; }): TransactionRequest; attach(address: string): ConstantSumPricingModule; connect(signer: Signer): ConstantSumPricingModule__factory; static readonly bytecode = "0x608060405234801561001057600080fd5b50610a56806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806306fdde031461004657806352707d8c14610064578063571fd01214610084575b600080fd5b61004e610097565b60405161005b9190610917565b60405180910390f35b6100776100723660046106ac565b6100bc565b60405161005b91906109a8565b6100776100923660046106ac565b610171565b60408051808201909152600b81526a436f6e7374616e7453756d60a81b602082015290565b6000816100cb57506000610169565b6100d361068e565b6100f36100df856101f0565b6100e761020a565b9063ffffffff61022e16565b90506100fd61068e565b6101166101098561027b565b839063ffffffff6102ca16565b905061012061068e565b61012c6101098861027b565b905061013661068e565b61013f8961027b565b905061016261014d82610533565b61015684610533565b9063ffffffff61053716565b9450505050505b949350505050565b60008161018057506000610169565b61018861068e565b6101946100df856101f0565b905061019e61068e565b6101bf6101aa8861027b565b6101b38661027b565b9063ffffffff6102ca16565b90506101c961068e565b6101d6836101b38961027b565b90506101e461014d82610533565b98975050505050505050565b6101f861068e565b50604080516020810190915290815290565b61021261068e565b50604080516020810190915269d3c21bcecceda1000000815290565b61023661068e565b8151835110156102615760405162461bcd60e51b815260040161025890610938565b60405180910390fd5b506040805160208101909152815183510381525b92915050565b61028361068e565b61028b610580565b8211156102aa5760405162461bcd60e51b815260040161025890610958565b50604080516020810190915269d3c21bcecceda100000082028152919050565b6102d261068e565b825115806102df57508151155b156102f95750604080516020810190915260008152610275565b815169d3c21bcecceda10000001415610313575081610275565b825169d3c21bcecceda1000000141561032d575080610275565b600069d3c21bcecceda10000006103438561059b565b518161034b57fe5b0490506000610359856105d0565b519050600069d3c21bcecceda10000006103728661059b565b518161037a57fe5b0490506000610388866105d0565b51905083820284156103bc578285828161039e57fe5b04146103bc5760405162461bcd60e51b815260040161025890610928565b69d3c21bcecceda1000000810281156104015769d3c21bcecceda10000008282816103e357fe5b04146104015760405162461bcd60e51b815260040161025890610988565b9050808484028515610435578486828161041757fe5b04146104355760405162461bcd60e51b815260040161025890610998565b8684028715610466578488828161044857fe5b04146104665760405162461bcd60e51b815260040161025890610968565b61046e61060a565b878161047657fe5b04965061048161060a565b858161048957fe5b04945086850287156104bd578588828161049f57fe5b04146104bd5760405162461bcd60e51b815260040161025890610948565b6104c561068e565b60405180602001604052808781525090506104ee81604051806020016040528087815250610613565b905061050881604051806020016040528086815250610613565b905061052281604051806020016040528085815250610613565b9d9c50505050505050505050505050565b5190565b600061057983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610657565b9392505050565b7601357c299a88ea76a58924d52ce4f26a85af186c2b9e7490565b6105a361068e565b604051806020016040528069d3c21bcecceda1000000808560000151816105c657fe5b0402905292915050565b6105d861068e565b604051806020016040528069d3c21bcecceda1000000808560000151816105fb57fe5b95519504029093039092525090565b64e8d4a5100090565b61061b61068e565b81518351908101908110156106425760405162461bcd60e51b815260040161025890610978565b60408051602081019091529081529392505050565b600081836106785760405162461bcd60e51b81526004016102589190610917565b50600083858161068457fe5b0495945050505050565b6040518060200160405280600081525090565b8035610275816109fc565b600080600080608085870312156106c257600080fd5b60006106ce87876106a1565b94505060206106df878288016106a1565b93505060406106f0878288016106a1565b9250506060610701878288016106a1565b91505092959194509250565b600061071882610533565b61072281856109b6565b93506107328185602086016109c2565b61073b816109f2565b9093019392505050565b60006107526016836109b6565b751bdd995c999b1bddc81e0c5e4c4819195d1958dd195960521b815260200192915050565b6000610784601f836109b6565b7f737562737472616374696f6e20756e646572666c6f7720646574656374656400815260200192915050565b60006107bd6016836109b6565b751bdd995c999b1bddc81e0c9e4c8819195d1958dd195960521b815260200192915050565b60006107ef6036836109b6565b7f63616e277420637265617465206669786964697479206e756d626572206c6172815275676572207468616e206d61784e65774669786564282960501b602082015260400192915050565b60006108476016836109b6565b751bdd995c999b1bddc81e0c5e4c8819195d1958dd195960521b815260200192915050565b60006108796015836109b6565b74185919081bdd995c999b1bddc819195d1958dd1959605a1b815260200192915050565b60006108aa601f836109b6565b7f6f766572666c6f772078317931202a2066697865643120646574656374656400815260200192915050565b60006108e36016836109b6565b751bdd995c999b1bddc81e0c9e4c4819195d1958dd195960521b815260200192915050565b610911816109bf565b82525050565b60208082528101610579818461070d565b6020808252810161027581610745565b6020808252810161027581610777565b60208082528101610275816107b0565b60208082528101610275816107e2565b602080825281016102758161083a565b602080825281016102758161086c565b602080825281016102758161089d565b60208082528101610275816108d6565b602081016102758284610908565b90815260200190565b90565b60005b838110156109dd5781810151838201526020016109c5565b838111156109ec576000848401525b50505050565b601f01601f191690565b610a05816109bf565b8114610a1057600080fd5b5056fea365627a7a72315820c207dbe790cca1bb2009f65c61378e8042b65f4fd373e46b157290530e5bfd6f6c6578706572696d656e74616cf564736f6c63430005110040"; 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: "amountIn"; 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: "amountOut"; 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(): ConstantSumPricingModuleInterface; static connect(address: string, signerOrProvider: Signer | Provider): ConstantSumPricingModule; } export {};