@bitgo-beta/sdk-coin-ada 2.2.3-alpha.405 → 2.2.3-alpha.407
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/.eslintignore +5 -0
- package/.mocharc.yml +8 -0
- package/CHANGELOG.md +1219 -0
- package/package.json +7 -10
- package/dist/test/resources/cip8Resources.d.ts +0 -25
- package/dist/test/resources/cip8Resources.d.ts.map +0 -1
- package/dist/test/resources/cip8Resources.js +0 -76
- package/dist/test/resources/index.d.ts +0 -435
- package/dist/test/resources/index.d.ts.map +0 -1
- package/dist/test/resources/index.js +0 -635
- package/dist/test/unit/StakingActivateBuilder.d.ts +0 -2
- package/dist/test/unit/StakingActivateBuilder.d.ts.map +0 -1
- package/dist/test/unit/StakingActivateBuilder.js +0 -213
- package/dist/test/unit/StakingDeactivateBuilder.d.ts +0 -2
- package/dist/test/unit/StakingDeactivateBuilder.d.ts.map +0 -1
- package/dist/test/unit/StakingDeactivateBuilder.js +0 -158
- package/dist/test/unit/ada.d.ts +0 -5
- package/dist/test/unit/ada.d.ts.map +0 -1
- package/dist/test/unit/ada.js +0 -825
- package/dist/test/unit/getBuilderFactory.d.ts +0 -3
- package/dist/test/unit/getBuilderFactory.d.ts.map +0 -1
- package/dist/test/unit/getBuilderFactory.js +0 -10
- package/dist/test/unit/index.d.ts +0 -2
- package/dist/test/unit/index.d.ts.map +0 -1
- package/dist/test/unit/index.js +0 -32
- package/dist/test/unit/keyPair.d.ts +0 -2
- package/dist/test/unit/keyPair.d.ts.map +0 -1
- package/dist/test/unit/keyPair.js +0 -88
- package/dist/test/unit/messages/cip8/cip8Message.d.ts +0 -2
- package/dist/test/unit/messages/cip8/cip8Message.d.ts.map +0 -1
- package/dist/test/unit/messages/cip8/cip8Message.js +0 -131
- package/dist/test/unit/messages/cip8/cip8MessageBuilder.d.ts +0 -2
- package/dist/test/unit/messages/cip8/cip8MessageBuilder.d.ts.map +0 -1
- package/dist/test/unit/messages/cip8/cip8MessageBuilder.js +0 -132
- package/dist/test/unit/messages/cip8/utils.d.ts +0 -2
- package/dist/test/unit/messages/cip8/utils.d.ts.map +0 -1
- package/dist/test/unit/messages/cip8/utils.js +0 -127
- package/dist/test/unit/messages/messageBuilderFactory.d.ts +0 -2
- package/dist/test/unit/messages/messageBuilderFactory.d.ts.map +0 -1
- package/dist/test/unit/messages/messageBuilderFactory.js +0 -35
- package/dist/test/unit/stakingClaimRewardsBuilder.d.ts +0 -2
- package/dist/test/unit/stakingClaimRewardsBuilder.d.ts.map +0 -1
- package/dist/test/unit/stakingClaimRewardsBuilder.js +0 -70
- package/dist/test/unit/stakingPledgeBuilder.d.ts +0 -2
- package/dist/test/unit/stakingPledgeBuilder.d.ts.map +0 -1
- package/dist/test/unit/stakingPledgeBuilder.js +0 -141
- package/dist/test/unit/stakingWithdrawBuilder.d.ts +0 -2
- package/dist/test/unit/stakingWithdrawBuilder.d.ts.map +0 -1
- package/dist/test/unit/stakingWithdrawBuilder.js +0 -167
- package/dist/test/unit/tokenWithdrawal.d.ts +0 -2
- package/dist/test/unit/tokenWithdrawal.d.ts.map +0 -1
- package/dist/test/unit/tokenWithdrawal.js +0 -286
- package/dist/test/unit/transaction.d.ts +0 -2
- package/dist/test/unit/transaction.d.ts.map +0 -1
- package/dist/test/unit/transaction.js +0 -100
- package/dist/test/unit/transactionBuilder.d.ts +0 -2
- package/dist/test/unit/transactionBuilder.d.ts.map +0 -1
- package/dist/test/unit/transactionBuilder.js +0 -454
- package/dist/test/unit/utils.d.ts +0 -2
- package/dist/test/unit/utils.d.ts.map +0 -1
- package/dist/test/unit/utils.js +0 -138
- package/dist/test/unit/voteDelegationBuilder.d.ts +0 -2
- package/dist/test/unit/voteDelegationBuilder.d.ts.map +0 -1
- package/dist/test/unit/voteDelegationBuilder.js +0 -96
- package/dist/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/sdk-coin-ada",
|
|
3
|
-
"version": "2.2.3-alpha.
|
|
3
|
+
"version": "2.2.3-alpha.407",
|
|
4
4
|
"description": "BitGo SDK coin library for Ada",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@bitgo-beta/sdk-core": "2.4.1-alpha.
|
|
44
|
-
"@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.
|
|
45
|
-
"@bitgo-beta/statics": "10.0.1-alpha.
|
|
43
|
+
"@bitgo-beta/sdk-core": "2.4.1-alpha.408",
|
|
44
|
+
"@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.364",
|
|
45
|
+
"@bitgo-beta/statics": "10.0.1-alpha.408",
|
|
46
46
|
"@emurgo/cardano-serialization-lib-browser": "^12.0.1",
|
|
47
47
|
"@emurgo/cardano-serialization-lib-nodejs": "^12.0.1",
|
|
48
48
|
"bech32": "^2.0.0",
|
|
@@ -54,11 +54,8 @@
|
|
|
54
54
|
"tweetnacl": "^1.0.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@bitgo-beta/sdk-api": "1.6.1-alpha.
|
|
58
|
-
"@bitgo-beta/sdk-test": "^9.1.
|
|
57
|
+
"@bitgo-beta/sdk-api": "1.6.1-alpha.408",
|
|
58
|
+
"@bitgo-beta/sdk-test": "^9.1.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
61
|
-
"files": [
|
|
62
|
-
"dist"
|
|
63
|
-
]
|
|
60
|
+
"gitHead": "1a5a022e5b5c08a32a90d01565debc4aef2b1541"
|
|
64
61
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as CardanoSL from '@emurgo/cardano-serialization-lib-nodejs';
|
|
2
|
-
export declare const cip8TestResources: {
|
|
3
|
-
address: {
|
|
4
|
-
bech32: string;
|
|
5
|
-
paymentKeyHash: string;
|
|
6
|
-
};
|
|
7
|
-
keyPair: {
|
|
8
|
-
prv: string;
|
|
9
|
-
pub: string;
|
|
10
|
-
};
|
|
11
|
-
messages: {
|
|
12
|
-
simple: string;
|
|
13
|
-
utf8: string;
|
|
14
|
-
longer: string;
|
|
15
|
-
};
|
|
16
|
-
signatures: {
|
|
17
|
-
simpleMessageSignature: string;
|
|
18
|
-
};
|
|
19
|
-
createTestSignature: (payload: string) => Uint8Array;
|
|
20
|
-
createTestPublicKey: () => CardanoSL.PublicKey;
|
|
21
|
-
signablePayloads: {
|
|
22
|
-
simple: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=cip8Resources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cip8Resources.d.ts","sourceRoot":"","sources":["../../../test/resources/cip8Resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,0CAA0C,CAAC;AAGtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;mCA2BY,MAAM,KAAG,UAAU;+BASzB,SAAS,CAAC,SAAS;;;;CAQtD,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.cip8TestResources = void 0;
|
|
37
|
-
const CardanoSL = __importStar(require("@emurgo/cardano-serialization-lib-nodejs"));
|
|
38
|
-
const buffer_1 = require("buffer");
|
|
39
|
-
exports.cip8TestResources = {
|
|
40
|
-
// Test address and key pair
|
|
41
|
-
address: {
|
|
42
|
-
bech32: 'addr_test1qpxecfjurjtcnalwy6gxcqzp09je55gvfv79hghqst8p7p6dnsn9c8yh38m7uf5sdsqyz7t9nfgscjeutw3wpqkwrursutfm7h',
|
|
43
|
-
paymentKeyHash: '5a0bf45a9f8214d9d44e20f806116bda59e10e706574b877501391b14',
|
|
44
|
-
},
|
|
45
|
-
keyPair: {
|
|
46
|
-
prv: '38e3bf2573ebbc35b65b5bc91275e0ef05cc3ebd5bb913ede29c19fe0edacc8a',
|
|
47
|
-
pub: 'c082eb504ec79dbdaecbf9c69745f88bb7973b02db8c4c73e4faeef349e21447',
|
|
48
|
-
},
|
|
49
|
-
// Test messages
|
|
50
|
-
messages: {
|
|
51
|
-
simple: 'Hello, Cardano!',
|
|
52
|
-
utf8: 'こんにちは, Cardano!', // Test UTF-8 characters
|
|
53
|
-
longer: 'This is a longer message for testing the CIP8 message implementation. It contains multiple sentences and is intended to test how the implementation handles messages of varying lengths.',
|
|
54
|
-
},
|
|
55
|
-
// Pre-computed signatures for tests
|
|
56
|
-
signatures: {
|
|
57
|
-
simpleMessageSignature: '8458208458208a582000000000000000000000000000000000000000000000000000000000000000001a40158205a0bf45a9f8214d9d44e20f806116bda59e10e706574b877501391b14a1686866616c7365584073884144eb54ddc9a92cc5a5fff4bb38536c0489e75e84244c454419ebc5e636528d6c68e939a9c15d7f6d57e4da5ba68bca9b94f17ac0652d25470fac1207',
|
|
58
|
-
},
|
|
59
|
-
// Helper function to create a test signature
|
|
60
|
-
createTestSignature: function (payload) {
|
|
61
|
-
// This is a dummy function that returns a fixed signature
|
|
62
|
-
// In real tests, we'd use actual cryptographic libraries to sign
|
|
63
|
-
const buffer = buffer_1.Buffer.alloc(64, 0);
|
|
64
|
-
buffer.write(payload.slice(0, 64), 'utf8');
|
|
65
|
-
return buffer;
|
|
66
|
-
},
|
|
67
|
-
// Helper function to create a CSL public key from the test key pair
|
|
68
|
-
createTestPublicKey: function () {
|
|
69
|
-
return CardanoSL.PublicKey.from_bytes(buffer_1.Buffer.from(this.keyPair.pub, 'hex'));
|
|
70
|
-
},
|
|
71
|
-
// Pre-computed signable payloads for verification
|
|
72
|
-
signablePayloads: {
|
|
73
|
-
simple: 'a0', // Example CBOR hex for simple message (will be replaced with actual values)
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2lwOFJlc291cmNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Rlc3QvcmVzb3VyY2VzL2N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VUZXN0U2lnbmF0dXJlOiBmdW5jdGlvbiAocGF5bG9hZDogc3RyaW5nKTogVWludDhBcnJheSB7XG4gICAgLy8gVGhpcyBpcyBhIGR1bW15IGZ1bmN0aW9uIHRoYXQgcmV0dXJucyBhIGZpeGVkIHNpZ25hdHVyZVxuICAgIC8vIEluIHJlYWwgdGVzdHMsIHdlJ2QgdXNlIGFjdHVhbCBjcnlwdG9ncmFwaGljIGxpYnJhcmllcyB0byBzaWduXG4gICAgY29uc3QgYnVmZmVyID0gQnVmZmVyLmFsbG9jKDY0LCAwKTtcbiAgICBidWZmZXIud3JpdGUocGF5bG9hZC5zbGljZSgwLCA2NCksICd1dGY4Jyk7XG4gICAgcmV0dXJuIGJ1ZmZlcjtcbiAgfSxcblxuICAvLyBIZWxwZXIgZnVuY3Rpb24gdG8gY3JlYXRlIGEgQ1NMIHB1YmxpYyBrZXkgZnJvbSB0aGUgdGVzdCBrZXkgcGFpclxuICBjcmVhdGVUZXN0UHVibGljS2V5OiBmdW5jdGlvbiAoKTogQ2FyZGFub1NMLlB1YmxpY0tleSB7XG4gICAgcmV0dXJuIENhcmRhbm9TTC5QdWJsaWNLZXkuZnJvbV9ieXRlcyhCdWZmZXIuZnJvbSh0aGlzLmtleVBhaXIucHViLCAnaGV4JykpO1xuICB9LFxuXG4gIC8vIFByZS1jb21wdXRlZCBzaWduYWJsZSBwYXlsb2FkcyBmb3IgdmVyaWZpY2F0aW9uXG4gIHNpZ25hYmxlUGF5bG9hZHM6IHtcbiAgICBzaW1wbGU6ICdhMCcsIC8vIEV4YW1wbGUgQ0JPUiBoZXggZm9yIHNpbXBsZSBtZXNzYWdlICh3aWxsIGJlIHJlcGxhY2VkIHdpdGggYWN0dWFsIHZhbHVlcylcbiAgfSxcbn07XG4iXX0=
|
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
export declare const address: {
|
|
2
|
-
address1: string;
|
|
3
|
-
address2: string;
|
|
4
|
-
address3: string;
|
|
5
|
-
address4: string;
|
|
6
|
-
address6: string;
|
|
7
|
-
address7: string;
|
|
8
|
-
address8: string;
|
|
9
|
-
address9: string;
|
|
10
|
-
address10: string;
|
|
11
|
-
address11: string;
|
|
12
|
-
address12: string;
|
|
13
|
-
address13: string;
|
|
14
|
-
address14: string;
|
|
15
|
-
address15: string;
|
|
16
|
-
address16: string;
|
|
17
|
-
byron1: string;
|
|
18
|
-
byron2: string;
|
|
19
|
-
byron3: string;
|
|
20
|
-
byron4: string;
|
|
21
|
-
byron5: string;
|
|
22
|
-
byron6: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const blockHash: {
|
|
25
|
-
hash1: string;
|
|
26
|
-
hash2: string;
|
|
27
|
-
};
|
|
28
|
-
export declare const signatures: {
|
|
29
|
-
signature1: string;
|
|
30
|
-
signature2: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const txIds: {
|
|
33
|
-
hash1: string;
|
|
34
|
-
hash2: string;
|
|
35
|
-
hash3: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const privateKeys: {
|
|
38
|
-
prvKeyExtended: string;
|
|
39
|
-
prvKey2: string;
|
|
40
|
-
prvKey3WrongFormat: string;
|
|
41
|
-
prvKey4: string;
|
|
42
|
-
prvKey5WrongFormat: string;
|
|
43
|
-
prvKey6: string;
|
|
44
|
-
prvKey7: string;
|
|
45
|
-
prvKey8: string;
|
|
46
|
-
prvKey9: string;
|
|
47
|
-
prvKey10: string;
|
|
48
|
-
};
|
|
49
|
-
export declare const publicKeys: {
|
|
50
|
-
pubKey1: string;
|
|
51
|
-
pubKey2: string;
|
|
52
|
-
pubKey3: string;
|
|
53
|
-
pubKey4: string;
|
|
54
|
-
pubKey6: string;
|
|
55
|
-
};
|
|
56
|
-
export declare const enterpriseAccounts: {
|
|
57
|
-
account1: {
|
|
58
|
-
secretKey: string;
|
|
59
|
-
publicKey: string;
|
|
60
|
-
hexPublic: string;
|
|
61
|
-
baseAddress: string;
|
|
62
|
-
};
|
|
63
|
-
account2: {
|
|
64
|
-
secretKey: string;
|
|
65
|
-
publicKey: string;
|
|
66
|
-
hexPublic: string;
|
|
67
|
-
baseAddress: string;
|
|
68
|
-
};
|
|
69
|
-
account3: {
|
|
70
|
-
secretKey: string;
|
|
71
|
-
publicKey: string;
|
|
72
|
-
baseAddress: string;
|
|
73
|
-
};
|
|
74
|
-
account4: {
|
|
75
|
-
publicKeyHex: string;
|
|
76
|
-
baseAddress: string;
|
|
77
|
-
};
|
|
78
|
-
seedAccount: {
|
|
79
|
-
seed: string;
|
|
80
|
-
secretKey: string;
|
|
81
|
-
publicKey: string;
|
|
82
|
-
enterpriseAddress: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
export declare const stakingAccount: {
|
|
86
|
-
baseAddress: string;
|
|
87
|
-
stakeKey: string;
|
|
88
|
-
paymentKey: string;
|
|
89
|
-
stakeHex: string;
|
|
90
|
-
paymentHex: string;
|
|
91
|
-
};
|
|
92
|
-
export declare const rawTx: {
|
|
93
|
-
signedTx: string;
|
|
94
|
-
unsignedTx: string;
|
|
95
|
-
unsignedTxBody: string;
|
|
96
|
-
unsignedTx2: string;
|
|
97
|
-
unsignedTx3: string;
|
|
98
|
-
unsignedTx4: string;
|
|
99
|
-
unsignedTx5: string;
|
|
100
|
-
signedTx2: string;
|
|
101
|
-
txHash: string;
|
|
102
|
-
txHash2: string;
|
|
103
|
-
txHash3: string;
|
|
104
|
-
txHash4: string;
|
|
105
|
-
txHash5: string;
|
|
106
|
-
outputAddress1: {
|
|
107
|
-
address: string;
|
|
108
|
-
value: string;
|
|
109
|
-
};
|
|
110
|
-
outputAddress2: {
|
|
111
|
-
address: string;
|
|
112
|
-
value: string;
|
|
113
|
-
};
|
|
114
|
-
unsignedVoteDelegationTx: string;
|
|
115
|
-
unsignedVoteDelegationTxBody: string;
|
|
116
|
-
unsignedVoteDelegationTxHash: string;
|
|
117
|
-
unsignedStakingActiveTx: string;
|
|
118
|
-
unsignedStakingActiveTxBody: string;
|
|
119
|
-
unsignedStakingActiveTxHash: string;
|
|
120
|
-
unsignedStakingDeactiveTx: string;
|
|
121
|
-
unsignedStakingDeactiveTxBody: string;
|
|
122
|
-
unsignedStakingDeactiveTxHash: string;
|
|
123
|
-
unsignedStakingWithdrawTx: string;
|
|
124
|
-
unsignedStakingWithdrawTxBody: string;
|
|
125
|
-
unsignedStakingWithdrawTxHash: string;
|
|
126
|
-
unsignedNewPledgeTx: string;
|
|
127
|
-
unsignedNewPledgeTxBody: string;
|
|
128
|
-
unsignedNewPledgeTxHash: string;
|
|
129
|
-
unsignedUpdatePledgeTx: string;
|
|
130
|
-
unsignedUpdatePledgeTxBody: string;
|
|
131
|
-
unsignedUpdatePledgeTxHash: string;
|
|
132
|
-
partiallySignedPledgeTx: string;
|
|
133
|
-
pledgeNodeKeyPubkey: string;
|
|
134
|
-
pledgeNodeWitnessSignature: string;
|
|
135
|
-
pledgeWalletKeyPubkey: string;
|
|
136
|
-
pledgeWalletWitnessSignature: string;
|
|
137
|
-
};
|
|
138
|
-
export declare const rawTxByron: {
|
|
139
|
-
signedTx: string;
|
|
140
|
-
unsignedTx: string;
|
|
141
|
-
unsignedTxBody: string;
|
|
142
|
-
unsignedTx2: string;
|
|
143
|
-
unsignedTx3: string;
|
|
144
|
-
unsignedTx4: string;
|
|
145
|
-
unsignedTx5: string;
|
|
146
|
-
signedTx2: string;
|
|
147
|
-
txHash: string;
|
|
148
|
-
txHash2: string;
|
|
149
|
-
txHash3: string;
|
|
150
|
-
txHash4: string;
|
|
151
|
-
txHash5: string;
|
|
152
|
-
outputAddress1: {
|
|
153
|
-
address: string;
|
|
154
|
-
value: string;
|
|
155
|
-
};
|
|
156
|
-
outputAddress2: {
|
|
157
|
-
address: string;
|
|
158
|
-
value: string;
|
|
159
|
-
};
|
|
160
|
-
unsignedVoteDelegationTx: string;
|
|
161
|
-
unsignedVoteDelegationTxBody: string;
|
|
162
|
-
unsignedVoteDelegationTxHash: string;
|
|
163
|
-
unsignedStakingActiveTx: string;
|
|
164
|
-
unsignedStakingActiveTxBody: string;
|
|
165
|
-
unsignedStakingActiveTxHash: string;
|
|
166
|
-
unsignedStakingDeactiveTx: string;
|
|
167
|
-
unsignedStakingDeactiveTxBody: string;
|
|
168
|
-
unsignedStakingDeactiveTxHash: string;
|
|
169
|
-
unsignedStakingWithdrawTx: string;
|
|
170
|
-
unsignedStakingWithdrawTxBody: string;
|
|
171
|
-
unsignedStakingWithdrawTxHash: string;
|
|
172
|
-
unsignedNewPledgeTx: string;
|
|
173
|
-
unsignedNewPledgeTxBody: string;
|
|
174
|
-
unsignedNewPledgeTxHash: string;
|
|
175
|
-
unsignedUpdatePledgeTx: string;
|
|
176
|
-
unsignedUpdatePledgeTxBody: string;
|
|
177
|
-
unsignedUpdatePledgeTxHash: string;
|
|
178
|
-
partiallySignedPledgeTx: string;
|
|
179
|
-
pledgeNodeKeyPubkey: string;
|
|
180
|
-
pledgeNodeWitnessSignature: string;
|
|
181
|
-
pledgeWalletKeyPubkey: string;
|
|
182
|
-
pledgeWalletWitnessSignature: string;
|
|
183
|
-
};
|
|
184
|
-
export declare const wrwUser: {
|
|
185
|
-
userKey: string;
|
|
186
|
-
backupKey: string;
|
|
187
|
-
bitgoKey: string;
|
|
188
|
-
walletPassphrase: string;
|
|
189
|
-
walletAddress0: string;
|
|
190
|
-
walletAddress1: string;
|
|
191
|
-
};
|
|
192
|
-
export declare const consolidationWrwUser: {
|
|
193
|
-
userKey: string;
|
|
194
|
-
backupKey: string;
|
|
195
|
-
bitgoKey: string;
|
|
196
|
-
walletPassphrase: string;
|
|
197
|
-
walletAddress0: string;
|
|
198
|
-
walletAddress1: string;
|
|
199
|
-
walletAddress2: string;
|
|
200
|
-
walletAddress3: string;
|
|
201
|
-
walletAddress4: string;
|
|
202
|
-
};
|
|
203
|
-
export declare const testnetUTXO: {
|
|
204
|
-
UTXO_1: {
|
|
205
|
-
tx_hash: string;
|
|
206
|
-
tx_index: number;
|
|
207
|
-
value: number;
|
|
208
|
-
};
|
|
209
|
-
UTXO_2: {
|
|
210
|
-
tx_hash: string;
|
|
211
|
-
tx_index: number;
|
|
212
|
-
value: number;
|
|
213
|
-
};
|
|
214
|
-
UTXO_3: {
|
|
215
|
-
tx_hash: string;
|
|
216
|
-
tx_index: number;
|
|
217
|
-
value: number;
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
export declare const endpointResponses: {
|
|
221
|
-
readonly addressInfoResponse: {
|
|
222
|
-
ZeroUTXO: {
|
|
223
|
-
status: number;
|
|
224
|
-
body: {
|
|
225
|
-
balance: number;
|
|
226
|
-
utxo_set: never[];
|
|
227
|
-
}[];
|
|
228
|
-
};
|
|
229
|
-
OneUTXO: {
|
|
230
|
-
status: number;
|
|
231
|
-
body: {
|
|
232
|
-
balance: number;
|
|
233
|
-
utxo_set: {
|
|
234
|
-
tx_hash: string;
|
|
235
|
-
tx_index: number;
|
|
236
|
-
value: number;
|
|
237
|
-
}[];
|
|
238
|
-
}[];
|
|
239
|
-
};
|
|
240
|
-
OneUTXO2: {
|
|
241
|
-
status: number;
|
|
242
|
-
body: {
|
|
243
|
-
balance: number;
|
|
244
|
-
utxo_set: {
|
|
245
|
-
tx_hash: string;
|
|
246
|
-
tx_index: number;
|
|
247
|
-
value: number;
|
|
248
|
-
}[];
|
|
249
|
-
}[];
|
|
250
|
-
};
|
|
251
|
-
TwoUTXO: {
|
|
252
|
-
status: number;
|
|
253
|
-
body: {
|
|
254
|
-
balance: number;
|
|
255
|
-
utxo_set: {
|
|
256
|
-
tx_hash: string;
|
|
257
|
-
tx_index: number;
|
|
258
|
-
value: number;
|
|
259
|
-
}[];
|
|
260
|
-
}[];
|
|
261
|
-
};
|
|
262
|
-
OneSmallUTXO: {
|
|
263
|
-
status: number;
|
|
264
|
-
body: {
|
|
265
|
-
balance: number;
|
|
266
|
-
utxo_set: {
|
|
267
|
-
tx_hash: string;
|
|
268
|
-
tx_index: number;
|
|
269
|
-
value: number;
|
|
270
|
-
}[];
|
|
271
|
-
}[];
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
readonly tipInfoResponse: {
|
|
275
|
-
status: number;
|
|
276
|
-
body: {
|
|
277
|
-
abs_slot: number;
|
|
278
|
-
}[];
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
export declare const ovcResponse: {
|
|
282
|
-
signatureShares: {
|
|
283
|
-
txRequest: {
|
|
284
|
-
transactions: {
|
|
285
|
-
unsignedTx: {
|
|
286
|
-
serializedTx: string;
|
|
287
|
-
scanIndex: number;
|
|
288
|
-
coin: string;
|
|
289
|
-
signableHex: string;
|
|
290
|
-
derivationPath: string;
|
|
291
|
-
parsedTx: {
|
|
292
|
-
inputs: {
|
|
293
|
-
address: string;
|
|
294
|
-
valueString: string;
|
|
295
|
-
value: number;
|
|
296
|
-
}[];
|
|
297
|
-
outputs: {
|
|
298
|
-
address: string;
|
|
299
|
-
valueString: string;
|
|
300
|
-
coinName: string;
|
|
301
|
-
}[];
|
|
302
|
-
spendAmount: string;
|
|
303
|
-
type: string;
|
|
304
|
-
};
|
|
305
|
-
feeInfo: {
|
|
306
|
-
fee: number;
|
|
307
|
-
feeString: string;
|
|
308
|
-
};
|
|
309
|
-
coinSpecific: {
|
|
310
|
-
commonKeychain: string;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
signatureShares: never[];
|
|
314
|
-
signatureShare: {
|
|
315
|
-
from: string;
|
|
316
|
-
to: string;
|
|
317
|
-
share: string;
|
|
318
|
-
publicShare: string;
|
|
319
|
-
};
|
|
320
|
-
}[];
|
|
321
|
-
walletCoin: string;
|
|
322
|
-
};
|
|
323
|
-
tssVersion: string;
|
|
324
|
-
ovc: {
|
|
325
|
-
eddsaSignature: {
|
|
326
|
-
y: string;
|
|
327
|
-
R: string;
|
|
328
|
-
sigma: string;
|
|
329
|
-
};
|
|
330
|
-
}[];
|
|
331
|
-
}[];
|
|
332
|
-
};
|
|
333
|
-
export declare const ovcResponse2: {
|
|
334
|
-
signatureShares: ({
|
|
335
|
-
txRequest: {
|
|
336
|
-
transactions: {
|
|
337
|
-
unsignedTx: {
|
|
338
|
-
serializedTx: string;
|
|
339
|
-
scanIndex: number;
|
|
340
|
-
coin: string;
|
|
341
|
-
signableHex: string;
|
|
342
|
-
derivationPath: string;
|
|
343
|
-
parsedTx: {
|
|
344
|
-
inputs: {
|
|
345
|
-
address: string;
|
|
346
|
-
valueString: string;
|
|
347
|
-
value: number;
|
|
348
|
-
}[];
|
|
349
|
-
outputs: {
|
|
350
|
-
address: string;
|
|
351
|
-
valueString: string;
|
|
352
|
-
coinName: string;
|
|
353
|
-
}[];
|
|
354
|
-
spendAmount: string;
|
|
355
|
-
type: string;
|
|
356
|
-
};
|
|
357
|
-
feeInfo: {
|
|
358
|
-
fee: number;
|
|
359
|
-
feeString: string;
|
|
360
|
-
};
|
|
361
|
-
coinSpecific: {
|
|
362
|
-
commonKeychain: string;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
signatureShares: never[];
|
|
366
|
-
signatureShare: {
|
|
367
|
-
from: string;
|
|
368
|
-
to: string;
|
|
369
|
-
share: string;
|
|
370
|
-
publicShare: string;
|
|
371
|
-
};
|
|
372
|
-
}[];
|
|
373
|
-
walletCoin: string;
|
|
374
|
-
};
|
|
375
|
-
tssVersion: string;
|
|
376
|
-
ovc: {
|
|
377
|
-
eddsaSignature: {
|
|
378
|
-
y: string;
|
|
379
|
-
R: string;
|
|
380
|
-
sigma: string;
|
|
381
|
-
};
|
|
382
|
-
}[];
|
|
383
|
-
} | {
|
|
384
|
-
txRequest: {
|
|
385
|
-
transactions: {
|
|
386
|
-
unsignedTx: {
|
|
387
|
-
serializedTx: string;
|
|
388
|
-
scanIndex: number;
|
|
389
|
-
coin: string;
|
|
390
|
-
signableHex: string;
|
|
391
|
-
derivationPath: string;
|
|
392
|
-
parsedTx: {
|
|
393
|
-
inputs: {
|
|
394
|
-
address: string;
|
|
395
|
-
valueString: string;
|
|
396
|
-
value: number;
|
|
397
|
-
}[];
|
|
398
|
-
outputs: {
|
|
399
|
-
address: string;
|
|
400
|
-
valueString: string;
|
|
401
|
-
coinName: string;
|
|
402
|
-
}[];
|
|
403
|
-
spendAmount: string;
|
|
404
|
-
type: string;
|
|
405
|
-
};
|
|
406
|
-
feeInfo: {
|
|
407
|
-
fee: number;
|
|
408
|
-
feeString: string;
|
|
409
|
-
};
|
|
410
|
-
coinSpecific: {
|
|
411
|
-
commonKeychain: string;
|
|
412
|
-
lastScanIndex: number;
|
|
413
|
-
};
|
|
414
|
-
};
|
|
415
|
-
signatureShares: never[];
|
|
416
|
-
signatureShare: {
|
|
417
|
-
from: string;
|
|
418
|
-
to: string;
|
|
419
|
-
share: string;
|
|
420
|
-
publicShare: string;
|
|
421
|
-
};
|
|
422
|
-
}[];
|
|
423
|
-
walletCoin: string;
|
|
424
|
-
};
|
|
425
|
-
tssVersion: string;
|
|
426
|
-
ovc: {
|
|
427
|
-
eddsaSignature: {
|
|
428
|
-
y: string;
|
|
429
|
-
R: string;
|
|
430
|
-
sigma: string;
|
|
431
|
-
};
|
|
432
|
-
}[];
|
|
433
|
-
})[];
|
|
434
|
-
};
|
|
435
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../test/resources/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;CA2BnB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAKtB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;CAcvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC9B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;CAW1B,CAAC;AAEF,eAAO,MA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