/* 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 { BlockChat, BlockChatInterface } from "../BlockChat"; const _abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { 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", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "previousOwner", type: "address", }, { indexed: true, internalType: "address", name: "newOwner", type: "address", }, ], name: "OwnershipTransferred", type: "event", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "uint256", name: "start", type: "uint256", }, { internalType: "uint256", name: "length", type: "uint256", }, ], name: "batchRecipientMessageBlock", outputs: [ { internalType: "uint48[]", name: "", type: "uint48[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "blockSkip", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes20", name: "recipientHash", type: "bytes20", }, { internalType: "string", name: "content", type: "string", }, ], name: "createMessage", outputs: [], 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: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], name: "dataBlockMap", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "view", 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: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes20", name: "", type: "bytes20", }, { internalType: "uint256", name: "", type: "uint256", }, ], name: "recipientMessageBlockListMap", outputs: [ { internalType: "uint48", name: "", type: "uint48", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "newBlockSkip", type: "uint256", }, ], name: "setBlockSkip", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newOwner", type: "address", }, ], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes12", name: "nameHash", type: "bytes12", }, { internalType: "string", name: "content", type: "string", }, ], name: "uploadData", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; const _bytecode = "0x6080604052603260035534801561001557600080fd5b5061001f33610024565b610074565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce5806100836000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806375bf7a031161008c5780638b995039116100665780638b995039146102225780638cc4e65f146102355780638da5cb5b14610255578063f2fde38b1461027057600080fd5b806375bf7a03146101da57806378e2a033146101e35780637d7c3079146101f657600080fd5b8063638633f0116100c8578063638633f01461015b5780636ea1a6ab14610193578063715018a6146101a6578063742bbd3e146101ae57600080fd5b80631d643d22146100ef5780631f3d808e1461010457806360ba450a14610117575b600080fd5b6101026100fd3660046108f7565b610283565b005b610102610112366004610978565b610357565b61013f6101253660046109da565b60026020526000908152604090205465ffffffffffff1681565b60405165ffffffffffff90911681526020015b60405180910390f35b6101856101693660046109f3565b6001600160601b03191660009081526001602052604090205490565b604051908152602001610152565b6101026101a13660046109da565b610404565b610102610433565b6101c16101bc366004610a15565b610469565b6040516001600160a01b03199091168152602001610152565b61018560035481565b61013f6101f1366004610a57565b61049c565b610209610204366004610a15565b6104e7565b6040516001600160601b03199091168152602001610152565b610102610230366004610a81565b61051e565b610248610243366004610a9f565b6106b3565b6040516101529190610ad2565b6000546040516001600160a01b039091168152602001610152565b61010261027e366004610b1e565b6107a6565b60008560601c6001600160a01b031683836040516102a2929190610b47565b6000604051808303816000865af19150503d80600081146102df576040519150601f19603f3d011682016040523d82523d6000602084013e6102e4565b606091505b50509050806103445760405162461bcd60e51b815260206004820152602160248201527f426c6f636b436861745570677261646561626c65323a2063616c6c206572726f6044820152603960f91b60648201526084015b60405180910390fd5b61034f86868661051e565b505050505050565b604080516001600160601b03193360601b1660208201526001600160a01b0319851660348201526000910160405160208183030381529060405261039a90610b57565b60008181526002602052604090819020805465ffffffffffff19164365ffffffffffff161790555190915081907f49c90b3999c4835facc88391d87593faa6306fe2e94bb3cb5d2e9dbb7d754698906103f69086908690610ba7565b60405180910390a250505050565b6000546001600160a01b0316331461042e5760405162461bcd60e51b815260040161033b90610bc3565b600355565b6000546001600160a01b0316331461045d5760405162461bcd60e51b815260040161033b90610bc3565b6104676000610841565b565b6000828260405160200161047e929190610b47565b60405160208183030381529060405280519060200120905092915050565b600160205281600052604060002081815481106104b857600080fd5b9060005260206000209060059182820401919006600602915091509054906101000a900465ffffffffffff1681565b600082826040516020016104fc929190610b47565b60408051601f19818403018152919052805160209091012060601b9392505050565b6001600160601b031983166000908152600160209081526040808320805482518185028101850190935280835291929091908301828280156105af57602002820191906000526020600020906000905b82829054906101000a900465ffffffffffff1665ffffffffffff168152602001906006019060208260050104928301926001038202915080841161056e5790505b50505050509050805160001480610600575060035481600183516105d39190610c0e565b815181106105e3576105e3610c25565b602002602001015165ffffffffffff16436105fe9190610c0e565b115b15610658576001600160601b031984166000908152600160208181526040832080549283018155835290912060058083049091018054919092066006026101000a65ffffffffffff8181021990921643909216021790555b836bffffffffffffffffffffffff1916336001600160a01b03167f04645d1912a047d447f2f3fdbaefa7186c6d734f33ab331597682898704994234286866040516106a593929190610c3b565b60405180910390a350505050565b606060008267ffffffffffffffff8111156106d0576106d0610c66565b6040519080825280602002602001820160405280156106f9578160200160208202803683370190505b50905060005b8381101561079d576001600160601b03198616600090815260016020526040902061072a8287610c7c565b8154811061073a5761073a610c25565b90600052602060002090600591828204019190066006029054906101000a900465ffffffffffff1682828151811061077457610774610c25565b65ffffffffffff909216602092830291909101909101528061079581610c94565b9150506106ff565b50949350505050565b6000546001600160a01b031633146107d05760405162461bcd60e51b815260040161033b90610bc3565b6001600160a01b0381166108355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161033b565b61083e81610841565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160601b0319811681146108a957600080fd5b919050565b60008083601f8401126108c057600080fd5b50813567ffffffffffffffff8111156108d857600080fd5b6020830191508360208285010111156108f057600080fd5b9250929050565b60008060008060006060868803121561090f57600080fd5b61091886610891565b9450602086013567ffffffffffffffff8082111561093557600080fd5b61094189838a016108ae565b9096509450604088013591508082111561095a57600080fd5b50610967888289016108ae565b969995985093965092949392505050565b60008060006040848603121561098d57600080fd5b83356001600160a01b0319811681146109a557600080fd5b9250602084013567ffffffffffffffff8111156109c157600080fd5b6109cd868287016108ae565b9497909650939450505050565b6000602082840312156109ec57600080fd5b5035919050565b600060208284031215610a0557600080fd5b610a0e82610891565b9392505050565b60008060208385031215610a2857600080fd5b823567ffffffffffffffff811115610a3f57600080fd5b610a4b858286016108ae565b90969095509350505050565b60008060408385031215610a6a57600080fd5b610a7383610891565b946020939093013593505050565b600080600060408486031215610a9657600080fd5b6109a584610891565b600080600060608486031215610ab457600080fd5b610abd84610891565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b81811015610b1257835165ffffffffffff1683529284019291840191600101610aee565b50909695505050505050565b600060208284031215610b3057600080fd5b81356001600160a01b0381168114610a0e57600080fd5b8183823760009101908152919050565b80516020808301519190811015610b78576000198160200360031b1b821691505b50919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000610bbb602083018486610b7e565b949350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015610c2057610c20610bf8565b500390565b634e487b7160e01b600052603260045260246000fd5b65ffffffffffff84168152604060208201526000610c5d604083018486610b7e565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b60008219821115610c8f57610c8f610bf8565b500190565b6000600019821415610ca857610ca8610bf8565b506001019056fea26469706673582212201ceb48030877d27b843daa7864b20f3d49185bed4a582e5d4904b4e28d6ba17064736f6c634300080c0033"; export class BlockChat__factory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } deploy( overrides?: Overrides & { from?: string | Promise } ): Promise { return super.deploy(overrides || {}) as Promise; } getDeployTransaction( overrides?: Overrides & { from?: string | Promise } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } attach(address: string): BlockChat { return super.attach(address) as BlockChat; } connect(signer: Signer): BlockChat__factory { return super.connect(signer) as BlockChat__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): BlockChatInterface { return new utils.Interface(_abi) as BlockChatInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): BlockChat { return new Contract(address, _abi, signerOrProvider) as BlockChat; } }