@firmachain/firma-js 0.3.7-beta3 → 0.3.7

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.
@@ -258,7 +258,7 @@ describe('[16. Gov Tx Test]', function () {
258
258
  });
259
259
  }); });
260
260
  // TODO: get recent gov proposal list and then set proposalId for below case
261
- var tempProposalId = 1;
261
+ var tempProposalId = 420;
262
262
  // more deposit after initial deposit case
263
263
  it.skip('Deposit OK', function () { return __awaiter(void 0, void 0, void 0, function () {
264
264
  var proposalId, amount, result;
@@ -275,16 +275,18 @@ describe('[16. Gov Tx Test]', function () {
275
275
  }
276
276
  });
277
277
  }); });
278
- it.skip('Vote - alice YES', function () { return __awaiter(void 0, void 0, void 0, function () {
279
- var proposalId, result;
278
+ it('Vote - alice YES', function () { return __awaiter(void 0, void 0, void 0, function () {
279
+ var proposalId, validatorWallet3;
280
280
  return __generator(this, function (_a) {
281
281
  switch (_a.label) {
282
282
  case 0:
283
283
  proposalId = tempProposalId;
284
- return [4 /*yield*/, firma.Gov.vote(aliceWallet, proposalId, common_1.VotingOption.VOTE_OPTION_YES)];
284
+ return [4 /*yield*/, firma.Wallet.fromMnemonic("main shallow liberty desk super palm remind throw track legal warrior client garbage type insect first token keen subway pony curtain pitch yellow arrive")];
285
285
  case 1:
286
- result = _a.sent();
287
- (0, chai_1.expect)(result.code).to.equal(0);
286
+ validatorWallet3 = _a.sent();
287
+ return [4 /*yield*/, firma.Gov.vote(validatorWallet3, proposalId, common_1.VotingOption.VOTE_OPTION_NO_WITH_VETO)];
288
+ case 2:
289
+ _a.sent();
288
290
  return [2 /*return*/];
289
291
  }
290
292
  });
@@ -1,8 +1,8 @@
1
1
  import { FirmaConfig } from '../sdk/FirmaConfig';
2
2
  export declare let TestChainConfig: FirmaConfig;
3
- export declare const validatorMnemonic = "";
4
- export declare const aliceMnemonic = "";
5
- export declare const bobMnemonic = "";
3
+ export declare const validatorMnemonic = "main shallow liberty desk super palm remind throw track legal warrior client garbage type insect first token keen subway pony curtain pitch yellow arrive";
4
+ export declare const aliceMnemonic = "harvest galaxy sniff include record undo width oven tired sad month text museum curious firm mountain flash assault oval sand ribbon blouse consider lens";
5
+ export declare const bobMnemonic = "certain bean eager measure crawl cliff innocent practice gas ladder board aspect fish link sweet raccoon staff long crumble skin special width click plastic";
6
6
  export declare const feeMnemonic = "";
7
7
  export declare const firmaFeeMnemonic = "";
8
8
  export declare const signerMnemonic1 = "";
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.signerMnemonic4 = exports.signerMnemonic3 = exports.signerMnemonic2 = exports.signerMnemonic1 = exports.firmaFeeMnemonic = exports.feeMnemonic = exports.bobMnemonic = exports.aliceMnemonic = exports.validatorMnemonic = exports.TestChainConfig = void 0;
4
4
  var FirmaConfig_1 = require("../sdk/FirmaConfig");
5
5
  exports.TestChainConfig = FirmaConfig_1.FirmaConfig.TestNetConfig;
6
- exports.validatorMnemonic = "";
7
- exports.aliceMnemonic = "";
8
- exports.bobMnemonic = "";
6
+ exports.validatorMnemonic = "main shallow liberty desk super palm remind throw track legal warrior client garbage type insect first token keen subway pony curtain pitch yellow arrive";
7
+ exports.aliceMnemonic = "harvest galaxy sniff include record undo width oven tired sad month text museum curious firm mountain flash assault oval sand ribbon blouse consider lens";
8
+ exports.bobMnemonic = "certain bean eager measure crawl cliff innocent practice gas ladder board aspect fish link sweet raccoon staff long crumble skin special width click plastic";
9
9
  exports.feeMnemonic = "";
10
10
  exports.firmaFeeMnemonic = "";
11
11
  exports.signerMnemonic1 = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firmachain/firma-js",
3
- "version": "0.3.7-beta3",
3
+ "version": "0.3.7",
4
4
  "description": "The Official FirmaChain Javascript SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",