@injectivelabs/sdk-ts 1.0.320 → 1.0.321
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.
- package/dist/core/accounts/AccountParser.d.ts +4 -0
- package/dist/core/accounts/AccountParser.d.ts.map +1 -0
- package/dist/core/accounts/AccountParser.js +22 -0
- package/dist/core/accounts/AccountParser.js.map +1 -0
- package/dist/core/accounts/index.d.ts +2 -0
- package/dist/core/accounts/index.d.ts.map +1 -1
- package/dist/core/accounts/index.js +4 -0
- package/dist/core/accounts/index.js.map +1 -1
- package/dist/core/accounts/signers/OfflineAminoSigner.d.ts +19 -0
- package/dist/core/accounts/signers/OfflineAminoSigner.d.ts.map +1 -0
- package/dist/core/accounts/signers/OfflineAminoSigner.js +71 -0
- package/dist/core/accounts/signers/OfflineAminoSigner.js.map +1 -0
- package/dist/core/accounts/signers/OfflineDirectSigner.d.ts +20 -0
- package/dist/core/accounts/signers/OfflineDirectSigner.d.ts.map +1 -0
- package/dist/core/accounts/signers/OfflineDirectSigner.js +71 -0
- package/dist/core/accounts/signers/OfflineDirectSigner.js.map +1 -0
- package/dist/core/accounts/signers/index.d.ts +3 -0
- package/dist/core/accounts/signers/index.d.ts.map +1 -0
- package/dist/core/accounts/signers/index.js +8 -0
- package/dist/core/accounts/signers/index.js.map +1 -0
- package/dist/core/accounts/signers/types/amino-signer.d.ts +9 -0
- package/dist/core/accounts/signers/types/amino-signer.d.ts.map +1 -0
- package/dist/core/accounts/signers/types/amino-signer.js +3 -0
- package/dist/core/accounts/signers/types/amino-signer.js.map +1 -0
- package/dist/core/accounts/signers/types/index.d.ts +4 -0
- package/dist/core/accounts/signers/types/index.d.ts.map +1 -0
- package/dist/core/{transaction/client/types.js → accounts/signers/types/index.js} +1 -1
- package/dist/core/accounts/signers/types/index.js.map +1 -0
- package/dist/core/accounts/signers/types/proto-signer.d.ts +9 -0
- package/dist/core/accounts/signers/types/proto-signer.d.ts.map +1 -0
- package/dist/core/accounts/signers/types/proto-signer.js +3 -0
- package/dist/core/accounts/signers/types/proto-signer.js.map +1 -0
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/modules/MsgBase.d.ts +1 -1
- package/dist/core/modules/MsgBase.d.ts.map +1 -1
- package/dist/core/modules/MsgBase.js +1 -2
- package/dist/core/modules/MsgBase.js.map +1 -1
- package/dist/core/modules/exchange/index.d.ts +1 -0
- package/dist/core/modules/exchange/index.d.ts.map +1 -1
- package/dist/core/modules/exchange/index.js +15 -0
- package/dist/core/modules/exchange/index.js.map +1 -1
- package/dist/core/modules/exchange/utils/classes/OrderHashManager.d.ts +3 -0
- package/dist/core/modules/exchange/utils/classes/OrderHashManager.d.ts.map +1 -0
- package/dist/core/modules/exchange/utils/classes/OrderHashManager.js +7 -0
- package/dist/core/modules/exchange/utils/classes/OrderHashManager.js.map +1 -0
- package/dist/core/modules/exchange/utils/classes/index.d.ts +2 -0
- package/dist/core/modules/exchange/utils/classes/index.d.ts.map +1 -0
- package/dist/core/modules/exchange/utils/classes/index.js +6 -0
- package/dist/core/modules/exchange/utils/classes/index.js.map +1 -0
- package/dist/core/modules/exchange/utils/index.d.ts +2 -0
- package/dist/core/modules/exchange/utils/index.d.ts.map +1 -0
- package/dist/core/{transaction → modules/exchange}/utils/index.js +1 -1
- package/dist/core/modules/exchange/utils/index.js.map +1 -0
- package/dist/core/modules/index.d.ts +1 -0
- package/dist/core/modules/index.d.ts.map +1 -1
- package/dist/core/modules/index.js +1 -0
- package/dist/core/modules/index.js.map +1 -1
- package/dist/core/{transaction/client → modules/tx/api}/TxGrpcApi.d.ts +1 -1
- package/dist/core/modules/tx/api/TxGrpcApi.d.ts.map +1 -0
- package/dist/core/{transaction/client → modules/tx/api}/TxGrpcApi.js +10 -10
- package/dist/core/modules/tx/api/TxGrpcApi.js.map +1 -0
- package/dist/core/{transaction/client → modules/tx/api}/TxRestApi.d.ts +1 -1
- package/dist/core/modules/tx/api/TxRestApi.d.ts.map +1 -0
- package/dist/core/{transaction/client → modules/tx/api}/TxRestApi.js +5 -5
- package/dist/core/modules/tx/api/TxRestApi.js.map +1 -0
- package/dist/core/{transaction/client → modules/tx/api}/index.d.ts +2 -4
- package/dist/core/modules/tx/api/index.d.ts.map +1 -0
- package/dist/core/{transaction/client → modules/tx/api}/index.js +2 -4
- package/dist/core/modules/tx/api/index.js.map +1 -0
- package/dist/core/{transaction → modules/tx/broadcaster}/MsgBroadcasterWithPk.d.ts +4 -4
- package/dist/core/modules/tx/broadcaster/MsgBroadcasterWithPk.d.ts.map +1 -0
- package/dist/core/{transaction → modules/tx/broadcaster}/MsgBroadcasterWithPk.js +8 -8
- package/dist/core/modules/tx/broadcaster/MsgBroadcasterWithPk.js.map +1 -0
- package/dist/core/modules/tx/broadcaster/index.d.ts +2 -0
- package/dist/core/modules/tx/broadcaster/index.d.ts.map +1 -0
- package/dist/core/modules/tx/broadcaster/index.js +18 -0
- package/dist/core/modules/tx/broadcaster/index.js.map +1 -0
- package/dist/core/modules/tx/eip712/eip712.d.ts +144 -0
- package/dist/core/modules/tx/eip712/eip712.d.ts.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/eip712.js +0 -0
- package/dist/core/modules/tx/eip712/eip712.js.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/index.d.ts +0 -0
- package/dist/core/modules/tx/eip712/index.d.ts.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/index.js +0 -0
- package/dist/core/modules/tx/eip712/index.js.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/maps.d.ts +0 -0
- package/dist/core/modules/tx/eip712/maps.d.ts.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/maps.js +1 -1
- package/dist/core/modules/tx/eip712/maps.js.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/types.d.ts +0 -0
- package/dist/core/modules/tx/eip712/types.d.ts.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/types.js +0 -0
- package/dist/core/modules/tx/eip712/types.js.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/utils.d.ts +0 -0
- package/dist/core/modules/tx/eip712/utils.d.ts.map +1 -0
- package/dist/core/{eip712 → modules/tx/eip712}/utils.js +0 -0
- package/dist/core/modules/tx/eip712/utils.js.map +1 -0
- package/dist/core/modules/tx/index.d.ts +7 -0
- package/dist/core/modules/tx/index.d.ts.map +1 -0
- package/dist/core/{transaction → modules/tx}/index.js +3 -2
- package/dist/core/modules/tx/index.js.map +1 -0
- package/dist/core/{transaction → modules/tx}/tx.d.ts +63 -92
- package/dist/core/modules/tx/tx.d.ts.map +1 -0
- package/dist/core/modules/tx/tx.js +201 -0
- package/dist/core/modules/tx/tx.js.map +1 -0
- package/dist/core/{transaction → modules/tx}/types/index.d.ts +0 -0
- package/dist/core/modules/tx/types/index.d.ts.map +1 -0
- package/dist/core/{transaction → modules/tx}/types/index.js +0 -0
- package/dist/core/modules/tx/types/index.js.map +1 -0
- package/dist/core/{transaction → modules/tx}/types/tx-rest-client.d.ts +0 -0
- package/dist/core/modules/tx/types/tx-rest-client.d.ts.map +1 -0
- package/dist/core/{transaction → modules/tx}/types/tx-rest-client.js +0 -0
- package/dist/core/modules/tx/types/tx-rest-client.js.map +1 -0
- package/dist/core/modules/tx/types/tx.d.ts +101 -0
- package/dist/core/modules/tx/types/tx.d.ts.map +1 -0
- package/dist/core/{transaction → modules/tx}/types/tx.js +0 -0
- package/dist/core/modules/tx/types/tx.js.map +1 -0
- package/dist/core/{transaction/client/utils.d.ts → modules/tx/utils/api.d.ts} +1 -1
- package/dist/core/modules/tx/utils/api.d.ts.map +1 -0
- package/dist/core/{transaction/client/utils.js → modules/tx/utils/api.js} +1 -1
- package/dist/core/modules/tx/utils/api.js.map +1 -0
- package/dist/core/{transaction/client → modules/tx/utils/classes}/TxClient.d.ts +0 -0
- package/dist/core/modules/tx/utils/classes/TxClient.d.ts.map +1 -0
- package/dist/core/{transaction/client → modules/tx/utils/classes}/TxClient.js +1 -1
- package/dist/core/modules/tx/utils/classes/TxClient.js.map +1 -0
- package/dist/core/modules/tx/utils/constants.d.ts +3 -0
- package/dist/core/modules/tx/utils/constants.d.ts.map +1 -0
- package/dist/core/modules/tx/utils/constants.js +7 -0
- package/dist/core/modules/tx/utils/constants.js.map +1 -0
- package/dist/core/modules/tx/utils/helpers.d.ts +7 -0
- package/dist/core/modules/tx/utils/helpers.d.ts.map +1 -0
- package/dist/core/modules/tx/utils/helpers.js +46 -0
- package/dist/core/modules/tx/utils/helpers.js.map +1 -0
- package/dist/core/modules/tx/utils/index.d.ts +6 -0
- package/dist/core/modules/tx/utils/index.d.ts.map +1 -0
- package/dist/core/modules/tx/utils/index.js +22 -0
- package/dist/core/modules/tx/utils/index.js.map +1 -0
- package/dist/core/modules/tx/utils/tx.d.ts +64 -0
- package/dist/core/modules/tx/utils/tx.d.ts.map +1 -0
- package/dist/core/modules/tx/utils/tx.js +134 -0
- package/dist/core/modules/tx/utils/tx.js.map +1 -0
- package/dist/core/stargate/SigningStargateClient.d.ts +1 -0
- package/dist/core/stargate/SigningStargateClient.d.ts.map +1 -0
- package/dist/core/stargate/SigningStargateClient.js +32 -0
- package/dist/core/stargate/SigningStargateClient.js.map +1 -0
- package/dist/core/stargate/StargateClient.d.ts +5 -0
- package/dist/core/stargate/StargateClient.d.ts.map +1 -0
- package/dist/core/stargate/StargateClient.js +40 -0
- package/dist/core/stargate/StargateClient.js.map +1 -0
- package/dist/core/stargate/index.d.ts +2 -0
- package/dist/core/stargate/index.d.ts.map +1 -0
- package/dist/core/stargate/index.js +6 -0
- package/dist/core/stargate/index.js.map +1 -0
- package/package.json +6 -5
- package/dist/core/eip712/eip712.d.ts +0 -144
- package/dist/core/eip712/eip712.d.ts.map +0 -1
- package/dist/core/eip712/eip712.js.map +0 -1
- package/dist/core/eip712/index.d.ts.map +0 -1
- package/dist/core/eip712/index.js.map +0 -1
- package/dist/core/eip712/maps.d.ts.map +0 -1
- package/dist/core/eip712/maps.js.map +0 -1
- package/dist/core/eip712/types.d.ts.map +0 -1
- package/dist/core/eip712/types.js.map +0 -1
- package/dist/core/eip712/utils.d.ts.map +0 -1
- package/dist/core/eip712/utils.js.map +0 -1
- package/dist/core/transaction/MsgBroadcasterWithPk.d.ts.map +0 -1
- package/dist/core/transaction/MsgBroadcasterWithPk.js.map +0 -1
- package/dist/core/transaction/client/TxClient.d.ts.map +0 -1
- package/dist/core/transaction/client/TxClient.js.map +0 -1
- package/dist/core/transaction/client/TxGrpcApi.d.ts.map +0 -1
- package/dist/core/transaction/client/TxGrpcApi.js.map +0 -1
- package/dist/core/transaction/client/TxRestApi.d.ts.map +0 -1
- package/dist/core/transaction/client/TxRestApi.js.map +0 -1
- package/dist/core/transaction/client/index.d.ts.map +0 -1
- package/dist/core/transaction/client/index.js.map +0 -1
- package/dist/core/transaction/client/types.d.ts +0 -15
- package/dist/core/transaction/client/types.d.ts.map +0 -1
- package/dist/core/transaction/client/types.js.map +0 -1
- package/dist/core/transaction/client/utils.d.ts.map +0 -1
- package/dist/core/transaction/client/utils.js.map +0 -1
- package/dist/core/transaction/index.d.ts +0 -6
- package/dist/core/transaction/index.d.ts.map +0 -1
- package/dist/core/transaction/index.js.map +0 -1
- package/dist/core/transaction/tx.d.ts.map +0 -1
- package/dist/core/transaction/tx.js +0 -202
- package/dist/core/transaction/tx.js.map +0 -1
- package/dist/core/transaction/types/index.d.ts.map +0 -1
- package/dist/core/transaction/types/index.js.map +0 -1
- package/dist/core/transaction/types/tx-rest-client.d.ts.map +0 -1
- package/dist/core/transaction/types/tx-rest-client.js.map +0 -1
- package/dist/core/transaction/types/tx.d.ts +0 -43
- package/dist/core/transaction/types/tx.d.ts.map +0 -1
- package/dist/core/transaction/types/tx.js.map +0 -1
- package/dist/core/transaction/utils/helpers.d.ts +0 -84
- package/dist/core/transaction/utils/helpers.d.ts.map +0 -1
- package/dist/core/transaction/utils/helpers.js +0 -177
- package/dist/core/transaction/utils/helpers.js.map +0 -1
- package/dist/core/transaction/utils/index.d.ts +0 -2
- package/dist/core/transaction/utils/index.d.ts.map +0 -1
- package/dist/core/transaction/utils/index.js.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEthereumSignerAddress = exports.getInjectiveSignerAddress = exports.createAny = exports.createAnyMessage = void 0;
|
|
4
|
+
const any_pb_1 = require("google-protobuf/google/protobuf/any_pb");
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
|
+
const createAnyMessage = (msg) => {
|
|
7
|
+
const message = new any_pb_1.Any();
|
|
8
|
+
message.setTypeUrl(`${msg.type.startsWith('/') ? '' : '/'}${msg.type}`);
|
|
9
|
+
message.setValue(msg.value.serializeBinary());
|
|
10
|
+
return message;
|
|
11
|
+
};
|
|
12
|
+
exports.createAnyMessage = createAnyMessage;
|
|
13
|
+
const createAny = (value, type) => {
|
|
14
|
+
const message = new any_pb_1.Any();
|
|
15
|
+
message.setTypeUrl(type);
|
|
16
|
+
message.setValue(value);
|
|
17
|
+
return message;
|
|
18
|
+
};
|
|
19
|
+
exports.createAny = createAny;
|
|
20
|
+
const getInjectiveSignerAddress = (address) => {
|
|
21
|
+
if (!address) {
|
|
22
|
+
return '';
|
|
23
|
+
}
|
|
24
|
+
if (address.startsWith('inj')) {
|
|
25
|
+
return address;
|
|
26
|
+
}
|
|
27
|
+
if (address.startsWith('0x')) {
|
|
28
|
+
return (0, utils_1.getInjectiveAddress)(address);
|
|
29
|
+
}
|
|
30
|
+
return '';
|
|
31
|
+
};
|
|
32
|
+
exports.getInjectiveSignerAddress = getInjectiveSignerAddress;
|
|
33
|
+
const getEthereumSignerAddress = (address) => {
|
|
34
|
+
if (!address) {
|
|
35
|
+
return '';
|
|
36
|
+
}
|
|
37
|
+
if (address.startsWith('0x')) {
|
|
38
|
+
return address;
|
|
39
|
+
}
|
|
40
|
+
if (address.startsWith('inj')) {
|
|
41
|
+
return (0, utils_1.getEthereumAddress)(address);
|
|
42
|
+
}
|
|
43
|
+
return '';
|
|
44
|
+
};
|
|
45
|
+
exports.getEthereumSignerAddress = getEthereumSignerAddress;
|
|
46
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../src/core/modules/tx/utils/helpers.ts"],"names":[],"mappings":";;;AAAA,mEAA4D;AAC5D,6CAA2E;AAGpE,MAAM,gBAAgB,GAAG,CAAC,GAAqB,EAAE,EAAE;IACxD,MAAM,OAAO,GAAG,IAAI,YAAG,EAAE,CAAA;IACzB,OAAO,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;IACvE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,CAAA;IAE7C,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AANY,QAAA,gBAAgB,oBAM5B;AAEM,MAAM,SAAS,GAAG,CAAC,KAAU,EAAE,IAAY,EAAE,EAAE;IACpD,MAAM,OAAO,GAAG,IAAI,YAAG,EAAE,CAAA;IACzB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEvB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AANY,QAAA,SAAS,aAMrB;AAEM,MAAM,yBAAyB,GAAG,CAAC,OAA2B,EAAE,EAAE;IACvE,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,EAAE,CAAA;KACV;IAED,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QAC7B,OAAO,OAAO,CAAA;KACf;IAED,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC5B,OAAO,IAAA,2BAAmB,EAAC,OAAO,CAAC,CAAA;KACpC;IAED,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAdY,QAAA,yBAAyB,6BAcrC;AAEM,MAAM,wBAAwB,GAAG,CAAC,OAA2B,EAAE,EAAE;IACtE,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,EAAE,CAAA;KACV;IAED,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC5B,OAAO,OAAO,CAAA;KACf;IAED,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QAC7B,OAAO,IAAA,0BAAkB,EAAC,OAAO,CAAC,CAAA;KACnC;IAED,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAdY,QAAA,wBAAwB,4BAcpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/modules/tx/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,MAAM,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./classes/TxClient"), exports);
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
__exportStar(require("./helpers"), exports);
|
|
20
|
+
__exportStar(require("./constants"), exports);
|
|
21
|
+
__exportStar(require("./tx"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/modules/tx/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,wCAAqB;AACrB,4CAAyB;AACzB,8CAA2B;AAC3B,uCAAoB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { MsgArg } from '../types';
|
|
2
|
+
import { TxBody, SignDoc, SignerInfo, AuthInfo, Fee, TxRaw } from '@injectivelabs/chain-api/cosmos/tx/v1beta1/tx_pb';
|
|
3
|
+
import { SignModeMap } from '@injectivelabs/chain-api/cosmos/tx/signing/v1beta1/signing_pb';
|
|
4
|
+
import { SignDoc as CosmosSignDoc } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
|
|
5
|
+
import { ExtensionOptionsWeb3Tx } from '@injectivelabs/chain-api/injective/types/v1beta1/tx_ext_pb';
|
|
6
|
+
import { EthereumChainId } from '@injectivelabs/ts-types';
|
|
7
|
+
export declare const getPublicKey: ({ chainId, key, }: {
|
|
8
|
+
chainId: string;
|
|
9
|
+
key: string;
|
|
10
|
+
}) => import("google-protobuf/google/protobuf/any_pb").Any;
|
|
11
|
+
export declare const createBody: ({ message, memo, timeoutHeight, }: {
|
|
12
|
+
message: MsgArg | MsgArg[];
|
|
13
|
+
memo?: string | undefined;
|
|
14
|
+
timeoutHeight?: number | undefined;
|
|
15
|
+
}) => TxBody;
|
|
16
|
+
export declare const createFee: ({ fee, payer, gasLimit, }: {
|
|
17
|
+
fee: {
|
|
18
|
+
amount: string;
|
|
19
|
+
denom: string;
|
|
20
|
+
};
|
|
21
|
+
payer?: string | undefined;
|
|
22
|
+
gasLimit: number;
|
|
23
|
+
}) => Fee;
|
|
24
|
+
export declare const createSigners: ({ chainId, mode, signers, }: {
|
|
25
|
+
chainId: string;
|
|
26
|
+
signers: {
|
|
27
|
+
pubKey: string;
|
|
28
|
+
sequence: number;
|
|
29
|
+
}[];
|
|
30
|
+
mode: SignModeMap[keyof SignModeMap];
|
|
31
|
+
}) => SignerInfo[];
|
|
32
|
+
export declare const createSignerInfo: ({ chainId, publicKey, sequence, mode, }: {
|
|
33
|
+
chainId: string;
|
|
34
|
+
publicKey: string;
|
|
35
|
+
sequence: number;
|
|
36
|
+
mode: SignModeMap[keyof SignModeMap];
|
|
37
|
+
}) => SignerInfo;
|
|
38
|
+
export declare const createAuthInfo: ({ signerInfo, fee, }: {
|
|
39
|
+
signerInfo: SignerInfo[];
|
|
40
|
+
fee: Fee;
|
|
41
|
+
}) => AuthInfo;
|
|
42
|
+
export declare const createSigDoc: ({ bodyBytes, authInfoBytes, chainId, accountNumber, }: {
|
|
43
|
+
bodyBytes: Uint8Array;
|
|
44
|
+
authInfoBytes: Uint8Array;
|
|
45
|
+
chainId: string;
|
|
46
|
+
accountNumber: number;
|
|
47
|
+
}) => SignDoc;
|
|
48
|
+
export declare const createCosmosSignDocFromTransaction: (args: {
|
|
49
|
+
txRaw: TxRaw;
|
|
50
|
+
chainId: string;
|
|
51
|
+
accountNumber: number;
|
|
52
|
+
}) => CosmosSignDoc;
|
|
53
|
+
export declare const createTxRawEIP712: (txRaw: TxRaw, extension: ExtensionOptionsWeb3Tx) => TxRaw;
|
|
54
|
+
export declare const createWeb3Extension: ({ ethereumChainId, feePayer, feePayerSig, }: {
|
|
55
|
+
ethereumChainId: EthereumChainId;
|
|
56
|
+
feePayer?: string | undefined;
|
|
57
|
+
feePayerSig?: Uint8Array | undefined;
|
|
58
|
+
}) => ExtensionOptionsWeb3Tx;
|
|
59
|
+
export declare const getTransactionPartsFromTxRaw: (txRaw: TxRaw) => {
|
|
60
|
+
authInfo: AuthInfo;
|
|
61
|
+
body: TxBody;
|
|
62
|
+
signatures: Uint8Array[];
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=tx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../../../../../src/core/modules/tx/utils/tx.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EACL,MAAM,EACN,OAAO,EACP,UAAU,EACV,QAAQ,EAER,GAAG,EACH,KAAK,EACN,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,+DAA+D,CAAA;AAE3F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAA;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,eAAO,MAAM,YAAY;aAId,MAAM;SACV,MAAM;0DAmBZ,CAAA;AAED,eAAO,MAAM,UAAU;aAKZ,MAAM,GAAG,MAAM,EAAE;;;YAsB3B,CAAA;AAED,eAAO,MAAM,SAAS;SAKf;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;;cAE5B,MAAM;SAejB,CAAA;AAED,eAAO,MAAM,aAAa;aAKf,MAAM;aACN;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE;UACzC,WAAW,CAAC,MAAM,WAAW,CAAC;kBAUrC,CAAA;AAED,eAAO,MAAM,gBAAgB;aAMlB,MAAM;eACJ,MAAM;cACP,MAAM;UACV,WAAW,CAAC,MAAM,WAAW,CAAC;gBAgBrC,CAAA;AAED,eAAO,MAAM,cAAc;gBAIb,UAAU,EAAE;SACnB,GAAG;cAOT,CAAA;AAED,eAAO,MAAM,YAAY;eAMZ,UAAU;mBACN,UAAU;aAChB,MAAM;mBACA,MAAM;aAStB,CAAA;AAED,eAAO,MAAM,kCAAkC,SAAU;IACvD,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;CACtB,kBAOA,CAAA;AAED,eAAO,MAAM,iBAAiB,UACrB,KAAK,aACD,sBAAsB,UAYlC,CAAA;AAED,eAAO,MAAM,mBAAmB;qBAKb,eAAe;;;4BAgBjC,CAAA;AAED,eAAO,MAAM,4BAA4B,UAChC,KAAK;cACC,QAAQ;UAAQ,MAAM;gBAAc,UAAU,EAAE;CAS9D,CAAA"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTransactionPartsFromTxRaw = exports.createWeb3Extension = exports.createTxRawEIP712 = exports.createCosmosSignDocFromTransaction = exports.createSigDoc = exports.createAuthInfo = exports.createSignerInfo = exports.createSigners = exports.createFee = exports.createBody = exports.getPublicKey = void 0;
|
|
4
|
+
const keys_pb_1 = require("@injectivelabs/chain-api/cosmos/crypto/secp256k1/keys_pb");
|
|
5
|
+
const keys_pb_2 = require("@injectivelabs/chain-api/cosmos/crypto/secp256k1/keys_pb");
|
|
6
|
+
const helpers_1 = require("./helpers");
|
|
7
|
+
const tx_pb_1 = require("@injectivelabs/chain-api/cosmos/tx/v1beta1/tx_pb");
|
|
8
|
+
const coin_pb_1 = require("@injectivelabs/chain-api/cosmos/base/v1beta1/coin_pb");
|
|
9
|
+
const tx_1 = require("cosmjs-types/cosmos/tx/v1beta1/tx");
|
|
10
|
+
const tx_ext_pb_1 = require("@injectivelabs/chain-api/injective/types/v1beta1/tx_ext_pb");
|
|
11
|
+
const getPublicKey = ({ chainId, key, }) => {
|
|
12
|
+
let proto;
|
|
13
|
+
let path;
|
|
14
|
+
if (chainId.startsWith('injective')) {
|
|
15
|
+
proto = new keys_pb_1.PubKey();
|
|
16
|
+
path = '/injective.crypto.v1beta1.ethsecp256k1.PubKey';
|
|
17
|
+
}
|
|
18
|
+
else if (chainId.startsWith('evmos')) {
|
|
19
|
+
proto = new keys_pb_1.PubKey();
|
|
20
|
+
path = '/ethermint.crypto.v1.ethsecp256k1.PubKey';
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
proto = new keys_pb_2.PubKey();
|
|
24
|
+
path = '/cosmos.crypto.secp256k1.PubKey';
|
|
25
|
+
}
|
|
26
|
+
proto.setKey(Buffer.from(key, 'base64'));
|
|
27
|
+
return (0, helpers_1.createAny)(proto.serializeBinary(), path);
|
|
28
|
+
};
|
|
29
|
+
exports.getPublicKey = getPublicKey;
|
|
30
|
+
const createBody = ({ message, memo = '', timeoutHeight, }) => {
|
|
31
|
+
const messages = Array.isArray(message) ? message : [message];
|
|
32
|
+
const txBody = new tx_pb_1.TxBody();
|
|
33
|
+
txBody.setMessagesList(messages.map((message) => (0, helpers_1.createAnyMessage)({
|
|
34
|
+
value: message.message,
|
|
35
|
+
type: message.type,
|
|
36
|
+
})));
|
|
37
|
+
txBody.setMemo(memo);
|
|
38
|
+
if (timeoutHeight) {
|
|
39
|
+
txBody.setTimeoutHeight(timeoutHeight);
|
|
40
|
+
}
|
|
41
|
+
return txBody;
|
|
42
|
+
};
|
|
43
|
+
exports.createBody = createBody;
|
|
44
|
+
const createFee = ({ fee, payer, gasLimit, }) => {
|
|
45
|
+
const feeAmount = new coin_pb_1.Coin();
|
|
46
|
+
feeAmount.setAmount(fee.amount);
|
|
47
|
+
feeAmount.setDenom(fee.denom);
|
|
48
|
+
const feeProto = new tx_pb_1.Fee();
|
|
49
|
+
feeProto.setGasLimit(gasLimit);
|
|
50
|
+
feeProto.setAmountList([feeAmount]);
|
|
51
|
+
if (payer) {
|
|
52
|
+
feeProto.setPayer(payer);
|
|
53
|
+
}
|
|
54
|
+
return feeProto;
|
|
55
|
+
};
|
|
56
|
+
exports.createFee = createFee;
|
|
57
|
+
const createSigners = ({ chainId, mode, signers, }) => {
|
|
58
|
+
return signers.map((s) => (0, exports.createSignerInfo)({
|
|
59
|
+
mode,
|
|
60
|
+
chainId,
|
|
61
|
+
publicKey: s.pubKey,
|
|
62
|
+
sequence: s.sequence,
|
|
63
|
+
}));
|
|
64
|
+
};
|
|
65
|
+
exports.createSigners = createSigners;
|
|
66
|
+
const createSignerInfo = ({ chainId, publicKey, sequence, mode, }) => {
|
|
67
|
+
const pubKey = (0, exports.getPublicKey)({ chainId, key: publicKey });
|
|
68
|
+
const single = new tx_pb_1.ModeInfo.Single();
|
|
69
|
+
single.setMode(mode);
|
|
70
|
+
const modeInfo = new tx_pb_1.ModeInfo();
|
|
71
|
+
modeInfo.setSingle(single);
|
|
72
|
+
const signerInfo = new tx_pb_1.SignerInfo();
|
|
73
|
+
signerInfo.setPublicKey(pubKey);
|
|
74
|
+
signerInfo.setSequence(sequence);
|
|
75
|
+
signerInfo.setModeInfo(modeInfo);
|
|
76
|
+
return signerInfo;
|
|
77
|
+
};
|
|
78
|
+
exports.createSignerInfo = createSignerInfo;
|
|
79
|
+
const createAuthInfo = ({ signerInfo, fee, }) => {
|
|
80
|
+
const authInfo = new tx_pb_1.AuthInfo();
|
|
81
|
+
authInfo.setSignerInfosList(signerInfo);
|
|
82
|
+
authInfo.setFee(fee);
|
|
83
|
+
return authInfo;
|
|
84
|
+
};
|
|
85
|
+
exports.createAuthInfo = createAuthInfo;
|
|
86
|
+
const createSigDoc = ({ bodyBytes, authInfoBytes, chainId, accountNumber, }) => {
|
|
87
|
+
const signDoc = new tx_pb_1.SignDoc();
|
|
88
|
+
signDoc.setAccountNumber(accountNumber);
|
|
89
|
+
signDoc.setChainId(chainId);
|
|
90
|
+
signDoc.setBodyBytes(bodyBytes);
|
|
91
|
+
signDoc.setAuthInfoBytes(authInfoBytes);
|
|
92
|
+
return signDoc;
|
|
93
|
+
};
|
|
94
|
+
exports.createSigDoc = createSigDoc;
|
|
95
|
+
const createCosmosSignDocFromTransaction = (args) => {
|
|
96
|
+
return tx_1.SignDoc.fromPartial({
|
|
97
|
+
bodyBytes: args.txRaw.getBodyBytes_asU8(),
|
|
98
|
+
authInfoBytes: args.txRaw.getAuthInfoBytes_asU8(),
|
|
99
|
+
accountNumber: args.accountNumber,
|
|
100
|
+
chainId: args.chainId,
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
exports.createCosmosSignDocFromTransaction = createCosmosSignDocFromTransaction;
|
|
104
|
+
const createTxRawEIP712 = (txRaw, extension) => {
|
|
105
|
+
const body = tx_pb_1.TxBody.deserializeBinary(txRaw.getBodyBytes_asU8());
|
|
106
|
+
const extensionAny = (0, helpers_1.createAny)(extension.serializeBinary(), '/injective.types.v1beta1.ExtensionOptionsWeb3Tx');
|
|
107
|
+
body.addExtensionOptions(extensionAny);
|
|
108
|
+
txRaw.setBodyBytes(body.serializeBinary());
|
|
109
|
+
return txRaw;
|
|
110
|
+
};
|
|
111
|
+
exports.createTxRawEIP712 = createTxRawEIP712;
|
|
112
|
+
const createWeb3Extension = ({ ethereumChainId, feePayer, feePayerSig, }) => {
|
|
113
|
+
const web3Extension = new tx_ext_pb_1.ExtensionOptionsWeb3Tx();
|
|
114
|
+
web3Extension.setTypeddatachainid(ethereumChainId);
|
|
115
|
+
if (feePayer) {
|
|
116
|
+
web3Extension.setFeepayer(feePayer);
|
|
117
|
+
}
|
|
118
|
+
if (feePayerSig) {
|
|
119
|
+
web3Extension.setFeepayersig(feePayerSig);
|
|
120
|
+
}
|
|
121
|
+
return web3Extension;
|
|
122
|
+
};
|
|
123
|
+
exports.createWeb3Extension = createWeb3Extension;
|
|
124
|
+
const getTransactionPartsFromTxRaw = (txRaw) => {
|
|
125
|
+
const authInfo = tx_pb_1.AuthInfo.deserializeBinary(txRaw.getAuthInfoBytes_asU8());
|
|
126
|
+
const body = tx_pb_1.TxBody.deserializeBinary(txRaw.getBodyBytes_asU8());
|
|
127
|
+
return {
|
|
128
|
+
body,
|
|
129
|
+
authInfo,
|
|
130
|
+
signatures: txRaw.getSignaturesList_asU8(),
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
exports.getTransactionPartsFromTxRaw = getTransactionPartsFromTxRaw;
|
|
134
|
+
//# sourceMappingURL=tx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tx.js","sourceRoot":"","sources":["../../../../../src/core/modules/tx/utils/tx.ts"],"names":[],"mappings":";;;AAAA,sFAAiF;AACjF,sFAAiG;AACjG,uCAAuD;AAEvD,4EAQyD;AAEzD,kFAA2E;AAC3E,0DAA4E;AAC5E,0FAAmG;AAG5F,MAAM,YAAY,GAAG,CAAC,EAC3B,OAAO,EACP,GAAG,GAIJ,EAAE,EAAE;IACH,IAAI,KAAK,CAAA;IACT,IAAI,IAAI,CAAA;IAER,IAAI,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;QACnC,KAAK,GAAG,IAAI,gBAAM,EAAE,CAAA;QACpB,IAAI,GAAG,+CAA+C,CAAA;KACvD;SAAM,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QACtC,KAAK,GAAG,IAAI,gBAAM,EAAE,CAAA;QACpB,IAAI,GAAG,0CAA0C,CAAA;KAClD;SAAM;QACL,KAAK,GAAG,IAAI,gBAAY,EAAE,CAAA;QAC1B,IAAI,GAAG,iCAAiC,CAAA;KACzC;IAED,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;IAExC,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,CAAA;AACjD,CAAC,CAAA;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A;IAE1C,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAdY,QAAA,iBAAiB,qBAc7B;AAEM,MAAM,mBAAmB,GAAG,CAAC,EAClC,eAAe,EACf,QAAQ,EACR,WAAW,GAKZ,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,IAAI,kCAAsB,EAAE,CAAA;IAClD,aAAa,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAA;IAElD,IAAI,QAAQ,EAAE;QACZ,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;KACpC;IAED,IAAI,WAAW,EAAE;QACf,aAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;KAC1C;IAED,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AArBY,QAAA,mBAAmB,uBAqB/B;AAEM,MAAM,4BAA4B,GAAG,CAC1C,KAAY,EACoD,EAAE;IAClE,MAAM,QAAQ,GAAG,gBAAQ,CAAC,iBAAiB,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAA;IAC1E,MAAM,IAAI,GAAG,cAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAA;IAEhE,OAAO;QACL,IAAI;QACJ,QAAQ;QACR,UAAU,EAAE,KAAK,CAAC,sBAAsB,EAAE;KAC3C,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,4BAA4B,gCAWxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=SigningStargateClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SigningStargateClient.d.ts","sourceRoot":"","sources":["../../../src/core/stargate/SigningStargateClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
import {
|
|
4
|
+
HttpEndpoint,
|
|
5
|
+
SigningStargateClient as CosmjsSigningStargateClient,
|
|
6
|
+
SigningStargateClientOptions,
|
|
7
|
+
} from '@cosmjs/stargate'
|
|
8
|
+
import { Tendermint34Client } from '@cosmjs/tendermint-rpc'
|
|
9
|
+
import { InjectiveOfflineSigner } from '../accounts/signers/types'
|
|
10
|
+
|
|
11
|
+
export class SigningStargateClient extends CosmjsSigningStargateClient {
|
|
12
|
+
private readonly offlineSigner: InjectiveOfflineSigner
|
|
13
|
+
|
|
14
|
+
public static async connectWithSigner(
|
|
15
|
+
endpoint: string | HttpEndpoint,
|
|
16
|
+
signer: InjectiveOfflineSigner,
|
|
17
|
+
options: SigningStargateClientOptions = {},
|
|
18
|
+
): Promise<SigningStargateClient> {
|
|
19
|
+
const tmClient = await Tendermint34Client.connect(endpoint)
|
|
20
|
+
|
|
21
|
+
return new SigningStargateClient(tmClient, signer, options)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public static async offline(
|
|
25
|
+
signer: InjectiveOfflineSigner,
|
|
26
|
+
options: SigningStargateClientOptions = {},
|
|
27
|
+
): Promise<SigningStargateClient> {
|
|
28
|
+
return new SigningStargateClient(undefined, signer, options)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
*/
|
|
32
|
+
//# sourceMappingURL=SigningStargateClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SigningStargateClient.js","sourceRoot":"","sources":["../../../src/core/stargate/SigningStargateClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StargateClient.d.ts","sourceRoot":"","sources":["../../../src/core/stargate/StargateClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,IAAI,oBAAoB,EAEvC,MAAM,kBAAkB,CAAA;AAGzB,qBAAa,cAAe,SAAQ,oBAAoB;IACzC,UAAU,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;CAwBxE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StargateClient = void 0;
|
|
13
|
+
const stargate_1 = require("@cosmjs/stargate");
|
|
14
|
+
const accounts_1 = require("../accounts");
|
|
15
|
+
class StargateClient extends stargate_1.StargateClient {
|
|
16
|
+
getAccount(searchAddress) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
try {
|
|
19
|
+
const chainId = yield this.getChainId();
|
|
20
|
+
const isInjective = chainId.startsWith('injective');
|
|
21
|
+
const account = yield this.forceGetQueryClient().auth.account(searchAddress);
|
|
22
|
+
if (!account) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
if (isInjective) {
|
|
26
|
+
return (0, accounts_1.injectiveAccountParser)(account);
|
|
27
|
+
}
|
|
28
|
+
return (0, stargate_1.accountFromAny)(account);
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
if (/rpc error: code = NotFound/i.test(error.toString())) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.StargateClient = StargateClient;
|
|
40
|
+
//# sourceMappingURL=StargateClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StargateClient.js","sourceRoot":"","sources":["../../../src/core/stargate/StargateClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAIyB;AACzB,0CAAoD;AAEpD,MAAa,cAAe,SAAQ,yBAAoB;IACzC,UAAU,CAAC,aAAqB;;YAC3C,IAAI;gBACF,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAA;gBACvC,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;gBACnD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,OAAO,CAC3D,aAAa,CACd,CAAA;gBAED,IAAI,CAAC,OAAO,EAAE;oBACZ,OAAO,IAAI,CAAA;iBACZ;gBAED,IAAI,WAAW,EAAE;oBACf,OAAO,IAAA,iCAAsB,EAAC,OAAO,CAAC,CAAA;iBACvC;gBAED,OAAO,IAAA,yBAAc,EAAC,OAAO,CAAC,CAAA;aAC/B;YAAC,OAAO,KAAU,EAAE;gBACnB,IAAI,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE;oBACxD,OAAO,IAAI,CAAA;iBACZ;gBACD,MAAM,KAAK,CAAA;aACZ;QACH,CAAC;KAAA;CACF;AAzBD,wCAyBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/stargate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InjectiveStargateClient = void 0;
|
|
4
|
+
var StargateClient_1 = require("./StargateClient");
|
|
5
|
+
Object.defineProperty(exports, "InjectiveStargateClient", { enumerable: true, get: function () { return StargateClient_1.StargateClient; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/stargate/index.ts"],"names":[],"mappings":";;;AAAA,mDAA4E;AAAnE,yHAAA,cAAc,OAA2B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/sdk-ts",
|
|
3
3
|
"description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.321",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bojan Angjelkoski",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@apollo/client": "^3.5.8",
|
|
35
35
|
"@cosmjs/amino": "^0.29.0",
|
|
36
36
|
"@cosmjs/proto-signing": "^0.29.0",
|
|
37
|
+
"@cosmjs/stargate": "^0.29.5",
|
|
37
38
|
"@cosmjs/tendermint-rpc": "^0.29.0",
|
|
38
39
|
"@ethersproject/bytes": "^5.7.0",
|
|
39
40
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
@@ -42,11 +43,11 @@
|
|
|
42
43
|
"@injectivelabs/chain-api": "1.8.3",
|
|
43
44
|
"@injectivelabs/exceptions": "^1.0.32",
|
|
44
45
|
"@injectivelabs/indexer-api": "1.0.32-rc",
|
|
45
|
-
"@injectivelabs/networks": "^1.0.
|
|
46
|
+
"@injectivelabs/networks": "^1.0.54",
|
|
46
47
|
"@injectivelabs/ninja-api": "^1.0.11",
|
|
47
|
-
"@injectivelabs/token-metadata": "^1.0.
|
|
48
|
+
"@injectivelabs/token-metadata": "^1.0.90",
|
|
48
49
|
"@injectivelabs/ts-types": "^1.0.18",
|
|
49
|
-
"@injectivelabs/utils": "^1.0.
|
|
50
|
+
"@injectivelabs/utils": "^1.0.47",
|
|
50
51
|
"@metamask/eth-sig-util": "^4.0.1",
|
|
51
52
|
"@types/google-protobuf": "^3.15.5",
|
|
52
53
|
"axios": "^0.27.2",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"shx": "^0.3.2",
|
|
68
69
|
"snakecase-keys": "^5.4.1"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "0ca64634da59b35c1ebb6ed7b4625066329837d6",
|
|
71
72
|
"typedoc": {
|
|
72
73
|
"entryPoint": "./src/index.ts",
|
|
73
74
|
"readmeFile": "./README.md",
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { EthereumChainId } from '@injectivelabs/ts-types';
|
|
2
|
-
import { Msgs } from '../modules/msgs';
|
|
3
|
-
import { Eip712ConvertFeeArgs, Eip712ConvertTxArgs } from './types';
|
|
4
|
-
export declare const getEip712TypedData: ({ msgs, tx, fee, ethereumChainId, }: {
|
|
5
|
-
msgs: Msgs | Msgs[];
|
|
6
|
-
tx: Eip712ConvertTxArgs;
|
|
7
|
-
fee?: Eip712ConvertFeeArgs | undefined;
|
|
8
|
-
ethereumChainId: EthereumChainId;
|
|
9
|
-
}) => {
|
|
10
|
-
message: {
|
|
11
|
-
msgs: ({
|
|
12
|
-
type: string;
|
|
13
|
-
value: Omit<import("../modules/auction/msgs/MsgBid").MsgBid.Amino, "type">;
|
|
14
|
-
} | {
|
|
15
|
-
type: string;
|
|
16
|
-
value: Omit<import("../modules/authz/msgs/MsgGrant").MsgGrant.Amino, "type">;
|
|
17
|
-
} | {
|
|
18
|
-
type: string;
|
|
19
|
-
value: Omit<import("../modules/authz/msgs/MsgRevoke").MsgRevoke.Amino, "type">;
|
|
20
|
-
} | {
|
|
21
|
-
type: string;
|
|
22
|
-
value: Omit<import("../modules/authz/msgs/MsgExec").MsgExec.Amino, "type">;
|
|
23
|
-
} | {
|
|
24
|
-
type: string;
|
|
25
|
-
value: Omit<import("../modules/bank/msgs/MsgSend").MsgSend.Amino, "type">;
|
|
26
|
-
} | {
|
|
27
|
-
type: string;
|
|
28
|
-
value: Omit<import("../modules/exchange/msgs/MsgBatchUpdateOrders").MsgBatchUpdateOrders.Amino, "type">;
|
|
29
|
-
} | {
|
|
30
|
-
type: string;
|
|
31
|
-
value: Omit<import("../modules/exchange/msgs/MsgBatchCancelDerivativeOrders").MsgBatchCancelDerivativeOrders.Amino, "type">;
|
|
32
|
-
} | {
|
|
33
|
-
type: string;
|
|
34
|
-
value: Omit<import("../modules/exchange/msgs/MsgCancelSpotOrder").MsgCancelSpotOrder.Amino, "type">;
|
|
35
|
-
} | {
|
|
36
|
-
type: string;
|
|
37
|
-
value: Omit<import("../modules/exchange/msgs/MsgCreateSpotLimitOrder").MsgCreateSpotLimitOrder.Amino, "type">;
|
|
38
|
-
} | {
|
|
39
|
-
type: string;
|
|
40
|
-
value: Omit<import("../modules/exchange/msgs/MsgDeposit").MsgDeposit.Amino, "type">;
|
|
41
|
-
} | {
|
|
42
|
-
type: string;
|
|
43
|
-
value: Omit<import("../modules/exchange/msgs/MsgIncreasePositionMargin").MsgIncreasePositionMargin.Amino, "type">;
|
|
44
|
-
} | {
|
|
45
|
-
type: string;
|
|
46
|
-
value: Omit<import("../modules/exchange/msgs/MsgInstantSpotMarketLaunch").MsgInstantSpotMarketLaunch.Amino, "type">;
|
|
47
|
-
} | {
|
|
48
|
-
type: string;
|
|
49
|
-
value: Omit<import("../modules/gov/msgs/MsgDeposit").MsgDeposit.Amino, "type">;
|
|
50
|
-
} | {
|
|
51
|
-
type: string;
|
|
52
|
-
value: Omit<import("../modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch").MsgSubmitProposalExpiryFuturesMarketLaunch.Amino, "type">;
|
|
53
|
-
} | {
|
|
54
|
-
type: string;
|
|
55
|
-
value: Omit<import("../modules/gov/msgs/MsgVote").MsgVote.Amino, "type">;
|
|
56
|
-
} | {
|
|
57
|
-
type: string;
|
|
58
|
-
value: Omit<import("../modules/ibc/msgs/MsgTransfer").MsgTransfer.Amino, "type">;
|
|
59
|
-
} | {
|
|
60
|
-
type: string;
|
|
61
|
-
value: Omit<import("../modules/insurance/msgs/MsgCreateInsuranceFund").MsgCreateInsuranceFund.Amino, "type">;
|
|
62
|
-
} | {
|
|
63
|
-
type: string;
|
|
64
|
-
value: Omit<import("../modules/insurance/msgs/MsgRequestRedemption").MsgRequestRedemption.Amino, "type">;
|
|
65
|
-
} | {
|
|
66
|
-
type: string;
|
|
67
|
-
value: Omit<import("../modules/insurance/msgs/MsgUnderwrite").MsgUnderwrite.Amino, "type">;
|
|
68
|
-
} | {
|
|
69
|
-
type: string;
|
|
70
|
-
value: Omit<import("../modules/peggy/msgs/MsgSendToEth").MsgSendToEth.Amino, "type">;
|
|
71
|
-
} | {
|
|
72
|
-
type: string;
|
|
73
|
-
value: Omit<import("../modules/staking/msgs/MsgBeginRedelegate").MsgBeginRedelegate.Amino, "type">;
|
|
74
|
-
} | {
|
|
75
|
-
type: string;
|
|
76
|
-
value: Omit<import("../modules/wasm/msgs/MsgExecuteContract").MsgExecuteContract.Amino, "type">;
|
|
77
|
-
} | {
|
|
78
|
-
type: string;
|
|
79
|
-
value: Omit<import("../modules/wasm/msgs/MsgPrivilegedExecuteContract").MsgPrivilegedExecuteContract.Amino, "type">;
|
|
80
|
-
} | {
|
|
81
|
-
type: string;
|
|
82
|
-
value: Omit<import("../modules/wasm/msgs/MsgInstantiateContract").MsgInstantiateContract.Amino, "type">;
|
|
83
|
-
} | {
|
|
84
|
-
type: string;
|
|
85
|
-
value: Omit<import("../modules/exchange/msgs/MsgTransferAndExecute").MsgTransferAndExecute.Amino, "type">;
|
|
86
|
-
} | {
|
|
87
|
-
type: string;
|
|
88
|
-
value: Omit<import("../modules/exchange/msgs/MsgMultiExecute").MsgMultiExecute.Amino, "type">;
|
|
89
|
-
} | {
|
|
90
|
-
type: string;
|
|
91
|
-
value: Omit<import("../modules/distribution/msgs/MsgWithdrawValidatorCommission").MsgWithdrawValidatorCommission.Amino, "type">;
|
|
92
|
-
} | {
|
|
93
|
-
type: string;
|
|
94
|
-
value: Omit<import("../modules/exchange/msgs/MsgReclaimLockedFunds").MsgReclaimLockedFunds.Amino, "type">;
|
|
95
|
-
} | {
|
|
96
|
-
type: string;
|
|
97
|
-
value: Omit<import("../modules/exchange/msgs/MsgExternalTransfer").MsgExternalTransfer.Amino, "type">;
|
|
98
|
-
})[];
|
|
99
|
-
fee: {
|
|
100
|
-
amount: {
|
|
101
|
-
amount: string;
|
|
102
|
-
denom: string;
|
|
103
|
-
}[];
|
|
104
|
-
gas: string;
|
|
105
|
-
feePayer?: string | undefined;
|
|
106
|
-
};
|
|
107
|
-
account_number: string;
|
|
108
|
-
chain_id: string;
|
|
109
|
-
sequence: string;
|
|
110
|
-
timeout_height: string;
|
|
111
|
-
memo: string;
|
|
112
|
-
};
|
|
113
|
-
domain: {
|
|
114
|
-
name: string;
|
|
115
|
-
version: string;
|
|
116
|
-
chainId: string;
|
|
117
|
-
salt: string;
|
|
118
|
-
verifyingContract: string;
|
|
119
|
-
};
|
|
120
|
-
types: {
|
|
121
|
-
EIP712Domain: {
|
|
122
|
-
name: string;
|
|
123
|
-
type: string;
|
|
124
|
-
}[];
|
|
125
|
-
Tx: {
|
|
126
|
-
name: string;
|
|
127
|
-
type: string;
|
|
128
|
-
}[];
|
|
129
|
-
Fee: {
|
|
130
|
-
name: string;
|
|
131
|
-
type: string;
|
|
132
|
-
}[];
|
|
133
|
-
Coin: {
|
|
134
|
-
name: string;
|
|
135
|
-
type: string;
|
|
136
|
-
}[];
|
|
137
|
-
Msg: {
|
|
138
|
-
name: string;
|
|
139
|
-
type: string;
|
|
140
|
-
}[];
|
|
141
|
-
};
|
|
142
|
-
primaryType: string;
|
|
143
|
-
};
|
|
144
|
-
//# sourceMappingURL=eip712.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712.d.ts","sourceRoot":"","sources":["../../../src/core/e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H,KAAK,EAAE,qBAAqB;KAC7B,CAAC,CAAA;IAEF,mDACE,WAAW,EAAE,IAAI,IACd,iBAAiB,GACjB,IAAA,uBAAe,EAAC,eAAe,CAAC,KACnC,OAAO,gDACF,IAAA,uBAAe,EAAC,EAAE,CAAC,GACnB,IAAA,oBAAY,EAAC,GAAG,CAAC,KACpB,IAAI,EAAE,UAAU,OAEnB;AACH,CAAC,CAAA;AArCY,QAAA,kBAAkB,sBAqC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/eip712/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/eip712/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,yCAAsB;AACtB,0CAAuB;AACvB,2CAAwB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maps.d.ts","sourceRoot":"","sources":["../../../src/core/eip712/maps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIxC;;;GAGG;AACH,eAAO,MAAM,uBAAuB;YAK1B,OAAO,MAAM,EAAE,GAAG,CAAC;;;mCA2G5B,CAAA;AACD;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,cAAe,MAAM,iCAqBjE,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,kEAEpB,MAAM,MA4FxB,CAAA;AAED,eAAO,MAAM,2BAA2B;cAK5B,MAAM;oBACA,MAAM;;YAQvB,CAAA;AAwCD;;GAEG;AACH,eAAO,MAAM,oBAAoB,SAAU,MAAM,KAAG,MAkPnD,CAAA"}
|