@ssv-labs/ssv-sdk 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract-interactions/types.d.ts +3 -1
- package/dist/{globals-DsbufPrE.mjs → globals-BHuFvs8-.mjs} +11 -41
- package/dist/{globals-fh7gkHKO.js → globals-DCoa7oI7.js} +11 -41
- package/dist/libs/cluster/index.d.ts +7 -1
- package/dist/libs/cluster/methods/index.d.ts +1 -1
- package/dist/libs/cluster/methods/register-validators.d.ts +3 -2
- package/dist/libs/operator/index.d.ts +35 -0
- package/dist/main.js +377 -476
- package/dist/main.mjs +379 -478
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@ import { TokenABI } from '../abi/token';
|
|
|
4
4
|
import { AbiInputsToParams } from '../types/contract-interactions';
|
|
5
5
|
import { Prettify } from '../types/utils';
|
|
6
6
|
import { Abi, Address, ExtractAbiFunctions } from 'abitype';
|
|
7
|
-
import { ContractFunctionArgs, ContractFunctionName, DecodeEventLogReturnType, Hash, PublicClient, ReadContractReturnType, SimulateContractParameters, SimulateContractReturnType, WaitForTransactionReceiptReturnType, WalletClient } from 'viem';
|
|
7
|
+
import { ContractFunctionArgs, ContractFunctionName, DecodeEventLogReturnType, Hash, Hex, PublicClient, ReadContractReturnType, SimulateContractParameters, SimulateContractReturnType, WaitForTransactionReceiptReturnType, WalletClient } from 'viem';
|
|
8
8
|
export type SupportedAbis = typeof TokenABI | typeof MainnetV4GetterABI | typeof MainnetV4SetterABI;
|
|
9
9
|
export type TokenEvents = DecodeEventLogReturnType<typeof TokenABI>;
|
|
10
10
|
export type MainnetEvents = DecodeEventLogReturnType<typeof MainnetV4SetterABI>;
|
|
@@ -67,6 +67,7 @@ export type WriterFunctions<ContractName extends ContractNames, Fns extends Cont
|
|
|
67
67
|
simulate: (props?: Prettify<(K['stateMutability'] extends 'payable' ? {
|
|
68
68
|
value?: bigint;
|
|
69
69
|
} : object) & WriteOptions<K>>) => SimulateContractReturnType<SupportedAbis, K['name']>;
|
|
70
|
+
getTransactionData: () => Hex;
|
|
70
71
|
} : {
|
|
71
72
|
(props: Prettify<((K['stateMutability'] extends 'payable' ? {
|
|
72
73
|
value?: bigint;
|
|
@@ -78,6 +79,7 @@ export type WriterFunctions<ContractName extends ContractNames, Fns extends Cont
|
|
|
78
79
|
} : object) & (K['inputs'] extends readonly [] ? object : {
|
|
79
80
|
args: Prettify<AbiInputsToParams<K['inputs']>>;
|
|
80
81
|
})) & WriteOptions<K>>) => SimulateContractReturnType<SupportedAbis, K['name']>;
|
|
82
|
+
getTransactionData: (props: K['inputs'] extends readonly [] ? object : Prettify<AbiInputsToParams<K['inputs']>>) => Hex;
|
|
81
83
|
};
|
|
82
84
|
};
|
|
83
85
|
export type ReaderFunctions<ContractName extends keyof Contracts, Fns extends Contracts[ContractName]['readFunctions'] = Contracts[ContractName]['readFunctions']> = {
|
|
@@ -961,12 +961,6 @@ Stack.prototype["delete"] = stackDelete;
|
|
|
961
961
|
Stack.prototype.get = stackGet;
|
|
962
962
|
Stack.prototype.has = stackHas;
|
|
963
963
|
Stack.prototype.set = stackSet;
|
|
964
|
-
function baseAssign(object, source) {
|
|
965
|
-
return object && copyObject(source, keys(source), object);
|
|
966
|
-
}
|
|
967
|
-
function baseAssignIn(object, source) {
|
|
968
|
-
return object && copyObject(source, keysIn(source), object);
|
|
969
|
-
}
|
|
970
964
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
971
965
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
972
966
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
@@ -994,31 +988,16 @@ function stubArray() {
|
|
|
994
988
|
}
|
|
995
989
|
var objectProto$1 = Object.prototype;
|
|
996
990
|
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
997
|
-
var nativeGetSymbols
|
|
998
|
-
var getSymbols = !nativeGetSymbols
|
|
991
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
992
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
999
993
|
if (object == null) {
|
|
1000
994
|
return [];
|
|
1001
995
|
}
|
|
1002
996
|
object = Object(object);
|
|
1003
|
-
return arrayFilter(nativeGetSymbols
|
|
997
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1004
998
|
return propertyIsEnumerable.call(object, symbol);
|
|
1005
999
|
});
|
|
1006
1000
|
};
|
|
1007
|
-
function copySymbols(source, object) {
|
|
1008
|
-
return copyObject(source, getSymbols(source), object);
|
|
1009
|
-
}
|
|
1010
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1011
|
-
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
1012
|
-
var result = [];
|
|
1013
|
-
while (object) {
|
|
1014
|
-
arrayPush(result, getSymbols(object));
|
|
1015
|
-
object = getPrototype(object);
|
|
1016
|
-
}
|
|
1017
|
-
return result;
|
|
1018
|
-
};
|
|
1019
|
-
function copySymbolsIn(source, object) {
|
|
1020
|
-
return copyObject(source, getSymbolsIn(source), object);
|
|
1021
|
-
}
|
|
1022
1001
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1023
1002
|
var result = keysFunc(object);
|
|
1024
1003
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
@@ -1026,9 +1005,6 @@ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
|
1026
1005
|
function getAllKeys(object) {
|
|
1027
1006
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1028
1007
|
}
|
|
1029
|
-
function getAllKeysIn(object) {
|
|
1030
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1031
|
-
}
|
|
1032
1008
|
var DataView = getNative(root, "DataView");
|
|
1033
1009
|
var Promise$1 = getNative(root, "Promise");
|
|
1034
1010
|
var Set$1 = getNative(root, "Set");
|
|
@@ -1073,7 +1049,7 @@ function cloneArrayBuffer(arrayBuffer) {
|
|
|
1073
1049
|
return result;
|
|
1074
1050
|
}
|
|
1075
1051
|
function cloneDataView(dataView, isDeep) {
|
|
1076
|
-
var buffer =
|
|
1052
|
+
var buffer = cloneArrayBuffer(dataView.buffer);
|
|
1077
1053
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1078
1054
|
}
|
|
1079
1055
|
var reFlags = /\w*$/;
|
|
@@ -1101,7 +1077,7 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
1101
1077
|
case dateTag$1:
|
|
1102
1078
|
return new Ctor(+object);
|
|
1103
1079
|
case dataViewTag$1:
|
|
1104
|
-
return cloneDataView(object
|
|
1080
|
+
return cloneDataView(object);
|
|
1105
1081
|
case float32Tag$1:
|
|
1106
1082
|
case float64Tag$1:
|
|
1107
1083
|
case int8Tag$1:
|
|
@@ -1140,14 +1116,14 @@ function baseIsSet(value) {
|
|
|
1140
1116
|
}
|
|
1141
1117
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1142
1118
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1143
|
-
var CLONE_DEEP_FLAG$1 = 1
|
|
1119
|
+
var CLONE_DEEP_FLAG$1 = 1;
|
|
1144
1120
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1145
1121
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
1146
1122
|
var cloneableTags = {};
|
|
1147
1123
|
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1148
1124
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1149
1125
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1150
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1
|
|
1126
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1;
|
|
1151
1127
|
if (customizer) {
|
|
1152
1128
|
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1153
1129
|
}
|
|
@@ -1160,19 +1136,13 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1160
1136
|
var isArr = isArray(value);
|
|
1161
1137
|
if (isArr) {
|
|
1162
1138
|
result = initCloneArray(value);
|
|
1163
|
-
if (!isDeep) {
|
|
1164
|
-
return copyArray(value, result);
|
|
1165
|
-
}
|
|
1166
1139
|
} else {
|
|
1167
1140
|
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
1168
1141
|
if (isBuffer(value)) {
|
|
1169
1142
|
return cloneBuffer(value, isDeep);
|
|
1170
1143
|
}
|
|
1171
1144
|
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
1172
|
-
result =
|
|
1173
|
-
if (!isDeep) {
|
|
1174
|
-
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
1175
|
-
}
|
|
1145
|
+
result = isFunc ? {} : initCloneObject(value);
|
|
1176
1146
|
} else {
|
|
1177
1147
|
if (!cloneableTags[tag]) {
|
|
1178
1148
|
return object ? value : {};
|
|
@@ -1195,7 +1165,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1195
1165
|
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
1196
1166
|
});
|
|
1197
1167
|
}
|
|
1198
|
-
var keysFunc =
|
|
1168
|
+
var keysFunc = getAllKeys;
|
|
1199
1169
|
var props = isArr ? void 0 : keysFunc(value);
|
|
1200
1170
|
arrayEach(props || value, function(subValue, key2) {
|
|
1201
1171
|
if (props) {
|
|
@@ -1932,11 +1902,11 @@ const isDirty = (x) => x.status === "dirty";
|
|
|
1932
1902
|
const isValid = (x) => x.status === "valid";
|
|
1933
1903
|
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
1934
1904
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
1935
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
1905
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1936
1906
|
return state.get(receiver);
|
|
1937
1907
|
}
|
|
1938
1908
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
1939
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
1909
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1940
1910
|
return state.set(receiver, value), value;
|
|
1941
1911
|
}
|
|
1942
1912
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
@@ -962,12 +962,6 @@ Stack.prototype["delete"] = stackDelete;
|
|
|
962
962
|
Stack.prototype.get = stackGet;
|
|
963
963
|
Stack.prototype.has = stackHas;
|
|
964
964
|
Stack.prototype.set = stackSet;
|
|
965
|
-
function baseAssign(object, source) {
|
|
966
|
-
return object && copyObject(source, keys(source), object);
|
|
967
|
-
}
|
|
968
|
-
function baseAssignIn(object, source) {
|
|
969
|
-
return object && copyObject(source, keysIn(source), object);
|
|
970
|
-
}
|
|
971
965
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
972
966
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
973
967
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
@@ -995,31 +989,16 @@ function stubArray() {
|
|
|
995
989
|
}
|
|
996
990
|
var objectProto$1 = Object.prototype;
|
|
997
991
|
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
998
|
-
var nativeGetSymbols
|
|
999
|
-
var getSymbols = !nativeGetSymbols
|
|
992
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
993
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
1000
994
|
if (object == null) {
|
|
1001
995
|
return [];
|
|
1002
996
|
}
|
|
1003
997
|
object = Object(object);
|
|
1004
|
-
return arrayFilter(nativeGetSymbols
|
|
998
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1005
999
|
return propertyIsEnumerable.call(object, symbol);
|
|
1006
1000
|
});
|
|
1007
1001
|
};
|
|
1008
|
-
function copySymbols(source, object) {
|
|
1009
|
-
return copyObject(source, getSymbols(source), object);
|
|
1010
|
-
}
|
|
1011
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1012
|
-
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
1013
|
-
var result = [];
|
|
1014
|
-
while (object) {
|
|
1015
|
-
arrayPush(result, getSymbols(object));
|
|
1016
|
-
object = getPrototype(object);
|
|
1017
|
-
}
|
|
1018
|
-
return result;
|
|
1019
|
-
};
|
|
1020
|
-
function copySymbolsIn(source, object) {
|
|
1021
|
-
return copyObject(source, getSymbolsIn(source), object);
|
|
1022
|
-
}
|
|
1023
1002
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1024
1003
|
var result = keysFunc(object);
|
|
1025
1004
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
@@ -1027,9 +1006,6 @@ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
|
1027
1006
|
function getAllKeys(object) {
|
|
1028
1007
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1029
1008
|
}
|
|
1030
|
-
function getAllKeysIn(object) {
|
|
1031
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1032
|
-
}
|
|
1033
1009
|
var DataView = getNative(root, "DataView");
|
|
1034
1010
|
var Promise$1 = getNative(root, "Promise");
|
|
1035
1011
|
var Set$1 = getNative(root, "Set");
|
|
@@ -1074,7 +1050,7 @@ function cloneArrayBuffer(arrayBuffer) {
|
|
|
1074
1050
|
return result;
|
|
1075
1051
|
}
|
|
1076
1052
|
function cloneDataView(dataView, isDeep) {
|
|
1077
|
-
var buffer =
|
|
1053
|
+
var buffer = cloneArrayBuffer(dataView.buffer);
|
|
1078
1054
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1079
1055
|
}
|
|
1080
1056
|
var reFlags = /\w*$/;
|
|
@@ -1102,7 +1078,7 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
1102
1078
|
case dateTag$1:
|
|
1103
1079
|
return new Ctor(+object);
|
|
1104
1080
|
case dataViewTag$1:
|
|
1105
|
-
return cloneDataView(object
|
|
1081
|
+
return cloneDataView(object);
|
|
1106
1082
|
case float32Tag$1:
|
|
1107
1083
|
case float64Tag$1:
|
|
1108
1084
|
case int8Tag$1:
|
|
@@ -1141,14 +1117,14 @@ function baseIsSet(value) {
|
|
|
1141
1117
|
}
|
|
1142
1118
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1143
1119
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1144
|
-
var CLONE_DEEP_FLAG$1 = 1
|
|
1120
|
+
var CLONE_DEEP_FLAG$1 = 1;
|
|
1145
1121
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1146
1122
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
1147
1123
|
var cloneableTags = {};
|
|
1148
1124
|
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1149
1125
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1150
1126
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1151
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1
|
|
1127
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1;
|
|
1152
1128
|
if (customizer) {
|
|
1153
1129
|
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1154
1130
|
}
|
|
@@ -1161,19 +1137,13 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1161
1137
|
var isArr = isArray(value);
|
|
1162
1138
|
if (isArr) {
|
|
1163
1139
|
result = initCloneArray(value);
|
|
1164
|
-
if (!isDeep) {
|
|
1165
|
-
return copyArray(value, result);
|
|
1166
|
-
}
|
|
1167
1140
|
} else {
|
|
1168
1141
|
var tag = exports.getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
1169
1142
|
if (isBuffer(value)) {
|
|
1170
1143
|
return cloneBuffer(value, isDeep);
|
|
1171
1144
|
}
|
|
1172
1145
|
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
1173
|
-
result =
|
|
1174
|
-
if (!isDeep) {
|
|
1175
|
-
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
1176
|
-
}
|
|
1146
|
+
result = isFunc ? {} : initCloneObject(value);
|
|
1177
1147
|
} else {
|
|
1178
1148
|
if (!cloneableTags[tag]) {
|
|
1179
1149
|
return object ? value : {};
|
|
@@ -1196,7 +1166,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1196
1166
|
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
1197
1167
|
});
|
|
1198
1168
|
}
|
|
1199
|
-
var keysFunc =
|
|
1169
|
+
var keysFunc = getAllKeys;
|
|
1200
1170
|
var props = isArr ? void 0 : keysFunc(value);
|
|
1201
1171
|
arrayEach(props || value, function(subValue, key2) {
|
|
1202
1172
|
if (props) {
|
|
@@ -1933,11 +1903,11 @@ const isDirty = (x) => x.status === "dirty";
|
|
|
1933
1903
|
const isValid = (x) => x.status === "valid";
|
|
1934
1904
|
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
1935
1905
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
1936
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
1906
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1937
1907
|
return state.get(receiver);
|
|
1938
1908
|
}
|
|
1939
1909
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
1940
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
1910
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1941
1911
|
return state.set(receiver, value), value;
|
|
1942
1912
|
}
|
|
1943
1913
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
@@ -1964,7 +1964,7 @@ export declare const createClusterManager: (config: ConfigReturnType) => {
|
|
|
1964
1964
|
})[];
|
|
1965
1965
|
}>;
|
|
1966
1966
|
}>>;
|
|
1967
|
-
registerValidators: RemoveConfigArg<(config: ConfigReturnType, { args: { keyshares, depositAmount }, ...writeOptions }:
|
|
1967
|
+
registerValidators: RemoveConfigArg<(config: ConfigReturnType, { args: { keyshares, depositAmount }, ...writeOptions }: {
|
|
1968
1968
|
args: {
|
|
1969
1969
|
keyshares: import('ssv-keys').KeySharesItem[] | import('ssv-keys/dist/tsc/src/lib/KeyShares/KeySharesData/KeySharesPayload').KeySharesPayload[];
|
|
1970
1970
|
depositAmount?: bigint | undefined;
|
|
@@ -2244,6 +2244,12 @@ export declare const createClusterManager: (config: ConfigReturnType) => {
|
|
|
2244
2244
|
})[];
|
|
2245
2245
|
}>;
|
|
2246
2246
|
}>>;
|
|
2247
|
+
registerValidatorsRawData: RemoveConfigArg<(config: ConfigReturnType, { args: { keyshares, depositAmount } }: {
|
|
2248
|
+
args: {
|
|
2249
|
+
keyshares: import('ssv-keys').KeySharesItem[] | import('ssv-keys/dist/tsc/src/lib/KeyShares/KeySharesData/KeySharesPayload').KeySharesPayload[];
|
|
2250
|
+
depositAmount?: bigint | undefined;
|
|
2251
|
+
};
|
|
2252
|
+
}) => Promise<`0x${string}`>>;
|
|
2247
2253
|
validateSharesPostRegistration: RemoveConfigArg<(config: ConfigReturnType, args: {
|
|
2248
2254
|
txHash: `0x${string}`;
|
|
2249
2255
|
}) => Promise<{
|
|
@@ -2,7 +2,7 @@ export { deposit } from './deposit';
|
|
|
2
2
|
export { exitValidators } from './exit-validators';
|
|
3
3
|
export { liquidateCluster } from './liquidate-cluster';
|
|
4
4
|
export { reactivateCluster } from './reactivate-cluster';
|
|
5
|
-
export { registerValidators, validateSharesPostRegistration } from './register-validators';
|
|
5
|
+
export { registerValidators, registerValidatorsRawData, validateSharesPostRegistration } from './register-validators';
|
|
6
6
|
export { removeValidators } from './remove-validators';
|
|
7
7
|
export { setFeeRecipient } from './set-fee-recipient';
|
|
8
8
|
export { withdraw } from './withdraw';
|
|
@@ -2,10 +2,10 @@ import { ConfigReturnType } from '../../../config/create';
|
|
|
2
2
|
import { SmartFnWriteOptions } from '../../../contract-interactions/types';
|
|
3
3
|
import { SSVKeys, KeySharesItem } from 'ssv-keys';
|
|
4
4
|
import { Hex } from 'viem';
|
|
5
|
-
type RegisterValidatorsProps = SmartFnWriteOptions<{
|
|
5
|
+
type RegisterValidatorsProps = Pick<SmartFnWriteOptions<{
|
|
6
6
|
keyshares: KeySharesItem[] | KeySharesItem['payload'][];
|
|
7
7
|
depositAmount?: bigint;
|
|
8
|
-
}>;
|
|
8
|
+
}>, 'args'>;
|
|
9
9
|
export declare const registerValidators: (config: ConfigReturnType, { args: { keyshares, depositAmount }, ...writeOptions }: RegisterValidatorsProps) => Promise<{
|
|
10
10
|
hash: `0x${string}`;
|
|
11
11
|
wait: () => Promise<import('viem').TransactionReceipt & {
|
|
@@ -281,6 +281,7 @@ export declare const registerValidators: (config: ConfigReturnType, { args: { ke
|
|
|
281
281
|
})[];
|
|
282
282
|
}>;
|
|
283
283
|
}>;
|
|
284
|
+
export declare const registerValidatorsRawData: (config: ConfigReturnType, { args: { keyshares, depositAmount } }: RegisterValidatorsProps) => Promise<`0x${string}`>;
|
|
284
285
|
declare const ssvKeys: SSVKeys;
|
|
285
286
|
export declare const validateSharesPostRegistration: (config: ConfigReturnType, args: {
|
|
286
287
|
txHash: Hex;
|
|
@@ -596,6 +596,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
596
596
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
597
597
|
dataSuffix?: `0x${string}` | undefined;
|
|
598
598
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "removeOperator">;
|
|
599
|
+
getTransactionData: (props: {
|
|
600
|
+
operatorId: bigint;
|
|
601
|
+
}) => `0x${string}`;
|
|
599
602
|
};
|
|
600
603
|
withdraw: RemoveConfigArg<(config: ConfigReturnType, { args: { operatorId, amount }, ...writeOptions }: Omit<import('viem').SimulateContractParameters, "address" | "value" | "account" | "args" | "chain" | "abi" | "functionName"> & {
|
|
601
604
|
args: {
|
|
@@ -1193,6 +1196,10 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1193
1196
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1194
1197
|
dataSuffix?: `0x${string}` | undefined;
|
|
1195
1198
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "setOperatorsWhitelists">;
|
|
1199
|
+
getTransactionData: (props: {
|
|
1200
|
+
operatorIds: readonly bigint[];
|
|
1201
|
+
whitelistAddresses: readonly `0x${string}`[];
|
|
1202
|
+
}) => `0x${string}`;
|
|
1196
1203
|
};
|
|
1197
1204
|
removeOperatorWhitelists: {
|
|
1198
1205
|
(props: {
|
|
@@ -1510,6 +1517,10 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1510
1517
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1511
1518
|
dataSuffix?: `0x${string}` | undefined;
|
|
1512
1519
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "removeOperatorsWhitelists">;
|
|
1520
|
+
getTransactionData: (props: {
|
|
1521
|
+
operatorIds: readonly bigint[];
|
|
1522
|
+
whitelistAddresses: readonly `0x${string}`[];
|
|
1523
|
+
}) => `0x${string}`;
|
|
1513
1524
|
};
|
|
1514
1525
|
setOperatorsPrivate: {
|
|
1515
1526
|
(props: {
|
|
@@ -1825,6 +1836,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1825
1836
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1826
1837
|
dataSuffix?: `0x${string}` | undefined;
|
|
1827
1838
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "setOperatorsPrivateUnchecked">;
|
|
1839
|
+
getTransactionData: (props: {
|
|
1840
|
+
operatorIds: readonly bigint[];
|
|
1841
|
+
}) => `0x${string}`;
|
|
1828
1842
|
};
|
|
1829
1843
|
setOperatorsPublic: {
|
|
1830
1844
|
(props: {
|
|
@@ -2140,6 +2154,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2140
2154
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2141
2155
|
dataSuffix?: `0x${string}` | undefined;
|
|
2142
2156
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "setOperatorsPublicUnchecked">;
|
|
2157
|
+
getTransactionData: (props: {
|
|
2158
|
+
operatorIds: readonly bigint[];
|
|
2159
|
+
}) => `0x${string}`;
|
|
2143
2160
|
};
|
|
2144
2161
|
setOperatorWhitelistingContract: RemoveConfigArg<(config: ConfigReturnType, { args: { operatorIds, contractAddress }, ...writeOptions }: Omit<import('viem').SimulateContractParameters, "address" | "value" | "account" | "args" | "chain" | "abi" | "functionName"> & {
|
|
2145
2162
|
args: {
|
|
@@ -2737,6 +2754,10 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2737
2754
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2738
2755
|
dataSuffix?: `0x${string}` | undefined;
|
|
2739
2756
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "removeOperatorsWhitelists">;
|
|
2757
|
+
getTransactionData: (props: {
|
|
2758
|
+
operatorIds: readonly bigint[];
|
|
2759
|
+
whitelistAddresses: readonly `0x${string}`[];
|
|
2760
|
+
}) => `0x${string}`;
|
|
2740
2761
|
};
|
|
2741
2762
|
declareOperatorFee: {
|
|
2742
2763
|
(props: {
|
|
@@ -3054,6 +3075,10 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
3054
3075
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
3055
3076
|
dataSuffix?: `0x${string}` | undefined;
|
|
3056
3077
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "declareOperatorFee">;
|
|
3078
|
+
getTransactionData: (props: {
|
|
3079
|
+
operatorId: bigint;
|
|
3080
|
+
fee: bigint;
|
|
3081
|
+
}) => `0x${string}`;
|
|
3057
3082
|
};
|
|
3058
3083
|
executeOperatorFee: {
|
|
3059
3084
|
(props: {
|
|
@@ -3369,6 +3394,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
3369
3394
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
3370
3395
|
dataSuffix?: `0x${string}` | undefined;
|
|
3371
3396
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "executeOperatorFee">;
|
|
3397
|
+
getTransactionData: (props: {
|
|
3398
|
+
operatorId: bigint;
|
|
3399
|
+
}) => `0x${string}`;
|
|
3372
3400
|
};
|
|
3373
3401
|
cancelDeclaredOperatorFee: {
|
|
3374
3402
|
(props: {
|
|
@@ -3684,6 +3712,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
3684
3712
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
3685
3713
|
dataSuffix?: `0x${string}` | undefined;
|
|
3686
3714
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "cancelDeclaredOperatorFee">;
|
|
3715
|
+
getTransactionData: (props: {
|
|
3716
|
+
operatorId: bigint;
|
|
3717
|
+
}) => `0x${string}`;
|
|
3687
3718
|
};
|
|
3688
3719
|
reduceOperatorFee: {
|
|
3689
3720
|
(props: {
|
|
@@ -4001,5 +4032,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
4001
4032
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
4002
4033
|
dataSuffix?: `0x${string}` | undefined;
|
|
4003
4034
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "reduceOperatorFee">;
|
|
4035
|
+
getTransactionData: (props: {
|
|
4036
|
+
operatorId: bigint;
|
|
4037
|
+
fee: bigint;
|
|
4038
|
+
}) => `0x${string}`;
|
|
4004
4039
|
};
|
|
4005
4040
|
};
|