@initia/initia.js 0.0.47 → 0.0.48

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 (47) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.node.js +1 -1
  4. package/dist/bundle.node.js.map +1 -1
  5. package/dist/client/lcd/LCDClient.d.ts +2 -1
  6. package/dist/client/lcd/LCDClient.js +1 -0
  7. package/dist/client/lcd/LCDClient.js.map +1 -1
  8. package/dist/client/lcd/api/IbcNftAPI.d.ts +27 -0
  9. package/dist/client/lcd/api/IbcNftAPI.js +129 -0
  10. package/dist/client/lcd/api/IbcNftAPI.js.map +1 -0
  11. package/dist/client/lcd/api/IbcTransferAPI.d.ts +1 -1
  12. package/dist/client/lcd/api/IbcTransferAPI.js +4 -3
  13. package/dist/client/lcd/api/IbcTransferAPI.js.map +1 -1
  14. package/dist/client/lcd/api/index.d.ts +1 -0
  15. package/dist/client/lcd/api/index.js +1 -0
  16. package/dist/client/lcd/api/index.js.map +1 -1
  17. package/dist/core/Msg.d.ts +5 -4
  18. package/dist/core/Msg.js +10 -0
  19. package/dist/core/Msg.js.map +1 -1
  20. package/dist/core/authz/authorizations/Authorization.d.ts +4 -2
  21. package/dist/core/authz/authorizations/Authorization.js +10 -0
  22. package/dist/core/authz/authorizations/Authorization.js.map +1 -1
  23. package/dist/core/authz/authorizations/ExecuteAuthorization.d.ts +43 -0
  24. package/dist/core/authz/authorizations/ExecuteAuthorization.js +107 -0
  25. package/dist/core/authz/authorizations/ExecuteAuthorization.js.map +1 -0
  26. package/dist/core/authz/authorizations/PublishAuthorization.d.ts +22 -0
  27. package/dist/core/authz/authorizations/PublishAuthorization.js +65 -0
  28. package/dist/core/authz/authorizations/PublishAuthorization.js.map +1 -0
  29. package/dist/core/authz/authorizations/index.d.ts +2 -0
  30. package/dist/core/authz/authorizations/index.js +2 -0
  31. package/dist/core/authz/authorizations/index.js.map +1 -1
  32. package/dist/core/ibc/applications/nft-transfer/ClassTrace.d.ts +28 -0
  33. package/dist/core/ibc/applications/nft-transfer/ClassTrace.js +67 -0
  34. package/dist/core/ibc/applications/nft-transfer/ClassTrace.js.map +1 -0
  35. package/dist/core/ibc/applications/nft-transfer/NonFungibleTokenPacketData.d.ts +61 -0
  36. package/dist/core/ibc/applications/nft-transfer/NonFungibleTokenPacketData.js +108 -0
  37. package/dist/core/ibc/applications/nft-transfer/NonFungibleTokenPacketData.js.map +1 -0
  38. package/dist/core/ibc/applications/nft-transfer/index.d.ts +10 -0
  39. package/dist/core/ibc/applications/nft-transfer/index.js +20 -0
  40. package/dist/core/ibc/applications/nft-transfer/index.js.map +1 -0
  41. package/dist/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.d.ts +68 -0
  42. package/dist/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.js +139 -0
  43. package/dist/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.js.map +1 -0
  44. package/dist/core/index.d.ts +1 -0
  45. package/dist/core/index.js +2 -0
  46. package/dist/core/index.js.map +1 -1
  47. package/package.json +2 -2
@@ -0,0 +1,22 @@
1
+ import { JSONSerializable } from '../../../util/json';
2
+ import { PublishAuthorization as PublishAuthorization_pb } from '@initia/initia.proto/initia/move/v1/authz';
3
+ import { Any } from '@initia/initia.proto/google/protobuf/any';
4
+ export declare class PublishAuthorization extends JSONSerializable<any, PublishAuthorization.Data, PublishAuthorization.Proto> {
5
+ module_names: string[];
6
+ constructor(module_names: string[]);
7
+ static fromAmino(_: any): PublishAuthorization;
8
+ toAmino(): any;
9
+ static fromData(data: PublishAuthorization.Data): PublishAuthorization;
10
+ toData(): PublishAuthorization.Data;
11
+ static fromProto(proto: PublishAuthorization.Proto): PublishAuthorization;
12
+ toProto(): PublishAuthorization.Proto;
13
+ packAny(): Any;
14
+ static unpackAny(msgAny: Any): PublishAuthorization;
15
+ }
16
+ export declare namespace PublishAuthorization {
17
+ interface Data {
18
+ '@type': '/initia.move.v1.PublishAuthorization';
19
+ module_names: string[];
20
+ }
21
+ type Proto = PublishAuthorization_pb;
22
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PublishAuthorization = void 0;
19
+ var json_1 = require("../../../util/json");
20
+ var authz_1 = require("@initia/initia.proto/initia/move/v1/authz");
21
+ var any_1 = require("@initia/initia.proto/google/protobuf/any");
22
+ var PublishAuthorization = /** @class */ (function (_super) {
23
+ __extends(PublishAuthorization, _super);
24
+ function PublishAuthorization(module_names) {
25
+ var _this = _super.call(this) || this;
26
+ _this.module_names = module_names;
27
+ return _this;
28
+ }
29
+ PublishAuthorization.fromAmino = function (_) {
30
+ _;
31
+ throw new Error('Amino not supported');
32
+ };
33
+ PublishAuthorization.prototype.toAmino = function () {
34
+ throw new Error('Amino not supported');
35
+ };
36
+ PublishAuthorization.fromData = function (data) {
37
+ return new PublishAuthorization(data.module_names);
38
+ };
39
+ PublishAuthorization.prototype.toData = function () {
40
+ return {
41
+ '@type': '/initia.move.v1.PublishAuthorization',
42
+ module_names: this.module_names,
43
+ };
44
+ };
45
+ PublishAuthorization.fromProto = function (proto) {
46
+ return new PublishAuthorization(proto.moduleNames);
47
+ };
48
+ PublishAuthorization.prototype.toProto = function () {
49
+ return authz_1.PublishAuthorization.fromPartial({
50
+ moduleNames: this.module_names,
51
+ });
52
+ };
53
+ PublishAuthorization.prototype.packAny = function () {
54
+ return any_1.Any.fromPartial({
55
+ typeUrl: '/initia.move.v1.PublishAuthorization',
56
+ value: authz_1.PublishAuthorization.encode(this.toProto()).finish(),
57
+ });
58
+ };
59
+ PublishAuthorization.unpackAny = function (msgAny) {
60
+ return PublishAuthorization.fromProto(authz_1.PublishAuthorization.decode(msgAny.value));
61
+ };
62
+ return PublishAuthorization;
63
+ }(json_1.JSONSerializable));
64
+ exports.PublishAuthorization = PublishAuthorization;
65
+ //# sourceMappingURL=PublishAuthorization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublishAuthorization.js","sourceRoot":"","sources":["../../../../src/core/authz/authorizations/PublishAuthorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,mEAA4G;AAC5G,gEAA+D;AAE/D;IAA0C,wCAIzC;IACC,8BAAmB,YAAsB;QAAzC,YACE,iBAAO,SACR;QAFkB,kBAAY,GAAZ,YAAY,CAAU;;IAEzC,CAAC;IAEa,8BAAS,GAAvB,UAAwB,CAAM;QAC5B,CAAC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAEM,sCAAO,GAAd;QACE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAEa,6BAAQ,GAAtB,UAAuB,IAA+B;QACpD,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACrD,CAAC;IAEM,qCAAM,GAAb;QACE,OAAO;YACL,OAAO,EAAE,sCAAsC;YAC/C,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;IAEa,8BAAS,GAAvB,UAAwB,KAAiC;QACvD,OAAO,IAAI,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACrD,CAAC;IAEM,sCAAO,GAAd;QACE,OAAO,4BAAuB,CAAC,WAAW,CAAC;YACzC,WAAW,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC,CAAC;IACL,CAAC;IAEM,sCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,sCAAsC;YAC/C,KAAK,EAAE,4BAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC/D,CAAC,CAAC;IACL,CAAC;IAEa,8BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,oBAAoB,CAAC,SAAS,CACnC,4BAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAC7C,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AAnDD,CAA0C,uBAAgB,GAmDzD;AAnDY,oDAAoB"}
@@ -2,3 +2,5 @@ export * from './StakeAuthorization';
2
2
  export * from './SendAuthorization';
3
3
  export * from './GenericAuthorization';
4
4
  export * from './Authorization';
5
+ export * from './PublishAuthorization';
6
+ export * from './ExecuteAuthorization';
@@ -18,4 +18,6 @@ __exportStar(require("./StakeAuthorization"), exports);
18
18
  __exportStar(require("./SendAuthorization"), exports);
19
19
  __exportStar(require("./GenericAuthorization"), exports);
20
20
  __exportStar(require("./Authorization"), exports);
21
+ __exportStar(require("./PublishAuthorization"), exports);
22
+ __exportStar(require("./ExecuteAuthorization"), exports);
21
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/authz/authorizations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC;AACvC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/authz/authorizations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC;AACvC,kDAAgC;AAChC,yDAAuC;AACvC,yDAAuC"}
@@ -0,0 +1,28 @@
1
+ import { ClassTrace as ClassTrace_pb } from '@initia/initia.proto/ibc/applications/nft_transfer/v1/types';
2
+ import { JSONSerializable } from '../../../../util/json';
3
+ export declare class ClassTrace extends JSONSerializable<ClassTrace.Amino, ClassTrace.Data, ClassTrace.Proto> {
4
+ path: string;
5
+ base_class_id: string;
6
+ /**
7
+ * @param path the chain of port/channel identifiers used for tracing the source of the non fungible token
8
+ * @param base_class_id base class id of the relayed non fungible token
9
+ */
10
+ constructor(path: string, base_class_id: string);
11
+ static fromAmino(data: ClassTrace.Amino): ClassTrace;
12
+ toAmino(): ClassTrace.Amino;
13
+ static fromData(data: ClassTrace.Data): ClassTrace;
14
+ toData(): ClassTrace.Data;
15
+ static fromProto(proto: ClassTrace.Proto): ClassTrace;
16
+ toProto(): ClassTrace.Proto;
17
+ }
18
+ export declare namespace ClassTrace {
19
+ interface Amino {
20
+ path: string;
21
+ base_class_id: string;
22
+ }
23
+ interface Data {
24
+ path: string;
25
+ base_class_id: string;
26
+ }
27
+ type Proto = ClassTrace_pb;
28
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ClassTrace = void 0;
19
+ var types_1 = require("@initia/initia.proto/ibc/applications/nft_transfer/v1/types");
20
+ var json_1 = require("../../../../util/json");
21
+ var ClassTrace = /** @class */ (function (_super) {
22
+ __extends(ClassTrace, _super);
23
+ /**
24
+ * @param path the chain of port/channel identifiers used for tracing the source of the non fungible token
25
+ * @param base_class_id base class id of the relayed non fungible token
26
+ */
27
+ function ClassTrace(path, base_class_id) {
28
+ var _this = _super.call(this) || this;
29
+ _this.path = path;
30
+ _this.base_class_id = base_class_id;
31
+ return _this;
32
+ }
33
+ ClassTrace.fromAmino = function (data) {
34
+ var path = data.path, base_class_id = data.base_class_id;
35
+ return new ClassTrace(path, base_class_id);
36
+ };
37
+ ClassTrace.prototype.toAmino = function () {
38
+ var _a = this, path = _a.path, base_class_id = _a.base_class_id;
39
+ var res = {
40
+ path: path,
41
+ base_class_id: base_class_id,
42
+ };
43
+ return res;
44
+ };
45
+ ClassTrace.fromData = function (data) {
46
+ var path = data.path, base_class_id = data.base_class_id;
47
+ return new ClassTrace(path, base_class_id);
48
+ };
49
+ ClassTrace.prototype.toData = function () {
50
+ var _a = this, path = _a.path, base_class_id = _a.base_class_id;
51
+ var res = {
52
+ path: path,
53
+ base_class_id: base_class_id,
54
+ };
55
+ return res;
56
+ };
57
+ ClassTrace.fromProto = function (proto) {
58
+ return new ClassTrace(proto.path, proto.baseClassId);
59
+ };
60
+ ClassTrace.prototype.toProto = function () {
61
+ var _a = this, path = _a.path, base_class_id = _a.base_class_id;
62
+ return types_1.ClassTrace.fromPartial({ path: path, baseClassId: base_class_id });
63
+ };
64
+ return ClassTrace;
65
+ }(json_1.JSONSerializable));
66
+ exports.ClassTrace = ClassTrace;
67
+ //# sourceMappingURL=ClassTrace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClassTrace.js","sourceRoot":"","sources":["../../../../../src/core/ibc/applications/nft-transfer/ClassTrace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qFAA0G;AAC1G,8CAAyD;AAEzD;IAAgC,8BAI/B;IACC;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AC;IACH,iBAAC;AAAD,CAAC,AAjDD,CAAgC,uBAAgB,GAiD/C;AAjDY,gCAAU"}
@@ -0,0 +1,61 @@
1
+ import { NonFungibleTokenPacketData as NonFungibleTokenPacketData_pb } from '@initia/initia.proto/ibc/applications/nft_transfer/v1/packet';
2
+ import { JSONSerializable } from '../../../../util/json';
3
+ /**
4
+ * NonFungibleTokenPacketData defines a struct for the packet payload
5
+ * See NonFungibleTokenPacketData spec:
6
+ * https://github.com/cosmos/ibc/tree/main/spec/app/ics-721-nft-transfer
7
+ */
8
+ export declare class NonFungibleTokenPacketData extends JSONSerializable<NonFungibleTokenPacketData.Amino, NonFungibleTokenPacketData.Data, NonFungibleTokenPacketData.Proto> {
9
+ class_id: string;
10
+ class_uri: string;
11
+ class_data: string;
12
+ token_ids: string[];
13
+ token_uris: string[];
14
+ token_data: string[];
15
+ sender: string;
16
+ receiver: string;
17
+ memo?: string | undefined;
18
+ /**
19
+ * @param class_id collection id == extension struct tag
20
+ * @param class_uri collection url
21
+ * @param class_data collection data
22
+ * @param token_ids nft token ids
23
+ * @param token_uris nft token uris
24
+ * @param token_data nft token data array
25
+ * @param sender sender of nft
26
+ * @param receiver receiver of nft
27
+ * @param memo optional memo field for future use
28
+ */
29
+ constructor(class_id: string, class_uri: string, class_data: string, token_ids: string[], token_uris: string[], token_data: string[], sender: string, receiver: string, memo?: string | undefined);
30
+ static fromAmino(data: NonFungibleTokenPacketData.Amino): NonFungibleTokenPacketData;
31
+ toAmino(): NonFungibleTokenPacketData.Amino;
32
+ static fromData(data: NonFungibleTokenPacketData.Data): NonFungibleTokenPacketData;
33
+ toData(): NonFungibleTokenPacketData.Data;
34
+ static fromProto(proto: NonFungibleTokenPacketData.Proto): NonFungibleTokenPacketData;
35
+ toProto(): NonFungibleTokenPacketData.Proto;
36
+ }
37
+ export declare namespace NonFungibleTokenPacketData {
38
+ interface Amino {
39
+ class_id: string;
40
+ class_uri: string;
41
+ class_data: string;
42
+ token_ids: string[];
43
+ token_uris: string[];
44
+ token_data: string[];
45
+ sender: string;
46
+ receiver: string;
47
+ memo?: string;
48
+ }
49
+ interface Data {
50
+ class_id: string;
51
+ class_uri: string;
52
+ class_data: string;
53
+ token_ids: string[];
54
+ token_uris: string[];
55
+ token_data: string[];
56
+ sender: string;
57
+ receiver: string;
58
+ memo?: string;
59
+ }
60
+ type Proto = NonFungibleTokenPacketData_pb;
61
+ }
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.NonFungibleTokenPacketData = void 0;
19
+ var packet_1 = require("@initia/initia.proto/ibc/applications/nft_transfer/v1/packet");
20
+ var json_1 = require("../../../../util/json");
21
+ /**
22
+ * NonFungibleTokenPacketData defines a struct for the packet payload
23
+ * See NonFungibleTokenPacketData spec:
24
+ * https://github.com/cosmos/ibc/tree/main/spec/app/ics-721-nft-transfer
25
+ */
26
+ var NonFungibleTokenPacketData = /** @class */ (function (_super) {
27
+ __extends(NonFungibleTokenPacketData, _super);
28
+ /**
29
+ * @param class_id collection id == extension struct tag
30
+ * @param class_uri collection url
31
+ * @param class_data collection data
32
+ * @param token_ids nft token ids
33
+ * @param token_uris nft token uris
34
+ * @param token_data nft token data array
35
+ * @param sender sender of nft
36
+ * @param receiver receiver of nft
37
+ * @param memo optional memo field for future use
38
+ */
39
+ function NonFungibleTokenPacketData(class_id, class_uri, class_data, token_ids, token_uris, token_data, sender, receiver, memo) {
40
+ var _this = _super.call(this) || this;
41
+ _this.class_id = class_id;
42
+ _this.class_uri = class_uri;
43
+ _this.class_data = class_data;
44
+ _this.token_ids = token_ids;
45
+ _this.token_uris = token_uris;
46
+ _this.token_data = token_data;
47
+ _this.sender = sender;
48
+ _this.receiver = receiver;
49
+ _this.memo = memo;
50
+ return _this;
51
+ }
52
+ NonFungibleTokenPacketData.fromAmino = function (data) {
53
+ var class_id = data.class_id, class_uri = data.class_uri, class_data = data.class_data, token_ids = data.token_ids, token_uris = data.token_uris, token_data = data.token_data, sender = data.sender, receiver = data.receiver, memo = data.memo;
54
+ return new NonFungibleTokenPacketData(class_id, class_uri, class_data, token_ids, token_uris, token_data, sender, receiver, memo);
55
+ };
56
+ NonFungibleTokenPacketData.prototype.toAmino = function () {
57
+ var _a = this, class_id = _a.class_id, class_uri = _a.class_uri, class_data = _a.class_data, token_ids = _a.token_ids, token_uris = _a.token_uris, token_data = _a.token_data, sender = _a.sender, receiver = _a.receiver, memo = _a.memo;
58
+ return {
59
+ class_id: class_id,
60
+ class_uri: class_uri,
61
+ class_data: class_data,
62
+ token_ids: token_ids,
63
+ token_uris: token_uris,
64
+ token_data: token_data,
65
+ sender: sender,
66
+ receiver: receiver,
67
+ memo: memo,
68
+ };
69
+ };
70
+ NonFungibleTokenPacketData.fromData = function (data) {
71
+ var class_id = data.class_id, class_uri = data.class_uri, class_data = data.class_data, token_ids = data.token_ids, token_uris = data.token_uris, token_data = data.token_data, sender = data.sender, receiver = data.receiver, memo = data.memo;
72
+ return new NonFungibleTokenPacketData(class_id, class_uri, class_data, token_ids, token_uris, token_data, sender, receiver, memo);
73
+ };
74
+ NonFungibleTokenPacketData.prototype.toData = function () {
75
+ var _a = this, class_id = _a.class_id, class_uri = _a.class_uri, class_data = _a.class_data, token_ids = _a.token_ids, token_uris = _a.token_uris, token_data = _a.token_data, sender = _a.sender, receiver = _a.receiver, memo = _a.memo;
76
+ return {
77
+ class_id: class_id,
78
+ class_uri: class_uri,
79
+ class_data: class_data,
80
+ token_ids: token_ids,
81
+ token_uris: token_uris,
82
+ token_data: token_data,
83
+ sender: sender,
84
+ receiver: receiver,
85
+ memo: memo,
86
+ };
87
+ };
88
+ NonFungibleTokenPacketData.fromProto = function (proto) {
89
+ return new NonFungibleTokenPacketData(proto.classId, proto.classUri, proto.classData, proto.tokenIds, proto.tokenUris, proto.tokenData, proto.sender, proto.receiver, proto.memo);
90
+ };
91
+ NonFungibleTokenPacketData.prototype.toProto = function () {
92
+ var _a = this, class_id = _a.class_id, class_uri = _a.class_uri, class_data = _a.class_data, token_ids = _a.token_ids, token_uris = _a.token_uris, token_data = _a.token_data, sender = _a.sender, receiver = _a.receiver, memo = _a.memo;
93
+ return packet_1.NonFungibleTokenPacketData.fromPartial({
94
+ classId: class_id,
95
+ classUri: class_uri,
96
+ classData: class_data,
97
+ tokenIds: token_ids,
98
+ tokenUris: token_uris,
99
+ tokenData: token_data,
100
+ sender: sender,
101
+ receiver: receiver,
102
+ memo: memo,
103
+ });
104
+ };
105
+ return NonFungibleTokenPacketData;
106
+ }(json_1.JSONSerializable));
107
+ exports.NonFungibleTokenPacketData = NonFungibleTokenPacketData;
108
+ //# sourceMappingURL=NonFungibleTokenPacketData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NonFungibleTokenPacketData.js","sourceRoot":"","sources":["../../../../../src/core/ibc/applications/nft-transfer/NonFungibleTokenPacketData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uFAA2I;AAC3I,8CAAyD;AAEzD;;;;GAIG;AACH;IAAgD,8CAI/C;IACC;;;;;;;;;;OAUG;IACH,oCACS,QAAgB,EAChB,SAAiB,EACjB,UAAkB,EAClB,SAAmB,EACnB,UAAoB,EACpB,UAAoB,EACpB,MAAc,EACd,QAAgB,EAChB,IAAa;QATtB,YAWE,iBAAO,SACR;QAXQ,cAAQ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I,UACE,CAAC;QAET,OAAO,mCAA6B,CAAC,WAAW,CAAC;YAC/C,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,SAAS;YACnB,SAAS,EAAE,UAAU;YACrB,QAAQ,EAAE,SAAS;YACnB,SAAS,EAAE,UAAU;YACrB,SAAS,EAAE,UAAU;YACrB,MAAM,QAAA;YACN,QAAQ,UAAA;YACR,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IACH,iCAAC;AAAD,CAAC,AAnLD,CAAgD,uBAAgB,GAmL/D;AAnLY,gEAA0B"}
@@ -0,0 +1,10 @@
1
+ import { MsgNftTransfer } from './msgs/MsgNftTransfer';
2
+ export * from './msgs/MsgNftTransfer';
3
+ export * from './NonFungibleTokenPacketData';
4
+ export * from './ClassTrace';
5
+ export declare type IbcNftMsg = MsgNftTransfer;
6
+ export declare namespace IbcNftMsg {
7
+ type Data = MsgNftTransfer.Data;
8
+ type Amino = MsgNftTransfer.Amino;
9
+ type Proto = MsgNftTransfer.Proto;
10
+ }
@@ -0,0 +1,20 @@
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("./msgs/MsgNftTransfer"), exports);
18
+ __exportStar(require("./NonFungibleTokenPacketData"), exports);
19
+ __exportStar(require("./ClassTrace"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/ibc/applications/nft-transfer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,wDAAsC;AACtC,+DAA6C;AAC7C,+CAA6B"}
@@ -0,0 +1,68 @@
1
+ import { JSONSerializable } from '../../../../../util/json';
2
+ import { AccAddress } from '../../../../bech32';
3
+ import { Any } from '@initia/initia.proto/google/protobuf/any';
4
+ import { MsgNftTransfer as MsgNftTransfer_pb } from '@initia/initia.proto/ibc/applications/nft_transfer/v1/tx';
5
+ import { Height } from '../../../core/client/Height';
6
+ /**
7
+ * A basic message for NFT transfer via IBC.
8
+ */
9
+ export declare class MsgNftTransfer extends JSONSerializable<MsgNftTransfer.Amino, MsgNftTransfer.Data, MsgNftTransfer.Proto> {
10
+ source_port: string;
11
+ source_channel: string;
12
+ class_id: string;
13
+ token_ids: string[];
14
+ sender: AccAddress;
15
+ receiver: string;
16
+ timeout_height?: Height;
17
+ timeout_timestamp?: string;
18
+ memo?: string;
19
+ /**
20
+ * @param source_port the port on which the packet will be sent
21
+ * @param source_channel the channel by which the packet will be sent
22
+ * @param class_id the struct tag of the extension
23
+ * @param token_ids the token ids of the NFT
24
+ * @param sender the sender address
25
+ * @param receiver the recipient address on the destination chain
26
+ * @param timeout_height Timeout height relative to the current block height. (0 to disable)
27
+ * @param timeout_timestamp Timeout timestamp (in nanoseconds) relative to the current block timestamp. (0 to disable)
28
+ * @param memo optional memo
29
+ */
30
+ constructor(source_port: string, source_channel: string, class_id: string, token_ids: string[], sender: AccAddress, receiver: string, timeout_height: Height | undefined, timeout_timestamp: string | undefined, memo: string | undefined);
31
+ static fromAmino(data: MsgNftTransfer.Amino): MsgNftTransfer;
32
+ toAmino(): MsgNftTransfer.Amino;
33
+ static fromData(data: MsgNftTransfer.Data): MsgNftTransfer;
34
+ toData(): MsgNftTransfer.Data;
35
+ static fromProto(proto: MsgNftTransfer.Proto): MsgNftTransfer;
36
+ toProto(): MsgNftTransfer.Proto;
37
+ packAny(): Any;
38
+ static unpackAny(msgAny: Any): MsgNftTransfer;
39
+ }
40
+ export declare namespace MsgNftTransfer {
41
+ interface Amino {
42
+ type: 'initia/MsgNftTransfer';
43
+ value: {
44
+ source_port: string;
45
+ source_channel: string;
46
+ class_id: string;
47
+ token_ids: string[];
48
+ sender: AccAddress;
49
+ receiver: string;
50
+ timeout_height: Height.Amino;
51
+ timeout_timestamp?: string;
52
+ memo?: string;
53
+ };
54
+ }
55
+ interface Data {
56
+ '@type': '/ibc.applications.nft_transfer.v1.MsgNftTransfer';
57
+ source_port: string;
58
+ source_channel: string;
59
+ class_id: string;
60
+ token_ids: string[];
61
+ sender: AccAddress;
62
+ receiver: string;
63
+ timeout_height: Height.Data;
64
+ timeout_timestamp: string;
65
+ memo?: string;
66
+ }
67
+ type Proto = MsgNftTransfer_pb;
68
+ }
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.MsgNftTransfer = void 0;
22
+ var json_1 = require("../../../../../util/json");
23
+ var long_1 = __importDefault(require("long"));
24
+ var any_1 = require("@initia/initia.proto/google/protobuf/any");
25
+ var tx_1 = require("@initia/initia.proto/ibc/applications/nft_transfer/v1/tx");
26
+ var Height_1 = require("../../../core/client/Height");
27
+ /**
28
+ * A basic message for NFT transfer via IBC.
29
+ */
30
+ var MsgNftTransfer = /** @class */ (function (_super) {
31
+ __extends(MsgNftTransfer, _super);
32
+ /**
33
+ * @param source_port the port on which the packet will be sent
34
+ * @param source_channel the channel by which the packet will be sent
35
+ * @param class_id the struct tag of the extension
36
+ * @param token_ids the token ids of the NFT
37
+ * @param sender the sender address
38
+ * @param receiver the recipient address on the destination chain
39
+ * @param timeout_height Timeout height relative to the current block height. (0 to disable)
40
+ * @param timeout_timestamp Timeout timestamp (in nanoseconds) relative to the current block timestamp. (0 to disable)
41
+ * @param memo optional memo
42
+ */
43
+ function MsgNftTransfer(source_port, source_channel, class_id, token_ids, sender, receiver, timeout_height, timeout_timestamp, memo) {
44
+ var _this = _super.call(this) || this;
45
+ if (!timeout_height && !timeout_timestamp) {
46
+ throw 'both of timeout_height and timeout_timestamp are undefined';
47
+ }
48
+ _this.source_port = source_port;
49
+ _this.source_channel = source_channel;
50
+ _this.class_id = class_id;
51
+ _this.token_ids = token_ids;
52
+ _this.sender = sender;
53
+ _this.receiver = receiver;
54
+ _this.timeout_height = timeout_height;
55
+ _this.timeout_timestamp = timeout_timestamp;
56
+ _this.memo = memo;
57
+ return _this;
58
+ }
59
+ MsgNftTransfer.fromAmino = function (data) {
60
+ var _a = data.value, source_port = _a.source_port, source_channel = _a.source_channel, class_id = _a.class_id, token_ids = _a.token_ids, sender = _a.sender, receiver = _a.receiver, timeout_height = _a.timeout_height, timeout_timestamp = _a.timeout_timestamp, memo = _a.memo;
61
+ if (!timeout_height && !timeout_timestamp) {
62
+ throw 'both of timeout_height and timeout_timestamp are undefined';
63
+ }
64
+ return new MsgNftTransfer(source_port, source_channel, class_id, token_ids, sender, receiver, timeout_height ? Height_1.Height.fromAmino(timeout_height) : undefined, timeout_timestamp, memo);
65
+ };
66
+ MsgNftTransfer.prototype.toAmino = function () {
67
+ var _a = this, source_port = _a.source_port, source_channel = _a.source_channel, class_id = _a.class_id, token_ids = _a.token_ids, sender = _a.sender, receiver = _a.receiver, timeout_height = _a.timeout_height, timeout_timestamp = _a.timeout_timestamp, memo = _a.memo;
68
+ return {
69
+ type: 'initia/MsgNftTransfer',
70
+ value: {
71
+ source_port: source_port,
72
+ source_channel: source_channel,
73
+ class_id: class_id,
74
+ token_ids: token_ids,
75
+ sender: sender,
76
+ receiver: receiver,
77
+ timeout_height: (timeout_height === null || timeout_height === void 0 ? void 0 : timeout_height.toAmino()) || {},
78
+ timeout_timestamp: timeout_timestamp,
79
+ memo: memo,
80
+ },
81
+ };
82
+ };
83
+ MsgNftTransfer.fromData = function (data) {
84
+ var source_port = data.source_port, source_channel = data.source_channel, class_id = data.class_id, token_ids = data.token_ids, sender = data.sender, receiver = data.receiver, timeout_timestamp = data.timeout_timestamp, timeout_height = data.timeout_height, memo = data.memo;
85
+ if (!timeout_height && !timeout_timestamp) {
86
+ throw 'both of timeout_height and timeout_timestamp are undefined';
87
+ }
88
+ return new MsgNftTransfer(source_port, source_channel, class_id, token_ids, sender, receiver, timeout_height ? Height_1.Height.fromData(timeout_height) : undefined, timeout_timestamp === '0' ? undefined : timeout_timestamp, memo);
89
+ };
90
+ MsgNftTransfer.prototype.toData = function () {
91
+ var _a = this, source_port = _a.source_port, source_channel = _a.source_channel, class_id = _a.class_id, token_ids = _a.token_ids, sender = _a.sender, receiver = _a.receiver, timeout_height = _a.timeout_height, timeout_timestamp = _a.timeout_timestamp, memo = _a.memo;
92
+ return {
93
+ '@type': '/ibc.applications.nft_transfer.v1.MsgNftTransfer',
94
+ source_port: source_port,
95
+ source_channel: source_channel,
96
+ class_id: class_id,
97
+ token_ids: token_ids,
98
+ sender: sender,
99
+ receiver: receiver,
100
+ timeout_height: timeout_height
101
+ ? timeout_height.toData()
102
+ : new Height_1.Height(0, 0).toData(),
103
+ timeout_timestamp: timeout_timestamp !== null && timeout_timestamp !== void 0 ? timeout_timestamp : '0',
104
+ memo: memo,
105
+ };
106
+ };
107
+ MsgNftTransfer.fromProto = function (proto) {
108
+ if (!proto.timeoutHeight && proto.timeoutTimestamp.toNumber() == 0) {
109
+ throw 'both of timeout_height and timeout_timestamp are empty';
110
+ }
111
+ return new MsgNftTransfer(proto.sourcePort, proto.sourceChannel, proto.classId, proto.tokenIds, proto.sender, proto.receiver, proto.timeoutHeight ? Height_1.Height.fromProto(proto.timeoutHeight) : undefined, proto.timeoutTimestamp.toString(), proto.memo);
112
+ };
113
+ MsgNftTransfer.prototype.toProto = function () {
114
+ var _a = this, source_port = _a.source_port, source_channel = _a.source_channel, class_id = _a.class_id, token_ids = _a.token_ids, sender = _a.sender, receiver = _a.receiver, timeout_height = _a.timeout_height, timeout_timestamp = _a.timeout_timestamp, memo = _a.memo;
115
+ return tx_1.MsgNftTransfer.fromPartial({
116
+ sourcePort: source_port,
117
+ sourceChannel: source_channel,
118
+ classId: class_id,
119
+ tokenIds: token_ids,
120
+ sender: sender,
121
+ receiver: receiver,
122
+ timeoutHeight: timeout_height ? timeout_height.toProto() : undefined,
123
+ timeoutTimestamp: long_1.default.fromString(timeout_timestamp !== null && timeout_timestamp !== void 0 ? timeout_timestamp : '0'),
124
+ memo: memo,
125
+ });
126
+ };
127
+ MsgNftTransfer.prototype.packAny = function () {
128
+ return any_1.Any.fromPartial({
129
+ typeUrl: '/ibc.applications.nft_transfer.v1.MsgNftTransfer',
130
+ value: tx_1.MsgNftTransfer.encode(this.toProto()).finish(),
131
+ });
132
+ };
133
+ MsgNftTransfer.unpackAny = function (msgAny) {
134
+ return MsgNftTransfer.fromProto(tx_1.MsgNftTransfer.decode(msgAny.value));
135
+ };
136
+ return MsgNftTransfer;
137
+ }(json_1.JSONSerializable));
138
+ exports.MsgNftTransfer = MsgNftTransfer;
139
+ //# sourceMappingURL=MsgNftTransfer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MsgNftTransfer.js","sourceRoot":"","sources":["../../../../../../src/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,iDAA4D;AAE5D,8CAAwB;AACxB,gEAA+D;AAC/D,+EAA+G;AAC/G,sDAAqD;AAErD;;GAEG;AACH;IAAoC,kCAInC;IAUC;;;;;;;;;;OAUG;IACH,wBACE,WAAmB,EACnB,cAAsB,EACtB,QAAgB,EAChB,SAAmB,EACnB,MAAkB,EAClB,QAAgB,EAChB,cAAkC,EAClC,iBAAqC,EACrC,IAAwB;QAT1B,YAWE,iBAAO,SAeR;QAbC,IAAI,CAAC,cAAc,IAAI,CAAC,iBAAiB,EAAE;YACzC,MAAM,4DAA4D,CAAC;SACpE;QAED,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACnB,CAAC;IAEa,wBAAS,GAAvB,UAAwB,IAA0B;QAE9C,IAAA,KAWE,IAAI,MADL,EATC,WAAW,iBAAA,EACX,cAAc,oBAAA,EACd,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,cAAc,oBAAA,EACd,iBAAiB,uBAAA,EACjB,IAAI,UACL,CACM;QAET,IAAI,CAAC,cAAc,IAAI,CAAC,iBAAiB,EAAE;YACzC,MAAM,4DAA4D,CAAC;SACpE;QAED,OAAO,IAAI,cAAc,CACvB,WAAW,EACX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