Skip to content

Commit

Permalink
Merge pull request #224 from OriginTrail/improvement/profile-v2
Browse files Browse the repository at this point in the history
Added ProfileV2 with possibility to set initial operator fee on profile creation, added limit for the Sharding Table size
  • Loading branch information
br41nl3t authored Feb 8, 2024
2 parents b27fff2 + d071fe0 commit 6e43119
Show file tree
Hide file tree
Showing 37 changed files with 628 additions and 159 deletions.
18 changes: 18 additions & 0 deletions abi/Identity.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,24 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "address[]",
"name": "operationalWallets",
"type": "address[]"
}
],
"name": "addOperationalWallets",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
78 changes: 78 additions & 0 deletions abi/ParametersStorage.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "hashFunctionsLimit",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "hub",
Expand Down Expand Up @@ -146,6 +159,19 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "opWalletsLimitOnProfileCreation",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "proofWindowDurationPerc",
Expand Down Expand Up @@ -263,6 +289,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "hashFunctionsLimit_",
"type": "uint16"
}
],
"name": "setHashFunctionsLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -315,6 +354,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "opWalletsLimitOnProfileCreation_",
"type": "uint16"
}
],
"name": "setOpWalletsLimitOnProfileCreation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -393,6 +445,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "shardingTableSizeLimit_",
"type": "uint16"
}
],
"name": "setShardingTableSizeLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -432,6 +497,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "shardingTableSizeLimit",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "slashingFreezeDuration",
Expand Down
179 changes: 179 additions & 0 deletions abi/Profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,156 @@
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "EmptyNodeId",
"type": "error"
},
{
"inputs": [],
"name": "EmptySharesTokenName",
"type": "error"
},
{
"inputs": [],
"name": "EmptySharesTokenSymbol",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "address",
"name": "wallet",
"type": "address"
}
],
"name": "IdentityAlreadyExists",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "NoOperatorFees",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "nodeId",
"type": "bytes"
}
],
"name": "NodeIdAlreadyExists",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
}
],
"name": "OnlyProfileAdminFunction",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
}
],
"name": "OnlyProfileAdminOrOperationalAddressesFunction",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
}
],
"name": "OnlyWhitelistedAddressesFunction",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "tokenName",
"type": "string"
}
],
"name": "SharesTokenNameAlreadyExists",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "tokenSymbol",
"type": "string"
}
],
"name": "SharesTokenSymbolAlreadyExists",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "allowed",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "provided",
"type": "uint16"
}
],
"name": "TooManyOperationalWallets",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nowTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endTimestamp",
"type": "uint256"
}
],
"name": "WithdrawalPeriodPending",
"type": "error"
},
{
"inputs": [],
"name": "WithdrawalWasntInitiated",
"type": "error"
},
{
"inputs": [],
"name": "ZeroAsk",
"type": "error"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -50,6 +200,12 @@
"name": "nodeId",
"type": "bytes"
},
{
"indexed": false,
"internalType": "address",
"name": "adminWallet",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
Expand Down Expand Up @@ -80,6 +236,11 @@
"name": "adminWallet",
"type": "address"
},
{
"internalType": "address[]",
"name": "operationalWallets",
"type": "address[]"
},
{
"internalType": "bytes",
"name": "nodeId",
Expand All @@ -94,6 +255,11 @@
"internalType": "string",
"name": "sharesTokenSymbol",
"type": "string"
},
{
"internalType": "uint8",
"name": "initialOperatorFee",
"type": "uint8"
}
],
"name": "createProfile",
Expand Down Expand Up @@ -256,6 +422,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "stakingStorage",
"outputs": [
{
"internalType": "contract StakingStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions abi/StakingV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
"name": "ProfileDoesntExist",
"type": "error"
},
{
"inputs": [],
"name": "ShardingTableIsFull",
"type": "error"
},
{
"inputs": [
{
Expand Down
Loading

0 comments on commit 6e43119

Please sign in to comment.