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.
@@ -0,0 +1,2 @@
1
+ export * from "./TxMsgSigner";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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 BuildAndSerialize(phantasmaNftId: bigint, name: string, description: string, imageURL: string, infoURL: string, royalties: number, rom: Uint8Array, tokenSchemas?: TokenSchemas): Uint8Array;
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 BuildAndSerialize(phantasmaNftId, name, description, imageURL, infoURL, royalties, rom, tokenSchemas) {
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
- let vmDynamicStruct = new Vm_1.VmDynamicStruct();
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,3 +1,4 @@
1
+ export * from "./Builders";
1
2
  export * from "./SeriesInfo";
2
3
  export * from "./StandardMeta";
3
4
  export * from "./TokenContract_Methods";
@@ -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
- let mint = new TxMsgMintNonFungible_1.TxMsgMintNonFungible();
24
+ const mint = new TxMsgMintNonFungible_1.TxMsgMintNonFungible();
25
25
  mint.tokenId = carbonTokenId;
26
26
  mint.seriesId = carbonSeriesId;
27
27
  mint.to = receiverPublicKey;
@@ -1,3 +1,7 @@
1
+ export * from "./Extensions";
2
+ export * from "./Modules";
3
+ export * from "./TxHelpers";
4
+ export * from "./Vm";
1
5
  export * from "./CarbonTokenFlags";
2
6
  export * from "./ModuleId";
3
7
  export * from "./SignedTxMsg";
@@ -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);
@@ -3,6 +3,7 @@ export * from "./Bytes16";
3
3
  export * from "./Bytes32";
4
4
  export * from "./Bytes64";
5
5
  export * from "./CarbonBlob";
6
+ export * from "./IntX";
6
7
  export * from "./SmallString";
7
8
  export * from "./TxTypes";
8
9
  export * from "./Witness";
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phantasma-sdk-ts",
3
- "version": "0.2.0-rc.1",
3
+ "version": "0.2.0-rc.3",
4
4
  "description": "Javascript SDK for interacting with the Phantasma Chain",
5
5
  "author": "Phantasma Team",
6
6
  "main": "dist/index.js",