Skip to content

Commit

Permalink
feat: updated gm and node management abis
Browse files Browse the repository at this point in the history
  • Loading branch information
Agilulfo1820 committed Dec 2, 2024
1 parent 88cd98d commit 35095bc
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 0 deletions.
89 changes: 89 additions & 0 deletions ABIs/VeBetterDAO-galaxy-member.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"name": "AddressEmptyCode",
"type": "error"
},
{
"inputs": [],
"name": "CheckpointUnorderedInsertion",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -206,6 +211,22 @@
"name": "ReentrancyGuardReentrantCall",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintDowncast",
"type": "error"
},
{
"inputs": [],
"name": "UUPSUnauthorizedCallContext",
Expand Down Expand Up @@ -608,6 +629,19 @@
"name": "XAllocationsGovernorAddressUpdated",
"type": "event"
},
{
"inputs": [],
"name": "CLOCK_MODE",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "CONTRACTS_ADDRESS_MANAGER_ROLE",
Expand Down Expand Up @@ -819,6 +853,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "clock",
"outputs": [
{
"internalType": "uint48",
"name": "",
"type": "uint48"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -1077,6 +1124,30 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint48",
"name": "blockNumber",
"type": "uint48"
}
],
"name": "getSelectedTokenIdAtBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -1582,6 +1653,24 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenID",
"type": "uint256"
}
],
"name": "selectFor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
137 changes: 137 additions & 0 deletions ABIs/VeBetterDAO-node-management.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,25 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getDirectNodeOwnership",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -392,6 +411,67 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getUserNodes",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "enum VechainNodesDataTypes.NodeStrengthLevel",
"name": "nodeLevel",
"type": "uint8"
},
{
"internalType": "address",
"name": "xNodeOwner",
"type": "address"
},
{
"internalType": "bool",
"name": "isXNodeHolder",
"type": "bool"
},
{
"internalType": "bool",
"name": "isXNodeDelegated",
"type": "bool"
},
{
"internalType": "bool",
"name": "isXNodeDelegator",
"type": "bool"
},
{
"internalType": "bool",
"name": "isXNodeDelegatee",
"type": "bool"
},
{
"internalType": "address",
"name": "delegatee",
"type": "address"
}
],
"internalType": "struct NodeManagement.NodeInfo[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -489,6 +569,63 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeId",
"type": "uint256"
}
],
"name": "isNodeDelegated",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "isNodeDelegator",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "isNodeHolder",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down

0 comments on commit 35095bc

Please sign in to comment.