@firmachain/firma-js 0.2.26 → 0.2.27

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 (155) hide show
  1. package/package.json +1 -1
  2. package/dist/index.d.ts +0 -4
  3. package/dist/index.js +0 -16
  4. package/dist/sdk/FirmaBankService.d.ts +0 -15
  5. package/dist/sdk/FirmaBankService.js +0 -211
  6. package/dist/sdk/FirmaChainService.d.ts +0 -8
  7. package/dist/sdk/FirmaChainService.js +0 -86
  8. package/dist/sdk/FirmaConfig.d.ts +0 -18
  9. package/dist/sdk/FirmaConfig.js +0 -63
  10. package/dist/sdk/FirmaContractService.d.ts +0 -31
  11. package/dist/sdk/FirmaContractService.js +0 -413
  12. package/dist/sdk/FirmaDistributionService.d.ts +0 -31
  13. package/dist/sdk/FirmaDistributionService.js +0 -524
  14. package/dist/sdk/FirmaFeeGrantService.d.ts +0 -21
  15. package/dist/sdk/FirmaFeeGrantService.js +0 -341
  16. package/dist/sdk/FirmaGovService.d.ts +0 -35
  17. package/dist/sdk/FirmaGovService.js +0 -775
  18. package/dist/sdk/FirmaIpfsService.d.ts +0 -12
  19. package/dist/sdk/FirmaIpfsService.js +0 -185
  20. package/dist/sdk/FirmaMobileSDK.d.ts +0 -27
  21. package/dist/sdk/FirmaMobileSDK.js +0 -45
  22. package/dist/sdk/FirmaNftService.d.ts +0 -31
  23. package/dist/sdk/FirmaNftService.js +0 -372
  24. package/dist/sdk/FirmaSDK.d.ts +0 -29
  25. package/dist/sdk/FirmaSDK.js +0 -48
  26. package/dist/sdk/FirmaSlashingService.d.ts +0 -9
  27. package/dist/sdk/FirmaSlashingService.js +0 -105
  28. package/dist/sdk/FirmaStakingService.d.ts +0 -34
  29. package/dist/sdk/FirmaStakingService.js +0 -604
  30. package/dist/sdk/FirmaTokenService.d.ts +0 -26
  31. package/dist/sdk/FirmaTokenService.js +0 -416
  32. package/dist/sdk/FirmaUtil.d.ts +0 -37
  33. package/dist/sdk/FirmaUtil.js +0 -230
  34. package/dist/sdk/FirmaWalletService.d.ts +0 -36
  35. package/dist/sdk/FirmaWalletService.js +0 -309
  36. package/dist/sdk/firmachain/amino/addresses.d.ts +0 -5
  37. package/dist/sdk/firmachain/amino/addresses.js +0 -46
  38. package/dist/sdk/firmachain/amino/aminomsgs.d.ts +0 -281
  39. package/dist/sdk/firmachain/amino/aminomsgs.js +0 -77
  40. package/dist/sdk/firmachain/amino/aminotypes.d.ts +0 -22
  41. package/dist/sdk/firmachain/amino/aminotypes.js +0 -521
  42. package/dist/sdk/firmachain/amino/coins.d.ts +0 -30
  43. package/dist/sdk/firmachain/amino/coins.js +0 -69
  44. package/dist/sdk/firmachain/amino/encoding.d.ts +0 -24
  45. package/dist/sdk/firmachain/amino/encoding.js +0 -234
  46. package/dist/sdk/firmachain/amino/multisig.d.ts +0 -10
  47. package/dist/sdk/firmachain/amino/multisig.js +0 -42
  48. package/dist/sdk/firmachain/amino/paths.d.ts +0 -6
  49. package/dist/sdk/firmachain/amino/paths.js +0 -18
  50. package/dist/sdk/firmachain/amino/pubkeys.d.ts +0 -47
  51. package/dist/sdk/firmachain/amino/pubkeys.js +0 -29
  52. package/dist/sdk/firmachain/amino/secp256k1hdwallet.d.ts +0 -94
  53. package/dist/sdk/firmachain/amino/secp256k1hdwallet.js +0 -437
  54. package/dist/sdk/firmachain/amino/secp256k1wallet.d.ts +0 -23
  55. package/dist/sdk/firmachain/amino/secp256k1wallet.js +0 -141
  56. package/dist/sdk/firmachain/amino/signature.d.ts +0 -16
  57. package/dist/sdk/firmachain/amino/signature.js +0 -36
  58. package/dist/sdk/firmachain/amino/signdoc.d.ts +0 -26
  59. package/dist/sdk/firmachain/amino/signdoc.js +0 -42
  60. package/dist/sdk/firmachain/amino/signer.d.ts +0 -33
  61. package/dist/sdk/firmachain/amino/signer.js +0 -2
  62. package/dist/sdk/firmachain/amino/stdtx.d.ts +0 -15
  63. package/dist/sdk/firmachain/amino/stdtx.js +0 -17
  64. package/dist/sdk/firmachain/amino/wallet.d.ts +0 -32
  65. package/dist/sdk/firmachain/amino/wallet.js +0 -132
  66. package/dist/sdk/firmachain/bank/BankQueryClient.d.ts +0 -12
  67. package/dist/sdk/firmachain/bank/BankQueryClient.js +0 -116
  68. package/dist/sdk/firmachain/bank/BankTxClient.d.ts +0 -17
  69. package/dist/sdk/firmachain/bank/BankTxClient.js +0 -40
  70. package/dist/sdk/firmachain/bank/index.d.ts +0 -3
  71. package/dist/sdk/firmachain/bank/index.js +0 -15
  72. package/dist/sdk/firmachain/common/ITxClient.d.ts +0 -15
  73. package/dist/sdk/firmachain/common/ITxClient.js +0 -102
  74. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +0 -27
  75. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +0 -165
  76. package/dist/sdk/firmachain/common/LedgerWallet.d.ts +0 -14
  77. package/dist/sdk/firmachain/common/LedgerWallet.js +0 -147
  78. package/dist/sdk/firmachain/common/QueryCommon.d.ts +0 -4
  79. package/dist/sdk/firmachain/common/QueryCommon.js +0 -2
  80. package/dist/sdk/firmachain/common/TendermintQueryClient.d.ts +0 -42
  81. package/dist/sdk/firmachain/common/TendermintQueryClient.js +0 -111
  82. package/dist/sdk/firmachain/common/TxCommon.d.ts +0 -87
  83. package/dist/sdk/firmachain/common/TxCommon.js +0 -18
  84. package/dist/sdk/firmachain/common/accounts.d.ts +0 -16
  85. package/dist/sdk/firmachain/common/accounts.js +0 -64
  86. package/dist/sdk/firmachain/common/index.d.ts +0 -2
  87. package/dist/sdk/firmachain/common/index.js +0 -14
  88. package/dist/sdk/firmachain/common/signing.d.ts +0 -10
  89. package/dist/sdk/firmachain/common/signing.js +0 -75
  90. package/dist/sdk/firmachain/common/signingstargateclient.d.ts +0 -37
  91. package/dist/sdk/firmachain/common/signingstargateclient.js +0 -298
  92. package/dist/sdk/firmachain/common/stargateclient.d.ts +0 -46
  93. package/dist/sdk/firmachain/common/stargateclient.js +0 -211
  94. package/dist/sdk/firmachain/contract/ContractQueryClient.d.ts +0 -32
  95. package/dist/sdk/firmachain/contract/ContractQueryClient.js +0 -156
  96. package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +0 -17
  97. package/dist/sdk/firmachain/contract/ContractTxClient.js +0 -40
  98. package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +0 -69
  99. package/dist/sdk/firmachain/contract/ContractTxTypes.js +0 -483
  100. package/dist/sdk/firmachain/contract/index.d.ts +0 -3
  101. package/dist/sdk/firmachain/contract/index.js +0 -15
  102. package/dist/sdk/firmachain/distribution/DistributionQueryClient.d.ts +0 -18
  103. package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +0 -167
  104. package/dist/sdk/firmachain/distribution/DistributionTxClient.d.ts +0 -27
  105. package/dist/sdk/firmachain/distribution/DistributionTxClient.js +0 -48
  106. package/dist/sdk/firmachain/distribution/index.d.ts +0 -3
  107. package/dist/sdk/firmachain/distribution/index.js +0 -15
  108. package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.d.ts +0 -17
  109. package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +0 -86
  110. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.d.ts +0 -17
  111. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.js +0 -40
  112. package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +0 -76
  113. package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +0 -194
  114. package/dist/sdk/firmachain/feegrant/index.d.ts +0 -2
  115. package/dist/sdk/firmachain/feegrant/index.js +0 -15
  116. package/dist/sdk/firmachain/google/protobuf/any.d.ts +0 -128
  117. package/dist/sdk/firmachain/google/protobuf/any.js +0 -106
  118. package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +0 -996
  119. package/dist/sdk/firmachain/google/protobuf/descriptor.js +0 -5329
  120. package/dist/sdk/firmachain/google/protobuf/duration.d.ts +0 -91
  121. package/dist/sdk/firmachain/google/protobuf/duration.js +0 -107
  122. package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +0 -109
  123. package/dist/sdk/firmachain/google/protobuf/timestamp.js +0 -107
  124. package/dist/sdk/firmachain/gov/GovQueryClient.d.ts +0 -61
  125. package/dist/sdk/firmachain/gov/GovQueryClient.js +0 -152
  126. package/dist/sdk/firmachain/gov/GovTxClient.d.ts +0 -22
  127. package/dist/sdk/firmachain/gov/GovTxClient.js +0 -44
  128. package/dist/sdk/firmachain/gov/index.d.ts +0 -3
  129. package/dist/sdk/firmachain/gov/index.js +0 -15
  130. package/dist/sdk/firmachain/nft/NftQueryClient.d.ts +0 -20
  131. package/dist/sdk/firmachain/nft/NftQueryClient.js +0 -125
  132. package/dist/sdk/firmachain/nft/NftTxClient.d.ts +0 -22
  133. package/dist/sdk/firmachain/nft/NftTxClient.js +0 -44
  134. package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +0 -86
  135. package/dist/sdk/firmachain/nft/NftTxTypes.js +0 -424
  136. package/dist/sdk/firmachain/nft/index.d.ts +0 -3
  137. package/dist/sdk/firmachain/nft/index.js +0 -15
  138. package/dist/sdk/firmachain/slashing/SlashingQueryClient.d.ts +0 -22
  139. package/dist/sdk/firmachain/slashing/SlashingQueryClient.js +0 -101
  140. package/dist/sdk/firmachain/slashing/index.d.ts +0 -2
  141. package/dist/sdk/firmachain/slashing/index.js +0 -14
  142. package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +0 -93
  143. package/dist/sdk/firmachain/staking/StakingQueryClient.js +0 -223
  144. package/dist/sdk/firmachain/staking/StakingTxClient.d.ts +0 -32
  145. package/dist/sdk/firmachain/staking/StakingTxClient.js +0 -52
  146. package/dist/sdk/firmachain/staking/index.d.ts +0 -3
  147. package/dist/sdk/firmachain/staking/index.js +0 -15
  148. package/dist/sdk/firmachain/token/TokenQueryClient.d.ts +0 -24
  149. package/dist/sdk/firmachain/token/TokenQueryClient.js +0 -106
  150. package/dist/sdk/firmachain/token/TokenTxClient.d.ts +0 -27
  151. package/dist/sdk/firmachain/token/TokenTxClient.js +0 -48
  152. package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +0 -116
  153. package/dist/sdk/firmachain/token/TokenTxTypes.js +0 -685
  154. package/dist/sdk/firmachain/token/index.d.ts +0 -3
  155. package/dist/sdk/firmachain/token/index.js +0 -15
@@ -1,128 +0,0 @@
1
- import { Writer, Reader } from "protobufjs/minimal";
2
- export declare const protobufPackage = "google.protobuf";
3
- /**
4
- * `Any` contains an arbitrary serialized protocol buffer message along with a
5
- * URL that describes the type of the serialized message.
6
- *
7
- * Protobuf library provides support to pack/unpack Any values in the form
8
- * of utility functions or additional generated methods of the Any type.
9
- *
10
- * Example 1: Pack and unpack a message in C++.
11
- *
12
- * Foo foo = ...;
13
- * Any any;
14
- * any.PackFrom(foo);
15
- * ...
16
- * if (any.UnpackTo(&foo)) {
17
- * ...
18
- * }
19
- *
20
- * Example 2: Pack and unpack a message in Java.
21
- *
22
- * Foo foo = ...;
23
- * Any any = Any.pack(foo);
24
- * ...
25
- * if (any.is(Foo.class)) {
26
- * foo = any.unpack(Foo.class);
27
- * }
28
- *
29
- * Example 3: Pack and unpack a message in Python.
30
- *
31
- * foo = Foo(...)
32
- * any = Any()
33
- * any.Pack(foo)
34
- * ...
35
- * if any.Is(Foo.DESCRIPTOR):
36
- * any.Unpack(foo)
37
- * ...
38
- *
39
- * Example 4: Pack and unpack a message in Go
40
- *
41
- * foo := &pb.Foo{...}
42
- * any, err := ptypes.MarshalAny(foo)
43
- * ...
44
- * foo := &pb.Foo{}
45
- * if err := ptypes.UnmarshalAny(any, foo); err != nil {
46
- * ...
47
- * }
48
- *
49
- * The pack methods provided by protobuf library will by default use
50
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
51
- * methods only use the fully qualified type name after the last '/'
52
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
53
- * name "y.z".
54
- *
55
- *
56
- * JSON
57
- * ====
58
- * The JSON representation of an `Any` value uses the regular
59
- * representation of the deserialized, embedded message, with an
60
- * additional field `@type` which contains the type URL. Example:
61
- *
62
- * package google.profile;
63
- * message Person {
64
- * string first_name = 1;
65
- * string last_name = 2;
66
- * }
67
- *
68
- * {
69
- * "@type": "type.googleapis.com/google.profile.Person",
70
- * "firstName": <string>,
71
- * "lastName": <string>
72
- * }
73
- *
74
- * If the embedded message type is well-known and has a custom JSON
75
- * representation, that representation will be embedded adding a field
76
- * `value` which holds the custom JSON in addition to the `@type`
77
- * field. Example (for message [google.protobuf.Duration][]):
78
- *
79
- * {
80
- * "@type": "type.googleapis.com/google.protobuf.Duration",
81
- * "value": "1.212s"
82
- * }
83
- */
84
- export interface Any {
85
- /**
86
- * A URL/resource name that uniquely identifies the type of the serialized
87
- * protocol buffer message. This string must contain at least
88
- * one "/" character. The last segment of the URL's path must represent
89
- * the fully qualified name of the type (as in
90
- * `path/google.protobuf.Duration`). The name should be in a canonical form
91
- * (e.g., leading "." is not accepted).
92
- *
93
- * In practice, teams usually precompile into the binary all types that they
94
- * expect it to use in the context of Any. However, for URLs which use the
95
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
96
- * server that maps type URLs to message definitions as follows:
97
- *
98
- * * If no scheme is provided, `https` is assumed.
99
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
100
- * value in binary format, or produce an error.
101
- * * Applications are allowed to cache lookup results based on the
102
- * URL, or have them precompiled into a binary to avoid any
103
- * lookup. Therefore, binary compatibility needs to be preserved
104
- * on changes to types. (Use versioned type names to manage
105
- * breaking changes.)
106
- *
107
- * Note: this functionality is not currently available in the official
108
- * protobuf release, and it is not used for type URLs beginning with
109
- * type.googleapis.com.
110
- *
111
- * Schemes other than `http`, `https` (or the empty scheme) might be
112
- * used with implementation specific semantics.
113
- */
114
- typeUrl: string;
115
- /** Must be a valid serialized protocol buffer of the above specified type. */
116
- value: Uint8Array;
117
- }
118
- export declare const Any: {
119
- encode(message: Any, writer?: Writer): Writer;
120
- decode(input: Reader | Uint8Array, length?: number | undefined): Any;
121
- fromJSON(object: any): Any;
122
- fromPartial(object: DeepPartial<Any>): Any;
123
- };
124
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
125
- export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
126
- [K in keyof T]?: DeepPartial<T[K]>;
127
- } : Partial<T>;
128
- export {};
@@ -1,106 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Any = exports.protobufPackage = void 0;
15
- /* eslint-disable */
16
- var minimal_1 = require("protobufjs/minimal");
17
- exports.protobufPackage = "google.protobuf";
18
- var baseAny = { typeUrl: "" };
19
- exports.Any = {
20
- encode: function (message, writer) {
21
- if (writer === void 0) { writer = minimal_1.Writer.create(); }
22
- if (message.typeUrl !== "") {
23
- writer.uint32(10).string(message.typeUrl);
24
- }
25
- if (message.value.length !== 0) {
26
- writer.uint32(18).bytes(message.value);
27
- }
28
- return writer;
29
- },
30
- decode: function (input, length) {
31
- var reader = input instanceof minimal_1.Reader ? input : new minimal_1.Reader(input);
32
- var end = length === undefined ? reader.len : reader.pos + length;
33
- var message = __assign({}, baseAny);
34
- message.value = new Uint8Array();
35
- while (reader.pos < end) {
36
- var tag = reader.uint32();
37
- switch (tag >>> 3) {
38
- case 1:
39
- message.typeUrl = reader.string();
40
- break;
41
- case 2:
42
- message.value = reader.bytes();
43
- break;
44
- default:
45
- reader.skipType(tag & 7);
46
- break;
47
- }
48
- }
49
- return message;
50
- },
51
- fromJSON: function (object) {
52
- var message = __assign({}, baseAny);
53
- message.value = new Uint8Array();
54
- if (object.typeUrl !== undefined && object.typeUrl !== null) {
55
- message.typeUrl = String(object.typeUrl);
56
- }
57
- else {
58
- message.typeUrl = "";
59
- }
60
- if (object.value !== undefined && object.value !== null) {
61
- message.value = object.value; //bytesFromBase64(object.value);
62
- }
63
- return message;
64
- },
65
- fromPartial: function (object) {
66
- var message = __assign({}, baseAny);
67
- if (object.typeUrl !== undefined && object.typeUrl !== null) {
68
- message.typeUrl = object.typeUrl;
69
- }
70
- else {
71
- message.typeUrl = "";
72
- }
73
- if (object.value !== undefined && object.value !== null) {
74
- message.value = object.value;
75
- }
76
- else {
77
- message.value = new Uint8Array();
78
- }
79
- return message;
80
- },
81
- };
82
- var globalThis = (function () {
83
- if (typeof globalThis !== "undefined")
84
- return globalThis;
85
- if (typeof self !== "undefined")
86
- return self;
87
- if (typeof window !== "undefined")
88
- return window;
89
- if (typeof global !== "undefined")
90
- return global;
91
- throw "Unable to locate global object";
92
- })();
93
- //const atob: (b64: string) => string =
94
- // globalThis.atob ||
95
- // ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
96
- function bytesFromBase64(b64) {
97
- //const bin = globalThis.Buffer.from(b64, "base64").toString("binary");
98
- var bin = atob(b64);
99
- var arr = new Uint8Array(bin.length);
100
- for (var i = 0; i < bin.length; ++i) {
101
- arr[i] = bin.charCodeAt(i);
102
- }
103
- return arr;
104
- }
105
- // If you get a compile-error about 'Constructor<Long> and ... have no overlap',
106
- // add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.