phantasma-sdk-ts 0.2.4 → 0.2.6
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/cjs/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.js +20 -7
- package/dist/cjs/core/types/Carbon/Blockchain/TxMsgCall.js +57 -3
- package/dist/cjs/core/types/Ed25519Signature.js +4 -1
- package/dist/esm/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.js +21 -8
- package/dist/esm/core/types/Carbon/Blockchain/TxMsgCall.js +55 -2
- package/dist/esm/core/types/Ed25519Signature.js +5 -2
- package/dist/types/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.d.ts.map +1 -1
- package/dist/types/core/types/Carbon/Blockchain/TxMsgCall.d.ts +12 -0
- package/dist/types/core/types/Carbon/Blockchain/TxMsgCall.d.ts.map +1 -1
- package/dist/types/core/types/Ed25519Signature.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -34,27 +34,40 @@ function parseTokenSchemasJson(json) {
|
|
|
34
34
|
exports.parseTokenSchemasJson = parseTokenSchemasJson;
|
|
35
35
|
class TokenSchemasBuilder {
|
|
36
36
|
static assertMetadataField(schemas, fieldTypes) {
|
|
37
|
-
|
|
37
|
+
for (const fieldType of fieldTypes) {
|
|
38
38
|
let fieldIsFound = false;
|
|
39
|
-
|
|
39
|
+
let caseMismatch = null;
|
|
40
|
+
for (const schema of schemas) {
|
|
40
41
|
const found = schema.fields.find(x => x.name.data === fieldType.name);
|
|
41
42
|
if (found != undefined) {
|
|
42
43
|
if (found.schema.type != fieldType.type) {
|
|
43
|
-
|
|
44
|
+
const actualType = VmType_1.VmType[found.schema.type] ?? found.schema.type;
|
|
45
|
+
const expectedType = VmType_1.VmType[fieldType.type] ?? fieldType.type;
|
|
46
|
+
return {
|
|
47
|
+
ok: false,
|
|
48
|
+
error: `Type mismatch for ${fieldType.name} field, must be ${actualType} instead of ${expectedType}`
|
|
49
|
+
};
|
|
44
50
|
}
|
|
45
51
|
fieldIsFound = true;
|
|
52
|
+
break;
|
|
46
53
|
}
|
|
47
|
-
|
|
54
|
+
if (!caseMismatch) {
|
|
48
55
|
const found2 = schema.fields.find(x => x.name.data.toLowerCase() === fieldType.name.toLowerCase());
|
|
49
56
|
if (found2 != undefined) {
|
|
50
|
-
|
|
57
|
+
caseMismatch = found2;
|
|
51
58
|
}
|
|
52
59
|
}
|
|
53
|
-
}
|
|
60
|
+
}
|
|
54
61
|
if (!fieldIsFound) {
|
|
62
|
+
if (caseMismatch) {
|
|
63
|
+
return {
|
|
64
|
+
ok: false,
|
|
65
|
+
error: `Case mismatch for ${fieldType.name} field, must be ${caseMismatch.name.data}`
|
|
66
|
+
};
|
|
67
|
+
}
|
|
55
68
|
return { ok: false, error: `Mandatory metadata field not found: ${fieldType.name}` };
|
|
56
69
|
}
|
|
57
|
-
}
|
|
70
|
+
}
|
|
58
71
|
return { ok: true, error: null };
|
|
59
72
|
}
|
|
60
73
|
static defaultSeriesSchema(sharedMetadata) {
|
|
@@ -1,21 +1,75 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TxMsgCall = void 0;
|
|
3
|
+
exports.TxMsgCall = exports.MsgCallArgSections = void 0;
|
|
4
|
+
const CarbonSerialization_1 = require("../../CarbonSerialization");
|
|
5
|
+
class MsgCallArgSections {
|
|
6
|
+
constructor(argSections = []) {
|
|
7
|
+
this.argSections = argSections;
|
|
8
|
+
}
|
|
9
|
+
hasSections() {
|
|
10
|
+
return this.argSections.length > 0;
|
|
11
|
+
}
|
|
12
|
+
write(w) {
|
|
13
|
+
CarbonSerialization_1.Throw.Assert(this.argSections.length > 0, 'arg sections are empty');
|
|
14
|
+
w.write4(-this.argSections.length);
|
|
15
|
+
for (const section of this.argSections) {
|
|
16
|
+
if (section.registerOffset < 0) {
|
|
17
|
+
w.write4(section.registerOffset);
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
w.write4(section.args.length);
|
|
21
|
+
if (section.args.length > 0) {
|
|
22
|
+
w.write(section.args);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
static readWithCount(r, countNegative) {
|
|
27
|
+
CarbonSerialization_1.Throw.Assert(countNegative < 0, 'arg sections count must be negative');
|
|
28
|
+
const length = -countNegative;
|
|
29
|
+
const sections = new Array(length);
|
|
30
|
+
for (let i = 0; i < length; i++) {
|
|
31
|
+
const value = r.read4();
|
|
32
|
+
if (value < 0) {
|
|
33
|
+
sections[i] = { registerOffset: value, args: new Uint8Array() };
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const args = r.readExactly(value);
|
|
37
|
+
sections[i] = { registerOffset: 0, args };
|
|
38
|
+
}
|
|
39
|
+
return new MsgCallArgSections(sections);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.MsgCallArgSections = MsgCallArgSections;
|
|
4
43
|
class TxMsgCall {
|
|
5
44
|
constructor(moduleId = 0, methodId = 0, args = new Uint8Array()) {
|
|
6
45
|
this.moduleId = moduleId >>> 0;
|
|
7
46
|
this.methodId = methodId >>> 0;
|
|
8
47
|
this.args = args;
|
|
48
|
+
this.sections = null;
|
|
9
49
|
}
|
|
10
50
|
write(w) {
|
|
11
51
|
w.write4u(this.moduleId);
|
|
12
52
|
w.write4u(this.methodId);
|
|
13
|
-
|
|
53
|
+
if (this.sections && this.sections.hasSections()) {
|
|
54
|
+
this.sections.write(w);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
w.write4(this.args.length);
|
|
58
|
+
if (this.args.length > 0) {
|
|
59
|
+
w.write(this.args);
|
|
60
|
+
}
|
|
14
61
|
}
|
|
15
62
|
read(r) {
|
|
16
63
|
this.moduleId = r.read4u();
|
|
17
64
|
this.methodId = r.read4u();
|
|
18
|
-
|
|
65
|
+
const length = r.read4();
|
|
66
|
+
if (length >= 0) {
|
|
67
|
+
this.args = r.readExactly(length);
|
|
68
|
+
this.sections = null;
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.sections = MsgCallArgSections.readWithCount(r, length);
|
|
72
|
+
this.args = new Uint8Array();
|
|
19
73
|
}
|
|
20
74
|
static read(r) {
|
|
21
75
|
const v = new TxMsgCall();
|
|
@@ -24,7 +24,10 @@ class Ed25519Signature {
|
|
|
24
24
|
continue;
|
|
25
25
|
}
|
|
26
26
|
const pubKey = address.ToByteArray().slice(2);
|
|
27
|
-
|
|
27
|
+
const msgBytes = Buffer.from(message);
|
|
28
|
+
const sigHex = (0, utils_1.bytesToHex)(this.Bytes);
|
|
29
|
+
const pubKeyHex = (0, utils_1.bytesToHex)(pubKey);
|
|
30
|
+
if (ed25519.verify(msgBytes, sigHex, pubKeyHex)) {
|
|
28
31
|
return true;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
@@ -2,7 +2,7 @@ import { bytesToHex } from '../../../../../utils';
|
|
|
2
2
|
import { CarbonBinaryWriter } from '../../../../CarbonSerialization';
|
|
3
3
|
import { VmNamedVariableSchema } from '../../Vm/VmNamedVariableSchema';
|
|
4
4
|
import { VmStructSchema } from '../../Vm/VmStructSchema';
|
|
5
|
-
import { vmTypeFromString } from '../../Vm/VmType';
|
|
5
|
+
import { vmTypeFromString, VmType } from '../../Vm/VmType';
|
|
6
6
|
import { TokenSchemas } from '../TokenSchemas';
|
|
7
7
|
import { nftDefaultMetadataFields, seriesDefaultMetadataFields, standardMetadataFields } from './MetadataHelper';
|
|
8
8
|
export class TokenSchemasJson {
|
|
@@ -29,27 +29,40 @@ export function parseTokenSchemasJson(json) {
|
|
|
29
29
|
}
|
|
30
30
|
export class TokenSchemasBuilder {
|
|
31
31
|
static assertMetadataField(schemas, fieldTypes) {
|
|
32
|
-
|
|
32
|
+
for (const fieldType of fieldTypes) {
|
|
33
33
|
let fieldIsFound = false;
|
|
34
|
-
|
|
34
|
+
let caseMismatch = null;
|
|
35
|
+
for (const schema of schemas) {
|
|
35
36
|
const found = schema.fields.find(x => x.name.data === fieldType.name);
|
|
36
37
|
if (found != undefined) {
|
|
37
38
|
if (found.schema.type != fieldType.type) {
|
|
38
|
-
|
|
39
|
+
const actualType = VmType[found.schema.type] ?? found.schema.type;
|
|
40
|
+
const expectedType = VmType[fieldType.type] ?? fieldType.type;
|
|
41
|
+
return {
|
|
42
|
+
ok: false,
|
|
43
|
+
error: `Type mismatch for ${fieldType.name} field, must be ${actualType} instead of ${expectedType}`
|
|
44
|
+
};
|
|
39
45
|
}
|
|
40
46
|
fieldIsFound = true;
|
|
47
|
+
break;
|
|
41
48
|
}
|
|
42
|
-
|
|
49
|
+
if (!caseMismatch) {
|
|
43
50
|
const found2 = schema.fields.find(x => x.name.data.toLowerCase() === fieldType.name.toLowerCase());
|
|
44
51
|
if (found2 != undefined) {
|
|
45
|
-
|
|
52
|
+
caseMismatch = found2;
|
|
46
53
|
}
|
|
47
54
|
}
|
|
48
|
-
}
|
|
55
|
+
}
|
|
49
56
|
if (!fieldIsFound) {
|
|
57
|
+
if (caseMismatch) {
|
|
58
|
+
return {
|
|
59
|
+
ok: false,
|
|
60
|
+
error: `Case mismatch for ${fieldType.name} field, must be ${caseMismatch.name.data}`
|
|
61
|
+
};
|
|
62
|
+
}
|
|
50
63
|
return { ok: false, error: `Mandatory metadata field not found: ${fieldType.name}` };
|
|
51
64
|
}
|
|
52
|
-
}
|
|
65
|
+
}
|
|
53
66
|
return { ok: true, error: null };
|
|
54
67
|
}
|
|
55
68
|
static defaultSeriesSchema(sharedMetadata) {
|
|
@@ -1,18 +1,71 @@
|
|
|
1
|
+
import { Throw } from '../../CarbonSerialization';
|
|
2
|
+
export class MsgCallArgSections {
|
|
3
|
+
constructor(argSections = []) {
|
|
4
|
+
this.argSections = argSections;
|
|
5
|
+
}
|
|
6
|
+
hasSections() {
|
|
7
|
+
return this.argSections.length > 0;
|
|
8
|
+
}
|
|
9
|
+
write(w) {
|
|
10
|
+
Throw.Assert(this.argSections.length > 0, 'arg sections are empty');
|
|
11
|
+
w.write4(-this.argSections.length);
|
|
12
|
+
for (const section of this.argSections) {
|
|
13
|
+
if (section.registerOffset < 0) {
|
|
14
|
+
w.write4(section.registerOffset);
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
w.write4(section.args.length);
|
|
18
|
+
if (section.args.length > 0) {
|
|
19
|
+
w.write(section.args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
static readWithCount(r, countNegative) {
|
|
24
|
+
Throw.Assert(countNegative < 0, 'arg sections count must be negative');
|
|
25
|
+
const length = -countNegative;
|
|
26
|
+
const sections = new Array(length);
|
|
27
|
+
for (let i = 0; i < length; i++) {
|
|
28
|
+
const value = r.read4();
|
|
29
|
+
if (value < 0) {
|
|
30
|
+
sections[i] = { registerOffset: value, args: new Uint8Array() };
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
const args = r.readExactly(value);
|
|
34
|
+
sections[i] = { registerOffset: 0, args };
|
|
35
|
+
}
|
|
36
|
+
return new MsgCallArgSections(sections);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
1
39
|
export class TxMsgCall {
|
|
2
40
|
constructor(moduleId = 0, methodId = 0, args = new Uint8Array()) {
|
|
3
41
|
this.moduleId = moduleId >>> 0;
|
|
4
42
|
this.methodId = methodId >>> 0;
|
|
5
43
|
this.args = args;
|
|
44
|
+
this.sections = null;
|
|
6
45
|
}
|
|
7
46
|
write(w) {
|
|
8
47
|
w.write4u(this.moduleId);
|
|
9
48
|
w.write4u(this.methodId);
|
|
10
|
-
|
|
49
|
+
if (this.sections && this.sections.hasSections()) {
|
|
50
|
+
this.sections.write(w);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
w.write4(this.args.length);
|
|
54
|
+
if (this.args.length > 0) {
|
|
55
|
+
w.write(this.args);
|
|
56
|
+
}
|
|
11
57
|
}
|
|
12
58
|
read(r) {
|
|
13
59
|
this.moduleId = r.read4u();
|
|
14
60
|
this.methodId = r.read4u();
|
|
15
|
-
|
|
61
|
+
const length = r.read4();
|
|
62
|
+
if (length >= 0) {
|
|
63
|
+
this.args = r.readExactly(length);
|
|
64
|
+
this.sections = null;
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.sections = MsgCallArgSections.readWithCount(r, length);
|
|
68
|
+
this.args = new Uint8Array();
|
|
16
69
|
}
|
|
17
70
|
static read(r) {
|
|
18
71
|
const v = new TxMsgCall();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SignatureKind } from '../interfaces/Signature';
|
|
2
2
|
import pkg from 'elliptic';
|
|
3
|
-
import { stringToUint8Array, bytesToHex
|
|
3
|
+
import { stringToUint8Array, bytesToHex } from '../utils';
|
|
4
4
|
import { PBinaryWriter } from './Extensions';
|
|
5
5
|
const { eddsa } = pkg;
|
|
6
6
|
const ed25519 = new eddsa('ed25519');
|
|
@@ -18,7 +18,10 @@ export class Ed25519Signature {
|
|
|
18
18
|
continue;
|
|
19
19
|
}
|
|
20
20
|
const pubKey = address.ToByteArray().slice(2);
|
|
21
|
-
|
|
21
|
+
const msgBytes = Buffer.from(message);
|
|
22
|
+
const sigHex = bytesToHex(this.Bytes);
|
|
23
|
+
const pubKeyHex = bytesToHex(pubKey);
|
|
24
|
+
if (ed25519.verify(msgBytes, sigHex, pubKeyHex)) {
|
|
22
25
|
return true;
|
|
23
26
|
}
|
|
24
27
|
}
|
package/dist/types/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenSchemasBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAiF,MAAM,kBAAkB,CAAC;AAE5H,qBAAa,gBAAgB;IAC3B,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,GAAG,EAAE,SAAS,EAAE,CAAC;IACjB,GAAG,EAAE,SAAS,EAAE,CAAC;CAClB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAkBpE;AAED,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAC,mBAAmB;
|
|
1
|
+
{"version":3,"file":"TokenSchemasBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/types/Carbon/Blockchain/Modules/Builders/TokenSchemasBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAiF,MAAM,kBAAkB,CAAC;AAE5H,qBAAa,gBAAgB;IAC3B,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,GAAG,EAAE,SAAS,EAAE,CAAC;IACjB,GAAG,EAAE,SAAS,EAAE,CAAC;CAClB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAkBpE;AAED,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IA0ClC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAoBlC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAqBlC,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAkBzC,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAkBzC,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAiBzC,MAAM,CAAC,eAAe,CAAC,cAAc,EAAE,OAAO,GAAG,YAAY;IAe7D,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;IAgB3C,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,QAAQ,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAmBrF,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,YAAY,GAAG,QAAQ,CAAC,UAAU,CAAC;IAOlE,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC;IAIjE,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,cAAc;CAGxC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { ICarbonBlob } from '../../../interfaces/Carbon/ICarbonBlob';
|
|
2
2
|
import { CarbonBinaryReader, CarbonBinaryWriter } from '../../CarbonSerialization';
|
|
3
|
+
export type MsgCallArgs = {
|
|
4
|
+
registerOffset: number;
|
|
5
|
+
args: Uint8Array;
|
|
6
|
+
};
|
|
7
|
+
export declare class MsgCallArgSections {
|
|
8
|
+
argSections: MsgCallArgs[];
|
|
9
|
+
constructor(argSections?: MsgCallArgs[]);
|
|
10
|
+
hasSections(): boolean;
|
|
11
|
+
write(w: CarbonBinaryWriter): void;
|
|
12
|
+
static readWithCount(r: CarbonBinaryReader, countNegative: number): MsgCallArgSections;
|
|
13
|
+
}
|
|
3
14
|
export declare class TxMsgCall implements ICarbonBlob {
|
|
4
15
|
moduleId: number;
|
|
5
16
|
methodId: number;
|
|
6
17
|
args: Uint8Array;
|
|
18
|
+
sections: MsgCallArgSections | null;
|
|
7
19
|
constructor(moduleId?: number, methodId?: number, args?: Uint8Array);
|
|
8
20
|
write(w: CarbonBinaryWriter): void;
|
|
9
21
|
read(r: CarbonBinaryReader): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxMsgCall.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/Carbon/Blockchain/TxMsgCall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"TxMsgCall.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/Carbon/Blockchain/TxMsgCall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAS,MAAM,2BAA2B,CAAC;AAE1F,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,qBAAa,kBAAkB;IAC7B,WAAW,EAAE,WAAW,EAAE,CAAC;gBAEf,WAAW,GAAE,WAAW,EAAO;IAI3C,WAAW,IAAI,OAAO;IAItB,KAAK,CAAC,CAAC,EAAE,kBAAkB,GAAG,IAAI;IAelC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,GAAG,kBAAkB;CAevF;AAED,qBAAa,SAAU,YAAW,WAAW;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAC;gBAExB,QAAQ,GAAE,MAAU,EAAE,QAAQ,GAAE,MAAU,EAAE,IAAI,GAAE,UAA6B;IAO3F,KAAK,CAAC,CAAC,EAAE,kBAAkB,GAAG,IAAI;IAalC,IAAI,CAAC,CAAC,EAAE,kBAAkB,GAAG,IAAI;IAajC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,kBAAkB,GAAG,SAAS;CAK9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ed25519Signature.d.ts","sourceRoot":"","sources":["../../../../src/core/types/Ed25519Signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI5D,qBAAa,gBAAiB,YAAW,SAAS;IACzC,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,aAAa,CAAyB;gBAEvC,KAAK,CAAC,EAAE,UAAU;IAI9B,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;IAI/C,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"Ed25519Signature.d.ts","sourceRoot":"","sources":["../../../../src/core/types/Ed25519Signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI5D,qBAAa,gBAAiB,YAAW,SAAS;IACzC,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,aAAa,CAAyB;gBAEvC,KAAK,CAAC,EAAE,UAAU;IAI9B,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;IAI/C,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO;IAgBlE,aAAa,CAAC,MAAM,EAAE,aAAa;IAKnC,eAAe,CAAC,MAAM,EAAE,aAAa;IAI5C,WAAW,IAAI,UAAU;WAOX,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,GAAG,gBAAgB;CASjF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phantasma-sdk-ts",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.6",
|
|
4
|
+
"description": "Typescript SDK for interacting with the Phantasma Chain",
|
|
5
5
|
"author": "Phantasma Team",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|