/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IBlockChatUpgradeable2, IBlockChatUpgradeable2Interface, } from "../IBlockChatUpgradeable2"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: true, internalType: "bytes32", name: "dataHash", type: "bytes32", }, { indexed: true, internalType: "uint48", name: "messageId", type: "uint48", }, ], name: "DataUploaded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint48", name: "messageId", type: "uint48", }, { indexed: false, internalType: "uint48", name: "createDate", type: "uint48", }, { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: false, internalType: "bytes20[]", name: "recipientHashList", type: "bytes20[]", }, { indexed: false, internalType: "string", name: "content", type: "string", }, ], name: "MessageCreated", type: "event", }, { inputs: [ { internalType: "uint48[]", name: "messageIdList", type: "uint48[]", }, ], name: "batchMessage", outputs: [ { components: [ { internalType: "bytes26", name: "messageHash", type: "bytes26", }, { internalType: "uint48", name: "createBlock", type: "uint48", }, ], internalType: "struct IBlockChatUpgradeable2.Message[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "uint48", name: "start", type: "uint48", }, { internalType: "uint48", name: "length", type: "uint48", }, ], name: "batchRecipientMessageId", outputs: [ { internalType: "uint48[]", name: "", type: "uint48[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, ], name: "createMessage", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes20[]", name: "recipientHashList", type: "bytes20[]", }, { internalType: "string", name: "content", type: "string", }, ], name: "createMessageToList", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "createMessageWithData", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "name", type: "string", }, ], name: "getDataHash", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "address", name: "sender", type: "address", }, { internalType: "uint48", name: "createDate", type: "uint48", }, { internalType: "uint48", name: "createBlock", type: "uint48", }, { internalType: "bytes20[]", name: "recipientHashList", type: "bytes20[]", }, { internalType: "string", name: "content", type: "string", }, ], name: "getMessageHash", outputs: [ { internalType: "bytes26", name: "", type: "bytes26", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "string", name: "name", type: "string", }, ], name: "getRecipientHash", outputs: [ { internalType: "bytes20", name: "", type: "bytes20", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipient", type: "bytes20", }, ], name: "getRecipientMessageListLength", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "implementationVersion", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "bytes32", name: "dataHash", type: "bytes32", }, { internalType: "string", name: "content", type: "string", }, ], name: "uploadData", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "nonpayable", type: "function", }, ]; export class IBlockChatUpgradeable2__factory { static readonly abi = _abi; static createInterface(): IBlockChatUpgradeable2Interface { return new utils.Interface(_abi) as IBlockChatUpgradeable2Interface; } static connect( address: string, signerOrProvider: Signer | Provider ): IBlockChatUpgradeable2 { return new Contract( address, _abi, signerOrProvider ) as IBlockChatUpgradeable2; } }