@firmachain/firma-js 0.3.8 → 0.4.0-beta2

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.
Files changed (131) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/sdk/FirmaAuthzService.js +20 -15
  4. package/dist/sdk/FirmaBankService.d.ts +1 -1
  5. package/dist/sdk/FirmaBankService.js +5 -4
  6. package/dist/sdk/FirmaConfig.js +4 -4
  7. package/dist/sdk/FirmaContractService.js +10 -8
  8. package/dist/sdk/FirmaDistributionService.js +20 -15
  9. package/dist/sdk/FirmaFeeGrantService.d.ts +0 -1
  10. package/dist/sdk/FirmaFeeGrantService.js +12 -14
  11. package/dist/sdk/FirmaGovService.d.ts +14 -0
  12. package/dist/sdk/FirmaGovService.js +58 -37
  13. package/dist/sdk/FirmaIbcService.js +4 -3
  14. package/dist/sdk/FirmaNftService.d.ts +3 -3
  15. package/dist/sdk/FirmaNftService.js +13 -10
  16. package/dist/sdk/FirmaStakingService.d.ts +4 -0
  17. package/dist/sdk/FirmaStakingService.js +58 -33
  18. package/dist/sdk/FirmaTokenService.js +17 -14
  19. package/dist/sdk/FirmaUtil.js +1 -1
  20. package/dist/sdk/FirmaWalletService.d.ts +1 -1
  21. package/dist/sdk/FirmaWalletService.js +11 -23
  22. package/dist/sdk/firmachain/authz/AuthzTxClient.js +2 -0
  23. package/dist/sdk/firmachain/bank/BankTxClient.js +1 -1
  24. package/dist/sdk/firmachain/common/CommonTxClient.js +3 -1
  25. package/dist/sdk/firmachain/common/FirmaLedger.d.ts +49 -0
  26. package/dist/sdk/firmachain/common/FirmaLedger.js +301 -0
  27. package/dist/sdk/firmachain/common/ITxClient.d.ts +1 -1
  28. package/dist/sdk/firmachain/common/ITxClient.js +6 -4
  29. package/dist/sdk/firmachain/common/LedgerWallet.d.ts +5 -13
  30. package/dist/sdk/firmachain/common/LedgerWallet.js +1266 -124
  31. package/dist/sdk/firmachain/common/SigningProtobufStargateClient.js +3 -4
  32. package/dist/sdk/firmachain/common/SigningStargateClient.d.ts +2 -3
  33. package/dist/sdk/firmachain/common/SigningStargateClient.js +7 -10
  34. package/dist/sdk/firmachain/common/index.d.ts +1 -0
  35. package/dist/sdk/firmachain/common/index.js +1 -0
  36. package/dist/sdk/firmachain/common/signing.d.ts +4 -10
  37. package/dist/sdk/firmachain/common/signing.js +13 -60
  38. package/dist/sdk/firmachain/contract/ContractTxClient.js +1 -1
  39. package/dist/sdk/firmachain/contract/ContractTxTypes.js +54 -8
  40. package/dist/sdk/firmachain/distribution/DistributionTxClient.js +1 -1
  41. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.js +3 -1
  42. package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +1 -2
  43. package/dist/sdk/firmachain/google/protobuf/any.js +0 -12
  44. package/dist/sdk/firmachain/gov/GovTxClient.js +3 -0
  45. package/dist/sdk/firmachain/nft/NftTxClient.js +1 -1
  46. package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +15 -0
  47. package/dist/sdk/firmachain/staking/StakingQueryClient.js +109 -0
  48. package/dist/sdk/firmachain/token/TokenTxClient.js +1 -1
  49. package/package.json +18 -9
  50. package/dist/test/00.wallet.test.d.ts +0 -1
  51. package/dist/test/00.wallet.test.js +0 -96
  52. package/dist/test/01.contract_tx.test.d.ts +0 -1
  53. package/dist/test/01.contract_tx.test.js +0 -157
  54. package/dist/test/02.contract_query.test.d.ts +0 -1
  55. package/dist/test/02.contract_query.test.js +0 -245
  56. package/dist/test/03.contract_scenario.test.d.ts +0 -1
  57. package/dist/test/03.contract_scenario.test.js +0 -406
  58. package/dist/test/04.bank_tx.test.d.ts +0 -1
  59. package/dist/test/04.bank_tx.test.js +0 -126
  60. package/dist/test/05.bank_query.test.d.ts +0 -1
  61. package/dist/test/05.bank_query.test.js +0 -162
  62. package/dist/test/06.feegrant_tx.test.d.ts +0 -1
  63. package/dist/test/06.feegrant_tx.test.js +0 -185
  64. package/dist/test/07.feegrant_query.test.d.ts +0 -1
  65. package/dist/test/07.feegrant_query.test.js +0 -129
  66. package/dist/test/08.gas_estimate.test.d.ts +0 -1
  67. package/dist/test/08.gas_estimate.test.js +0 -728
  68. package/dist/test/09.ipfs.test.d.ts +0 -1
  69. package/dist/test/09.ipfs.test.js +0 -72
  70. package/dist/test/10.nft_tx.test.d.ts +0 -1
  71. package/dist/test/10.nft_tx.test.js +0 -209
  72. package/dist/test/11.nft_query.test.d.ts +0 -1
  73. package/dist/test/11.nft_query.test.js +0 -165
  74. package/dist/test/12.staking_tx.test.d.ts +0 -1
  75. package/dist/test/12.staking_tx.test.js +0 -211
  76. package/dist/test/13.staking_query.test.d.ts +0 -1
  77. package/dist/test/13.staking_query.test.js +0 -275
  78. package/dist/test/14.distribution_tx.test.d.ts +0 -1
  79. package/dist/test/14.distribution_tx.test.js +0 -170
  80. package/dist/test/15.distribution_query.test.d.ts +0 -1
  81. package/dist/test/15.distribution_query.test.js +0 -243
  82. package/dist/test/16.gov_tx.test.d.ts +0 -1
  83. package/dist/test/16.gov_tx.test.js +0 -394
  84. package/dist/test/17.gov_query.test.d.ts +0 -1
  85. package/dist/test/17.gov_query.test.js +0 -181
  86. package/dist/test/18.util.test.d.ts +0 -1
  87. package/dist/test/18.util.test.js +0 -354
  88. package/dist/test/19.chain.test.d.ts +0 -1
  89. package/dist/test/19.chain.test.js +0 -127
  90. package/dist/test/20.slashing_query.test.d.ts +0 -1
  91. package/dist/test/20.slashing_query.test.js +0 -111
  92. package/dist/test/21.token_tx.test.d.ts +0 -1
  93. package/dist/test/21.token_tx.test.js +0 -149
  94. package/dist/test/22.token_query.test.d.ts +0 -1
  95. package/dist/test/22.token_query.test.js +0 -103
  96. package/dist/test/23.authz_tx.test.d.ts +0 -1
  97. package/dist/test/23.authz_tx.test.js +0 -380
  98. package/dist/test/24.authz_query.test.d.ts +0 -1
  99. package/dist/test/24.authz_query.test.js +0 -202
  100. package/dist/test/25.cosmwasm_tx.test.d.ts +0 -1
  101. package/dist/test/25.cosmwasm_tx.test.js +0 -229
  102. package/dist/test/26.cosmwasm_query.test.d.ts +0 -1
  103. package/dist/test/26.cosmwasm_query.test.js +0 -275
  104. package/dist/test/27.arbitrary_sign.test.d.ts +0 -1
  105. package/dist/test/27.arbitrary_sign.test.js +0 -162
  106. package/dist/test/28.ibc_tx.test.d.ts +0 -1
  107. package/dist/test/28.ibc_tx.test.js +0 -98
  108. package/dist/test/29.mint_query.test.d.ts +0 -1
  109. package/dist/test/29.mint_query.test.js +0 -59
  110. package/dist/test/30.cw20_tx.test.d.ts +0 -1
  111. package/dist/test/30.cw20_tx.test.js +0 -450
  112. package/dist/test/31.cw20_query.test.d.ts +0 -1
  113. package/dist/test/31.cw20_query.test.js +0 -333
  114. package/dist/test/32.cw721_tx.test.d.ts +0 -1
  115. package/dist/test/32.cw721_tx.test.js +0 -431
  116. package/dist/test/33.cw721_query.test.d.ts +0 -1
  117. package/dist/test/33.cw721_query.test.js +0 -371
  118. package/dist/test/34.cw_bridge_tx.test.d.ts +0 -1
  119. package/dist/test/34.cw_bridge_tx.test.js +0 -476
  120. package/dist/test/35.cw_bridge_tx_low.test.d.ts +0 -1
  121. package/dist/test/35.cw_bridge_tx_low.test.js +0 -398
  122. package/dist/test/36.cw_bridge_query.test.d.ts +0 -1
  123. package/dist/test/36.cw_bridge_query.test.js +0 -318
  124. package/dist/test/37.cw_marketplace_tx.test.d.ts +0 -1
  125. package/dist/test/37.cw_marketplace_tx.test.js +0 -794
  126. package/dist/test/38.cw_marketplace_query.test.d.ts +0 -1
  127. package/dist/test/38.cw_marketplace_query.test.js +0 -128
  128. package/dist/test/config_test.d.ts +0 -11
  129. package/dist/test/config_test.js +0 -26
  130. package/dist/test/config_test.sample.d.ts +0 -11
  131. package/dist/test/config_test.sample.js +0 -14
@@ -1,318 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __values = (this && this.__values) || function(o) {
39
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
40
- if (m) return m.call(o);
41
- if (o && typeof o.length === "number") return {
42
- next: function () {
43
- if (o && i >= o.length) o = void 0;
44
- return { value: o && o[i++], done: !o };
45
- }
46
- };
47
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
48
- };
49
- var __importDefault = (this && this.__importDefault) || function (mod) {
50
- return (mod && mod.__esModule) ? mod : { "default": mod };
51
- };
52
- Object.defineProperty(exports, "__esModule", { value: true });
53
- var fs_1 = __importDefault(require("fs"));
54
- var chai_1 = require("chai");
55
- var FirmaCosmWasmService_1 = require("../sdk/FirmaCosmWasmService");
56
- var FirmaSDK_1 = require("../sdk/FirmaSDK");
57
- var FirmaUtil_1 = require("../sdk/FirmaUtil");
58
- var config_test_1 = require("./config_test");
59
- describe('[36. Bridge query Test]', function () {
60
- var firma;
61
- var aliceWallet;
62
- var bobWallet;
63
- var aliceAddress;
64
- var bobAddress;
65
- beforeEach(function () {
66
- return __awaiter(this, void 0, void 0, function () {
67
- return __generator(this, function (_a) {
68
- switch (_a.label) {
69
- case 0:
70
- firma = new FirmaSDK_1.FirmaSDK(config_test_1.TestChainConfig);
71
- return [4 /*yield*/, firma.Wallet.fromMnemonic(config_test_1.aliceMnemonic)];
72
- case 1:
73
- aliceWallet = _a.sent();
74
- return [4 /*yield*/, firma.Wallet.fromMnemonic(config_test_1.bobMnemonic)];
75
- case 2:
76
- bobWallet = _a.sent();
77
- return [4 /*yield*/, aliceWallet.getAddress()];
78
- case 3:
79
- aliceAddress = _a.sent();
80
- return [4 /*yield*/, bobWallet.getAddress()];
81
- case 4:
82
- bobAddress = _a.sent();
83
- return [2 /*return*/];
84
- }
85
- });
86
- });
87
- });
88
- var extractValue = function (events, eventType, attrKey) {
89
- var e_1, _a, e_2, _b;
90
- try {
91
- for (var events_1 = __values(events), events_1_1 = events_1.next(); !events_1_1.done; events_1_1 = events_1.next()) {
92
- var event_1 = events_1_1.value;
93
- if (event_1.type === eventType) {
94
- try {
95
- for (var _c = (e_2 = void 0, __values(event_1.attributes)), _d = _c.next(); !_d.done; _d = _c.next()) {
96
- var attr = _d.value;
97
- if (attr.key === attrKey) {
98
- return attr.value;
99
- }
100
- }
101
- }
102
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
103
- finally {
104
- try {
105
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
106
- }
107
- finally { if (e_2) throw e_2.error; }
108
- }
109
- }
110
- }
111
- }
112
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
113
- finally {
114
- try {
115
- if (events_1_1 && !events_1_1.done && (_a = events_1.return)) _a.call(events_1);
116
- }
117
- finally { if (e_1) throw e_1.error; }
118
- }
119
- return "";
120
- };
121
- var cw721ContractAddress = "";
122
- var bridgeContractAddress = "";
123
- it('[low] Cw721 contract setup', function () { return __awaiter(void 0, void 0, void 0, function () {
124
- var wasmFile, array, storeGas, storeFee, everyBodyAccessConfig, storeCodeResult, codeId, admin, label, instantiateGas, instantiateFee, noFunds, testData, instantiateResult;
125
- return __generator(this, function (_a) {
126
- switch (_a.label) {
127
- case 0:
128
- wasmFile = fs_1.default.readFileSync("./test/sample/cw721_base.wasm");
129
- array = new Uint8Array(wasmFile.buffer);
130
- storeGas = 3000000;
131
- storeFee = FirmaUtil_1.FirmaUtil.getUFCTFromFCT(0.3);
132
- everyBodyAccessConfig = {
133
- permission: FirmaCosmWasmService_1.AccessType.ACCESS_TYPE_EVERYBODY,
134
- address: "",
135
- addresses: []
136
- };
137
- return [4 /*yield*/, firma.CosmWasm.storeCode(aliceWallet, array, everyBodyAccessConfig, { gas: storeGas, fee: storeFee })];
138
- case 1:
139
- storeCodeResult = _a.sent();
140
- codeId = extractValue(storeCodeResult.events, "store_code", "code_id");
141
- (0, chai_1.expect)(storeCodeResult.code).to.be.equal(0);
142
- return [4 /*yield*/, aliceWallet.getAddress()];
143
- case 2:
144
- admin = _a.sent();
145
- label = "test1";
146
- instantiateGas = 3000000;
147
- instantiateFee = FirmaUtil_1.FirmaUtil.getUFCTFromFCT(0.3);
148
- noFunds = [];
149
- testData = JSON.stringify({
150
- minter: aliceAddress,
151
- name: "My Awesome NFT Collection",
152
- symbol: "MAWESOME"
153
- });
154
- return [4 /*yield*/, firma.CosmWasm.instantiateContract(aliceWallet, admin, codeId, label, testData, noFunds, { gas: instantiateGas, fee: instantiateFee })];
155
- case 3:
156
- instantiateResult = _a.sent();
157
- cw721ContractAddress = extractValue(instantiateResult.events, "instantiate", "_contract_address");
158
- (0, chai_1.expect)(instantiateResult.code).to.be.equal(0);
159
- return [2 /*return*/];
160
- }
161
- });
162
- }); });
163
- it('[low] Cw bridge contract setup', function () { return __awaiter(void 0, void 0, void 0, function () {
164
- var wasmFile, array, storeCodeGas, storeCodeFee, everyBodyAccessConfig, storeCodeResult, codeId, admin, label, instantiateGas, instantiateFee, noFunds, testData, instantiateResult;
165
- return __generator(this, function (_a) {
166
- switch (_a.label) {
167
- case 0:
168
- wasmFile = fs_1.default.readFileSync("./test/sample/bridge_contract.wasm");
169
- array = new Uint8Array(wasmFile.buffer);
170
- storeCodeGas = 3000000;
171
- storeCodeFee = FirmaUtil_1.FirmaUtil.getUFCTFromFCT(0.3);
172
- everyBodyAccessConfig = {
173
- permission: FirmaCosmWasmService_1.AccessType.ACCESS_TYPE_EVERYBODY,
174
- address: "",
175
- addresses: []
176
- };
177
- return [4 /*yield*/, firma.CosmWasm.storeCode(aliceWallet, array, everyBodyAccessConfig, { gas: storeCodeGas, fee: storeCodeFee })];
178
- case 1:
179
- storeCodeResult = _a.sent();
180
- codeId = extractValue(storeCodeResult.events, "store_code", "code_id");
181
- (0, chai_1.expect)(storeCodeResult.code).to.be.equal(0);
182
- admin = aliceAddress;
183
- label = "CwBridge";
184
- instantiateGas = 3000000;
185
- instantiateFee = FirmaUtil_1.FirmaUtil.getUFCTFromFCT(0.3);
186
- noFunds = [];
187
- testData = JSON.stringify({
188
- owner: admin,
189
- cw721_address: cw721ContractAddress
190
- });
191
- return [4 /*yield*/, firma.CosmWasm.instantiateContract(aliceWallet, admin, codeId, label, testData, noFunds, { gas: instantiateGas, fee: instantiateFee })];
192
- case 2:
193
- instantiateResult = _a.sent();
194
- bridgeContractAddress = extractValue(instantiateResult.events, "instantiate", "_contract_address");
195
- (0, chai_1.expect)(instantiateResult.code).to.be.equal(0);
196
- return [2 /*return*/];
197
- }
198
- });
199
- }); });
200
- it('cw bridge get_config', function () { return __awaiter(void 0, void 0, void 0, function () {
201
- var result;
202
- return __generator(this, function (_a) {
203
- switch (_a.label) {
204
- case 0: return [4 /*yield*/, firma.CwBridge.getConfig(bridgeContractAddress)];
205
- case 1:
206
- result = _a.sent();
207
- (0, chai_1.expect)(result).to.have.property('owner');
208
- (0, chai_1.expect)(result).to.have.property('cw721_address');
209
- return [2 /*return*/];
210
- }
211
- });
212
- }); });
213
- it('cw bridge get_owner', function () { return __awaiter(void 0, void 0, void 0, function () {
214
- var result;
215
- return __generator(this, function (_a) {
216
- switch (_a.label) {
217
- case 0: return [4 /*yield*/, firma.CwBridge.getOwner(bridgeContractAddress)];
218
- case 1:
219
- result = _a.sent();
220
- (0, chai_1.expect)(FirmaUtil_1.FirmaUtil.isValidAddress(result)).to.be.equal(true);
221
- return [2 /*return*/];
222
- }
223
- });
224
- }); });
225
- it('cw bridge get_authorized_user', function () { return __awaiter(void 0, void 0, void 0, function () {
226
- var result;
227
- return __generator(this, function (_a) {
228
- switch (_a.label) {
229
- case 0: return [4 /*yield*/, firma.CwBridge.getAuthorizedUsers(bridgeContractAddress)];
230
- case 1:
231
- result = _a.sent();
232
- (0, chai_1.expect)(result).to.be.an('array');
233
- return [2 /*return*/];
234
- }
235
- });
236
- }); });
237
- it('cw bridge nft_info', function () { return __awaiter(void 0, void 0, void 0, function () {
238
- var token_id, result;
239
- return __generator(this, function (_a) {
240
- switch (_a.label) {
241
- case 0:
242
- token_id = "15";
243
- return [4 /*yield*/, firma.CwBridge.getNftInfo(bridgeContractAddress, token_id)];
244
- case 1:
245
- result = _a.sent();
246
- if (result !== null) {
247
- (0, chai_1.expect)(result).to.have.property('owner');
248
- (0, chai_1.expect)(result).to.have.property('token_id');
249
- (0, chai_1.expect)(result).to.have.property('is_deposit');
250
- }
251
- return [2 /*return*/];
252
- }
253
- });
254
- }); });
255
- it('cw bridge owner_nfts', function () { return __awaiter(void 0, void 0, void 0, function () {
256
- var result;
257
- return __generator(this, function (_a) {
258
- switch (_a.label) {
259
- case 0: return [4 /*yield*/, firma.CwBridge.getOwnerNfts(bridgeContractAddress, aliceAddress)];
260
- case 1:
261
- result = _a.sent();
262
- (0, chai_1.expect)(result).to.be.an('array');
263
- return [2 /*return*/];
264
- }
265
- });
266
- }); });
267
- it('cw bridge owner_nfts_info', function () { return __awaiter(void 0, void 0, void 0, function () {
268
- var result;
269
- return __generator(this, function (_a) {
270
- switch (_a.label) {
271
- case 0: return [4 /*yield*/, firma.CwBridge.getOwnerNftsInfo(bridgeContractAddress, aliceAddress)];
272
- case 1:
273
- result = _a.sent();
274
- (0, chai_1.expect)(result).to.be.an('array');
275
- return [2 /*return*/];
276
- }
277
- });
278
- }); });
279
- it('cw bridge owner_withdrawable_nfts', function () { return __awaiter(void 0, void 0, void 0, function () {
280
- var result;
281
- return __generator(this, function (_a) {
282
- switch (_a.label) {
283
- case 0: return [4 /*yield*/, firma.CwBridge.getOwnerWithdrawableNfts(bridgeContractAddress, bobAddress)];
284
- case 1:
285
- result = _a.sent();
286
- (0, chai_1.expect)(result).to.be.an('array');
287
- return [2 /*return*/];
288
- }
289
- });
290
- }); });
291
- it('cw bridge owner_unlockable_nfts', function () { return __awaiter(void 0, void 0, void 0, function () {
292
- var result;
293
- return __generator(this, function (_a) {
294
- switch (_a.label) {
295
- case 0: return [4 /*yield*/, firma.CwBridge.getOwnerUnlockableNfts(bridgeContractAddress, aliceAddress)];
296
- case 1:
297
- result = _a.sent();
298
- (0, chai_1.expect)(result).to.be.an('array');
299
- return [2 /*return*/];
300
- }
301
- });
302
- }); });
303
- it('cw bridge global_tx_counts', function () { return __awaiter(void 0, void 0, void 0, function () {
304
- var result;
305
- return __generator(this, function (_a) {
306
- switch (_a.label) {
307
- case 0: return [4 /*yield*/, firma.CwBridge.getGlobalTxCounts(bridgeContractAddress)];
308
- case 1:
309
- result = _a.sent();
310
- (0, chai_1.expect)(result).to.have.property('lock_count');
311
- (0, chai_1.expect)(result).to.have.property('unlock_count');
312
- (0, chai_1.expect)(result).to.have.property('deposit_count');
313
- (0, chai_1.expect)(result).to.have.property('withdraw_count');
314
- return [2 /*return*/];
315
- }
316
- });
317
- }); });
318
- });
@@ -1 +0,0 @@
1
- export {};