@coinmasters/e2e-staking-suite 1.11.6 → 1.11.8
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/index.js +18 -6
- package/package.json +2 -2
- package/src/index.ts +22 -7
- package/tsconfig.tsbuildinfo +1 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
> @coinmasters/e2e-staking-suite@1.11.
|
3
|
+
> @coinmasters/e2e-staking-suite@1.11.6 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer-sdk/e2e/staking
|
4
4
|
> tsc -p .
|
5
5
|
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# @coinmasters/e2e-transfer-dogecoin
|
2
2
|
|
3
|
+
## 1.11.8
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- bump
|
8
|
+
|
9
|
+
- Updated dependencies []:
|
10
|
+
- @coinmasters/pioneer-sdk@4.12.8
|
11
|
+
|
12
|
+
## 1.11.7
|
13
|
+
|
14
|
+
### Patch Changes
|
15
|
+
|
16
|
+
- bump
|
17
|
+
|
18
|
+
- Updated dependencies []:
|
19
|
+
- @coinmasters/pioneer-sdk@4.12.7
|
20
|
+
|
3
21
|
## 1.11.6
|
4
22
|
|
5
23
|
### Patch Changes
|
package/dist/index.js
CHANGED
@@ -52,14 +52,14 @@ const test_staking_service = async function () {
|
|
52
52
|
let tag = TAG + " | test_staking_service | ";
|
53
53
|
try {
|
54
54
|
console.time('staking-test-start');
|
55
|
-
// 🎯 Simple Configuration - Focus on
|
55
|
+
// 🎯 Simple Configuration - Focus on undelegation signing test
|
56
56
|
const TEST_CONFIG = {
|
57
57
|
TEST_VALIDATOR_API: false,
|
58
58
|
TEST_STAKING_POSITIONS_API: true,
|
59
59
|
TEST_DIRECT_STAKING_API: true,
|
60
|
-
TEST_CLAIM_REWARDS:
|
60
|
+
TEST_CLAIM_REWARDS: false,
|
61
61
|
TEST_DELEGATE: false,
|
62
|
-
TEST_UNDELEGATE:
|
62
|
+
TEST_UNDELEGATE: true,
|
63
63
|
TEST_STAKING_INTEGRATION: false,
|
64
64
|
ACTUALLY_EXECUTE_TRANSACTIONS: true,
|
65
65
|
NETWORKS: ['GAIA'] // Cosmos Hub only
|
@@ -114,9 +114,9 @@ const test_staking_service = async function () {
|
|
114
114
|
log.info(tag, "🔍 Starting getPubkeys()...");
|
115
115
|
await app.getPubkeys();
|
116
116
|
log.info(tag, "✅ getPubkeys() complete - pubkeys count:", app.pubkeys.length);
|
117
|
-
log.info(tag, "🔍 Starting
|
118
|
-
await app.
|
119
|
-
log.info(tag, "✅
|
117
|
+
log.info(tag, "🔍 Starting getCharts()...");
|
118
|
+
await app.getCharts();
|
119
|
+
log.info(tag, "✅ getCharts() complete - balances count:", app.balances.length);
|
120
120
|
// Verify basic requirements
|
121
121
|
assert(app.blockchains, "Blockchains not initialized");
|
122
122
|
assert(app.pubkeys, "Pubkeys not initialized");
|
@@ -280,6 +280,16 @@ const test_staking_service = async function () {
|
|
280
280
|
log.info(tag, `Raw API response for ${network}:`, JSON.stringify(positions, null, 2));
|
281
281
|
// Validate position structure
|
282
282
|
positions.forEach((position, index) => {
|
283
|
+
log.info(tag, `🔍 DEBUG: Position ${index + 1} detailed structure:`, {
|
284
|
+
type: position.type,
|
285
|
+
balance: position.balance,
|
286
|
+
ticker: position.ticker,
|
287
|
+
validator: position.validator,
|
288
|
+
validatorAddress: position.validatorAddress,
|
289
|
+
validatorMoniker: position.validatorMoniker,
|
290
|
+
validatorName: position.validatorName,
|
291
|
+
allKeys: Object.keys(position)
|
292
|
+
});
|
283
293
|
log.info(tag, `Position ${index + 1} raw data:`, position);
|
284
294
|
assert(position.type, 'Position must have type');
|
285
295
|
assert(position.balance, 'Position must have balance');
|
@@ -288,6 +298,7 @@ const test_staking_service = async function () {
|
|
288
298
|
if (!position.validatorAddress) {
|
289
299
|
log.error(tag, `❌ CRITICAL: Delegation position missing validatorAddress`);
|
290
300
|
log.error(tag, `Position data:`, position);
|
301
|
+
log.error(tag, `Available fields:`, Object.keys(position));
|
291
302
|
throw new Error(`API response missing validatorAddress for delegation position. This is required for transactions.`);
|
292
303
|
}
|
293
304
|
}
|
@@ -295,6 +306,7 @@ const test_staking_service = async function () {
|
|
295
306
|
if (!position.validatorAddress) {
|
296
307
|
log.error(tag, `❌ CRITICAL: Reward position missing validatorAddress`);
|
297
308
|
log.error(tag, `Position data:`, position);
|
309
|
+
log.error(tag, `Available fields:`, Object.keys(position));
|
298
310
|
throw new Error(`API response missing validatorAddress for reward position. This is required for claiming rewards.`);
|
299
311
|
}
|
300
312
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@coinmasters/e2e-staking-suite",
|
3
|
-
"version": "1.11.
|
3
|
+
"version": "1.11.8",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"types": "./lib/index.d.ts",
|
6
6
|
"dependencies": {
|
@@ -12,7 +12,7 @@
|
|
12
12
|
"dotenv": "^6.2.0",
|
13
13
|
"typescript": "5.2.2",
|
14
14
|
"wait-promise": "^0.4.1",
|
15
|
-
"@coinmasters/pioneer-sdk": "4.12.
|
15
|
+
"@coinmasters/pioneer-sdk": "4.12.8",
|
16
16
|
"@coinmasters/types": "^4.10.1"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
package/src/index.ts
CHANGED
@@ -60,6 +60,8 @@ interface StakingPosition {
|
|
60
60
|
valueUsd: number;
|
61
61
|
validator: string;
|
62
62
|
validatorAddress: string;
|
63
|
+
validatorMoniker?: string;
|
64
|
+
validatorName?: string;
|
63
65
|
networkId: string;
|
64
66
|
caip: string;
|
65
67
|
}
|
@@ -83,16 +85,16 @@ const test_staking_service = async function () {
|
|
83
85
|
try {
|
84
86
|
console.time('staking-test-start');
|
85
87
|
|
86
|
-
// 🎯 Simple Configuration - Focus on
|
88
|
+
// 🎯 Simple Configuration - Focus on undelegation signing test
|
87
89
|
const TEST_CONFIG = {
|
88
90
|
TEST_VALIDATOR_API: false,
|
89
91
|
TEST_STAKING_POSITIONS_API: true, // Need to find existing delegations
|
90
92
|
TEST_DIRECT_STAKING_API: true, // 🔍 Enable to check direct API
|
91
|
-
TEST_CLAIM_REWARDS:
|
93
|
+
TEST_CLAIM_REWARDS: false, // Disable for now
|
92
94
|
TEST_DELEGATE: false,
|
93
|
-
TEST_UNDELEGATE:
|
95
|
+
TEST_UNDELEGATE: true, // 🎯 Enable undelegation test
|
94
96
|
TEST_STAKING_INTEGRATION: false,
|
95
|
-
ACTUALLY_EXECUTE_TRANSACTIONS: true, // 🚀
|
97
|
+
ACTUALLY_EXECUTE_TRANSACTIONS: true, // 🚀 Enable to test actual signing
|
96
98
|
NETWORKS: ['GAIA'] // Cosmos Hub only
|
97
99
|
};
|
98
100
|
|
@@ -160,9 +162,9 @@ const test_staking_service = async function () {
|
|
160
162
|
await app.getPubkeys()
|
161
163
|
log.info(tag, "✅ getPubkeys() complete - pubkeys count:", app.pubkeys.length)
|
162
164
|
|
163
|
-
log.info(tag, "🔍 Starting
|
164
|
-
await app.
|
165
|
-
log.info(tag, "✅
|
165
|
+
log.info(tag, "🔍 Starting getCharts()...")
|
166
|
+
await app.getCharts()
|
167
|
+
log.info(tag, "✅ getCharts() complete - balances count:", app.balances.length)
|
166
168
|
|
167
169
|
// Verify basic requirements
|
168
170
|
assert(app.blockchains, "Blockchains not initialized")
|
@@ -351,6 +353,17 @@ const test_staking_service = async function () {
|
|
351
353
|
|
352
354
|
// Validate position structure
|
353
355
|
positions.forEach((position: StakingPosition, index: number) => {
|
356
|
+
log.info(tag, `🔍 DEBUG: Position ${index + 1} detailed structure:`, {
|
357
|
+
type: position.type,
|
358
|
+
balance: position.balance,
|
359
|
+
ticker: position.ticker,
|
360
|
+
validator: position.validator,
|
361
|
+
validatorAddress: position.validatorAddress,
|
362
|
+
validatorMoniker: position.validatorMoniker,
|
363
|
+
validatorName: position.validatorName,
|
364
|
+
allKeys: Object.keys(position)
|
365
|
+
});
|
366
|
+
|
354
367
|
log.info(tag, `Position ${index + 1} raw data:`, position)
|
355
368
|
assert(position.type, 'Position must have type')
|
356
369
|
assert(position.balance, 'Position must have balance')
|
@@ -360,6 +373,7 @@ const test_staking_service = async function () {
|
|
360
373
|
if (!position.validatorAddress) {
|
361
374
|
log.error(tag, `❌ CRITICAL: Delegation position missing validatorAddress`)
|
362
375
|
log.error(tag, `Position data:`, position)
|
376
|
+
log.error(tag, `Available fields:`, Object.keys(position))
|
363
377
|
throw new Error(`API response missing validatorAddress for delegation position. This is required for transactions.`)
|
364
378
|
}
|
365
379
|
}
|
@@ -368,6 +382,7 @@ const test_staking_service = async function () {
|
|
368
382
|
if (!position.validatorAddress) {
|
369
383
|
log.error(tag, `❌ CRITICAL: Reward position missing validatorAddress`)
|
370
384
|
log.error(tag, `Position data:`, position)
|
385
|
+
log.error(tag, `Available fields:`, Object.keys(position))
|
371
386
|
throw new Error(`API response missing validatorAddress for reward position. This is required for claiming rewards.`)
|
372
387
|
}
|
373
388
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"root":["./src/index.ts"],"version":"5.8.3"}
|