@airgap/cosmos 0.13.7-beta.21 → 0.13.7-beta.23

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 (154) hide show
  1. package/airgap-coinlib-cosmos.min.js +32425 -18722
  2. package/index.d.ts +1 -10
  3. package/index.js +15 -15
  4. package/index.js.map +1 -1
  5. package/package.json +4 -2
  6. package/v0/index.d.ts +10 -0
  7. package/v0/index.js +32 -0
  8. package/v0/index.js.map +1 -0
  9. package/{protocol → v0/protocol}/CosmosAddress.d.ts +0 -0
  10. package/{protocol → v0/protocol}/CosmosAddress.js +0 -0
  11. package/v0/protocol/CosmosAddress.js.map +1 -0
  12. package/{protocol → v0/protocol}/CosmosCoin.d.ts +0 -0
  13. package/{protocol → v0/protocol}/CosmosCoin.js +0 -0
  14. package/v0/protocol/CosmosCoin.js.map +1 -0
  15. package/{protocol → v0/protocol}/CosmosCryptoClient.d.ts +0 -0
  16. package/{protocol → v0/protocol}/CosmosCryptoClient.js +3 -1
  17. package/v0/protocol/CosmosCryptoClient.js.map +1 -0
  18. package/{protocol → v0/protocol}/CosmosFee.d.ts +0 -0
  19. package/{protocol → v0/protocol}/CosmosFee.js +0 -0
  20. package/v0/protocol/CosmosFee.js.map +1 -0
  21. package/{protocol → v0/protocol}/CosmosNodeClient.d.ts +0 -0
  22. package/{protocol → v0/protocol}/CosmosNodeClient.js +15 -15
  23. package/v0/protocol/CosmosNodeClient.js.map +1 -0
  24. package/{protocol → v0/protocol}/CosmosProtocol.d.ts +0 -0
  25. package/{protocol → v0/protocol}/CosmosProtocol.js +22 -20
  26. package/v0/protocol/CosmosProtocol.js.map +1 -0
  27. package/{protocol → v0/protocol}/CosmosProtocolOptions.d.ts +0 -0
  28. package/{protocol → v0/protocol}/CosmosProtocolOptions.js +4 -2
  29. package/v0/protocol/CosmosProtocolOptions.js.map +1 -0
  30. package/{protocol → v0/protocol}/CosmosTransaction.d.ts +0 -0
  31. package/{protocol → v0/protocol}/CosmosTransaction.js +0 -0
  32. package/v0/protocol/CosmosTransaction.js.map +1 -0
  33. package/{protocol → v0/protocol}/CosmosTypes.d.ts +0 -0
  34. package/{protocol → v0/protocol}/CosmosTypes.js +0 -0
  35. package/v0/protocol/CosmosTypes.js.map +1 -0
  36. package/{protocol → v0/protocol}/cosmos-message/CosmosDelegateMessage.d.ts +0 -0
  37. package/{protocol → v0/protocol}/cosmos-message/CosmosDelegateMessage.js +0 -0
  38. package/v0/protocol/cosmos-message/CosmosDelegateMessage.js.map +1 -0
  39. package/{protocol → v0/protocol}/cosmos-message/CosmosMessage.d.ts +0 -0
  40. package/{protocol → v0/protocol}/cosmos-message/CosmosMessage.js +0 -0
  41. package/v0/protocol/cosmos-message/CosmosMessage.js.map +1 -0
  42. package/{protocol → v0/protocol}/cosmos-message/CosmosSendMessage.d.ts +0 -0
  43. package/{protocol → v0/protocol}/cosmos-message/CosmosSendMessage.js +9 -7
  44. package/v0/protocol/cosmos-message/CosmosSendMessage.js.map +1 -0
  45. package/{protocol → v0/protocol}/cosmos-message/CosmosWithdrawDelegationRewardMessage.d.ts +0 -0
  46. package/{protocol → v0/protocol}/cosmos-message/CosmosWithdrawDelegationRewardMessage.js +0 -0
  47. package/v0/protocol/cosmos-message/CosmosWithdrawDelegationRewardMessage.js.map +1 -0
  48. package/v0/serializer/schemas/v2/transaction-sign-request-cosmos.json +100 -0
  49. package/v0/serializer/schemas/v2/transaction-sign-response-cosmos.json +22 -0
  50. package/v0/serializer/schemas/v3/transaction-sign-request-cosmos.json +100 -0
  51. package/v0/serializer/schemas/v3/transaction-sign-response-cosmos.json +19 -0
  52. package/v0/serializer/validators/transaction-validator.d.ts +15 -0
  53. package/v0/serializer/validators/transaction-validator.js +112 -0
  54. package/v0/serializer/validators/transaction-validator.js.map +1 -0
  55. package/v0/types/signed-transaction-cosmos.d.ts +5 -0
  56. package/{types → v0/types}/signed-transaction-cosmos.js +0 -0
  57. package/v0/types/signed-transaction-cosmos.js.map +1 -0
  58. package/{types → v0/types}/transaction-cosmos.d.ts +0 -0
  59. package/{types → v0/types}/transaction-cosmos.js +0 -0
  60. package/v0/types/transaction-cosmos.js.map +1 -0
  61. package/{types → v0/types}/unsigned-transaction-cosmos.d.ts +2 -2
  62. package/{types → v0/types}/unsigned-transaction-cosmos.js +0 -0
  63. package/v0/types/unsigned-transaction-cosmos.js.map +1 -0
  64. package/v1/block-explorer/MintscanBlockExplorer.d.ts +9 -0
  65. package/v1/block-explorer/MintscanBlockExplorer.js +74 -0
  66. package/v1/block-explorer/MintscanBlockExplorer.js.map +1 -0
  67. package/v1/data/CosmosAddress.d.ts +7 -0
  68. package/v1/data/CosmosAddress.js +26 -0
  69. package/v1/data/CosmosAddress.js.map +1 -0
  70. package/v1/data/CosmosCoin.d.ts +19 -0
  71. package/v1/data/CosmosCoin.js +55 -0
  72. package/v1/data/CosmosCoin.js.map +1 -0
  73. package/v1/data/CosmosFee.d.ts +15 -0
  74. package/v1/data/CosmosFee.js +31 -0
  75. package/v1/data/CosmosFee.js.map +1 -0
  76. package/v1/data/transaction/CosmosTransaction.d.ts +36 -0
  77. package/v1/data/transaction/CosmosTransaction.js +107 -0
  78. package/v1/data/transaction/CosmosTransaction.js.map +1 -0
  79. package/v1/data/transaction/message/CosmosDelegateMessage.d.ts +19 -0
  80. package/v1/data/transaction/message/CosmosDelegateMessage.js +70 -0
  81. package/v1/data/transaction/message/CosmosDelegateMessage.js.map +1 -0
  82. package/v1/data/transaction/message/CosmosMessage.d.ts +38 -0
  83. package/v1/data/transaction/message/CosmosMessage.js +47 -0
  84. package/v1/data/transaction/message/CosmosMessage.js.map +1 -0
  85. package/v1/data/transaction/message/CosmosSendMessage.d.ts +19 -0
  86. package/v1/data/transaction/message/CosmosSendMessage.js +83 -0
  87. package/v1/data/transaction/message/CosmosSendMessage.js.map +1 -0
  88. package/v1/data/transaction/message/CosmosWithdrawDelegationRewardMessage.d.ts +23 -0
  89. package/v1/data/transaction/message/CosmosWithdrawDelegationRewardMessage.js +61 -0
  90. package/v1/data/transaction/message/CosmosWithdrawDelegationRewardMessage.js.map +1 -0
  91. package/v1/index.d.ts +9 -0
  92. package/v1/index.js +11 -0
  93. package/v1/index.js.map +1 -0
  94. package/v1/module/CosmosModule.d.ts +8 -0
  95. package/v1/module/CosmosModule.js +86 -0
  96. package/v1/module/CosmosModule.js.map +1 -0
  97. package/v1/node/CosmosNodeClient.d.ts +28 -0
  98. package/v1/node/CosmosNodeClient.js +381 -0
  99. package/v1/node/CosmosNodeClient.js.map +1 -0
  100. package/v1/protocol/CosmosCryptoClient.d.ts +8 -0
  101. package/v1/protocol/CosmosCryptoClient.js +88 -0
  102. package/v1/protocol/CosmosCryptoClient.js.map +1 -0
  103. package/v1/protocol/CosmosProtocol.d.ts +50 -0
  104. package/v1/protocol/CosmosProtocol.js +658 -0
  105. package/v1/protocol/CosmosProtocol.js.map +1 -0
  106. package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +7 -0
  107. package/v1/serializer/v3/schemas/converter/transaction-converter.js +21 -0
  108. package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -0
  109. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-cosmos.d.ts +4 -0
  110. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-cosmos.js +3 -0
  111. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-cosmos.js.map +1 -0
  112. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-cosmos.d.ts +3 -0
  113. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-cosmos.js +3 -0
  114. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-cosmos.js.map +1 -0
  115. package/v1/serializer/v3/schemas/generated/transaction-sign-request-cosmos.json +107 -0
  116. package/v1/serializer/v3/schemas/generated/transaction-sign-response-cosmos.json +19 -0
  117. package/v1/serializer/v3/validators/transaction-validators.d.ts +10 -0
  118. package/v1/serializer/v3/validators/transaction-validators.js +97 -0
  119. package/v1/serializer/v3/validators/transaction-validators.js.map +1 -0
  120. package/v1/types/protocol.d.ts +8 -0
  121. package/v1/types/protocol.js +3 -0
  122. package/v1/types/protocol.js.map +1 -0
  123. package/v1/types/rpc.d.ts +286 -0
  124. package/v1/types/rpc.js +3 -0
  125. package/v1/types/rpc.js.map +1 -0
  126. package/v1/types/transaction.d.ts +44 -0
  127. package/v1/types/transaction.js +10 -0
  128. package/v1/types/transaction.js.map +1 -0
  129. package/v1/utils/key.d.ts +3 -0
  130. package/v1/utils/key.js +20 -0
  131. package/v1/utils/key.js.map +1 -0
  132. package/v1/utils/signature.d.ts +2 -0
  133. package/v1/utils/signature.js +13 -0
  134. package/v1/utils/signature.js.map +1 -0
  135. package/v1/utils/transaction.d.ts +1 -0
  136. package/v1/utils/transaction.js +8 -0
  137. package/v1/utils/transaction.js.map +1 -0
  138. package/protocol/CosmosAddress.js.map +0 -1
  139. package/protocol/CosmosCoin.js.map +0 -1
  140. package/protocol/CosmosCryptoClient.js.map +0 -1
  141. package/protocol/CosmosFee.js.map +0 -1
  142. package/protocol/CosmosNodeClient.js.map +0 -1
  143. package/protocol/CosmosProtocol.js.map +0 -1
  144. package/protocol/CosmosProtocolOptions.js.map +0 -1
  145. package/protocol/CosmosTransaction.js.map +0 -1
  146. package/protocol/CosmosTypes.js.map +0 -1
  147. package/protocol/cosmos-message/CosmosDelegateMessage.js.map +0 -1
  148. package/protocol/cosmos-message/CosmosMessage.js.map +0 -1
  149. package/protocol/cosmos-message/CosmosSendMessage.js.map +0 -1
  150. package/protocol/cosmos-message/CosmosWithdrawDelegationRewardMessage.js.map +0 -1
  151. package/types/signed-transaction-cosmos.d.ts +0 -6
  152. package/types/signed-transaction-cosmos.js.map +0 -1
  153. package/types/transaction-cosmos.js.map +0 -1
  154. package/types/unsigned-transaction-cosmos.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CosmosProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/CosmosProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;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AAqD;IACxF,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAA;AACxC,CAAC;AAFD,oDAEC;AAEY,QAAA,+BAA+B,GAA0B;IACpE,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,0CAA0C;CACnD,CAAA;AAED,IAAM,+BAA+B,GAA0B,uCAA+B,CAAA;AAE9F,SAAgB,2BAA2B,CAAC,OAA4C;IAA5C,wBAAA,EAAA,YAA4C;IACtF,OAAO;QACL,OAAO,wBAAO,+BAA+B,GAAK,OAAO,CAAE;KAC5D,CAAA;AACH,CAAC;AAJD,kEAIC"}
@@ -0,0 +1,7 @@
1
+ import { CosmosSignedTransaction, CosmosUnsignedTransaction } from '../../../../types/transaction';
2
+ import { CosmosTransactionSignRequest } from '../definitions/transaction-sign-request-cosmos';
3
+ import { CosmosTransactionSignResponse } from '../definitions/transaction-sign-response-cosmos';
4
+ export declare function cosmosUnsignedTransactionToRequest(unsigned: CosmosUnsignedTransaction, publicKey: string, callbackUrl?: string): CosmosTransactionSignRequest;
5
+ export declare function cosmosSignedTransactionToResponse(signed: CosmosSignedTransaction, accountIdentifier: string): CosmosTransactionSignResponse;
6
+ export declare function cosmosTransactionSignRequestToUnsigned(request: CosmosTransactionSignRequest): CosmosUnsignedTransaction;
7
+ export declare function cosmosTransactionSignResponseToSigned(response: CosmosTransactionSignResponse): CosmosSignedTransaction;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cosmosTransactionSignResponseToSigned = exports.cosmosTransactionSignRequestToUnsigned = exports.cosmosSignedTransactionToResponse = exports.cosmosUnsignedTransactionToRequest = void 0;
4
+ var module_kit_1 = require("@airgap/module-kit");
5
+ function cosmosUnsignedTransactionToRequest(unsigned, publicKey, callbackUrl) {
6
+ return { transaction: unsigned, publicKey: publicKey, callbackURL: callbackUrl };
7
+ }
8
+ exports.cosmosUnsignedTransactionToRequest = cosmosUnsignedTransactionToRequest;
9
+ function cosmosSignedTransactionToResponse(signed, accountIdentifier) {
10
+ return { transaction: signed.encoded, accountIdentifier: accountIdentifier };
11
+ }
12
+ exports.cosmosSignedTransactionToResponse = cosmosSignedTransactionToResponse;
13
+ function cosmosTransactionSignRequestToUnsigned(request) {
14
+ return request.transaction;
15
+ }
16
+ exports.cosmosTransactionSignRequestToUnsigned = cosmosTransactionSignRequestToUnsigned;
17
+ function cosmosTransactionSignResponseToSigned(response) {
18
+ return (0, module_kit_1.newSignedTransaction)({ encoded: response.transaction });
19
+ }
20
+ exports.cosmosTransactionSignResponseToSigned = cosmosTransactionSignResponseToSigned;
21
+ //# sourceMappingURL=transaction-converter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-converter.js","sourceRoot":"","sources":["../../../../../../src/v1/serializer/v3/schemas/converter/transaction-converter.ts"],"names":[],"mappings":";;;AAAA,iDAAyD;AAMzD,SAAgB,kCAAkC,CAChD,QAAmC,EACnC,SAAiB,EACjB,WAAoB;IAEpB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,WAAA,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AACvE,CAAC;AAND,gFAMC;AAED,SAAgB,iCAAiC,CAC/C,MAA+B,EAC/B,iBAAyB;IAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,iBAAiB,mBAAA,EAAE,CAAA;AAC3D,CAAC;AALD,8EAKC;AAED,SAAgB,sCAAsC,CAAC,OAAqC;IAC1F,OAAO,OAAO,CAAC,WAAW,CAAA;AAC5B,CAAC;AAFD,wFAEC;AAED,SAAgB,qCAAqC,CAAC,QAAuC;IAC3F,OAAO,IAAA,iCAAoB,EAA0B,EAAE,OAAO,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAA;AACzF,CAAC;AAFD,sFAEC"}
@@ -0,0 +1,4 @@
1
+ import { TransactionSignRequest } from '@airgap/serializer';
2
+ import { CosmosUnsignedTransaction } from '../../../../types/transaction';
3
+ export interface CosmosTransactionSignRequest extends TransactionSignRequest<CosmosUnsignedTransaction> {
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=transaction-sign-request-cosmos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-sign-request-cosmos.js","sourceRoot":"","sources":["../../../../../../src/v1/serializer/v3/schemas/definitions/transaction-sign-request-cosmos.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { TransactionSignResponse } from '@airgap/serializer';
2
+ export interface CosmosTransactionSignResponse extends TransactionSignResponse {
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=transaction-sign-response-cosmos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-sign-response-cosmos.js","sourceRoot":"","sources":["../../../../../../src/v1/serializer/v3/schemas/definitions/transaction-sign-response-cosmos.ts"],"names":[],"mappings":""}
@@ -0,0 +1,107 @@
1
+ {
2
+ "$ref": "#/definitions/CosmosTransactionSignRequest",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "CosmosTransactionSignRequest": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "callbackURL": {
9
+ "type": "string"
10
+ },
11
+ "publicKey": {
12
+ "type": "string"
13
+ },
14
+ "transaction": {
15
+ "$ref": "#/definitions/CosmosUnsignedTransaction"
16
+ }
17
+ },
18
+ "required": ["publicKey", "transaction"],
19
+ "type": "object"
20
+ },
21
+ "CosmosUnsignedTransaction": {
22
+ "additionalProperties": false,
23
+ "properties": {
24
+ "accountNumber": {
25
+ "type": "string"
26
+ },
27
+ "chainID": {
28
+ "type": "string"
29
+ },
30
+ "fee": {
31
+ "additionalProperties": false,
32
+ "properties": {
33
+ "amount": {
34
+ "items": {
35
+ "additionalProperties": false,
36
+ "properties": {
37
+ "amount": {
38
+ "type": "string"
39
+ },
40
+ "denom": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ "required": ["denom", "amount"],
45
+ "type": "object"
46
+ },
47
+ "type": "array"
48
+ },
49
+ "gas": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": ["amount", "gas"],
54
+ "type": "object"
55
+ },
56
+ "memo": {
57
+ "type": "string"
58
+ },
59
+ "messages": {
60
+ "items": {
61
+ "additionalProperties": false,
62
+ "properties": {
63
+ "amount": {
64
+ "items": {
65
+ "additionalProperties": false,
66
+ "properties": {
67
+ "amount": {
68
+ "type": "string"
69
+ },
70
+ "denom": {
71
+ "type": "string"
72
+ }
73
+ },
74
+ "required": ["denom", "amount"],
75
+ "type": "object"
76
+ },
77
+ "type": "array"
78
+ },
79
+ "fromAddress": {
80
+ "type": "string"
81
+ },
82
+ "toAddress": {
83
+ "type": "string"
84
+ },
85
+ "type": {
86
+ "enum": [0, 1, 2, 3],
87
+ "type": "number"
88
+ }
89
+ },
90
+ "required": ["type", "amount", "fromAddress", "toAddress"],
91
+ "type": "object"
92
+ },
93
+ "type": "array"
94
+ },
95
+ "sequence": {
96
+ "type": "string"
97
+ },
98
+ "type": {
99
+ "enum": ["unsigned"],
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": ["accountNumber", "chainID", "fee", "memo", "messages", "sequence", "type"],
104
+ "type": "object"
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$ref": "#/definitions/CosmosTransactionSignResponse",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "CosmosTransactionSignResponse": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "accountIdentifier": {
9
+ "type": "string"
10
+ },
11
+ "transaction": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "required": ["accountIdentifier", "transaction"],
16
+ "type": "object"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,10 @@
1
+ import { TransactionValidator, TransactionValidatorFactory } from '@airgap/serializer';
2
+ import { CosmosTransactionSignRequest } from '../schemas/definitions/transaction-sign-request-cosmos';
3
+ import { CosmosTransactionSignResponse } from '../schemas/definitions/transaction-sign-response-cosmos';
4
+ export declare class CosmosTransactionValidator implements TransactionValidator {
5
+ validateUnsignedTransaction(request: CosmosTransactionSignRequest): Promise<any>;
6
+ validateSignedTransaction(response: CosmosTransactionSignResponse): Promise<any>;
7
+ }
8
+ export declare class CosmosTransactionValidatorFactory implements TransactionValidatorFactory<CosmosTransactionValidator> {
9
+ create(): CosmosTransactionValidator;
10
+ }
@@ -0,0 +1,97 @@
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
+ exports.CosmosTransactionValidatorFactory = exports.CosmosTransactionValidator = void 0;
40
+ // tslint:disable: max-classes-per-file
41
+ // import { async } from '@airgap/coinlib-core/dependencies/src/validate.js-0.13.1/validate'
42
+ var serializer_1 = require("@airgap/serializer");
43
+ // const unsignedTransactionConstraints = {
44
+ // binaryTransaction: {
45
+ // isValidCosmosUnsignedTransaction: true,
46
+ // presence: { allowEmpty: false },
47
+ // type: 'String'
48
+ // }
49
+ // }
50
+ // const success = () => undefined
51
+ // const error = errors => errors
52
+ // const signedTransactionConstraints = {
53
+ // transaction: {
54
+ // isValidCosmosSignedTransaction: true,
55
+ // presence: { allowEmpty: false },
56
+ // type: 'String'
57
+ // },
58
+ // accountIdentifier: {
59
+ // presence: { allowEmpty: false },
60
+ // type: 'String'
61
+ // }
62
+ // }
63
+ // TODO implement this
64
+ var CosmosTransactionValidator = /** @class */ (function () {
65
+ function CosmosTransactionValidator() {
66
+ }
67
+ CosmosTransactionValidator.prototype.validateUnsignedTransaction = function (request) {
68
+ return __awaiter(this, void 0, void 0, function () {
69
+ return __generator(this, function (_a) {
70
+ // const transaction: CosmosUnsignedTransaction = request.transaction
71
+ (0, serializer_1.validateSyncScheme)({});
72
+ // return async(transaction, unsignedTransactionConstraints).then(success, error)
73
+ return [2 /*return*/, undefined];
74
+ });
75
+ });
76
+ };
77
+ CosmosTransactionValidator.prototype.validateSignedTransaction = function (response) {
78
+ return __awaiter(this, void 0, void 0, function () {
79
+ return __generator(this, function (_a) {
80
+ // return async(response, signedTransactionConstraints).then(success, error)
81
+ return [2 /*return*/, undefined];
82
+ });
83
+ });
84
+ };
85
+ return CosmosTransactionValidator;
86
+ }());
87
+ exports.CosmosTransactionValidator = CosmosTransactionValidator;
88
+ var CosmosTransactionValidatorFactory = /** @class */ (function () {
89
+ function CosmosTransactionValidatorFactory() {
90
+ }
91
+ CosmosTransactionValidatorFactory.prototype.create = function () {
92
+ return new CosmosTransactionValidator();
93
+ };
94
+ return CosmosTransactionValidatorFactory;
95
+ }());
96
+ exports.CosmosTransactionValidatorFactory = CosmosTransactionValidatorFactory;
97
+ //# sourceMappingURL=transaction-validators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-validators.js","sourceRoot":"","sources":["../../../../../src/v1/serializer/v3/validators/transaction-validators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuC;AACvC,4FAA4F;AAC5F,iDAA0G;AAM1G,2CAA2C;AAC3C,yBAAyB;AACzB,8CAA8C;AAC9C,uCAAuC;AACvC,qBAAqB;AACrB,MAAM;AACN,IAAI;AACJ,kCAAkC;AAClC,iCAAiC;AAEjC,yCAAyC;AACzC,mBAAmB;AACnB,4CAA4C;AAC5C,uCAAuC;AACvC,qBAAqB;AACrB,OAAO;AACP,yBAAyB;AACzB,uCAAuC;AACvC,qBAAqB;AACrB,MAAM;AACN,IAAI;AAEJ,sBAAsB;AACtB;IAAA;IAYA,CAAC;IAXc,gEAA2B,GAAxC,UAAyC,OAAqC;;;gBAC5E,qEAAqE;gBACrE,IAAA,+BAAkB,EAAC,EAAE,CAAC,CAAA;gBAEtB,iFAAiF;gBACjF,sBAAO,SAAS,EAAA;;;KACjB;IACY,8DAAyB,GAAtC,UAAuC,QAAuC;;;gBAC5E,4EAA4E;gBAC5E,sBAAO,SAAS,EAAA;;;KACjB;IACH,iCAAC;AAAD,CAAC,AAZD,IAYC;AAZY,gEAA0B;AAcvC;IAAA;IAIA,CAAC;IAHQ,kDAAM,GAAb;QACE,OAAO,IAAI,0BAA0B,EAAE,CAAA;IACzC,CAAC;IACH,wCAAC;AAAD,CAAC,AAJD,IAIC;AAJY,8EAAiC"}
@@ -0,0 +1,8 @@
1
+ import { ProtocolNetwork } from '@airgap/module-kit';
2
+ export declare type CosmosUnits = 'atom' | 'uatom';
3
+ export interface CosmosProtocolNetwork extends ProtocolNetwork {
4
+ useCORSProxy?: boolean;
5
+ }
6
+ export interface CosmosProtocolOptions {
7
+ network: CosmosProtocolNetwork;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/v1/types/protocol.ts"],"names":[],"mappings":""}
@@ -0,0 +1,286 @@
1
+ import { CosmosCoinJSON } from '../data/CosmosCoin';
2
+ export interface CosmosNodeInfo {
3
+ protocol_version: {
4
+ p2p: string;
5
+ block: string;
6
+ app: string;
7
+ };
8
+ id: string;
9
+ listen_addr: string;
10
+ network: string;
11
+ version: string;
12
+ channels: string;
13
+ moniker: string;
14
+ other: {
15
+ tx_index: string;
16
+ rpc_address: string;
17
+ };
18
+ }
19
+ export interface CosmosAccount {
20
+ type: string;
21
+ value: CosmosAccountValue;
22
+ }
23
+ export interface CosmosAccountValue {
24
+ account_number: string;
25
+ address: string;
26
+ coins: CosmosAccountCoin[];
27
+ sequence?: string;
28
+ public_key?: string;
29
+ }
30
+ export interface CosmosAccountCoin {
31
+ denom: string;
32
+ amount: string;
33
+ }
34
+ export interface CosmosDelegation {
35
+ delegation: {
36
+ delegator_address: string;
37
+ validator_address: string;
38
+ shares: string;
39
+ };
40
+ balance: {
41
+ denom: string;
42
+ amount: string;
43
+ };
44
+ }
45
+ export interface CosmosUnbondingDelegation {
46
+ delegator_address: string;
47
+ validator_address: string;
48
+ entries: {
49
+ creation_height: string;
50
+ completion_time: string;
51
+ initial_balance: string;
52
+ balance: string;
53
+ }[];
54
+ }
55
+ export interface CosmosValidator {
56
+ operator_address: string;
57
+ consensus_pubkey: string;
58
+ jailed: boolean;
59
+ status: number;
60
+ tokens: string;
61
+ delegator_shares: string;
62
+ description: CosmosValidatorDescription;
63
+ unbonding_height: string;
64
+ unbonding_time: string;
65
+ commission: CosmosValidatorCommission;
66
+ min_self_delegation: string;
67
+ }
68
+ export interface CosmosValidatorDescription {
69
+ moniker: string;
70
+ identity: string;
71
+ website: string;
72
+ details: string;
73
+ }
74
+ export interface CosmosValidatorCommission {
75
+ commission_rates: CosmosValidatorCommissionRate;
76
+ update_time: string;
77
+ }
78
+ export interface CosmosValidatorCommissionRate {
79
+ rate: string;
80
+ max_rate: string;
81
+ max_change_rate: string;
82
+ }
83
+ export interface CosmosBroadcastSignedTransactionResponse {
84
+ tx_response: TxResponse;
85
+ }
86
+ export interface CosmosRewardDetails {
87
+ validator_address: string;
88
+ reward: {
89
+ denom: string;
90
+ amount: number;
91
+ }[];
92
+ }
93
+ export interface CosmosSendTx {
94
+ height: string;
95
+ txhash: string;
96
+ gas_wanted: string;
97
+ gas_used: string;
98
+ tx: {
99
+ type: string;
100
+ value: {
101
+ msg: [
102
+ {
103
+ type: string;
104
+ value: {
105
+ from_address: string;
106
+ to_address: string;
107
+ amount: [
108
+ {
109
+ denom: string;
110
+ amount: string;
111
+ }
112
+ ];
113
+ };
114
+ }
115
+ ];
116
+ fee: {
117
+ amount: [
118
+ {
119
+ denom: string;
120
+ amount: string;
121
+ }
122
+ ];
123
+ gas: string;
124
+ };
125
+ memo: string;
126
+ };
127
+ };
128
+ timestamp: string;
129
+ }
130
+ export interface Amount {
131
+ denom: string;
132
+ amount: string;
133
+ }
134
+ export interface Message {
135
+ '@type': string;
136
+ delegator_address?: string;
137
+ validator_address?: string;
138
+ from_address?: string;
139
+ to_address?: string;
140
+ amount?: Amount | Amount[];
141
+ }
142
+ export interface Body {
143
+ messages: Message[];
144
+ memo: string;
145
+ timeout_height: string;
146
+ extension_options: any[];
147
+ non_critical_extension_options: any[];
148
+ }
149
+ export interface PublicKey {
150
+ '@type': string;
151
+ key: string;
152
+ }
153
+ export interface Single {
154
+ mode: string;
155
+ }
156
+ export interface ModeInfo {
157
+ single: Single;
158
+ }
159
+ export interface SignerInfo {
160
+ public_key: PublicKey;
161
+ mode_info: ModeInfo;
162
+ sequence: string;
163
+ }
164
+ export interface Amount2 {
165
+ denom: string;
166
+ amount: string;
167
+ }
168
+ export interface Fee {
169
+ amount: Amount2[];
170
+ gas_limit: string;
171
+ payer: string;
172
+ granter: string;
173
+ }
174
+ export interface AuthInfo {
175
+ signer_infos: SignerInfo[];
176
+ fee: Fee;
177
+ }
178
+ export interface Tx {
179
+ body: Body;
180
+ auth_info: AuthInfo;
181
+ signatures: string[];
182
+ }
183
+ export interface Attribute {
184
+ key: string;
185
+ value: string;
186
+ }
187
+ export interface Event {
188
+ type: string;
189
+ attributes: Attribute[];
190
+ }
191
+ export interface Log {
192
+ msg_index: number;
193
+ log: string;
194
+ events: Event[];
195
+ }
196
+ export interface Amount3 {
197
+ denom: string;
198
+ amount: string;
199
+ }
200
+ export interface StakingMessage {
201
+ '@type': string;
202
+ delegator_address: string;
203
+ validator_address: string;
204
+ amount?: CosmosCoinJSON;
205
+ }
206
+ export interface SendMessage {
207
+ '@type': string;
208
+ from_address: string;
209
+ to_address: string;
210
+ amount: CosmosCoinJSON[];
211
+ }
212
+ export interface Body2 {
213
+ messages: any;
214
+ memo: string;
215
+ timeout_height: string;
216
+ extension_options: any[];
217
+ non_critical_extension_options: any[];
218
+ }
219
+ export interface PublicKey2 {
220
+ '@type': string;
221
+ key: string;
222
+ }
223
+ export interface Single2 {
224
+ mode: string;
225
+ }
226
+ export interface ModeInfo2 {
227
+ single: Single2;
228
+ }
229
+ export interface SignerInfo2 {
230
+ public_key: PublicKey2;
231
+ mode_info: ModeInfo2;
232
+ sequence: string;
233
+ }
234
+ export interface Amount4 {
235
+ denom: string;
236
+ amount: string;
237
+ }
238
+ export interface Fee2 {
239
+ amount: Amount4[];
240
+ gas_limit: string;
241
+ payer: string;
242
+ granter: string;
243
+ }
244
+ export interface AuthInfo2 {
245
+ signer_infos: SignerInfo2[];
246
+ fee: Fee2;
247
+ }
248
+ export interface Tx2 {
249
+ '@type': string;
250
+ body: Body2;
251
+ auth_info: AuthInfo2;
252
+ signatures: string[];
253
+ }
254
+ export interface Attribute2 {
255
+ key: string;
256
+ value: string;
257
+ index: boolean;
258
+ }
259
+ export interface Event2 {
260
+ type: string;
261
+ attributes: Attribute2[];
262
+ }
263
+ export interface TxResponse {
264
+ height: string;
265
+ txhash: string;
266
+ codespace: string;
267
+ code: number;
268
+ data: string;
269
+ raw_log: string;
270
+ logs: Log[];
271
+ info: string;
272
+ gas_wanted: string;
273
+ gas_used: string;
274
+ tx: Tx2;
275
+ timestamp: string;
276
+ events: Event2[];
277
+ }
278
+ export interface Pagination {
279
+ next_key?: any;
280
+ total: string;
281
+ }
282
+ export interface CosmosPagedSendTxsResponse {
283
+ txs: Tx[];
284
+ tx_responses: TxResponse[];
285
+ pagination: Pagination;
286
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=rpc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../../src/v1/types/rpc.ts"],"names":[],"mappings":""}