@firmachain/firma-js 0.2.28 → 0.2.31

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 (33) hide show
  1. package/dist/sdk/FirmaAuthzService.d.ts +32 -0
  2. package/dist/sdk/FirmaAuthzService.js +630 -0
  3. package/dist/sdk/FirmaBankService.d.ts +2 -1
  4. package/dist/sdk/FirmaBankService.js +3 -0
  5. package/dist/sdk/FirmaCosmWasmService.d.ts +38 -0
  6. package/dist/sdk/FirmaCosmWasmService.js +667 -0
  7. package/dist/sdk/FirmaDistributionService.d.ts +2 -1
  8. package/dist/sdk/FirmaDistributionService.js +3 -0
  9. package/dist/sdk/FirmaMobileSDK.d.ts +3 -1
  10. package/dist/sdk/FirmaMobileSDK.js +4 -1
  11. package/dist/sdk/FirmaSDK.d.ts +5 -1
  12. package/dist/sdk/FirmaSDK.js +7 -1
  13. package/dist/sdk/FirmaStakingService.d.ts +2 -1
  14. package/dist/sdk/FirmaStakingService.js +3 -0
  15. package/dist/sdk/FirmaUtil.d.ts +1 -0
  16. package/dist/sdk/FirmaUtil.js +9 -4
  17. package/dist/sdk/firmachain/authz/AuthzQueryClient.d.ts +38 -0
  18. package/dist/sdk/firmachain/authz/AuthzQueryClient.js +115 -0
  19. package/dist/sdk/firmachain/authz/AuthzTxClient.d.ts +22 -0
  20. package/dist/sdk/firmachain/authz/AuthzTxClient.js +44 -0
  21. package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +147 -0
  22. package/dist/sdk/firmachain/authz/AuthzTxTypes.js +358 -0
  23. package/dist/sdk/firmachain/authz/index.d.ts +3 -0
  24. package/dist/sdk/firmachain/authz/index.js +15 -0
  25. package/dist/sdk/firmachain/common/ITxClient.d.ts +3 -0
  26. package/dist/sdk/firmachain/common/ITxClient.js +9 -0
  27. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.d.ts +52 -0
  28. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +193 -0
  29. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.d.ts +37 -0
  30. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.js +56 -0
  31. package/dist/sdk/firmachain/cosmwasm/index.d.ts +3 -0
  32. package/dist/sdk/firmachain/cosmwasm/index.js +15 -0
  33. package/package.json +4 -2
@@ -0,0 +1,37 @@
1
+ import { EncodeObject } from "@cosmjs/proto-signing";
2
+ import { ITxClient } from "../common/ITxClient";
3
+ import { FirmaWalletService } from "../../FirmaWalletService";
4
+ import { MsgClearAdmin, MsgExecuteContract, MsgMigrateContract, MsgStoreCode, MsgInstantiateContract, MsgUpdateAdmin } from "cosmjs-types/cosmwasm/wasm/v1/tx";
5
+ export interface MsgStoreCodeEncodeObject extends EncodeObject {
6
+ readonly typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode";
7
+ readonly value: Partial<MsgStoreCode>;
8
+ }
9
+ export interface MsgInstantiateContractEncodeObject extends EncodeObject {
10
+ readonly typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract";
11
+ readonly value: Partial<MsgInstantiateContract>;
12
+ }
13
+ export interface MsgUpdateAdminEncodeObject extends EncodeObject {
14
+ readonly typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin";
15
+ readonly value: Partial<MsgUpdateAdmin>;
16
+ }
17
+ export interface MsgClearAdminEncodeObject extends EncodeObject {
18
+ readonly typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin";
19
+ readonly value: Partial<MsgClearAdmin>;
20
+ }
21
+ export interface MsgMigrateContractEncodeObject extends EncodeObject {
22
+ readonly typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract";
23
+ readonly value: Partial<MsgMigrateContract>;
24
+ }
25
+ export interface MsgExecuteContractEncodeObject extends EncodeObject {
26
+ readonly typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract";
27
+ readonly value: Partial<MsgExecuteContract>;
28
+ }
29
+ export declare class CosmWasmTxClient extends ITxClient {
30
+ constructor(wallet: FirmaWalletService, serverUrl: string);
31
+ msgStoreCode(data: MsgStoreCode): MsgStoreCodeEncodeObject;
32
+ msgInstantiateContract(data: MsgInstantiateContract): MsgInstantiateContractEncodeObject;
33
+ msgExecuteContract(data: MsgExecuteContract): MsgExecuteContractEncodeObject;
34
+ msgUpdateAdmin(data: MsgUpdateAdmin): MsgUpdateAdminEncodeObject;
35
+ msgClearAdmin(data: MsgClearAdmin): MsgClearAdminEncodeObject;
36
+ msgMigrateContract(data: MsgMigrateContract): MsgMigrateContractEncodeObject;
37
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CosmWasmTxClient = void 0;
19
+ var proto_signing_1 = require("@cosmjs/proto-signing");
20
+ var ITxClient_1 = require("../common/ITxClient");
21
+ var tx_1 = require("cosmjs-types/cosmwasm/wasm/v1/tx");
22
+ var types = [
23
+ ["/cosmwasm.wasm.v1.MsgStoreCode", tx_1.MsgStoreCode],
24
+ ["/cosmwasm.wasm.v1.MsgInstantiateContract", tx_1.MsgInstantiateContract],
25
+ ["/cosmwasm.wasm.v1.MsgExecuteContract", tx_1.MsgExecuteContract],
26
+ ["/cosmwasm.wasm.v1.MsgUpdateAdmin", tx_1.MsgUpdateAdmin],
27
+ ["/cosmwasm.wasm.v1.MsgClearAdmin", tx_1.MsgClearAdmin],
28
+ ["/cosmwasm.wasm.v1.MsgMigrateContract", tx_1.MsgMigrateContract],
29
+ ];
30
+ var registry = new proto_signing_1.Registry(types);
31
+ var CosmWasmTxClient = /** @class */ (function (_super) {
32
+ __extends(CosmWasmTxClient, _super);
33
+ function CosmWasmTxClient(wallet, serverUrl) {
34
+ return _super.call(this, wallet, serverUrl, registry) || this;
35
+ }
36
+ CosmWasmTxClient.prototype.msgStoreCode = function (data) {
37
+ return { typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode", value: data };
38
+ };
39
+ CosmWasmTxClient.prototype.msgInstantiateContract = function (data) {
40
+ return { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract", value: data };
41
+ };
42
+ CosmWasmTxClient.prototype.msgExecuteContract = function (data) {
43
+ return { typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract", value: data };
44
+ };
45
+ CosmWasmTxClient.prototype.msgUpdateAdmin = function (data) {
46
+ return { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin", value: data };
47
+ };
48
+ CosmWasmTxClient.prototype.msgClearAdmin = function (data) {
49
+ return { typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin", value: data };
50
+ };
51
+ CosmWasmTxClient.prototype.msgMigrateContract = function (data) {
52
+ return { typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract", value: data };
53
+ };
54
+ return CosmWasmTxClient;
55
+ }(ITxClient_1.ITxClient));
56
+ exports.CosmWasmTxClient = CosmWasmTxClient;
@@ -0,0 +1,3 @@
1
+ export * from './CosmWasmTxClient';
2
+ export * from './CosmWasmQueryClient';
3
+ export * from '../common';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./CosmWasmTxClient"), exports);
14
+ __exportStar(require("./CosmWasmQueryClient"), exports);
15
+ __exportStar(require("../common"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firmachain/firma-js",
3
- "version": "0.2.28",
3
+ "version": "0.2.31",
4
4
  "description": "The Official FirmaChain Javascript SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -36,12 +36,14 @@
36
36
  "@cosmjs/math": "^0.26.0",
37
37
  "@cosmjs/proto-signing": "^0.25.6",
38
38
  "@cosmjs/tendermint-rpc": "^0.26.0",
39
+ "@types/pako": "^2.0.0",
39
40
  "axios": "^0.21.4",
40
41
  "cosmjs-types": "^0.2.0",
41
42
  "crypto-js": "^4.1.1",
42
43
  "ipfs-http-client": "^52.0.5",
43
44
  "protobufjs": "^6.10.2",
44
- "readline-sync": "^1.4.10"
45
+ "readline-sync": "^1.4.10",
46
+ "pako": "^2.0.2"
45
47
  },
46
48
  "devDependencies": {
47
49
  "@types/chai": "^4.2.21",