From 35095bca2edf6487f6ae9862669a9e98787ca0d3 Mon Sep 17 00:00:00 2001 From: Dan Rusnac Date: Mon, 2 Dec 2024 12:57:12 +0100 Subject: [PATCH] feat: updated gm and node management abis --- ABIs/VeBetterDAO-galaxy-member.json | 89 +++++++++++++++++ ABIs/VeBetterDAO-node-management.json | 137 ++++++++++++++++++++++++++ 2 files changed, 226 insertions(+) diff --git a/ABIs/VeBetterDAO-galaxy-member.json b/ABIs/VeBetterDAO-galaxy-member.json index d97a593..991353a 100644 --- a/ABIs/VeBetterDAO-galaxy-member.json +++ b/ABIs/VeBetterDAO-galaxy-member.json @@ -36,6 +36,11 @@ "name": "AddressEmptyCode", "type": "error" }, + { + "inputs": [], + "name": "CheckpointUnorderedInsertion", + "type": "error" + }, { "inputs": [ { @@ -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", @@ -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", @@ -819,6 +853,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [], + "name": "clock", + "outputs": [ + { + "internalType": "uint48", + "name": "", + "type": "uint48" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -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": [ { @@ -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": [ { diff --git a/ABIs/VeBetterDAO-node-management.json b/ABIs/VeBetterDAO-node-management.json index f145d30..7438e00 100644 --- a/ABIs/VeBetterDAO-node-management.json +++ b/ABIs/VeBetterDAO-node-management.json @@ -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": [ { @@ -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": [ { @@ -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": [ {