/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IBlockChatUpgradeable, IBlockChatUpgradeableInterface, } from "../IBlockChatUpgradeable"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "dataHash", type: "bytes32", }, { indexed: false, internalType: "string", name: "content", type: "string", }, ], name: "DataUploaded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: true, internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { indexed: false, internalType: "uint48", name: "createDate", type: "uint48", }, { indexed: false, internalType: "string", name: "content", type: "string", }, ], name: "MessageCreated", type: "event", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "uint48", name: "start", type: "uint48", }, { internalType: "uint48", name: "length", type: "uint48", }, ], name: "batchRecipientMessageBlock", outputs: [ { internalType: "uint48[]", name: "", type: "uint48[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "sender", type: "address", }, { internalType: "uint48", name: "start", type: "uint48", }, { internalType: "uint48", name: "length", type: "uint48", }, ], name: "batchSenderMessageBlock", outputs: [ { internalType: "uint48[]", name: "", type: "uint48[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, { internalType: "bool", name: "isToSender", type: "bool", }, ], name: "createMessage", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, { internalType: "bool", name: "isToSender", type: "bool", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "createMessageCall", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, { internalType: "bool", name: "isToSender", type: "bool", }, ], name: "createMessageCallBack", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, { internalType: "bool", name: "isToSender", type: "bool", }, ], name: "createMessageHash", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, { internalType: "bool", name: "isToSender", type: "bool", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "createMessageHashAndCall", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, { internalType: "bool", name: "isToSender", type: "bool", }, ], name: "createMessageHashAndCallBack", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "sender", type: "address", }, { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "uint48", name: "createDate", type: "uint48", }, { internalType: "string", name: "content", type: "string", }, ], name: "getMessageHash", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "string", name: "name", type: "string", }, ], name: "getNameHash", outputs: [ { internalType: "bytes12", name: "", type: "bytes12", }, ], 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: "recipientHash", type: "bytes20", }, ], name: "getRecipientMessageBlockListLength", 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: "messageHash", type: "bytes32", }, ], name: "messageHashMap", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes12", name: "nameHash", type: "bytes12", }, { internalType: "string", name: "content", type: "string", }, ], name: "uploadData", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; export class IBlockChatUpgradeable__factory { static readonly abi = _abi; static createInterface(): IBlockChatUpgradeableInterface { return new utils.Interface(_abi) as IBlockChatUpgradeableInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): IBlockChatUpgradeable { return new Contract( address, _abi, signerOrProvider ) as IBlockChatUpgradeable; } }