@initia/initia.js 0.0.35 → 0.0.36
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/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.node.js +1 -1
- package/dist/bundle.node.js.map +1 -1
- package/dist/core/intertx/msgs/MsgSubmitTx.d.ts +4 -3
- package/dist/core/intertx/msgs/MsgSubmitTx.js +5 -4
- package/dist/core/intertx/msgs/MsgSubmitTx.js.map +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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:
|
|
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:
|
|
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;
|
|
1
|
+
{"version":3,"file":"MsgSubmitTx.js","sourceRoot":"","sources":["../../../../src/core/intertx/msgs/MsgSubmitTx.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,sDAAgF;AAChF,iCAAgC;AAEhC;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,CAAC,CAAC;IACzC,CAAC;IAEa,oBAAQ,GAAtB,UAAuB,IAAsB;QACnC,IAAA,KAAK,GAAyB,IAAI,MAA7B,EAAE,aAAa,GAAU,IAAI,cAAd,EAAE,GAAG,GAAK,IAAI,IAAT,CAAU;QAC3C,OAAO,IAAI,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,SAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,CAAC;IAEM,4BAAM,GAAb;QACQ,IAAA,KAAgC,IAAI,EAAlC,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,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