@bitgo-beta/sdk-coin-tia 3.1.8-beta.53 → 3.1.8-beta.531
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/test/integration/index.d.ts +2 -0
- package/dist/test/integration/index.d.ts.map +1 -0
- package/dist/test/integration/index.js +16 -0
- package/dist/test/resources/tia.d.ts +321 -0
- package/dist/test/resources/tia.d.ts.map +1 -0
- package/dist/test/resources/tia.js +501 -0
- package/dist/test/unit/keyPair.d.ts +2 -0
- package/dist/test/unit/keyPair.d.ts.map +1 -0
- package/dist/test/unit/keyPair.js +92 -0
- package/dist/test/unit/tia.d.ts +2 -0
- package/dist/test/unit/tia.d.ts.map +1 -0
- package/dist/test/unit/tia.js +524 -0
- package/dist/test/unit/transaction.d.ts +2 -0
- package/dist/test/unit/transaction.d.ts.map +1 -0
- package/dist/test/unit/transaction.js +219 -0
- package/dist/test/unit/transactionBuilder/StakingActivateBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/StakingActivateBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/StakingActivateBuilder.js +190 -0
- package/dist/test/unit/transactionBuilder/StakingDeactivateBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/StakingDeactivateBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/StakingDeactivateBuilder.js +189 -0
- package/dist/test/unit/transactionBuilder/StakingWithdrawRewardsBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/StakingWithdrawRewardsBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/StakingWithdrawRewardsBuilder.js +154 -0
- package/dist/test/unit/transactionBuilder/transactionBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/transactionBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/transactionBuilder.js +112 -0
- package/dist/test/unit/transactionBuilder/transferBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/transferBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/transferBuilder.js +224 -0
- package/dist/test/unit/utils.d.ts +2 -0
- package/dist/test/unit/utils.d.ts.map +1 -0
- package/dist/test/unit/utils.js +76 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +13 -10
- package/.eslintignore +0 -5
- package/.mocharc.yml +0 -8
- package/CHANGELOG.md +0 -833
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../test/integration/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("should");
|
|
4
|
+
const sdk_api_1 = require("@bitgo-beta/sdk-api");
|
|
5
|
+
const sdk_test_1 = require("@bitgo-beta/sdk-test");
|
|
6
|
+
const index_1 = require("../../src/index");
|
|
7
|
+
describe('TIA', function () {
|
|
8
|
+
let bitgo;
|
|
9
|
+
before(function () {
|
|
10
|
+
bitgo = sdk_test_1.TestBitGo.decorate(sdk_api_1.BitGoAPI, { env: 'mock' });
|
|
11
|
+
bitgo.safeRegister('tia', index_1.Tia.createInstance);
|
|
12
|
+
bitgo.safeRegister('ttia', index_1.Ttia.createInstance);
|
|
13
|
+
bitgo.initializeTestVars();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi90ZXN0L2ludGVncmF0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsa0JBQWdCO0FBRWhCLGlEQUErQztBQUMvQyxtREFBK0Q7QUFFL0QsMkNBQTRDO0FBRTVDLFFBQVEsQ0FBQyxLQUFLLEVBQUU7S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mFycygpO1xuICB9KTtcbn0pO1xuIl19
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
export declare const TEST_ACCOUNT: {
|
|
2
|
+
pubAddress: string;
|
|
3
|
+
compressedPublicKey: string;
|
|
4
|
+
compressedPublicKeyTwo: string;
|
|
5
|
+
uncompressedPublicKey: string;
|
|
6
|
+
privateKey: string;
|
|
7
|
+
extendedPrv: string;
|
|
8
|
+
extendedPub: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const TEST_SEND_TX: {
|
|
11
|
+
hash: string;
|
|
12
|
+
signature: string;
|
|
13
|
+
pubKey: string;
|
|
14
|
+
privateKey: string;
|
|
15
|
+
signedTxBase64: string;
|
|
16
|
+
sender: string;
|
|
17
|
+
recipient: string;
|
|
18
|
+
chainId: string;
|
|
19
|
+
accountNumber: number;
|
|
20
|
+
sequence: number;
|
|
21
|
+
sendAmount: string;
|
|
22
|
+
feeAmount: string;
|
|
23
|
+
sendMessage: {
|
|
24
|
+
typeUrl: string;
|
|
25
|
+
value: {
|
|
26
|
+
amount: {
|
|
27
|
+
denom: string;
|
|
28
|
+
amount: string;
|
|
29
|
+
}[];
|
|
30
|
+
toAddress: string;
|
|
31
|
+
fromAddress: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
gasBudget: {
|
|
35
|
+
amount: {
|
|
36
|
+
denom: string;
|
|
37
|
+
amount: string;
|
|
38
|
+
}[];
|
|
39
|
+
gasLimit: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const TEST_SEND_MANY_TX: {
|
|
43
|
+
hash: string;
|
|
44
|
+
signature: string;
|
|
45
|
+
pubKey: string;
|
|
46
|
+
privateKey: string;
|
|
47
|
+
signedTxBase64: string;
|
|
48
|
+
sender: string;
|
|
49
|
+
chainId: string;
|
|
50
|
+
accountNumber: number;
|
|
51
|
+
sequence: number;
|
|
52
|
+
sendMessages: {
|
|
53
|
+
typeUrl: string;
|
|
54
|
+
value: {
|
|
55
|
+
amount: {
|
|
56
|
+
denom: string;
|
|
57
|
+
amount: string;
|
|
58
|
+
}[];
|
|
59
|
+
toAddress: string;
|
|
60
|
+
fromAddress: string;
|
|
61
|
+
};
|
|
62
|
+
}[];
|
|
63
|
+
gasBudget: {
|
|
64
|
+
amount: {
|
|
65
|
+
denom: string;
|
|
66
|
+
amount: string;
|
|
67
|
+
}[];
|
|
68
|
+
gasLimit: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export declare const TEST_SEND_MANY_STAKE_TX: {
|
|
72
|
+
hash: string;
|
|
73
|
+
signature: string;
|
|
74
|
+
pubKey: string;
|
|
75
|
+
privateKey: string;
|
|
76
|
+
signedTxBase64: string;
|
|
77
|
+
chainId: string;
|
|
78
|
+
accountNumber: number;
|
|
79
|
+
sequence: number;
|
|
80
|
+
sendMessages: {
|
|
81
|
+
typeUrl: string;
|
|
82
|
+
value: {
|
|
83
|
+
amount: {
|
|
84
|
+
denom: string;
|
|
85
|
+
amount: string;
|
|
86
|
+
};
|
|
87
|
+
validatorAddress: string;
|
|
88
|
+
delegatorAddress: string;
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
91
|
+
gasBudget: {
|
|
92
|
+
amount: {
|
|
93
|
+
denom: string;
|
|
94
|
+
amount: string;
|
|
95
|
+
}[];
|
|
96
|
+
gasLimit: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export declare const TEST_SEND_MANY_UNSTAKE_TX: {
|
|
100
|
+
hash: string;
|
|
101
|
+
signature: string;
|
|
102
|
+
pubKey: string;
|
|
103
|
+
privateKey: string;
|
|
104
|
+
signedTxBase64: string;
|
|
105
|
+
chainId: string;
|
|
106
|
+
accountNumber: number;
|
|
107
|
+
sequence: number;
|
|
108
|
+
sendMessages: {
|
|
109
|
+
typeUrl: string;
|
|
110
|
+
value: {
|
|
111
|
+
amount: {
|
|
112
|
+
denom: string;
|
|
113
|
+
amount: string;
|
|
114
|
+
};
|
|
115
|
+
validatorAddress: string;
|
|
116
|
+
delegatorAddress: string;
|
|
117
|
+
};
|
|
118
|
+
}[];
|
|
119
|
+
gasBudget: {
|
|
120
|
+
amount: {
|
|
121
|
+
denom: string;
|
|
122
|
+
amount: string;
|
|
123
|
+
}[];
|
|
124
|
+
gasLimit: number;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export declare const TEST_DELEGATE_TX: {
|
|
128
|
+
hash: string;
|
|
129
|
+
signature: string;
|
|
130
|
+
pubKey: string;
|
|
131
|
+
privateKey: string;
|
|
132
|
+
signedTxBase64: string;
|
|
133
|
+
delegator: string;
|
|
134
|
+
validator: string;
|
|
135
|
+
chainId: string;
|
|
136
|
+
accountNumber: number;
|
|
137
|
+
sequence: number;
|
|
138
|
+
sendAmount: string;
|
|
139
|
+
feeAmount: string;
|
|
140
|
+
sendMessage: {
|
|
141
|
+
typeUrl: string;
|
|
142
|
+
value: {
|
|
143
|
+
delegatorAddress: string;
|
|
144
|
+
validatorAddress: string;
|
|
145
|
+
amount: {
|
|
146
|
+
denom: string;
|
|
147
|
+
amount: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
gasBudget: {
|
|
152
|
+
amount: {
|
|
153
|
+
denom: string;
|
|
154
|
+
amount: string;
|
|
155
|
+
}[];
|
|
156
|
+
gasLimit: number;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
export declare const TEST_UNDELEGATE_TX: {
|
|
160
|
+
hash: string;
|
|
161
|
+
signature: string;
|
|
162
|
+
pubKey: string;
|
|
163
|
+
privateKey: string;
|
|
164
|
+
signedTxBase64: string;
|
|
165
|
+
delegator: string;
|
|
166
|
+
validator: string;
|
|
167
|
+
chainId: string;
|
|
168
|
+
accountNumber: number;
|
|
169
|
+
sequence: number;
|
|
170
|
+
sendAmount: string;
|
|
171
|
+
feeAmount: string;
|
|
172
|
+
sendMessage: {
|
|
173
|
+
typeUrl: string;
|
|
174
|
+
value: {
|
|
175
|
+
delegatorAddress: string;
|
|
176
|
+
validatorAddress: string;
|
|
177
|
+
amount: {
|
|
178
|
+
denom: string;
|
|
179
|
+
amount: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
gasBudget: {
|
|
184
|
+
amount: {
|
|
185
|
+
denom: string;
|
|
186
|
+
amount: string;
|
|
187
|
+
}[];
|
|
188
|
+
gasLimit: number;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
export declare const TEST_WITHDRAW_REWARDS_TX: {
|
|
192
|
+
hash: string;
|
|
193
|
+
signature: string;
|
|
194
|
+
pubKey: string;
|
|
195
|
+
privateKey: string;
|
|
196
|
+
signedTxBase64: string;
|
|
197
|
+
delegator: string;
|
|
198
|
+
validator: string;
|
|
199
|
+
chainId: string;
|
|
200
|
+
accountNumber: number;
|
|
201
|
+
sequence: number;
|
|
202
|
+
sendAmount: string;
|
|
203
|
+
feeAmount: string;
|
|
204
|
+
sendMessage: {
|
|
205
|
+
typeUrl: string;
|
|
206
|
+
value: {
|
|
207
|
+
delegatorAddress: string;
|
|
208
|
+
validatorAddress: string;
|
|
209
|
+
amount: {
|
|
210
|
+
denom: string;
|
|
211
|
+
amount: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
gasBudget: {
|
|
216
|
+
amount: {
|
|
217
|
+
denom: string;
|
|
218
|
+
amount: string;
|
|
219
|
+
}[];
|
|
220
|
+
gasLimit: number;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
export declare const TEST_TX_WITH_MEMO: {
|
|
224
|
+
hash: string;
|
|
225
|
+
signature: string;
|
|
226
|
+
pubKey: string;
|
|
227
|
+
privateKey: string;
|
|
228
|
+
signedTxBase64: string;
|
|
229
|
+
from: string;
|
|
230
|
+
to: string;
|
|
231
|
+
chainId: string;
|
|
232
|
+
accountNumber: number;
|
|
233
|
+
sequence: number;
|
|
234
|
+
sendAmount: string;
|
|
235
|
+
feeAmount: string;
|
|
236
|
+
sendMessage: {
|
|
237
|
+
typeUrl: string;
|
|
238
|
+
value: {
|
|
239
|
+
amount: {
|
|
240
|
+
denom: string;
|
|
241
|
+
amount: string;
|
|
242
|
+
}[];
|
|
243
|
+
toAddress: string;
|
|
244
|
+
fromAddress: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
memo: string;
|
|
248
|
+
gasBudget: {
|
|
249
|
+
amount: {
|
|
250
|
+
denom: string;
|
|
251
|
+
amount: string;
|
|
252
|
+
}[];
|
|
253
|
+
gasLimit: number;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
export declare const address: {
|
|
257
|
+
address1: string;
|
|
258
|
+
address2: string;
|
|
259
|
+
address3: string;
|
|
260
|
+
address4: string;
|
|
261
|
+
validatorAddress1: string;
|
|
262
|
+
validatorAddress2: string;
|
|
263
|
+
validatorAddress3: string;
|
|
264
|
+
validatorAddress4: string;
|
|
265
|
+
noMemoIdAddress: string;
|
|
266
|
+
validMemoIdAddress: string;
|
|
267
|
+
invalidMemoIdAddress: string;
|
|
268
|
+
multipleMemoIdAddress: string;
|
|
269
|
+
};
|
|
270
|
+
export declare const blockHash: {
|
|
271
|
+
hash1: string;
|
|
272
|
+
hash2: string;
|
|
273
|
+
};
|
|
274
|
+
export declare const txIds: {
|
|
275
|
+
hash1: string;
|
|
276
|
+
hash2: string;
|
|
277
|
+
hash3: string;
|
|
278
|
+
};
|
|
279
|
+
export declare const coinAmounts: {
|
|
280
|
+
amount1: {
|
|
281
|
+
amount: string;
|
|
282
|
+
denom: string;
|
|
283
|
+
};
|
|
284
|
+
amount2: {
|
|
285
|
+
amount: string;
|
|
286
|
+
denom: string;
|
|
287
|
+
};
|
|
288
|
+
amount3: {
|
|
289
|
+
amount: string;
|
|
290
|
+
denom: string;
|
|
291
|
+
};
|
|
292
|
+
amount4: {
|
|
293
|
+
amount: string;
|
|
294
|
+
denom: string;
|
|
295
|
+
};
|
|
296
|
+
amount5: {
|
|
297
|
+
amount: string;
|
|
298
|
+
denom: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
export declare const wrwUser: {
|
|
302
|
+
senderAddress: string;
|
|
303
|
+
destinationAddress: string;
|
|
304
|
+
userPrivateKey: string;
|
|
305
|
+
backupPrivateKey: string;
|
|
306
|
+
bitgoPublicKey: string;
|
|
307
|
+
walletPassphrase: string;
|
|
308
|
+
};
|
|
309
|
+
export declare const mockAccountDetailsResponse: {
|
|
310
|
+
account: {
|
|
311
|
+
'@type': string;
|
|
312
|
+
address: string;
|
|
313
|
+
pub_key: {
|
|
314
|
+
'@type': string;
|
|
315
|
+
key: string;
|
|
316
|
+
};
|
|
317
|
+
account_number: string;
|
|
318
|
+
sequence: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
//# sourceMappingURL=tia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tia.d.ts","sourceRoot":"","sources":["../../../test/resources/tia.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;CAWxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C7B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCnC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCrC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC5B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC9B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCpC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC7B,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAanB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAMvB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CA+JnB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;CAWtC,CAAC"}
|