@firmachain/firma-js 0.2.46 → 0.2.48

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 (132) hide show
  1. package/dist/index.js +1 -5
  2. package/dist/sdk/FirmaAuthzService.js +5 -5
  3. package/dist/sdk/FirmaBankService.js +1 -1
  4. package/dist/sdk/FirmaChainService.d.ts +5 -0
  5. package/dist/sdk/FirmaChainService.js +44 -0
  6. package/dist/sdk/FirmaContractService.js +5 -5
  7. package/dist/sdk/FirmaCosmWasmCw20.d.ts +17 -0
  8. package/dist/sdk/FirmaCosmWasmCw20.js +269 -0
  9. package/dist/sdk/FirmaCosmWasmService.js +9 -9
  10. package/dist/sdk/FirmaDistributionService.js +5 -5
  11. package/dist/sdk/FirmaFeeGrantService.js +3 -3
  12. package/dist/sdk/FirmaGovService.js +7 -7
  13. package/dist/sdk/FirmaIbcService.js +1 -1
  14. package/dist/sdk/FirmaNftService.js +5 -5
  15. package/dist/sdk/FirmaSDK.d.ts +3 -1
  16. package/dist/sdk/FirmaSDK.js +4 -1
  17. package/dist/sdk/FirmaStakingService.js +5 -5
  18. package/dist/sdk/FirmaTokenService.js +4 -4
  19. package/dist/sdk/FirmaUtil.js +16 -20
  20. package/dist/sdk/FirmaWalletService.js +3 -3
  21. package/dist/sdk/firmachain/amino/addresses.js +11 -11
  22. package/dist/sdk/firmachain/amino/aminotypes.js +32 -36
  23. package/dist/sdk/firmachain/amino/encoding.js +26 -30
  24. package/dist/sdk/firmachain/amino/multisig.js +5 -5
  25. package/dist/sdk/firmachain/amino/signature.js +4 -4
  26. package/dist/sdk/firmachain/amino/signdoc.js +1 -1
  27. package/dist/sdk/firmachain/amino/wallet.js +10 -14
  28. package/dist/sdk/firmachain/authz/AuthzQueryClient.js +3 -3
  29. package/dist/sdk/firmachain/authz/index.js +1 -5
  30. package/dist/sdk/firmachain/bank/BankQueryClient.js +4 -4
  31. package/dist/sdk/firmachain/bank/index.js +1 -5
  32. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +2 -2
  33. package/dist/sdk/firmachain/common/LedgerWallet.js +10 -14
  34. package/dist/sdk/firmachain/common/accounts.js +2 -2
  35. package/dist/sdk/firmachain/common/index.js +1 -5
  36. package/dist/sdk/firmachain/common/signing.js +5 -9
  37. package/dist/sdk/firmachain/common/signingaminostargateclient.js +16 -16
  38. package/dist/sdk/firmachain/common/signingstargateclient.js +14 -18
  39. package/dist/sdk/firmachain/common/stargateclient.js +6 -6
  40. package/dist/sdk/firmachain/contract/ContractQueryClient.js +2 -2
  41. package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +4 -4
  42. package/dist/sdk/firmachain/contract/index.js +1 -5
  43. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +8 -8
  44. package/dist/sdk/firmachain/cosmwasm/index.js +1 -5
  45. package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +5 -5
  46. package/dist/sdk/firmachain/distribution/index.js +1 -5
  47. package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +2 -2
  48. package/dist/sdk/firmachain/feegrant/index.js +1 -5
  49. package/dist/sdk/firmachain/google/protobuf/any.d.ts +1 -1
  50. package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +27 -27
  51. package/dist/sdk/firmachain/google/protobuf/duration.d.ts +1 -1
  52. package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +1 -1
  53. package/dist/sdk/firmachain/gov/GovQueryClient.js +2 -2
  54. package/dist/sdk/firmachain/gov/index.js +1 -5
  55. package/dist/sdk/firmachain/ibc/IbcQueryClient.js +1 -1
  56. package/dist/sdk/firmachain/ibc/index.js +1 -5
  57. package/dist/sdk/firmachain/mint/index.js +1 -5
  58. package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +6 -6
  59. package/dist/sdk/firmachain/nft/index.js +1 -5
  60. package/dist/sdk/firmachain/slashing/index.js +1 -5
  61. package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +2 -2
  62. package/dist/sdk/firmachain/staking/StakingQueryClient.js +8 -8
  63. package/dist/sdk/firmachain/staking/index.js +1 -5
  64. package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +8 -8
  65. package/dist/sdk/firmachain/token/index.js +1 -5
  66. package/package.json +24 -24
  67. package/dist/test/00.wallet.test.d.ts +0 -1
  68. package/dist/test/00.wallet.test.js +0 -87
  69. package/dist/test/000./354/227/220/354/226/264/353/223/234/353/236/215_/353/246/254/354/212/244/355/205/214/354/235/264/355/201/254.test.d.ts +0 -1
  70. package/dist/test/000./354/227/220/354/226/264/353/223/234/353/236/215_/353/246/254/354/212/244/355/205/214/354/235/264/355/201/254.test.js +0 -302
  71. package/dist/test/000./354/236/254/353/213/250/352/264/200/353/240/250.test.d.ts +0 -1
  72. package/dist/test/000./354/236/254/353/213/250/352/264/200/353/240/250.test.js +0 -436
  73. package/dist/test/01.contract_tx.test.d.ts +0 -1
  74. package/dist/test/01.contract_tx.test.js +0 -146
  75. package/dist/test/02.contract_query.test.d.ts +0 -1
  76. package/dist/test/02.contract_query.test.js +0 -219
  77. package/dist/test/03.contract_scenario.test.d.ts +0 -1
  78. package/dist/test/03.contract_scenario.test.js +0 -559
  79. package/dist/test/04.bank_tx.test.d.ts +0 -1
  80. package/dist/test/04.bank_tx.test.js +0 -124
  81. package/dist/test/05.bank_query.test.d.ts +0 -1
  82. package/dist/test/05.bank_query.test.js +0 -164
  83. package/dist/test/06.feegrant_tx.test.d.ts +0 -1
  84. package/dist/test/06.feegrant_tx.test.js +0 -173
  85. package/dist/test/07.feegrant_query.test.d.ts +0 -1
  86. package/dist/test/07.feegrant_query.test.js +0 -81
  87. package/dist/test/08.gas_estimate.test.d.ts +0 -1
  88. package/dist/test/08.gas_estimate.test.js +0 -702
  89. package/dist/test/09.ipfs.test.d.ts +0 -1
  90. package/dist/test/09.ipfs.test.js +0 -69
  91. package/dist/test/10.nft_tx.test.d.ts +0 -1
  92. package/dist/test/10.nft_tx.test.js +0 -137
  93. package/dist/test/11.nft_query.test.d.ts +0 -1
  94. package/dist/test/11.nft_query.test.js +0 -167
  95. package/dist/test/12.staking_tx.test.d.ts +0 -1
  96. package/dist/test/12.staking_tx.test.js +0 -213
  97. package/dist/test/13.staking_query.test.d.ts +0 -1
  98. package/dist/test/13.staking_query.test.js +0 -206
  99. package/dist/test/14.distribution_tx.test.d.ts +0 -1
  100. package/dist/test/14.distribution_tx.test.js +0 -176
  101. package/dist/test/15.distribution_query.test.d.ts +0 -1
  102. package/dist/test/15.distribution_query.test.js +0 -216
  103. package/dist/test/16.gov_tx.test.d.ts +0 -1
  104. package/dist/test/16.gov_tx.test.js +0 -237
  105. package/dist/test/17.gov_query.test.d.ts +0 -1
  106. package/dist/test/17.gov_query.test.js +0 -115
  107. package/dist/test/18.util.test.d.ts +0 -1
  108. package/dist/test/18.util.test.js +0 -246
  109. package/dist/test/19.chain.test.d.ts +0 -1
  110. package/dist/test/19.chain.test.js +0 -67
  111. package/dist/test/20.slashing_query.test.d.ts +0 -1
  112. package/dist/test/20.slashing_query.test.js +0 -82
  113. package/dist/test/21.token_tx.test.d.ts +0 -1
  114. package/dist/test/21.token_tx.test.js +0 -154
  115. package/dist/test/22.token_query.test.d.ts +0 -1
  116. package/dist/test/22.token_query.test.js +0 -96
  117. package/dist/test/23.authz_tx.test.d.ts +0 -1
  118. package/dist/test/23.authz_tx.test.js +0 -468
  119. package/dist/test/24.authz_query.test.d.ts +0 -1
  120. package/dist/test/24.authz_query.test.js +0 -140
  121. package/dist/test/25.cosmwasm_tx.test.d.ts +0 -1
  122. package/dist/test/25.cosmwasm_tx.test.js +0 -188
  123. package/dist/test/26.cosmwasm_query.test.d.ts +0 -1
  124. package/dist/test/26.cosmwasm_query.test.js +0 -167
  125. package/dist/test/27.arbitary_sign.test.d.ts +0 -1
  126. package/dist/test/27.arbitary_sign.test.js +0 -164
  127. package/dist/test/28.ibc_tx.test.d.ts +0 -1
  128. package/dist/test/28.ibc_tx.test.js +0 -83
  129. package/dist/test/29.mint_query.copy.d.ts +0 -1
  130. package/dist/test/29.mint_query.copy.js +0 -54
  131. package/dist/test/config_test.d.ts +0 -5
  132. package/dist/test/config_test.js +0 -27
@@ -1,54 +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 (_) 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
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var FirmaSDK_1 = require("../sdk/FirmaSDK");
40
- var config_test_1 = require("./config_test");
41
- describe('[29. Mint Query Test]', function () {
42
- var firma = new FirmaSDK_1.FirmaSDK(config_test_1.TestChainConfig);
43
- it('Mint getInflation()', function () { return __awaiter(void 0, void 0, void 0, function () {
44
- var result;
45
- return __generator(this, function (_a) {
46
- switch (_a.label) {
47
- case 0: return [4 /*yield*/, firma.Mint.getInflation()];
48
- case 1:
49
- result = _a.sent();
50
- return [2 /*return*/];
51
- }
52
- });
53
- }); });
54
- });
@@ -1,5 +0,0 @@
1
- import { FirmaConfig } from "../sdk/FirmaConfig";
2
- export declare let TestChainConfig: FirmaConfig;
3
- export declare const validatorMnemonic = "patrol three crash inmate myself soon hold merge tortoise leopard celery pill affair fall second print case ignore truly interest hammer mail short kit";
4
- export declare const aliceMnemonic = "pizza venue kangaroo desert faculty circle benefit next snap buzz gas elite speed depart clown vicious country life game choice venture wealth shrimp fault";
5
- export declare const bobMnemonic = "hope tip sick hour stamp submit coach crisp fragile plunge bargain print detect bitter lecture mouse addict until great barrel truck toilet chapter double";
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bobMnemonic = exports.aliceMnemonic = exports.validatorMnemonic = exports.TestChainConfig = void 0;
4
- exports.TestChainConfig = {
5
- chainID: "imperium-4",
6
- rpcAddress: "http://127.0.0.1:26657",
7
- restApiAddress: "http://127.0.0.1:1317",
8
- ipfsNodeAddress: "https://ipfs-dev.firmachain.dev",
9
- ipfsNodePort: 5001,
10
- ipfsWebApiAddress: "https://ipfs-dev.firmachain.dev",
11
- hdPath: "m/44'/7777777'/",
12
- prefix: "firma",
13
- denom: "ufct",
14
- isShowLog: true,
15
- defaultFee: 20000,
16
- defaultGas: 200000
17
- };
18
- exports.validatorMnemonic = "patrol three crash inmate myself soon hold merge tortoise leopard celery pill affair fall second print case ignore truly interest hammer mail short kit";
19
- exports.aliceMnemonic = "pizza venue kangaroo desert faculty circle benefit next snap buzz gas elite speed depart clown vicious country life game choice venture wealth shrimp fault";
20
- exports.bobMnemonic = "hope tip sick hour stamp submit coach crisp fragile plunge bargain print detect bitter lecture mouse addict until great barrel truck toilet chapter double";
21
- // 아래는 진짜 테스트넷 정보. 항상 조심
22
- /*TestChainConfig = FirmaConfig.TestNetConfig;
23
-
24
- export const validatorMnemonic = "clump erupt type lucky mask pig soup runway wrestle suspect element involve stamp civil auction resource blame same journey start unaware crush ten draw";
25
- export const aliceMnemonic = "owner pottery smile evolve pig base lady dismiss badge purchase divide royal medal buffalo miss carbon kiwi gate draft mouse yard reunion thank wage";
26
- export const bobMnemonic = "main shallow liberty desk super palm remind throw track legal warrior client garbage type insect first token keen subway pony curtain pitch yellow arrive";
27
- */