genlayer-js 0.18.8 → 0.18.9
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/CHANGELOG.md +2 -0
- package/dist/chains/index.cjs +2 -2
- package/dist/chains/index.js +1 -1
- package/dist/{chunk-WTAFQOXC.cjs → chunk-SC2VXHL3.cjs} +41 -2
- package/dist/{chunk-V4ZFI4GV.js → chunk-V3MYVW3P.js} +41 -2
- package/dist/{index-C3KT8eu_.d.cts → index-D9ONjYgl.d.cts} +99 -22
- package/dist/{index-BNui_XYa.d.ts → index-ZDqJWXj0.d.ts} +99 -22
- package/dist/index.cjs +133 -94
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +88 -49
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/abi/staking.ts +61 -0
- package/src/client/client.ts +3 -7
- package/src/contracts/actions.ts +60 -41
- package/src/staking/actions.ts +49 -11
- package/src/types/staking.ts +4 -7
- package/src/types/transactions.ts +16 -14
|
@@ -153,6 +153,21 @@ export type DecodedCallData = {
|
|
|
153
153
|
type: TransactionType;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
+
export interface LeaderReceipt {
|
|
157
|
+
calldata: string;
|
|
158
|
+
class_name: string;
|
|
159
|
+
contract_state: string;
|
|
160
|
+
eq_outputs: Record<string, unknown>;
|
|
161
|
+
error: string | null;
|
|
162
|
+
execution_result: string;
|
|
163
|
+
gas_used: number;
|
|
164
|
+
mode: string;
|
|
165
|
+
node_config: Record<string, unknown>;
|
|
166
|
+
pending_transactions: unknown[];
|
|
167
|
+
vote: string;
|
|
168
|
+
result: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
156
171
|
// TODO: make localnet compatible with testnet and unify the types
|
|
157
172
|
export type GenLayerTransaction = {
|
|
158
173
|
// currentTimestamp: testnet
|
|
@@ -243,20 +258,7 @@ export type GenLayerTransaction = {
|
|
|
243
258
|
// consensus_data: localnet // leader_receipt: testnet
|
|
244
259
|
consensus_data?: {
|
|
245
260
|
final: boolean;
|
|
246
|
-
leader_receipt?:
|
|
247
|
-
calldata: string;
|
|
248
|
-
class_name: string;
|
|
249
|
-
contract_state: string;
|
|
250
|
-
eq_outputs: Record<string, unknown>;
|
|
251
|
-
error: string | null;
|
|
252
|
-
execution_result: string;
|
|
253
|
-
gas_used: number;
|
|
254
|
-
mode: string;
|
|
255
|
-
node_config: Record<string, unknown>;
|
|
256
|
-
pending_transactions: unknown[];
|
|
257
|
-
vote: string;
|
|
258
|
-
result: string;
|
|
259
|
-
}[];
|
|
261
|
+
leader_receipt?: LeaderReceipt[];
|
|
260
262
|
validators?: Record<string, unknown>[];
|
|
261
263
|
votes?: Record<string, string>;
|
|
262
264
|
};
|