UNPKG

@ethsub/sol

Version:
104 lines (97 loc) 3.36 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { ChainAsset, ChainAssetInterface } from "../ChainAsset"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "asset", type: "bytes32", }, ], name: "AssetStored", type: "event", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], name: "_assetsStored", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes32", name: "asset", type: "bytes32", }, ], name: "store", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; const _bytecode = "0x608060405234801561001057600080fd5b50610199806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063654cf88c1461003b57806396add60014610050575b600080fd5b61004e610049366004610109565b610079565b005b61006361005e366004610109565b6100f4565b6040516100709190610121565b60405180910390f35b60008181526020819052604090205460ff16156100b15760405162461bcd60e51b81526004016100a89061012c565b60405180910390fd5b600081815260208190526040808220805460ff191660011790555182917f08ae553713effae7116be03743b167b8b803449ee8fb912c2ec43dc2c824f53591a250565b60006020819052908152604090205460ff1681565b60006020828403121561011a578081fd5b5035919050565b901515815260200190565b60208082526017908201527f617373657420697320616c72656164792073746f72656400000000000000000060408201526060019056fea2646970667358221220ad7b538a49ce49dfb0f2443fb62b5d31a734af7ff657c31cb96d6cbca3ccb3d464736f6c634300060c0033"; type ChainAssetConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: ChainAssetConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class ChainAsset__factory extends ContractFactory { constructor(...args: ChainAssetConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } deploy( overrides?: Overrides & { from?: string | Promise<string> } ): Promise<ChainAsset> { return super.deploy(overrides || {}) as Promise<ChainAsset>; } getDeployTransaction( overrides?: Overrides & { from?: string | Promise<string> } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } attach(address: string): ChainAsset { return super.attach(address) as ChainAsset; } connect(signer: Signer): ChainAsset__factory { return super.connect(signer) as ChainAsset__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): ChainAssetInterface { return new utils.Interface(_abi) as ChainAssetInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): ChainAsset { return new Contract(address, _abi, signerOrProvider) as ChainAsset; } }