coreum-js 2.9.1 → 2.11.0

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.
@@ -7,7 +7,8 @@ export declare enum ClassFeature {
7
7
  burning = 0,
8
8
  freezing = 1,
9
9
  whitelisting = 2,
10
- disable_sending = 3
10
+ disable_sending = 3,
11
+ soulbound = 4
11
12
  }
12
13
  export declare function classFeatureFromJSON(object: any): ClassFeature;
13
14
  export declare function classFeatureToJSON(object: ClassFeature): string;
@@ -16,6 +16,7 @@ var ClassFeature;
16
16
  ClassFeature[ClassFeature["freezing"] = 1] = "freezing";
17
17
  ClassFeature[ClassFeature["whitelisting"] = 2] = "whitelisting";
18
18
  ClassFeature[ClassFeature["disable_sending"] = 3] = "disable_sending";
19
+ ClassFeature[ClassFeature["soulbound"] = 4] = "soulbound";
19
20
  })(ClassFeature || (exports.ClassFeature = ClassFeature = {}));
20
21
  function classFeatureFromJSON(object) {
21
22
  switch (object) {
@@ -31,6 +32,9 @@ function classFeatureFromJSON(object) {
31
32
  case 3:
32
33
  case "disable_sending":
33
34
  return ClassFeature.disable_sending;
35
+ case 4:
36
+ case "soulbound":
37
+ return ClassFeature.soulbound;
34
38
  default:
35
39
  return undefined;
36
40
  }
@@ -46,6 +50,8 @@ function classFeatureToJSON(object) {
46
50
  return "whitelisting";
47
51
  case ClassFeature.disable_sending:
48
52
  return "disable_sending";
53
+ case ClassFeature.soulbound:
54
+ return "soulbound";
49
55
  }
50
56
  }
51
57
  exports.classFeatureToJSON = classFeatureToJSON;
@@ -95,6 +95,7 @@ export declare namespace NFTMsgs {
95
95
  uri: string;
96
96
  uriHash: string;
97
97
  data?: Any;
98
+ recipient: string;
98
99
  }
99
100
  /** MsgBurn defines message for the Burn method. */
100
101
  interface MsgBurn {
@@ -9,4 +9,5 @@ export declare function parseClassFeatures(features: ClassFeature[]): {
9
9
  freezing: boolean;
10
10
  whitelisting: boolean;
11
11
  disable_sending: boolean;
12
+ soulbound: boolean;
12
13
  };
@@ -13,6 +13,7 @@ function parseClassFeatures(features) {
13
13
  freezing: features.includes(nft_1.ClassFeature["freezing"]),
14
14
  whitelisting: features.includes(nft_1.ClassFeature["whitelisting"]),
15
15
  disable_sending: features.includes(nft_1.ClassFeature["disable_sending"]),
16
+ soulbound: features.includes(nft_1.ClassFeature["soulbound"]),
16
17
  };
17
18
  }
18
19
  exports.parseClassFeatures = parseClassFeatures;
@@ -7,7 +7,8 @@ export declare enum ClassFeature {
7
7
  burning = 0,
8
8
  freezing = 1,
9
9
  whitelisting = 2,
10
- disable_sending = 3
10
+ disable_sending = 3,
11
+ soulbound = 4
11
12
  }
12
13
  export declare function classFeatureFromJSON(object: any): ClassFeature;
13
14
  export declare function classFeatureToJSON(object: ClassFeature): string;
@@ -10,6 +10,7 @@ export var ClassFeature;
10
10
  ClassFeature[ClassFeature["freezing"] = 1] = "freezing";
11
11
  ClassFeature[ClassFeature["whitelisting"] = 2] = "whitelisting";
12
12
  ClassFeature[ClassFeature["disable_sending"] = 3] = "disable_sending";
13
+ ClassFeature[ClassFeature["soulbound"] = 4] = "soulbound";
13
14
  })(ClassFeature || (ClassFeature = {}));
14
15
  export function classFeatureFromJSON(object) {
15
16
  switch (object) {
@@ -25,6 +26,9 @@ export function classFeatureFromJSON(object) {
25
26
  case 3:
26
27
  case "disable_sending":
27
28
  return ClassFeature.disable_sending;
29
+ case 4:
30
+ case "soulbound":
31
+ return ClassFeature.soulbound;
28
32
  default:
29
33
  return undefined;
30
34
  }
@@ -39,6 +43,8 @@ export function classFeatureToJSON(object) {
39
43
  return "whitelisting";
40
44
  case ClassFeature.disable_sending:
41
45
  return "disable_sending";
46
+ case ClassFeature.soulbound:
47
+ return "soulbound";
42
48
  }
43
49
  }
44
50
  function createBaseClassDefinition() {
@@ -95,6 +95,7 @@ export declare namespace NFTMsgs {
95
95
  uri: string;
96
96
  uriHash: string;
97
97
  data?: Any;
98
+ recipient: string;
98
99
  }
99
100
  /** MsgBurn defines message for the Burn method. */
100
101
  interface MsgBurn {
@@ -9,4 +9,5 @@ export declare function parseClassFeatures(features: ClassFeature[]): {
9
9
  freezing: boolean;
10
10
  whitelisting: boolean;
11
11
  disable_sending: boolean;
12
+ soulbound: boolean;
12
13
  };
@@ -10,5 +10,6 @@ export function parseClassFeatures(features) {
10
10
  freezing: features.includes(ClassFeature["freezing"]),
11
11
  whitelisting: features.includes(ClassFeature["whitelisting"]),
12
12
  disable_sending: features.includes(ClassFeature["disable_sending"]),
13
+ soulbound: features.includes(ClassFeature["soulbound"]),
13
14
  };
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreum-js",
3
- "version": "2.9.1",
3
+ "version": "2.11.0",
4
4
  "description": "JS/TS Library to to easily make use of the Coreum Blockchain",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",
@@ -20,14 +20,14 @@
20
20
  "author": "",
21
21
  "license": "ISC",
22
22
  "dependencies": {
23
- "@cosmjs/amino": "^0.31.1",
24
- "@cosmjs/cosmwasm-stargate": "^0.31.1",
25
- "@cosmjs/crypto": "^0.31.1",
26
- "@cosmjs/encoding": "^0.31.1",
27
- "@cosmjs/math": "^0.31.1",
28
- "@cosmjs/proto-signing": "^0.31.1",
29
- "@cosmjs/stargate": "^0.31.1",
30
- "@cosmjs/tendermint-rpc": "^0.31.1",
23
+ "@cosmjs/amino": "0.31.1",
24
+ "@cosmjs/cosmwasm-stargate": "0.31.1",
25
+ "@cosmjs/crypto": "0.31.1",
26
+ "@cosmjs/encoding": "0.31.1",
27
+ "@cosmjs/math": "0.31.1",
28
+ "@cosmjs/proto-signing": "0.31.1",
29
+ "@cosmjs/stargate": "0.31.1",
30
+ "@cosmjs/tendermint-rpc": "0.31.1",
31
31
  "@cosmostation/cosmos-client": "^0.0.5",
32
32
  "@cosmostation/extension-client": "^0.1.15",
33
33
  "bech32": "^2.0.0",