coreum-js 2.14.0 → 2.16.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.
Files changed (45) hide show
  1. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +119 -17
  2. package/dist/main/coreum/asset/ft/v1/params.d.ts +37 -7
  3. package/dist/main/coreum/asset/ft/v1/params.js +68 -7
  4. package/dist/main/coreum/asset/ft/v1/query.d.ts +161 -17
  5. package/dist/main/coreum/asset/ft/v1/token.d.ts +80 -5
  6. package/dist/main/coreum/asset/ft/v1/token.js +185 -3
  7. package/dist/main/coreum/asset/ft/v1/tx.d.ts +517 -30
  8. package/dist/main/coreum/asset/ft/v1/tx.js +877 -114
  9. package/dist/main/coreum/index.d.ts +21 -1
  10. package/dist/main/coreum/index.js +25 -1
  11. package/dist/main/coreum/nft/v1beta1/event.d.ts +1 -1
  12. package/dist/main/coreum/nft/v1beta1/event.js +1 -1
  13. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +1 -1
  14. package/dist/main/coreum/nft/v1beta1/genesis.js +1 -1
  15. package/dist/main/coreum/nft/v1beta1/nft.d.ts +1 -1
  16. package/dist/main/coreum/nft/v1beta1/nft.js +1 -1
  17. package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
  18. package/dist/main/coreum/nft/v1beta1/query.js +2 -2
  19. package/dist/main/coreum/nft/v1beta1/tx.d.ts +1 -1
  20. package/dist/main/coreum/nft/v1beta1/tx.js +2 -2
  21. package/dist/main/types/core.d.ts +1 -1
  22. package/dist/main/types/core.js +1 -1
  23. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +119 -17
  24. package/dist/module/coreum/asset/ft/v1/params.d.ts +37 -7
  25. package/dist/module/coreum/asset/ft/v1/params.js +67 -7
  26. package/dist/module/coreum/asset/ft/v1/query.d.ts +161 -17
  27. package/dist/module/coreum/asset/ft/v1/token.d.ts +80 -5
  28. package/dist/module/coreum/asset/ft/v1/token.js +185 -4
  29. package/dist/module/coreum/asset/ft/v1/tx.d.ts +517 -30
  30. package/dist/module/coreum/asset/ft/v1/tx.js +870 -115
  31. package/dist/module/coreum/index.d.ts +21 -1
  32. package/dist/module/coreum/index.js +26 -2
  33. package/dist/module/coreum/nft/v1beta1/event.d.ts +1 -1
  34. package/dist/module/coreum/nft/v1beta1/event.js +1 -1
  35. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +1 -1
  36. package/dist/module/coreum/nft/v1beta1/genesis.js +1 -1
  37. package/dist/module/coreum/nft/v1beta1/nft.d.ts +1 -1
  38. package/dist/module/coreum/nft/v1beta1/nft.js +1 -1
  39. package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
  40. package/dist/module/coreum/nft/v1beta1/query.js +2 -2
  41. package/dist/module/coreum/nft/v1beta1/tx.d.ts +1 -1
  42. package/dist/module/coreum/nft/v1beta1/tx.js +2 -2
  43. package/dist/module/types/core.d.ts +1 -1
  44. package/dist/module/types/core.js +1 -1
  45. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { GeneratedType } from "@cosmjs/proto-signing";
2
2
  import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
3
3
  import { MsgIssueClass as NFTMsgIssueClass, MsgMint as NFTMsgMint, MsgAddToWhitelist as NFTMsgAddToWhitelist, MsgBurn as NFTMsgBurn, MsgRemoveFromWhitelist as NFTMsgRemoveFromWhitelist, MsgFreeze as NFTMsgFreeze, MsgUnfreeze as NFTMsgUnfreeze } from "./asset/nft/v1/tx";
4
- import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, MsgClawback as FTMsgClawback } from "./asset/ft/v1/tx";
4
+ import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, MsgClawback as FTMsgClawback, MsgUpdateDEXUnifiedRefAmount, MsgUpdateDEXWhitelistedDenoms } from "./asset/ft/v1/tx";
5
5
  import { FTMsgs, NFTMsgs } from "../types/msgs";
6
6
  export { Feature } from "./asset/ft/v1/token";
7
7
  export { ClassFeature } from "./asset/nft/v1/nft";
@@ -108,6 +108,26 @@ export declare namespace FT {
108
108
  typeUrl: string;
109
109
  value: FTMsgClawback;
110
110
  };
111
+ /** MsgUpdateDEXUnifiedRefAmount
112
+ * Updates DEX unified ref amount.
113
+ *
114
+ * @param object Represents the properties available for this MsgUpdateDEXUnifiedRefAmount message.
115
+ * @returns A Msg object with the typeUrl and value object for the proper message
116
+ */
117
+ const UpdateDEXUnifiedRefAmount: (object: MsgUpdateDEXUnifiedRefAmount) => {
118
+ typeUrl: string;
119
+ value: MsgUpdateDEXUnifiedRefAmount;
120
+ };
121
+ /** MsgUpdateDEXWhitelistedDenoms
122
+ * Updates DEX unified ref amount.
123
+ *
124
+ * @param object Represents the properties available for this MsgUpdateDEXWhitelistedDenoms message.
125
+ * @returns A Msg object with the typeUrl and value object for the proper message
126
+ */
127
+ const UpdateDEXWhitelistedDenoms: (object: MsgUpdateDEXWhitelistedDenoms) => {
128
+ typeUrl: string;
129
+ value: MsgUpdateDEXWhitelistedDenoms;
130
+ };
111
131
  }
112
132
  /**
113
133
  * Transaction Module for the Non-Fungible Tokens modules (assetnft, nftbeta).
@@ -2,7 +2,7 @@ import { assetNftRegistry, assetFtRegistry } from "./asset";
2
2
  import { nftBetaRegistry } from "./nft";
3
3
  import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
4
4
  import { MsgIssueClass as NFTMsgIssueClass, MsgMint as NFTMsgMint, MsgAddToWhitelist as NFTMsgAddToWhitelist, MsgBurn as NFTMsgBurn, MsgRemoveFromWhitelist as NFTMsgRemoveFromWhitelist, MsgFreeze as NFTMsgFreeze, MsgUnfreeze as NFTMsgUnfreeze, } from "./asset/nft/v1/tx";
5
- import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, MsgClawback as FTMsgClawback, } from "./asset/ft/v1/tx";
5
+ import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, MsgClawback as FTMsgClawback, MsgUpdateDEXUnifiedRefAmount, MsgUpdateDEXWhitelistedDenoms, } from "./asset/ft/v1/tx";
6
6
  export { Feature } from "./asset/ft/v1/token";
7
7
  export { ClassFeature } from "./asset/nft/v1/nft";
8
8
  /**
@@ -126,6 +126,30 @@ export var FT;
126
126
  value: FTMsgClawback.fromPartial(object),
127
127
  };
128
128
  };
129
+ /** MsgUpdateDEXUnifiedRefAmount
130
+ * Updates DEX unified ref amount.
131
+ *
132
+ * @param object Represents the properties available for this MsgUpdateDEXUnifiedRefAmount message.
133
+ * @returns A Msg object with the typeUrl and value object for the proper message
134
+ */
135
+ FT.UpdateDEXUnifiedRefAmount = function (object) {
136
+ return {
137
+ typeUrl: "/coreum.asset.ft.v1.MsgUpdateDEXUnifiedRefAmount",
138
+ value: MsgUpdateDEXUnifiedRefAmount.fromPartial(object),
139
+ };
140
+ };
141
+ /** MsgUpdateDEXWhitelistedDenoms
142
+ * Updates DEX unified ref amount.
143
+ *
144
+ * @param object Represents the properties available for this MsgUpdateDEXWhitelistedDenoms message.
145
+ * @returns A Msg object with the typeUrl and value object for the proper message
146
+ */
147
+ FT.UpdateDEXWhitelistedDenoms = function (object) {
148
+ return {
149
+ typeUrl: "/coreum.asset.ft.v1.MsgUpdateDEXWhitelistedDenoms",
150
+ value: MsgUpdateDEXWhitelistedDenoms.fromPartial(object),
151
+ };
152
+ };
129
153
  })(FT || (FT = {}));
130
154
  /**
131
155
  * Transaction Module for the Non-Fungible Tokens modules (assetnft, nftbeta).
@@ -224,7 +248,7 @@ export var NFT;
224
248
  */
225
249
  NFT.Send = function (object) {
226
250
  return {
227
- typeUrl: "/coreum.nft.v1beta1.MsgSend",
251
+ typeUrl: "/cosmos.nft.v1beta1.MsgSend",
228
252
  value: NFTMsgSend.fromPartial(object),
229
253
  };
230
254
  };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- export declare const protobufPackage = "coreum.nft.v1beta1";
3
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
4
4
  /** EventSend is emitted on Msg/Send */
5
5
  export interface EventSend {
6
6
  classId: string;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
- export const protobufPackage = "coreum.nft.v1beta1";
4
+ export const protobufPackage = "cosmos.nft.v1beta1";
5
5
  function createBaseEventSend() {
6
6
  return { classId: "", id: "", sender: "", receiver: "" };
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Class, NFT } from "./nft";
4
- export declare const protobufPackage = "coreum.nft.v1beta1";
4
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
5
5
  /** GenesisState defines the nft module's genesis state. */
6
6
  export interface GenesisState {
7
7
  /** class defines the class of the nft type. */
@@ -2,7 +2,7 @@
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
  import { Class, NFT } from "./nft";
5
- export const protobufPackage = "coreum.nft.v1beta1";
5
+ export const protobufPackage = "cosmos.nft.v1beta1";
6
6
  function createBaseGenesisState() {
7
7
  return { classes: [], entries: [] };
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Any } from "../../../google/protobuf/any";
4
- export declare const protobufPackage = "coreum.nft.v1beta1";
4
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
5
5
  /** Class defines the class of the nft type. */
6
6
  export interface Class {
7
7
  /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */
@@ -2,7 +2,7 @@
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
  import { Any } from "../../../google/protobuf/any";
5
- export const protobufPackage = "coreum.nft.v1beta1";
5
+ export const protobufPackage = "cosmos.nft.v1beta1";
6
6
  function createBaseClass() {
7
7
  return {
8
8
  id: "",
@@ -2,7 +2,7 @@ import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { PageRequest, PageResponse } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
4
4
  import { Class, NFT } from "./nft";
5
- export declare const protobufPackage = "coreum.nft.v1beta1";
5
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
6
6
  /** QueryBalanceRequest is the request type for the Query/Balance RPC method */
7
7
  export interface QueryBalanceRequest {
8
8
  classId: string;
@@ -3,7 +3,7 @@ import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
  import { PageRequest, PageResponse, } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
5
5
  import { Class, NFT } from "./nft";
6
- export const protobufPackage = "coreum.nft.v1beta1";
6
+ export const protobufPackage = "cosmos.nft.v1beta1";
7
7
  function createBaseQueryBalanceRequest() {
8
8
  return { classId: "", owner: "" };
9
9
  }
@@ -846,7 +846,7 @@ export class QueryClientImpl {
846
846
  rpc;
847
847
  service;
848
848
  constructor(rpc, opts) {
849
- this.service = opts?.service || "coreum.nft.v1beta1.Query";
849
+ this.service = opts?.service || "cosmos.nft.v1beta1.Query";
850
850
  this.rpc = rpc;
851
851
  this.Balance = this.Balance.bind(this);
852
852
  this.Owner = this.Owner.bind(this);
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- export declare const protobufPackage = "coreum.nft.v1beta1";
3
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
4
4
  /** MsgSend represents a message to send a nft from one account to another account. */
5
5
  export interface MsgSend {
6
6
  /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
- export const protobufPackage = "coreum.nft.v1beta1";
4
+ export const protobufPackage = "cosmos.nft.v1beta1";
5
5
  function createBaseMsgSend() {
6
6
  return { classId: "", id: "", sender: "", receiver: "" };
7
7
  }
@@ -129,7 +129,7 @@ export class MsgClientImpl {
129
129
  rpc;
130
130
  service;
131
131
  constructor(rpc, opts) {
132
- this.service = opts?.service || "coreum.nft.v1beta1.Msg";
132
+ this.service = opts?.service || "cosmos.nft.v1beta1.Msg";
133
133
  this.rpc = rpc;
134
134
  this.Send = this.Send.bind(this);
135
135
  }
@@ -9,7 +9,7 @@ import { setupBankExtension, setupGovExtension, setupDistributionExtension } fro
9
9
  export declare enum CoreumTypeUrl {
10
10
  NFT = "/coreum.asset.nft.v1.",
11
11
  FT = "/coreum.asset.ft.v1.",
12
- NFTBeta = "/coreum.nft.v1beta1."
12
+ NFTBeta = "/cosmos.nft.v1beta1."
13
13
  }
14
14
  export interface ClientQueryClient extends QueryClient {
15
15
  ft: ReturnType<typeof setupFTExtension>["ft"];
@@ -6,7 +6,7 @@ export var CoreumTypeUrl;
6
6
  (function (CoreumTypeUrl) {
7
7
  CoreumTypeUrl["NFT"] = "/coreum.asset.nft.v1.";
8
8
  CoreumTypeUrl["FT"] = "/coreum.asset.ft.v1.";
9
- CoreumTypeUrl["NFTBeta"] = "/coreum.nft.v1beta1.";
9
+ CoreumTypeUrl["NFTBeta"] = "/cosmos.nft.v1beta1.";
10
10
  })(CoreumTypeUrl || (CoreumTypeUrl = {}));
11
11
  // setupMintExtension,
12
12
  // setupFeegrantExtension,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreum-js",
3
- "version": "2.14.0",
3
+ "version": "2.16.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",