phantasma-sdk-ts 0.2.0-rc.1 → 0.2.0-rc.3
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/core/types/Carbon/Blockchain/Extensions/index.d.ts +2 -0
- package/dist/core/types/Carbon/Blockchain/Extensions/index.d.ts.map +1 -0
- package/dist/core/types/Carbon/Blockchain/Extensions/index.js +17 -0
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/NftRomBuilder.d.ts +1 -1
- package/dist/core/types/Carbon/Blockchain/Modules/Builders/NftRomBuilder.js +2 -2
- package/dist/core/types/Carbon/Blockchain/Modules/index.d.ts +1 -0
- package/dist/core/types/Carbon/Blockchain/Modules/index.d.ts.map +1 -1
- package/dist/core/types/Carbon/Blockchain/Modules/index.js +1 -0
- package/dist/core/types/Carbon/Blockchain/TxHelpers/MintNonFungibleTxHelper.js +1 -1
- package/dist/core/types/Carbon/Blockchain/index.d.ts +4 -0
- package/dist/core/types/Carbon/Blockchain/index.d.ts.map +1 -1
- package/dist/core/types/Carbon/Blockchain/index.js +4 -0
- package/dist/core/types/Carbon/index.d.ts +1 -0
- package/dist/core/types/Carbon/index.d.ts.map +1 -1
- package/dist/core/types/Carbon/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/Carbon/Blockchain/Extensions/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./TxMsgSigner"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TokenSchemas } from '../TokenSchemas';
|
|
2
2
|
export declare class NftRomBuilder {
|
|
3
|
-
static
|
|
3
|
+
static buildAndSerialize(phantasmaNftId: bigint, name: string, description: string, imageURL: string, infoURL: string, royalties: number, rom: Uint8Array, tokenSchemas?: TokenSchemas): Uint8Array;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=NftRomBuilder.d.ts.map
|
|
@@ -6,10 +6,10 @@ const Vm_1 = require("../../Vm");
|
|
|
6
6
|
const StandardMeta_1 = require("../StandardMeta");
|
|
7
7
|
const TokenSchemasBuilder_1 = require("./TokenSchemasBuilder");
|
|
8
8
|
class NftRomBuilder {
|
|
9
|
-
static
|
|
9
|
+
static buildAndSerialize(phantasmaNftId, name, description, imageURL, infoURL, royalties, rom, tokenSchemas) {
|
|
10
10
|
tokenSchemas = tokenSchemas || TokenSchemasBuilder_1.TokenSchemasBuilder.PrepareStandardTokenSchemas();
|
|
11
11
|
const wRom = new CarbonSerialization_1.CarbonBinaryWriter();
|
|
12
|
-
|
|
12
|
+
const vmDynamicStruct = new Vm_1.VmDynamicStruct();
|
|
13
13
|
vmDynamicStruct.fields = [
|
|
14
14
|
Vm_1.VmNamedDynamicVariable.from(StandardMeta_1.StandardMeta.id, Vm_1.VmType.Int256, phantasmaNftId),
|
|
15
15
|
Vm_1.VmNamedDynamicVariable.from('name', Vm_1.VmType.String, name),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/Carbon/Blockchain/Modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/Carbon/Blockchain/Modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Builders"), exports);
|
|
17
18
|
__exportStar(require("./SeriesInfo"), exports);
|
|
18
19
|
__exportStar(require("./StandardMeta"), exports);
|
|
19
20
|
__exportStar(require("./TokenContract_Methods"), exports);
|
|
@@ -21,7 +21,7 @@ class MintNonFungibleTxHelper {
|
|
|
21
21
|
msg.maxData = maxData;
|
|
22
22
|
msg.gasFrom = senderPublicKey;
|
|
23
23
|
msg.payload = SmallString_1.SmallString.empty;
|
|
24
|
-
|
|
24
|
+
const mint = new TxMsgMintNonFungible_1.TxMsgMintNonFungible();
|
|
25
25
|
mint.tokenId = carbonTokenId;
|
|
26
26
|
mint.seriesId = carbonSeriesId;
|
|
27
27
|
mint.to = receiverPublicKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/types/Carbon/Blockchain/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/types/Carbon/Blockchain/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
|
@@ -14,6 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Extensions"), exports);
|
|
18
|
+
__exportStar(require("./Modules"), exports);
|
|
19
|
+
__exportStar(require("./TxHelpers"), exports);
|
|
20
|
+
__exportStar(require("./Vm"), exports);
|
|
17
21
|
__exportStar(require("./CarbonTokenFlags"), exports);
|
|
18
22
|
__exportStar(require("./ModuleId"), exports);
|
|
19
23
|
__exportStar(require("./SignedTxMsg"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/types/Carbon/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/types/Carbon/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./Bytes16"), exports);
|
|
|
19
19
|
__exportStar(require("./Bytes32"), exports);
|
|
20
20
|
__exportStar(require("./Bytes64"), exports);
|
|
21
21
|
__exportStar(require("./CarbonBlob"), exports);
|
|
22
|
+
__exportStar(require("./IntX"), exports);
|
|
22
23
|
__exportStar(require("./SmallString"), exports);
|
|
23
24
|
__exportStar(require("./TxTypes"), exports);
|
|
24
25
|
__exportStar(require("./Witness"), exports);
|