coreum-js 2.13.0 → 2.15.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.
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +119 -17
- package/dist/main/coreum/asset/ft/v1/params.d.ts +37 -7
- package/dist/main/coreum/asset/ft/v1/params.js +68 -7
- package/dist/main/coreum/asset/ft/v1/query.d.ts +161 -17
- package/dist/main/coreum/asset/ft/v1/token.d.ts +80 -5
- package/dist/main/coreum/asset/ft/v1/token.js +185 -3
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +548 -12
- package/dist/main/coreum/asset/ft/v1/tx.js +898 -50
- package/dist/main/coreum/asset/index.js +1 -0
- package/dist/main/coreum/index.d.ts +11 -1
- package/dist/main/coreum/index.js +12 -0
- package/dist/main/types/msgs.d.ts +5 -0
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +119 -17
- package/dist/module/coreum/asset/ft/v1/params.d.ts +37 -7
- package/dist/module/coreum/asset/ft/v1/params.js +67 -7
- package/dist/module/coreum/asset/ft/v1/query.d.ts +161 -17
- package/dist/module/coreum/asset/ft/v1/token.d.ts +80 -5
- package/dist/module/coreum/asset/ft/v1/token.js +185 -4
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +548 -12
- package/dist/module/coreum/asset/ft/v1/tx.js +892 -53
- package/dist/module/coreum/asset/index.js +2 -1
- package/dist/module/coreum/index.d.ts +11 -1
- package/dist/module/coreum/index.js +13 -1
- package/dist/module/types/msgs.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreumTypeUrl } from "../../types";
|
|
2
2
|
import { MsgAddToWhitelist, MsgBurn, MsgIssueClass, MsgRemoveFromWhitelist, MsgMint, MsgFreeze, MsgUnfreeze, } from "./nft/v1/tx";
|
|
3
|
-
import { MsgIssue, MsgFreeze as MsgFreezeFT, MsgGloballyFreeze, MsgGloballyUnfreeze, MsgMint as MsgMintFT, MsgBurn as MsgBurnFT, MsgSetWhitelistedLimit, MsgUnfreeze as MsgUnfreezeFT, } from "./ft/v1/tx";
|
|
3
|
+
import { MsgIssue, MsgFreeze as MsgFreezeFT, MsgGloballyFreeze, MsgGloballyUnfreeze, MsgMint as MsgMintFT, MsgBurn as MsgBurnFT, MsgSetWhitelistedLimit, MsgUnfreeze as MsgUnfreezeFT, MsgClawback, } from "./ft/v1/tx";
|
|
4
4
|
export const assetNftRegistry = [
|
|
5
5
|
[CoreumTypeUrl.NFT + "MsgIssueClass", MsgIssueClass],
|
|
6
6
|
[CoreumTypeUrl.NFT + "MsgAddToWhitelist", MsgAddToWhitelist],
|
|
@@ -19,4 +19,5 @@ export const assetFtRegistry = [
|
|
|
19
19
|
[CoreumTypeUrl.FT + "MsgGloballyFreeze", MsgGloballyFreeze],
|
|
20
20
|
[CoreumTypeUrl.FT + "MsgGloballyUnfreeze", MsgGloballyUnfreeze],
|
|
21
21
|
[CoreumTypeUrl.FT + "MsgSetWhitelistedLimit", MsgSetWhitelistedLimit],
|
|
22
|
+
[CoreumTypeUrl.FT + "MsgClawback", MsgClawback],
|
|
22
23
|
];
|
|
@@ -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 } 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 } 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";
|
|
@@ -98,6 +98,16 @@ export declare namespace FT {
|
|
|
98
98
|
typeUrl: string;
|
|
99
99
|
value: FTMsgSetWhitelistedLimit;
|
|
100
100
|
};
|
|
101
|
+
/** MsgClawback message creator
|
|
102
|
+
* Clawbacks the assets from the specific address.
|
|
103
|
+
*
|
|
104
|
+
* @param object Represents the properties available for this MsgClawback message.
|
|
105
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
106
|
+
*/
|
|
107
|
+
const Clawback: (object: FTMsgs.MsgClawback) => {
|
|
108
|
+
typeUrl: string;
|
|
109
|
+
value: FTMsgClawback;
|
|
110
|
+
};
|
|
101
111
|
}
|
|
102
112
|
/**
|
|
103
113
|
* 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, } 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, } 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
|
/**
|
|
@@ -114,6 +114,18 @@ export var FT;
|
|
|
114
114
|
value: FTMsgSetWhitelistedLimit.fromPartial(object),
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
+
/** MsgClawback message creator
|
|
118
|
+
* Clawbacks the assets from the specific address.
|
|
119
|
+
*
|
|
120
|
+
* @param object Represents the properties available for this MsgClawback message.
|
|
121
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
122
|
+
*/
|
|
123
|
+
FT.Clawback = function (object) {
|
|
124
|
+
return {
|
|
125
|
+
typeUrl: "/coreum.asset.ft.v1.MsgClawback",
|
|
126
|
+
value: FTMsgClawback.fromPartial(object),
|
|
127
|
+
};
|
|
128
|
+
};
|
|
117
129
|
})(FT || (FT = {}));
|
|
118
130
|
/**
|
|
119
131
|
* Transaction Module for the Non-Fungible Tokens modules (assetnft, nftbeta).
|
|
@@ -62,6 +62,11 @@ export declare namespace FTMsgs {
|
|
|
62
62
|
account: string;
|
|
63
63
|
coin: Coin;
|
|
64
64
|
}
|
|
65
|
+
interface MsgClawback {
|
|
66
|
+
sender: string;
|
|
67
|
+
account: string;
|
|
68
|
+
coin: Coin;
|
|
69
|
+
}
|
|
65
70
|
}
|
|
66
71
|
export declare namespace NFTMsgs {
|
|
67
72
|
/** MsgSend represents a message to send a nft from one account to another account. */
|