@initia/initia.js 0.0.35 → 0.0.37

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.
@@ -2,16 +2,17 @@ import { JSONSerializable } from '../../../util/json';
2
2
  import { AccAddress } from '../../bech32';
3
3
  import { Any } from '@initia/initia.proto/google/protobuf/any';
4
4
  import { MsgSubmitTx as MsgSubmitTx_pb } from '@initia/initia.proto/intertx/tx';
5
+ import { Msg } from '../../Msg';
5
6
  export declare class MsgSubmitTx extends JSONSerializable<any, MsgSubmitTx.Data, MsgSubmitTx.Proto> {
6
7
  owner: AccAddress;
7
8
  connection_id: string;
8
- msg: any;
9
+ msg: Msg;
9
10
  /**
10
11
  * @param owner
11
12
  * @param connection_id
12
13
  * @param msg
13
14
  */
14
- constructor(owner: AccAddress, connection_id: string, msg: any);
15
+ constructor(owner: AccAddress, connection_id: string, msg: Msg);
15
16
  static fromAmino(_: any): any;
16
17
  toAmino(): any;
17
18
  static fromData(data: MsgSubmitTx.Data): MsgSubmitTx;
@@ -26,7 +27,7 @@ export declare namespace MsgSubmitTx {
26
27
  '@type': '/intertx.MsgSubmitTx';
27
28
  owner: AccAddress;
28
29
  connection_id: string;
29
- msg: Any;
30
+ msg: Msg.Data;
30
31
  }
31
32
  type Proto = MsgSubmitTx_pb;
32
33
  }
@@ -19,6 +19,7 @@ exports.MsgSubmitTx = void 0;
19
19
  var json_1 = require("../../../util/json");
20
20
  var any_1 = require("@initia/initia.proto/google/protobuf/any");
21
21
  var tx_1 = require("@initia/initia.proto/intertx/tx");
22
+ var Msg_1 = require("../../Msg");
22
23
  var MsgSubmitTx = /** @class */ (function (_super) {
23
24
  __extends(MsgSubmitTx, _super);
24
25
  /**
@@ -41,7 +42,7 @@ var MsgSubmitTx = /** @class */ (function (_super) {
41
42
  };
42
43
  MsgSubmitTx.fromData = function (data) {
43
44
  var owner = data.owner, connection_id = data.connection_id, msg = data.msg;
44
- return new MsgSubmitTx(owner, connection_id, msg);
45
+ return new MsgSubmitTx(owner, connection_id, Msg_1.Msg.fromData(msg));
45
46
  };
46
47
  MsgSubmitTx.prototype.toData = function () {
47
48
  var _a = this, owner = _a.owner, connection_id = _a.connection_id, msg = _a.msg;
@@ -49,18 +50,18 @@ var MsgSubmitTx = /** @class */ (function (_super) {
49
50
  '@type': '/intertx.MsgSubmitTx',
50
51
  owner: owner,
51
52
  connection_id: connection_id,
52
- msg: msg,
53
+ msg: msg.toData(),
53
54
  };
54
55
  };
55
56
  MsgSubmitTx.fromProto = function (proto) {
56
- return new MsgSubmitTx(proto.owner, proto.connectionId, proto.msg);
57
+ return new MsgSubmitTx(proto.owner, proto.connectionId, Msg_1.Msg.fromProto(proto.msg));
57
58
  };
58
59
  MsgSubmitTx.prototype.toProto = function () {
59
60
  var _a = this, owner = _a.owner, connection_id = _a.connection_id, msg = _a.msg;
60
61
  return tx_1.MsgSubmitTx.fromPartial({
61
62
  owner: owner,
62
63
  connectionId: connection_id,
63
- msg: msg,
64
+ msg: msg.packAny(),
64
65
  });
65
66
  };
66
67
  MsgSubmitTx.prototype.packAny = function () {
@@ -1 +1 @@
1
- {"version":3,"file":"MsgSubmitTx.js","sourceRoot":"","sources":["../../../../src/core/intertx/msgs/MsgSubmitTx.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,sDAAgF;AAEhF;IAAiC,+BAIhC;IACC;;;;OAIG;IACH,qBACS,KAAiB,EACjB,aAAqB,EACrB,GAAQ;QAHjB,YAKE,iBAAO,SACR;QALQ,WAAK,GAAL,KAAK,CAAY;QACjB,mBAAa,GAAb,aAAa,CAAQ;QACrB,SAAG,GAAH,GAAG,CAAK;;IAGjB,CAAC;IAEa,qBAAS,GAAvB,UAAwB,CAAM;QAC5B,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAEM,6BAAO,GAAd;QACE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAA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AAG,CAAC,SAAS,CAAC,KAAK,CAAC,GAAU,CAAC,CAChC,CAAC;IACJ,CAAC;IAEM,6BAAO,GAAd;QACQ,IAAA,KAAgC,IAAI,EAAlC,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,GAAG,SAAS,CAAC;QAC3C,OAAO,gBAAc,CAAC,WAAW,CAAC;YAChC,KAAK,OAAA;YACL,YAAY,EAAE,aAAa;YAC3B,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE;SACnB,CAAC,CAAC;IACL,CAAC;IAEM,6BAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,sBAAsB;YAC/B,KAAK,EAAE,gBAAc,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;IAEa,qBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,WAAW,CAAC,SAAS,CAAC,gBAAc,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IACH,kBAAC;AAAD,CAAC,AApED,CAAiC,uBAAgB,GAoEhD;AApEY,kCAAW"}
@@ -1,3 +1,2 @@
1
1
  export * from './hash';
2
- export * from './contract';
3
2
  export * from './bcs';
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./hash"), exports);
18
- __exportStar(require("./contract"), exports);
19
18
  __exportStar(require("./bcs"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B;AAC3B,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@initia/initia.js",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "The JavaScript SDK for Initia",
5
5
  "license": "MIT",
6
6
  "author": "InitiaLabs",
@@ -57,7 +57,6 @@
57
57
  "@types/bn.js": "^5.1.1",
58
58
  "@types/jest": "^29.0.3",
59
59
  "@types/node": "^18.7.18",
60
- "@types/readable-stream": "^2.3.14",
61
60
  "@types/ripemd160": "^2.0.0",
62
61
  "@types/secp256k1": "^4.0.3",
63
62
  "@types/tmp": "^0.2.3",
@@ -85,24 +84,20 @@
85
84
  },
86
85
  "dependencies": {
87
86
  "@initia/initia.proto": "^0.0.17-alpha1",
88
- "@ledgerhq/hw-transport": "^6.20.0",
89
- "@ledgerhq/hw-transport-node-hid": "^6.20.0",
90
- "@ledgerhq/hw-transport-webhid": "^6.20.0",
91
- "@ledgerhq/hw-transport-webusb": "^6.20.0",
87
+ "@ledgerhq/hw-transport": "^6.27.12",
88
+ "@ledgerhq/hw-transport-webhid": "^6.27.12",
89
+ "@ledgerhq/hw-transport-webusb": "^6.27.12",
92
90
  "@mysten/bcs": "^0.5.0",
93
91
  "axios": "^0.27.2",
94
92
  "bech32": "^2.0.0",
95
93
  "bignumber.js": "^9.1.0",
96
94
  "bip32": "^2.0.6",
97
95
  "bip39": "^3.0.4",
98
- "bufferutil": "^4.0.6",
99
96
  "jscrypto": "^1.0.3",
100
97
  "long": "^5.2.0",
101
- "readable-stream": "^4.1.0",
102
98
  "ripemd160": "^2.0.2",
103
99
  "secp256k1": "^4.0.3",
104
100
  "tmp": "^0.2.1",
105
- "utf-8-validate": "^5.0.9",
106
101
  "ws": "^7.5.9"
107
102
  }
108
103
  }