UNPKG

@foreverrbum/ethsign

Version:

This package will allow you to electronically sign documents within your application

1,132 lines 3.24 MB
{ "contractName": "EthSign", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "signer", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "LogAddedNewSignerForDocument", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "party", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "LogArchivedDocument", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "provider", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id0", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id1", "type": "bytes32" } ], "name": "LogChangedDocumentStorage", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "newInitiator", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "LogChangedInitiator", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "provider", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id0", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id1", "type": "bytes32" } ], "name": "LogChangedMetadataStorage", "type": "event" }, { "anonymous": false, "inputs": [], "name": "LogContractPaused", "type": "event" }, { "anonymous": false, "inputs": [], "name": "LogContractUnpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "author", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "provider", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id0", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id1", "type": "bytes32" } ], "name": "LogEditedCommentOnDocument", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "author", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "provider", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id0", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "storage_id1", "type": "bytes32" } ], "name": "LogLeftNewCommentOnDocument", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "initiator", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "documentName", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "numOfSigners", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "expiration", "type": "uint256" } ], "name": "LogNewDocument", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "signer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "number", "type": "uint256" } ], "name": "LogSetNumberOfSignatureFields", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "signer", "type": "address" } ], "name": "LogSignedDocument", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "signer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "LogSignedDocumentSignatureField", "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" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "inputs": [ { "internalType": "string", "name": "uuid", "type": "string" } ], "name": "hashDocumentKey", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "forwarder", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "forwarder", "type": "address" } ], "name": "isTrustedForwarder", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "signature", "type": "bytes" } ], "name": "splitECSignature", "outputs": [ { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }, { "internalType": "uint8", "name": "v", "type": "uint8" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "bytes32", "name": "hash", "type": "bytes32" }, { "internalType": "bytes", "name": "signature", "type": "bytes" } ], "name": "verifyECSignatureSigner", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "hashSaltedDocumentMappingKey", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "hashSaltedMetaDocumentMappingKey", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "address", "name": "signer", "type": "address" } ], "name": "hashSaltedAddressMappingKey", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "hashSaltedAddressWithIndexMappingKeyAsSigner", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getDocumentBasicInfo", "outputs": [ { "internalType": "address", "name": "initiator", "type": "address" }, { "internalType": "bytes32", "name": "name", "type": "bytes32" }, { "internalType": "uint256", "name": "birth", "type": "uint256" }, { "internalType": "uint256", "name": "expiration", "type": "uint256" }, { "internalType": "uint256", "name": "numOfSigners", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getDocumentDocStorageInfo", "outputs": [ { "internalType": "bytes32", "name": "docStorageProvider", "type": "bytes32" }, { "internalType": "bytes32", "name": "docStorage_id0", "type": "bytes32" }, { "internalType": "bytes32", "name": "docStorage_id1", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getDocumentMetaStorageInfo", "outputs": [ { "internalType": "bytes32", "name": "metaStorageProvider", "type": "bytes32" }, { "internalType": "bytes32", "name": "metaStorage_id0", "type": "bytes32" }, { "internalType": "bytes32", "name": "metaStorage_id1", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getNumberOfSignersForDocument", "outputs": [ { "internalType": "uint256", "name": "count", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "getDocumentSignerAtIndex", "outputs": [ { "internalType": "address", "name": "signer", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getDocumentRSVForLegacySigner", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" }, { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" }, { "internalType": "uint8[]", "name": "", "type": "uint8[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getDocumentECDSAForSigner", "outputs": [ { "internalType": "bytes[20]", "name": "signatures", "type": "bytes[20]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getDocumentCommentsForSigner", "outputs": [ { "internalType": "bytes32", "name": "provider", "type": "bytes32" }, { "internalType": "bytes32", "name": "storage_id0", "type": "bytes32" }, { "internalType": "bytes32", "name": "storage_id1", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "getDocumentStatus", "outputs": [ { "internalType": "uint256", "name": "totalSigners", "type": "uint256" }, { "internalType": "uint256", "name": "signedSigners", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "aggregateGetIsSignedForAllSignatureFields", "outputs": [ { "components": [ { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "bool[]", "name": "fieldSigned", "type": "bool[]" } ], "internalType": "struct IEthSign._HelperSignerSignatureFieldStatus[]", "name": "fieldSignedInfo", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "aggregateGetAllCommentsOfAllSigners", "outputs": [ { "components": [ { "internalType": "address", "name": "signer", "type": "address" }, { "components": [ { "internalType": "bytes32", "name": "provider", "type": "bytes32" }, { "internalType": "bytes32", "name": "storage_id0", "type": "bytes32" }, { "internalType": "bytes32", "name": "storage_id1", "type": "bytes32" } ], "internalType": "struct IEthSign.StorageInfo", "name": "commentStorageInfo", "type": "tuple" } ], "internalType": "struct IEthSign._HelperCommentInfo[]", "name": "hci", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "bytes32", "name": "provider", "type": "bytes32" }, { "internalType": "bytes32", "name": "storage_id0", "type": "bytes32" }, { "internalType": "bytes32", "name": "storage_id1", "type": "bytes32" } ], "name": "setDocumentCommentsAsSigner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" } ], "name": "clearDocumentCommentsAsInitiator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32[]", "name": "documentKeys", "type": "bytes32[]" } ], "name": "archiveDocuments", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "bytes32", "name": "name", "type": "bytes32" }, { "internalType": "uint256", "name": "expiration", "type": "uint256" }, { "internalType": "uint256", "name": "numOfSigners", "type": "uint256" }, { "internalType": "bytes32[3]", "name": "providers", "type": "bytes32[3]" }, { "internalType": "bytes32[6]", "name": "storage_ids", "type": "bytes32[6]" }, { "internalType": "address[]", "name": "signers", "type": "address[]" }, { "internalType": "uint256[]", "name": "numOfSigFields", "type": "uint256[]" } ], "name": "aggregateNewBasicDocumentAndSetStorage", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "uint256[]", "name": "indices", "type": "uint256[]" }, { "internalType": "bytes[]", "name": "signatures", "type": "bytes[]" } ], "name": "aggregateSetSigFieldForDocument", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "uint256[]", "name": "indices", "type": "uint256[]" }, { "internalType": "bytes[]", "name": "signatures", "type": "bytes[]" }, { "internalType": "bytes32[3]", "name": "storageInfo", "type": "bytes32[3]" } ], "name": "aggregateSetSigFieldsAndCommentsAsSigner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "documentKey", "type": "bytes32" }, { "internalType": "address", "name": "newInitiator", "type": "address" }, { "internalType": "bytes", "name": "signature", "type": "bytes" } ], "name": "changeInitiator", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"LogAddedNewSignerForDocument\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"party\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"LogArchivedDocument\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"provider\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id0\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id1\",\"type\":\"bytes32\"}],\"name\":\"LogChangedDocumentStorage\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newInitiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"LogChangedInitiator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"provider\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id0\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id1\",\"type\":\"bytes32\"}],\"name\":\"LogChangedMetadataStorage\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"LogContractPaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"LogContractUnpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"author\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"provider\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id0\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id1\",\"type\":\"bytes32\"}],\"name\":\"LogEditedCommentOnDocument\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"author\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"provider\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id0\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storage_id1\",\"type\":\"bytes32\"}],\"name\":\"LogLeftNewCommentOnDocument\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"numOfSigners\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"}],\"name\":\"LogNewDocument\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"LogSetNumberOfSignatureFields\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"}],\"name\":\"LogSignedDocument\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"LogSignedDocumentSignatureField\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"aggregateGetAllCommentsOfAllSigners\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"provider\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"storage_id0\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"storage_id1\",\"type\":\"bytes32\"}],\"internalType\":\"struct IEthSign.StorageInfo\",\"name\":\"commentStorageInfo\",\"type\":\"tuple\"}],\"internalType\":\"struct IEthSign._HelperCommentInfo[]\",\"name\":\"hci\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"aggregateGetIsSignedForAllSignatureFields\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"bool[]\",\"name\":\"fieldSigned\",\"type\":\"bool[]\"}],\"internalType\":\"struct IEthSign._HelperSignerSignatureFieldStatus[]\",\"name\":\"fieldSignedInfo\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"name\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"numOfSigners\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[3]\",\"name\":\"providers\",\"type\":\"bytes32[3]\"},{\"internalType\":\"bytes32[6]\",\"name\":\"storage_ids\",\"type\":\"bytes32[6]\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"numOfSigFields\",\"type\":\"uint256[]\"}],\"name\":\"aggregateNewBasicDocumentAndSetStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"indices\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"aggregateSetSigFieldForDocument\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"indices\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32[3]\",\"name\":\"storageInfo\",\"type\":\"bytes32[3]\"}],\"name\":\"aggregateSetSigFieldsAndCommentsAsSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"documentKeys\",\"type\":\"bytes32[]\"}],\"name\":\"archiveDocuments\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"newInitiator\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"changeInitiator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"clearDocumentCommentsAsInitiator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getDocumentBasicInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"name\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"birth\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"numOfSigners\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getDocumentCommentsForSigner\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"provider\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"storage_id0\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"storage_id1\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getDocumentDocStorageInfo\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"docStorageProvider\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"docStorage_id0\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"docStorage_id1\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getDocumentECDSAForSigner\",\"outputs\":[{\"internalType\":\"bytes[20]\",\"name\":\"signatures\",\"type\":\"bytes[20]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getDocumentMetaStorageInfo\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"metaStorageProvider\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"metaStorage_id0\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"metaStorage_id1\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getDocumentRSVForLegacySigner\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8[]\",\"name\":\"\",\"type\":\"uint8[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getDocumentSignerAtIndex\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getDocumentStatus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalSigners\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"signedSigners\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"getNumberOfSignersForDocument\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"uuid\",\"type\":\"string\"}],\"name\":\"hashDocumentKey\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"}],\"name\":\"hashSaltedAddressMappingKey\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"hashSaltedAddressWithIndexMappingKeyAsSigner\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"hashSaltedDocumentMappingKey\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"}],\"name\":\"hashSaltedMetaDocumentMappingKey\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"name\":\"isTrustedForwarder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"documentKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"provider\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"storage_id0\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"storage_id1\",\"type\":\"bytes32\"}],\"name\":\"setDocumentCommentsAsSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"splitECSignature\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"verifyECSignatureSigner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"EthSign 3.0 Smart Contract with ERC2771 compliance. Please read this before modifying storage: https://docs.openzeppelin.com/upgrades-plugins/1.x/writing-upgradeable\",\"kind\":\"dev\",\"methods\":{\"aggregateGetAllCommentsOfAllSigners(bytes32)\":{\"details\":\"Gets the comment file of each signer in a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\"},\"returns\":{\"hci\":\".\"}},\"aggregateGetIsSignedForAllSignatureFields(bytes32)\":{\"details\":\"Gets the status of each signature field of each signer in a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\"},\"returns\":{\"fieldSignedInfo\":\".\"}},\"aggregateNewBasicDocumentAndSetStorage(bytes32,bytes32,uint256,uint256,bytes32[3],bytes32[6],address[],uint256[])\":{\"details\":\"Creates a new document.\",\"params\":{\"documentKey\":\"The documentKey of the new document. Will revert if documentKey exists.\",\"expiration\":\"The intended expiration block of the new document.\",\"name\":\"The name of the new document.\",\"numOfSigners\":\"The intended total number of signers. Please note signers are added in a separate step.\",\"providers\":\"The document, metadata, and comment storage providers in an ordered array.\",\"storage_ids\":\"The document storage and metadata storage CIDs in an ordered array: `[doc_storage_id0, doc_storage_id1, meta_storage_id0, meta_storage_id1, comment_storage_id0, comment_storage_id1]`. Emits LogNewDocument, LogChangedDocumentStorage, LogChangedMetadataStorage Optionally emits LogLeftNewCommentOnDocument\"}},\"aggregateSetSigFieldForDocument(bytes32,address,uint256[],bytes[])\":{\"details\":\"Populates all assigned signature fields in a document with their ECDSA signatures.\",\"params\":{\"documentKey\":\"The documentKey of the specified document. Will revert if documentKey does not exist.\",\"indices\":\"An ordered array, includes the index of the signature fields of each signer in the document.\",\"signatures\":\"The ordered raw ECDSA signatures. Emits LogSignedDocumentSignatureField Optionally emit LogSignedDocument\"}},\"aggregateSetSigFieldsAndCommentsAsSigner(bytes32,uint256[],bytes[],bytes32[3])\":{\"details\":\"Sets signature fields and comments in one transaction.\",\"params\":{\"documentKey\":\"The documentKey of the specified document. Will revert if documentKey does not exist.\",\"indices\":\"An ordered array, includes the index of the signature fields of each signer in the document.\",\"signatures\":\"The ordered raw ECDSA signatures.\",\"storageInfo\":\"An ordered array consisting of: provider, storage_id0, storage_id1.\"}},\"archiveDocuments(bytes32[])\":{\"details\":\"Archives the specified documents as a signer (does not affect other signers).\",\"params\":{\"documentKeys\":\"The documentKeys of the specified documents. Will revert if any documentKey does not exist.\"}},\"changeInitiator(bytes32,address,bytes)\":{\"details\":\"Changes the initiator of a new document with permission from the previous initiator.\",\"params\":{\"documentKey\":\"The documentKey of the specified document. Will revert if documentKey does not exist.\",\"newInitiator\":\"The new initiator.\",\"signature\":\"The raw ECDSA signature from the previous initiator, which will be validated on-chain. Will revert if validation fails.\"}},\"clearDocumentCommentsAsInitiator(bytes32)\":{\"details\":\"Clears the comment XFDF metadata file for a signers of a document as the initiator.\",\"params\":{\"documentKey\":\"The documentKey of the specified document. Will revert if documentKey does not exist.\"}},\"getDocumentBasicInfo(bytes32)\":{\"details\":\"Retrieves basic information of a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\"},\"returns\":{\"birth\":\"The block number when the document is created.\",\"expiration\":\"The expiration block of the document.\",\"initiator\":\"The initiator of this document.\",\"name\":\"The name of the document.\",\"numOfSigners\":\"The total number of signers for this document.\"}},\"getDocumentCommentsForSigner(address,bytes32)\":{\"details\":\"Gets the comment XFDF metadata file of a signer at an index in a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\",\"signer\":\"The address of the signer.\"},\"returns\":{\"provider\":\"The storage provider. For example, IP = IPFS, AR = Arweave.\",\"storage_id0\":\"The first part of the CID.\",\"storage_id1\":\"The second part of the CID (if applicable).\"}},\"getDocumentDocStorageInfo(bytes32)\":{\"details\":\"Retrieves storage information of a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\"},\"returns\":{\"docStorageProvider\":\"The storage provider. For example, IP = IPFS, AR = Arweave.\",\"docStorage_id0\":\"The first part of the CID.\",\"docStorage_id1\":\"The second part of the CID (if applicable).\"}},\"getDocumentECDSAForSigner(address,bytes32)\":{\"details\":\"Gets the raw ECDSA signature of a signer in a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\",\"signer\":\"The address of the signer.\"},\"returns\":{\"signatures\":\"All raw ECDSA signatures of a signer in the document.\"}},\"getDocumentMetaStorageInfo(bytes32)\":{\"details\":\"Retrieves metadata annontation storage information of a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\"},\"returns\":{\"metaStorageProvider\":\"The storage provider. For example, IP = IPFS, AR = Arweave.\",\"metaStorage_id0\":\"The first part of the CID.\",\"metaStorage_id1\":\"The second part of the CID (if applicable).\"}},\"getDocumentRSVForLegacySigner(address,bytes32)\":{\"details\":\"(Legacy) Gets all split ECDSA signatures of a signer in a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\",\"signer\":\"The address of the signer.\"},\"returns\":{\"_0\":\"The r values of the ECDSA signature.\",\"_1\":\"The s values of the ECDSA signature.\",\"_2\":\"The v values of the ECDSA signature.\"}},\"getDocumentSignerAtIndex(bytes32,uint256)\":{\"details\":\"Gets the address of the signer at the provided index in a document. Unordered, used to iterate.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\",\"index\":\"The index of the signer in the specified document.\"},\"returns\":{\"signer\":\"The address of the signer at the provided index.\"}},\"getDocumentStatus(bytes32)\":{\"details\":\"Gets the status of a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\"},\"returns\":{\"signedSigners\":\"The number of signers who have signed all signature fields.\",\"totalSigners\":\"The total number of signers.\"}},\"getNumberOfSignersForDocument(bytes32)\":{\"details\":\"Gets the total number of signers added to a document.\",\"params\":{\"documentKey\":\"The documentKey of the document of interest.\"},\"returns\":{\"count\":\"The number of signers in total for the specified document.\"}},\"hashDocumentKey(string)\":{\"details\":\"Hashes the input string using `keccak256(abi.encodePacked())`.\",\"params\":{\"uuid\":\"The input string, usually UUID v4. But really, this is no restriction.\"}},\"hashSaltedAddressMappingKey(bytes32,address)\":{\"details\":\"Generates a mapping key by packing document key, document storage information, document metadata storage information, and the signer's address.\",\"params\":{\"documentKey\":\"A valid documentKey, although there is no check.\",\"signer\":\"The signer's address.\"}},\"hashSaltedAddressWithIndexMappingKeyAsSigner(bytes32,uint256)\":{\"details\":\"Generates a mapping key by packing document key, document storage information, document metadata storage information, msg.sender, and the signature field index.\",\"params\":{\"documentKey\":\"A valid documentKey, although there is no check.\",\"index\":\"The signature field index.\"}},\"hashSaltedDocumentMappingKey(bytes32)\":{\"details\":\"Generates a mapping key by packing document key and document storage information.\",\"params\":{\"documentKey\":\"A valid documentKey, although there is no check.\"}},\"hashSaltedM