phantasma-sdk-ts 0.2.0-rc.2 → 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.
|
@@ -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),
|
|
@@ -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;
|