diff --git a/abi/CommitManagerV2.json b/abi/CommitManagerV2.json new file mode 100644 index 00000000..c5583e37 --- /dev/null +++ b/abi/CommitManagerV2.json @@ -0,0 +1,785 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "hubAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "closestNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "ClosestNodeNotInNeighborhood", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint256", + "name": "commitWindowOpen", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "commitWindowClose", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "CommitWindowClosed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "closestNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "closestNodeDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "leftAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rightAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidClosestNode", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "leftEdgeNodeDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rightEdgeNodeAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidLeftEdgeNode", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "numberOfNodes", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "neighborhoodExpectedSize", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "neighborhoodActualSize", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidNeighborhoodSize", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint8", + "name": "agreementScoreFunctionId", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidProximityScoreFunctionsPairId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "rightEdgeNodeDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "leftEdgeNodeAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidRightEdgeNode", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + } + ], + "name": "NodeAlreadySubmittedCommit", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "uint8", + "name": "rank", + "type": "uint8" + } + ], + "name": "NodeNotAwarded", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "uint96", + "name": "ask", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "NodeNotInShardingTable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + } + ], + "name": "ServiceAgreementDoesntExist", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "startTime", + "type": "uint256" + }, + { + "internalType": "uint16", + "name": "epochsNumber", + "type": "uint16" + }, + { + "internalType": "uint128", + "name": "epochLength", + "type": "uint128" + } + ], + "name": "ServiceAgreementHasBeenExpired", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "assetContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "uint40", + "name": "score", + "type": "uint40" + } + ], + "name": "CommitSubmitted", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + } + ], + "name": "getTopCommitSubmissions", + "outputs": [ + { + "components": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + }, + { + "internalType": "uint40", + "name": "score", + "type": "uint40" + } + ], + "internalType": "struct ServiceAgreementStructsV1.CommitSubmission[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hashingProxy", + "outputs": [ + { + "internalType": "contract HashingProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hub", + "outputs": [ + { + "internalType": "contract Hub", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "identityStorage", + "outputs": [ + { + "internalType": "contract IdentityStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + } + ], + "name": "isCommitWindowOpen", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "parametersStorage", + "outputs": [ + { + "internalType": "contract ParametersStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "profileStorage", + "outputs": [ + { + "internalType": "contract ProfileStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proximityScoringProxy", + "outputs": [ + { + "internalType": "contract ProximityScoringProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "reqs", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "serviceAgreementStorageProxy", + "outputs": [ + { + "internalType": "contract ServiceAgreementStorageProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "req", + "type": "bool" + } + ], + "name": "setReq", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_status", + "type": "bool" + } + ], + "name": "setStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "shardingTableStorage", + "outputs": [ + { + "internalType": "contract ShardingTableStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "stakingContract", + "outputs": [ + { + "internalType": "contract StakingV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "stakingStorage", + "outputs": [ + { + "internalType": "contract StakingStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "status", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "assetContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + }, + { + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "closestNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + } + ], + "internalType": "struct ServiceAgreementStructsV2.CommitInputArgs", + "name": "args", + "type": "tuple" + } + ], + "name": "submitCommit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + } +] diff --git a/abi/CommitManagerV2U1.json b/abi/CommitManagerV2U1.json new file mode 100644 index 00000000..b47b2591 --- /dev/null +++ b/abi/CommitManagerV2U1.json @@ -0,0 +1,986 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "hubAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "closestNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "ClosestNodeNotInNeighborhood", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "commitWindowOpen", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "commitWindowClose", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "CommitWindowClosed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "closestNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "closestNodeDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "leftAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rightAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidClosestNode", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "leftEdgeNodeDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rightEdgeNodeAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidLeftEdgeNode", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "numberOfNodes", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "neighborhoodExpectedSize", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "neighborhoodActualSize", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidNeighborhoodSize", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint8", + "name": "agreementScoreFunctionId", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidProximityScoreFunctionsPairId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "rightEdgeNodeDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "leftEdgeNodeAdjacentDistance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeNow", + "type": "uint256" + } + ], + "name": "InvalidRightEdgeNode", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "assetStorage", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "NoPendingUpdate", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + } + ], + "name": "NodeAlreadySubmittedCommit", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "uint8", + "name": "rank", + "type": "uint8" + } + ], + "name": "NodeNotAwarded", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "uint96", + "name": "ask", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "NodeNotInShardingTable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + } + ], + "name": "ServiceAgreementDoesntExist", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "startTime", + "type": "uint256" + }, + { + "internalType": "uint16", + "name": "epochsNumber", + "type": "uint16" + }, + { + "internalType": "uint128", + "name": "epochLength", + "type": "uint128" + } + ], + "name": "ServiceAgreementHasBeenExpired", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "assetContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "uint40", + "name": "score", + "type": "uint40" + } + ], + "name": "CommitSubmitted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "assetContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "state", + "type": "bytes32" + } + ], + "name": "StateFinalized", + "type": "event" + }, + { + "inputs": [], + "name": "contentAssetStorage", + "outputs": [ + { + "internalType": "contract ContentAssetStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + } + ], + "name": "getTopCommitSubmissions", + "outputs": [ + { + "components": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + }, + { + "internalType": "uint40", + "name": "score", + "type": "uint40" + } + ], + "internalType": "struct ServiceAgreementStructsV1.CommitSubmission[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hashingProxy", + "outputs": [ + { + "internalType": "contract HashingProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hub", + "outputs": [ + { + "internalType": "contract Hub", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "identityStorage", + "outputs": [ + { + "internalType": "contract IdentityStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + } + ], + "name": "isCommitWindowOpen", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint256", + "name": "stateIndex", + "type": "uint256" + } + ], + "name": "isUpdateCommitWindowOpen", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "parametersStorage", + "outputs": [ + { + "internalType": "contract ParametersStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "profileStorage", + "outputs": [ + { + "internalType": "contract ProfileStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proximityScoringProxy", + "outputs": [ + { + "internalType": "contract ProximityScoringProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "reqs", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "serviceAgreementStorageProxy", + "outputs": [ + { + "internalType": "contract ServiceAgreementStorageProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "req", + "type": "bool" + } + ], + "name": "setReq", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_status", + "type": "bool" + } + ], + "name": "setStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "shardingTableStorage", + "outputs": [ + { + "internalType": "contract ShardingTableStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "stakingContract", + "outputs": [ + { + "internalType": "contract StakingV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "stakingStorage", + "outputs": [ + { + "internalType": "contract StakingStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "status", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "assetContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + }, + { + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "closestNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + } + ], + "internalType": "struct ServiceAgreementStructsV2.CommitInputArgs", + "name": "args", + "type": "tuple" + } + ], + "name": "submitCommit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "assetContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + }, + { + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "epoch", + "type": "uint16" + }, + { + "internalType": "uint72", + "name": "closestNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "leftEdgeNodeIndex", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightEdgeNodeIndex", + "type": "uint72" + } + ], + "internalType": "struct ServiceAgreementStructsV2.CommitInputArgs", + "name": "args", + "type": "tuple" + } + ], + "name": "submitUpdateCommit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unfinalizedStateStorage", + "outputs": [ + { + "internalType": "contract UnfinalizedStateStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + } +] diff --git a/abi/IProximityScoreFunctionsPair.json b/abi/IProximityScoreFunctionsPair.json new file mode 100644 index 00000000..db3392a2 --- /dev/null +++ b/abi/IProximityScoreFunctionsPair.json @@ -0,0 +1,65 @@ +[ + { + "inputs": [ + { + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + } + ], + "name": "calculateDistance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "distance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxDistance", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "maxNodesNumber", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "calculateScore", + "outputs": [ + { + "internalType": "uint40", + "name": "", + "type": "uint40" + } + ], + "stateMutability": "view", + "type": "function" + } +] diff --git a/abi/LinearSum.json b/abi/LinearSum.json new file mode 100644 index 00000000..2bb7f7dd --- /dev/null +++ b/abi/LinearSum.json @@ -0,0 +1,342 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "hubAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "parameterName", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "parameterValue", + "type": "uint256" + } + ], + "name": "ParameterChanged", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + } + ], + "name": "calculateDistance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "distance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxDistance", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "maxNodesNumber", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "calculateScore", + "outputs": [ + { + "internalType": "uint40", + "name": "", + "type": "uint40" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "distanceScaleFactor", + "outputs": [ + { + "internalType": "uint96", + "name": "", + "type": "uint96" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getParameters", + "outputs": [ + { + "internalType": "uint192", + "name": "", + "type": "uint192" + }, + { + "internalType": "uint32", + "name": "", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hashingProxy", + "outputs": [ + { + "internalType": "contract HashingProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hub", + "outputs": [ + { + "internalType": "contract Hub", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "id", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "distance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxDistance", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "nodesCount", + "type": "uint72" + } + ], + "name": "normalizeDistance", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "normalizeStake", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "parametersStorage", + "outputs": [ + { + "internalType": "contract ParametersStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint96", + "name": "distanceScaleFactor_", + "type": "uint96" + } + ], + "name": "setDistanceScaleFactor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint96", + "name": "stakeScaleFactor_", + "type": "uint96" + } + ], + "name": "setStakeScaleFactor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "w1_", + "type": "uint32" + } + ], + "name": "setW1", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "w2_", + "type": "uint32" + } + ], + "name": "setW2", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "stakeScaleFactor", + "outputs": [ + { + "internalType": "uint96", + "name": "", + "type": "uint96" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "w1", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "w2", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + } +] diff --git a/abi/ProximityScoringProxy.json b/abi/ProximityScoringProxy.json new file mode 100644 index 00000000..17fb63e7 --- /dev/null +++ b/abi/ProximityScoringProxy.json @@ -0,0 +1,331 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "hubAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "address", + "name": "newContractAddress", + "type": "address" + } + ], + "name": "NewScoringFunctionContract", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "address", + "name": "newContractAddress", + "type": "address" + } + ], + "name": "ScoringFunctionContractUpdated", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "proximityFunctionId", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "hashFunctionId", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "keyword", + "type": "bytes" + } + ], + "name": "callProximityFunction", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "distance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxDistance", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "nodesCount", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "callScoreFunction", + "outputs": [ + { + "internalType": "uint40", + "name": "", + "type": "uint40" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "distance", + "type": "uint256" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "callScoreFunction", + "outputs": [ + { + "internalType": "uint40", + "name": "", + "type": "uint40" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getAllScoreFunctions", + "outputs": [ + { + "components": [ + { + "internalType": "uint8", + "name": "id", + "type": "uint8" + }, + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "internalType": "struct UnorderedIndexableContractDynamicSetLib.Contract[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + } + ], + "name": "getScoreFunctionContractAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + } + ], + "name": "getScoreFunctionName", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hub", + "outputs": [ + { + "internalType": "contract Hub", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + } + ], + "name": "isScoreFunction", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + } + ], + "name": "removeContract", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "scoreFunctionId", + "type": "uint8" + }, + { + "internalType": "address", + "name": "scoringContractAddress", + "type": "address" + } + ], + "name": "setContractAddress", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_status", + "type": "bool" + } + ], + "name": "setStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "status", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + } +] diff --git a/abi/ServiceAgreementV1.json b/abi/ServiceAgreementV1.json index a63f7f3e..0635d134 100644 --- a/abi/ServiceAgreementV1.json +++ b/abi/ServiceAgreementV1.json @@ -28,6 +28,11 @@ }, { "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, { "internalType": "uint256", "name": "amount", @@ -39,6 +44,11 @@ }, { "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, { "internalType": "uint256", "name": "amount", diff --git a/abi/ShardingTable.json b/abi/ShardingTable.json index 28a5cc14..e1c14277 100644 --- a/abi/ShardingTable.json +++ b/abi/ShardingTable.json @@ -87,7 +87,7 @@ "type": "uint96" } ], - "internalType": "struct ShardingTableStructs.NodeInfo[]", + "internalType": "struct ShardingTableStructsV1.NodeInfo[]", "name": "", "type": "tuple[]" } @@ -133,7 +133,7 @@ "type": "uint96" } ], - "internalType": "struct ShardingTableStructs.NodeInfo[]", + "internalType": "struct ShardingTableStructsV1.NodeInfo[]", "name": "", "type": "tuple[]" } diff --git a/abi/ShardingTableStorage.json b/abi/ShardingTableStorage.json index 61ac368d..e5232b6f 100644 --- a/abi/ShardingTableStorage.json +++ b/abi/ShardingTableStorage.json @@ -86,7 +86,7 @@ "type": "uint72" } ], - "internalType": "struct ShardingTableStructs.Node[]", + "internalType": "struct ShardingTableStructsV1.Node[]", "name": "", "type": "tuple[]" } @@ -122,7 +122,7 @@ "type": "uint72" } ], - "internalType": "struct ShardingTableStructs.Node", + "internalType": "struct ShardingTableStructsV1.Node", "name": "", "type": "tuple" } diff --git a/abi/ShardingTableStorageV2.json b/abi/ShardingTableStorageV2.json new file mode 100644 index 00000000..235632d0 --- /dev/null +++ b/abi/ShardingTableStorageV2.json @@ -0,0 +1,430 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "hubAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "index", + "type": "uint72" + } + ], + "name": "createNodeObject", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "decrementNodeIndex", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decrementNodesCount", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "deleteNodeObject", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "index", + "type": "uint72" + } + ], + "name": "getIdentityIdByIndex", + "outputs": [ + { + "internalType": "uint72", + "name": "", + "type": "uint72" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "firstIdentityId", + "type": "uint72" + }, + { + "internalType": "uint16", + "name": "nodesNumber", + "type": "uint16" + } + ], + "name": "getMultipleNodes", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "index", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + } + ], + "internalType": "struct ShardingTableStructsV2.Node[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "getNode", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "index", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + } + ], + "internalType": "struct ShardingTableStructsV2.Node", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "index", + "type": "uint72" + } + ], + "name": "getNodeByIndex", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "index", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + } + ], + "internalType": "struct ShardingTableStructsV2.Node", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "head", + "outputs": [ + { + "internalType": "uint72", + "name": "", + "type": "uint72" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hub", + "outputs": [ + { + "internalType": "contract Hub", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "incrementNodeIndex", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "incrementNodesCount", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "leftNodeIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "rightNodeIdentityId", + "type": "uint72" + } + ], + "name": "link", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "nodeExists", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "nodesCount", + "outputs": [ + { + "internalType": "uint72", + "name": "", + "type": "uint72" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "setHead", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "index", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "setIdentityId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "newNextIdentityId", + "type": "uint72" + } + ], + "name": "setNextIdentityId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "newPrevIdentityId", + "type": "uint72" + } + ], + "name": "setPrevIdentityId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + } +] diff --git a/abi/ShardingTableV2.json b/abi/ShardingTableV2.json new file mode 100644 index 00000000..8b1a1400 --- /dev/null +++ b/abi/ShardingTableV2.json @@ -0,0 +1,397 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "hubAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "nextHashRingPosition", + "type": "uint256" + } + ], + "name": "InvalidNextIdentityId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint256", + "name": "prevHashRingPosition", + "type": "uint256" + } + ], + "name": "InvalidPreviousIdentityId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "sentPrevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "realPrevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "sentNextIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "realNextIdentityId", + "type": "uint72" + } + ], + "name": "InvalidPreviousOrNextIdentityId", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "ask", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "name": "NodeAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + } + ], + "name": "NodeRemoved", + "type": "event" + }, + { + "inputs": [], + "name": "getShardingTable", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "ask", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "internalType": "struct ShardingTableStructsV2.NodeInfo[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "startingIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nodesNumber", + "type": "uint72" + } + ], + "name": "getShardingTable", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "hashRingPosition", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "ask", + "type": "uint96" + }, + { + "internalType": "uint96", + "name": "stake", + "type": "uint96" + } + ], + "internalType": "struct ShardingTableStructsV2.NodeInfo[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hub", + "outputs": [ + { + "internalType": "contract Hub", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "insertNode", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "prevIdentityId", + "type": "uint72" + }, + { + "internalType": "uint72", + "name": "nextIdentityId", + "type": "uint72" + } + ], + "name": "insertNode", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "profileStorage", + "outputs": [ + { + "internalType": "contract ProfileStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "removeNode", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_status", + "type": "bool" + } + ], + "name": "setStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "shardingTableStorage", + "outputs": [ + { + "internalType": "contract ShardingTableStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "stakingStorage", + "outputs": [ + { + "internalType": "contract StakingStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "status", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + } +] diff --git a/abi/StakingV2.json b/abi/StakingV2.json new file mode 100644 index 00000000..ce859ff9 --- /dev/null +++ b/abi/StakingV2.json @@ -0,0 +1,573 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "hubAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "InvalidOperatorFee", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "MaximumStakeExceeded", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "OnlyProfileAdminFunction", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "ProfileDoesntExist", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "TooLowAllowance", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "TooLowBalance", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "endTimestamp", + "type": "uint256" + } + ], + "name": "WithdrawalPeriodPending", + "type": "error" + }, + { + "inputs": [], + "name": "WithdrawalWasntInitiated", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroSharesAmount", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "oldAccumulatedOperatorFee", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "newAccumulatedOperatorFee", + "type": "uint96" + } + ], + "name": "AccumulatedOperatorFeeIncreased", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "operatorFee", + "type": "uint8" + } + ], + "name": "OperatorFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "indexed": true, + "internalType": "address", + "name": "staker", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "oldStake", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "newStake", + "type": "uint96" + } + ], + "name": "StakeIncreased", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "indexed": true, + "internalType": "address", + "name": "staker", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "oldStake", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "newStake", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "withdrawalPeriodEnd", + "type": "uint256" + } + ], + "name": "StakeWithdrawalStarted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "nodeId", + "type": "bytes" + }, + { + "indexed": true, + "internalType": "address", + "name": "staker", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "withdrawnStakeAmount", + "type": "uint96" + } + ], + "name": "StakeWithdrawn", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "agreementId", + "type": "bytes32" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "rewardAmount", + "type": "uint96" + } + ], + "name": "addReward", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "stakeAmount", + "type": "uint96" + } + ], + "name": "addStake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "stakeAmount", + "type": "uint96" + } + ], + "name": "addStake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "hub", + "outputs": [ + { + "internalType": "contract Hub", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "identityStorage", + "outputs": [ + { + "internalType": "contract IdentityStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "parametersStorage", + "outputs": [ + { + "internalType": "contract ParametersStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "profileStorage", + "outputs": [ + { + "internalType": "contract ProfileStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "serviceAgreementStorageProxy", + "outputs": [ + { + "internalType": "contract ServiceAgreementStorageProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint8", + "name": "operatorFee", + "type": "uint8" + } + ], + "name": "setOperatorFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_status", + "type": "bool" + } + ], + "name": "setStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "shardingTableContract", + "outputs": [ + { + "internalType": "contract ShardingTableV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "shardingTableStorage", + "outputs": [ + { + "internalType": "contract ShardingTableStorageV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "slash", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "stakingStorage", + "outputs": [ + { + "internalType": "contract StakingStorage", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + }, + { + "internalType": "uint96", + "name": "sharesToBurn", + "type": "uint96" + } + ], + "name": "startStakeWithdrawal", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "status", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "tokenContract", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint72", + "name": "identityId", + "type": "uint72" + } + ], + "name": "withdrawStake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/hardhat.config.ts b/hardhat.config.ts index 826fe7c2..be9d7d92 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -122,9 +122,15 @@ config.abiExporter = { 'IERC734Extended.sol', 'IERC4906.sol', 'Ownable.sol', + 'CommitManagerErrorsV2.sol', 'ContentAssetErrors.sol', + 'ProfileErrors.sol', 'ServiceAgreementErrorsV1.sol', 'ServiceAgreementErrorsV1U1.sol', + 'ServiceAgreementErrorsV2.sol', + 'ShardingTableErrors.sol', + 'StakingErrors.sol', + 'TokenErrors.sol', 'Shares.sol', ], spacing: 2, diff --git a/index.ts b/index.ts index 70660d08..8bb7008e 100644 --- a/index.ts +++ b/index.ts @@ -3,6 +3,8 @@ import Assertion from './abi/Assertion.json'; import AssertionStorage from './abi/AssertionStorage.json'; import CommitManagerV1 from './abi/CommitManagerV1.json'; import CommitManagerV1U1 from './abi/CommitManagerV1U1.json'; +import CommitManagerV2 from './abi/CommitManagerV2.json'; +import CommitManagerV2U1 from './abi/CommitManagerV2U1.json'; import ContentAsset from './abi/ContentAsset.json'; import ContentAssetStorage from './abi/ContentAssetStorage.json'; import ContentAssetStorageV2 from './abi/ContentAssetStorageV2.json'; @@ -20,7 +22,8 @@ import IdentityStorageV2 from './abi/IdentityStorageV2.json'; import IHashFunction from './abi/IHashFunction.json'; import Indexable from './abi/Indexable.json'; import Initializable from './abi/Initializable.json'; -import IScoreFunction from './abi/IScoreFunction.json'; +import IProximityScoreFunctionsPair from './abi/IProximityScoreFunctionsPair.json'; +import LinearSum from './abi/LinearSum.json'; import Log2PLDSF from './abi/Log2PLDSF.json'; import MultiSigWallet from './abi/MultiSigWallet.json'; import Named from './abi/Named.json'; @@ -29,7 +32,7 @@ import Profile from './abi/Profile.json'; import ProfileStorage from './abi/ProfileStorage.json'; import ProofManagerV1 from './abi/ProofManagerV1.json'; import ProofManagerV1U1 from './abi/ProofManagerV1U1.json'; -import ScoringProxy from './abi/ScoringProxy.json'; +import ProximityScoringProxy from './abi/ProximityScoringProxy.json'; import ServiceAgreementStorageProxy from './abi/ServiceAgreementStorageProxy.json'; import ServiceAgreementStorageV1 from './abi/ServiceAgreementStorageV1.json'; import ServiceAgreementStorageV1U1 from './abi/ServiceAgreementStorageV1U1.json'; @@ -37,8 +40,11 @@ import ServiceAgreementV1 from './abi/ServiceAgreementV1.json'; import SHA256 from './abi/SHA256.json'; import ShardingTable from './abi/ShardingTable.json'; import ShardingTableStorage from './abi/ShardingTableStorage.json'; +import ShardingTableStorageV2 from './abi/ShardingTableStorageV2.json'; +import ShardingTableV2 from './abi/ShardingTableV2.json'; import Staking from './abi/Staking.json'; import StakingStorage from './abi/StakingStorage.json'; +import StakingV2 from './abi/StakingV2.json'; import Token from './abi/Token.json'; import UnfinalizedStateStorage from './abi/UnfinalizedStateStorage.json'; import Versioned from './abi/Versioned.json'; @@ -49,7 +55,7 @@ const ABIV1 = { HubController, ParametersStorage, HashingProxy, - ScoringProxy, + ScoringProxy: ProximityScoringProxy, SHA256, ShardingTableStorage, ShardingTable, @@ -68,6 +74,7 @@ const ABIV1 = { Token, IdentityStorage, Identity, + LinearSum, Log2PLDSF, ProfileStorage, Profile, @@ -84,7 +91,7 @@ const ABIV1 = { IHashFunction, Indexable, Initializable, - IScoreFunction, + IScoreFunction: IProximityScoreFunctionsPair, Named, Versioned, }; @@ -93,6 +100,11 @@ const ABIV2 = { HubV2, ContentAssetStorageV2, IdentityStorageV2, + CommitManagerV2, + CommitManagerV2U1, + ShardingTableV2, + ShardingTableStorageV2, + StakingV2, }; export { @@ -100,18 +112,18 @@ export { HubController as HubControllerABI, ParametersStorage as ParametersStorageABI, HashingProxy as HashingProxyABI, - ScoringProxy as ScoringProxyABI, + ProximityScoringProxy as ScoringProxyABI, SHA256 as SHA256ABI, - ShardingTableStorage as ShardingTableStorageABI, - ShardingTable as ShardingTableABI, + ShardingTableStorageV2 as ShardingTableStorageABI, + ShardingTableV2 as ShardingTableABI, AssertionStorage as AssertionStorageABI, Assertion as AssertionABI, ServiceAgreementStorageV1 as ServiceAgreementStorageV1ABI, ServiceAgreementStorageV1U1 as ServiceAgreementStorageV1U1ABI, ServiceAgreementStorageProxy as ServiceAgreementStorageProxyABI, ServiceAgreementV1 as ServiceAgreementV1ABI, - CommitManagerV1 as CommitManagerV1ABI, - CommitManagerV1U1 as CommitManagerV1U1ABI, + CommitManagerV2 as CommitManagerV1ABI, + CommitManagerV2U1 as CommitManagerV1U1ABI, ProofManagerV1 as ProofManagerV1ABI, ProofManagerV1U1 as ProofManagerV1U1ABI, ContentAssetStorageV2 as ContentAssetStorageABI, @@ -119,11 +131,12 @@ export { Token as TokenABI, IdentityStorageV2 as IdentityStorageABI, Identity as IdentityABI, + LinearSum as LinearSumABI, Log2PLDSF as Log2PLDSFABI, ProfileStorage as ProfileStorageABI, Profile as ProfileABI, StakingStorage as StakingStorageABI, - Staking as StakingABI, + StakingV2 as StakingABI, UnfinalizedStateStorage as UnfinalizedStateStorageABI, WhitelistStorage as WhitelistStorageABI, MultiSigWallet as MultiSigWalletABI, @@ -135,7 +148,7 @@ export { IHashFunction as IHashFunctionABI, Indexable as IndexableABI, Initializable as InitializableABI, - IScoreFunction as IScoreFunctionABI, + IProximityScoreFunctionsPair as IScoreFunctionABI, Named as NamedABI, Versioned as VersionedABI, ABIV1,