Skip to content

Commit

Permalink
Merge pull request #217 from OriginTrail/fix/sharding-table-v2-rework
Browse files Browse the repository at this point in the history
Reworked ShardingTableV2
  • Loading branch information
0xbraindevd authored Jan 30, 2024
2 parents 86642fa + 645e328 commit 316b67a
Show file tree
Hide file tree
Showing 22 changed files with 979 additions and 902 deletions.
99 changes: 89 additions & 10 deletions abi/CommitManagerV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,32 @@
"name": "InvalidRightEdgeNode",
"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": "InvalidScoreFunctionId",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -549,23 +575,23 @@
},
{
"inputs": [],
"name": "name",
"name": "linearSum",
"outputs": [
{
"internalType": "string",
"internalType": "contract LinearSum",
"name": "",
"type": "string"
"type": "address"
}
],
"stateMutability": "pure",
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "parametersStorage",
"name": "log2pldsf",
"outputs": [
{
"internalType": "contract ParametersStorage",
"internalType": "contract Log2PLDSF",
"name": "",
"type": "address"
}
Expand All @@ -575,10 +601,23 @@
},
{
"inputs": [],
"name": "profileStorage",
"name": "name",
"outputs": [
{
"internalType": "contract ProfileStorage",
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "parametersStorage",
"outputs": [
{
"internalType": "contract ParametersStorage",
"name": "",
"type": "address"
}
Expand All @@ -588,10 +627,10 @@
},
{
"inputs": [],
"name": "proximityScoringProxy",
"name": "profileStorage",
"outputs": [
{
"internalType": "contract ProximityScoringProxy",
"internalType": "contract ProfileStorage",
"name": "",
"type": "address"
}
Expand Down Expand Up @@ -714,6 +753,46 @@
"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": "struct ServiceAgreementStructsV1.CommitInputArgs",
"name": "args",
"type": "tuple"
}
],
"name": "submitCommit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
139 changes: 129 additions & 10 deletions abi/CommitManagerV2U1.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,32 @@
"name": "InvalidRightEdgeNode",
"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": "InvalidScoreFunctionId",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -682,23 +708,23 @@
},
{
"inputs": [],
"name": "name",
"name": "linearSum",
"outputs": [
{
"internalType": "string",
"internalType": "contract LinearSum",
"name": "",
"type": "string"
"type": "address"
}
],
"stateMutability": "pure",
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "parametersStorage",
"name": "log2pldsf",
"outputs": [
{
"internalType": "contract ParametersStorage",
"internalType": "contract Log2PLDSF",
"name": "",
"type": "address"
}
Expand All @@ -708,10 +734,23 @@
},
{
"inputs": [],
"name": "profileStorage",
"name": "name",
"outputs": [
{
"internalType": "contract ProfileStorage",
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "parametersStorage",
"outputs": [
{
"internalType": "contract ParametersStorage",
"name": "",
"type": "address"
}
Expand All @@ -721,10 +760,10 @@
},
{
"inputs": [],
"name": "proximityScoringProxy",
"name": "profileStorage",
"outputs": [
{
"internalType": "contract ProximityScoringProxy",
"internalType": "contract ProfileStorage",
"name": "",
"type": "address"
}
Expand Down Expand Up @@ -847,6 +886,46 @@
"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": "struct ServiceAgreementStructsV1.CommitInputArgs",
"name": "args",
"type": "tuple"
}
],
"name": "submitCommit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -902,6 +981,46 @@
"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": "struct ServiceAgreementStructsV1.CommitInputArgs",
"name": "args",
"type": "tuple"
}
],
"name": "submitUpdateCommit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
Loading

0 comments on commit 316b67a

Please sign in to comment.