@kynesyslabs/demosdk 1.0.13 → 1.0.14

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.
Files changed (62) hide show
  1. package/build/multichain/core/index.d.ts +1 -1
  2. package/build/multichain/core/solana.d.ts +19 -0
  3. package/build/multichain/core/solana.js +119 -0
  4. package/build/multichain/core/solana.js.map +1 -0
  5. package/build/multichain/core/types/defaultChain.d.ts +2 -2
  6. package/build/multichain/core/types/defaultChain.js.map +1 -1
  7. package/build/multichain/core/types/interfaces.d.ts +1 -1
  8. package/build/multichain/localsdk/evm.d.ts +2 -5
  9. package/build/multichain/localsdk/evm.js.map +1 -1
  10. package/build/multichain/localsdk/ibc.d.ts +2 -5
  11. package/build/multichain/localsdk/ibc.js.map +1 -1
  12. package/build/multichain/localsdk/multiversx.d.ts +2 -5
  13. package/build/multichain/localsdk/multiversx.js.map +1 -1
  14. package/build/multichain/localsdk/xrp.d.ts +2 -15
  15. package/build/multichain/localsdk/xrp.js.map +1 -1
  16. package/build/types/blockchain/Transaction.d.ts +2 -2
  17. package/build/types/web2/index.d.ts +8 -1
  18. package/build/types/web2/index.js +9 -0
  19. package/build/types/web2/index.js.map +1 -1
  20. package/build/websdk/DemosTransactions.d.ts +8 -0
  21. package/build/websdk/DemosTransactions.js +100 -0
  22. package/build/websdk/DemosTransactions.js.map +1 -0
  23. package/build/websdk/DemosWebAuth.d.ts +27 -0
  24. package/build/websdk/DemosWebAuth.js +200 -0
  25. package/build/websdk/DemosWebAuth.js.map +1 -0
  26. package/build/websdk/Web2Transactions.d.ts +2 -0
  27. package/build/websdk/Web2Transactions.js +58 -0
  28. package/build/websdk/Web2Transactions.js.map +1 -0
  29. package/build/websdk/XMTransactions.d.ts +69 -0
  30. package/build/websdk/XMTransactions.js +124 -0
  31. package/build/websdk/XMTransactions.js.map +1 -0
  32. package/build/websdk/demos.d.ts +61 -0
  33. package/build/websdk/demos.js +401 -0
  34. package/build/websdk/demos.js.map +1 -0
  35. package/build/websdk/index.d.ts +11 -0
  36. package/build/websdk/index.js +32 -0
  37. package/build/websdk/index.js.map +1 -0
  38. package/build/websdk/rsa.d.ts +19 -0
  39. package/build/websdk/rsa.js +86 -0
  40. package/build/websdk/rsa.js.map +1 -0
  41. package/build/websdk/types/IBuffer.d.ts +4 -0
  42. package/build/websdk/types/IBuffer.js +3 -0
  43. package/build/websdk/types/IBuffer.js.map +1 -0
  44. package/build/websdk/types/KeyPair.d.ts +9 -0
  45. package/build/websdk/types/KeyPair.js +3 -0
  46. package/build/websdk/types/KeyPair.js.map +1 -0
  47. package/build/websdk/utils/bufferizer.d.ts +9 -0
  48. package/build/websdk/utils/bufferizer.js +19 -0
  49. package/build/websdk/utils/bufferizer.js.map +1 -0
  50. package/build/websdk/utils/forge_converter.d.ts +3 -0
  51. package/build/websdk/utils/forge_converter.js +73 -0
  52. package/build/websdk/utils/forge_converter.js.map +1 -0
  53. package/build/websdk/utils/required.d.ts +21 -0
  54. package/build/websdk/utils/required.js +48 -0
  55. package/build/websdk/utils/required.js.map +1 -0
  56. package/build/websdk/utils/sha256.d.ts +4 -0
  57. package/build/websdk/utils/sha256.js +18 -0
  58. package/build/websdk/utils/sha256.js.map +1 -0
  59. package/build/websdk/utils/skeletons.d.ts +37 -0
  60. package/build/websdk/utils/skeletons.js +70 -0
  61. package/build/websdk/utils/skeletons.js.map +1 -0
  62. package/package.json +3 -1
@@ -0,0 +1,3 @@
1
+ declare function forgeToString(forgeBuffer: any, isHex?: boolean): string;
2
+ declare function stringToForge(string: any, isHex?: boolean): false | Uint8Array;
3
+ export { forgeToString, stringToForge };
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringToForge = exports.forgeToString = void 0;
4
+ const buffer_1 = require("buffer/");
5
+ function forgeToString(forgeBuffer, isHex = true) {
6
+ if (isHex)
7
+ return ForgeToHex(forgeBuffer);
8
+ else
9
+ return forgeToRawString(forgeBuffer);
10
+ }
11
+ exports.forgeToString = forgeToString;
12
+ // NOTE Only if the string is an hex string it can be reverted to a forge buffer
13
+ function stringToForge(string, isHex = true) {
14
+ if (isHex)
15
+ return HexToForge(string); // Uint8Array
16
+ else
17
+ return rawStringToForge(string); // Will try to hexify and then HexToForge
18
+ }
19
+ exports.stringToForge = stringToForge;
20
+ // NOTE It does output just a stringified version of the buffer
21
+ function forgeToRawString(forgeBuffer) {
22
+ console.log('[forge to string]');
23
+ // This should be a Uint8Array-like object or a Buffer or a BinaryBuffer
24
+ const derived = JSON.stringify(forgeBuffer); // FIXME Error handling!
25
+ console.log(derived);
26
+ return derived; // String
27
+ }
28
+ // NOTE Remove if vestigial
29
+ function rawStringToForge(forgeString) {
30
+ // NOTE This works only if the string can be reduced to a proper hex private key
31
+ let hexified = buffer_1.Buffer.from(forgeString).toString('hex');
32
+ if (hexified.length != 128) {
33
+ console.log('[string to forge] Invalid private key!');
34
+ return false;
35
+ }
36
+ console.log('[string to forge]');
37
+ const derived = HexToForge(hexified);
38
+ console.log(derived);
39
+ return derived;
40
+ }
41
+ // NOTE The following methods must be revertible with each other:
42
+ // - ForgeToHex
43
+ // - HexToForge
44
+ // INFO forgeBuffer comes in as the raw result of forge methods (so is most likely a BinaryBuffer)
45
+ function ForgeToHex(forgeBuffer) {
46
+ const hex = '';
47
+ console.log('[forge to string encoded]');
48
+ console.log(forgeBuffer);
49
+ // Transforming into a supported Buffer and then to hex string for portability
50
+ const rebuffer = buffer_1.Buffer.from(forgeBuffer);
51
+ forgeBuffer = rebuffer.toString('hex');
52
+ console.log('DECODED INTO:');
53
+ console.log('0x' + forgeBuffer);
54
+ return '0x' + forgeBuffer; // String
55
+ }
56
+ // INFO finalArray must come out as an acceptable input for forge methods
57
+ function HexToForge(forgeString) {
58
+ forgeString = forgeString.slice(2);
59
+ // Preparing the Uint8Array to be used to revert the hex string
60
+ const finalArray = new Uint8Array(64);
61
+ console.log('[string to forge encoded]');
62
+ console.log(forgeString);
63
+ // Parsing the hex string into a Uint8Array by splitting it into 2-char chunks and parsing them into decimal values
64
+ for (let i = 0; i < forgeString.length; i += 2) {
65
+ const hexValue = forgeString.substr(i, 2);
66
+ const decimalValue = parseInt(hexValue, 16);
67
+ finalArray[i / 2] = decimalValue;
68
+ }
69
+ console.log('ENCODED INTO:');
70
+ console.log(finalArray);
71
+ return finalArray; // Uint8Array
72
+ }
73
+ //# sourceMappingURL=forge_converter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forge_converter.js","sourceRoot":"","sources":["../../../../src/websdk/utils/forge_converter.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * INFO Small module to quickly implement a require-like method as seen in Solidity
3
+ * NOTE Either causes an exception or returns false if the requirement is not met.
4
+ *
5
+ * @author TheCookingSenpai
6
+ * @date 2/9/2023 - 04:15:18
7
+ *
8
+ * @param {any} value
9
+ * @param {boolean} is_fatal
10
+ * @returns {void | boolean}
11
+ */
12
+ export declare function required(value: any, is_fatal?: boolean): void | boolean;
13
+ /**
14
+ * Throw an error if a value is nullish
15
+ *
16
+ * @param {any} value The value to check
17
+ * @param {string} msg The help text on error
18
+ * @param {boolean} fatal should we raise an error? Default: `true`
19
+ *
20
+ */
21
+ export declare function _required(value: any, msg?: string, fatal?: boolean): boolean;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._required = exports.required = void 0;
4
+ /**
5
+ * INFO Small module to quickly implement a require-like method as seen in Solidity
6
+ * NOTE Either causes an exception or returns false if the requirement is not met.
7
+ *
8
+ * @author TheCookingSenpai
9
+ * @date 2/9/2023 - 04:15:18
10
+ *
11
+ * @param {any} value
12
+ * @param {boolean} is_fatal
13
+ * @returns {void | boolean}
14
+ */
15
+ function required(value, is_fatal = true) {
16
+ if (!value) {
17
+ if (is_fatal) {
18
+ throw new Error('Value of ' + value + ' is required and failed');
19
+ }
20
+ else {
21
+ return false;
22
+ }
23
+ }
24
+ // Requirements are met
25
+ return true;
26
+ }
27
+ exports.required = required;
28
+ /**
29
+ * Throw an error if a value is nullish
30
+ *
31
+ * @param {any} value The value to check
32
+ * @param {string} msg The help text on error
33
+ * @param {boolean} fatal should we raise an error? Default: `true`
34
+ *
35
+ */
36
+ function _required(value, msg = 'Missing required element', fatal = true) {
37
+ // INFO: Copied from node repo
38
+ if (!value) {
39
+ if (fatal) {
40
+ throw new Error('[REQUIRED] ' + msg);
41
+ }
42
+ ;
43
+ return false;
44
+ }
45
+ return true;
46
+ }
47
+ exports._required = _required;
48
+ //# sourceMappingURL=required.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required.js","sourceRoot":"","sources":["../../../../src/websdk/utils/required.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,SAAgB,QAAQ,CAAC,KAAU,EAAE,WAAoB,IAAI;IAC5D,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,IAAI,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,WAAW,GAAG,KAAK,GAAG,yBAAyB,CAAC,CAAC;QAClE,CAAC;aAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;IACD,uBAAuB;IACvB,OAAO,IAAI,CAAC;AACb,CAAC;AAVD,4BAUC;AAED;;;;;;;GAOG;AACH,SAAgB,SAAS,CAAC,KAAU,EAAE,MAAc,0BAA0B,EAAE,QAAiB,IAAI;IACpG,8BAA8B;IAE9B,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,IAAI,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,aAAa,GAAG,GAAG,CAAC,CAAA;QACrC,CAAC;QAAA,CAAC;QAEF,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAZD,8BAYC"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Hashes any string using crypto subtle
3
+ */
4
+ export declare function sha256(string: string): Promise<string>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sha256 = void 0;
4
+ /**
5
+ * Hashes any string using crypto subtle
6
+ */
7
+ async function sha256(string) {
8
+ const utf8 = new TextEncoder().encode(string);
9
+ const hashBuffer = await crypto.subtle.digest('SHA-256', utf8);
10
+ const hashArray = Array.from(new Uint8Array(hashBuffer)); // FIXME Review if it's to change to buffer here
11
+ // sourcery skip: inline-immediately-returned-variable
12
+ const hashHex = hashArray
13
+ .map((bytes) => bytes.toString(16).padStart(2, '0'))
14
+ .join('');
15
+ return hashHex;
16
+ }
17
+ exports.sha256 = sha256;
18
+ //# sourceMappingURL=sha256.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sha256.js","sourceRoot":"","sources":["../../../../src/websdk/utils/sha256.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACI,KAAK,UAAU,MAAM,CAAE,MAAc;IAC1C,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7C,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;IAC9D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA,CAAC,gDAAgD;IACzG,sDAAsD;IACtD,MAAM,OAAO,GAAG,SAAS;SACtB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;SACnD,IAAI,CAAC,EAAE,CAAC,CAAA;IACX,OAAO,OAAO,CAAA;AAChB,CAAC;AATD,wBASC"}
@@ -0,0 +1,37 @@
1
+ import type { Transaction } from '../../types';
2
+ import { EnumWeb2Methods } from '../../types/web2';
3
+ declare const transaction: Transaction;
4
+ declare const crosschain_operation: {
5
+ chain: null;
6
+ subchain: null;
7
+ is_evm: null;
8
+ rpc: null;
9
+ task: {
10
+ type: null;
11
+ params: {};
12
+ signedPayloads: never[];
13
+ };
14
+ };
15
+ declare const web2_request: {
16
+ raw: {
17
+ action: string;
18
+ parameters: never[];
19
+ requestedParameters: null;
20
+ method: EnumWeb2Methods;
21
+ url: string;
22
+ headers: null;
23
+ minAttestations: number;
24
+ stage: {
25
+ origin: {
26
+ identity: string;
27
+ connection_url: string;
28
+ };
29
+ hop_number: number;
30
+ };
31
+ };
32
+ result: null;
33
+ attestations: Map<any, any>;
34
+ hash: string;
35
+ signature: string;
36
+ };
37
+ export { crosschain_operation, transaction, web2_request };
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.web2_request = exports.transaction = exports.crosschain_operation = void 0;
4
+ const web2_1 = require("../../types/web2");
5
+ // TODO This should be a collection of classes now that we use TypeScript
6
+ // FIXME ^
7
+ // INFO An empty transaction
8
+ const transaction = {
9
+ content: {
10
+ type: '', // string
11
+ from: '', // forge.pki.ed25519.BinaryBuffer
12
+ to: '', // forge.pki.ed25519.BinaryBuffer
13
+ amount: 0, // number
14
+ data: ['', ''], // [string, string] // type as string and content in hex string
15
+ nonce: 0, // number // Increments every time a transaction is sent from the same account
16
+ timestamp: 0, // number // Is the registered unix timestamp when the transaction was sent the first time
17
+ transaction_fee: {
18
+ network_fee: 0,
19
+ rpc_fee: 0,
20
+ additional_fee: 0,
21
+ },
22
+ },
23
+ signature: null, // pki.ed25519.BinaryBuffer
24
+ hash: '', // string
25
+ status: '', // string
26
+ blockNumber: null, // number
27
+ };
28
+ exports.transaction = transaction;
29
+ // INFO An empty crosschain operation object
30
+ const crosschain_operation = {
31
+ chain: null,
32
+ subchain: null,
33
+ is_evm: null,
34
+ rpc: null,
35
+ task: {
36
+ type: null,
37
+ params: {},
38
+ signedPayloads: [],
39
+ },
40
+ // signedPayloads: []
41
+ };
42
+ exports.crosschain_operation = crosschain_operation;
43
+ // INFO An empty web2 request object
44
+ const web2_request = {
45
+ raw: {
46
+ action: '',
47
+ parameters: [],
48
+ requestedParameters: null, // Means all
49
+ method: web2_1.EnumWeb2Methods.GET,
50
+ url: '',
51
+ headers: null,
52
+ minAttestations: 2,
53
+ // Handling the various stages of an IWeb2Request
54
+ stage: {
55
+ // The one that will handle the response too
56
+ origin: {
57
+ identity: '',
58
+ connection_url: '',
59
+ },
60
+ // Starting from 0, each attestation it is increased
61
+ hop_number: 0,
62
+ },
63
+ },
64
+ result: null,
65
+ attestations: new Map(),
66
+ hash: '',
67
+ signature: '',
68
+ };
69
+ exports.web2_request = web2_request;
70
+ //# sourceMappingURL=skeletons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeletons.js","sourceRoot":"","sources":["../../../../src/websdk/utils/skeletons.ts"],"names":[],"mappings":";;;AACA,uCAA8C;AAC9C,yEAAyE;AACzE,UAAU;AAEV,4BAA4B;AAC5B,MAAM,WAAW,GAAgB;IAC7B,OAAO,EAAE;QACL,IAAI,EAAE,EAAE,EAAE,SAAS;QACnB,IAAI,EAAE,EAAE,EAAE,iCAAiC;QAC3C,EAAE,EAAE,EAAE,EAAE,iCAAiC;QACzC,MAAM,EAAE,CAAC,EAAE,SAAS;QACpB,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,+DAA+D;QAC/E,KAAK,EAAE,CAAC,EAAE,8EAA8E;QACxF,SAAS,EAAE,CAAC,EAAE,0FAA0F;QACxG,eAAe,EAAE;YACb,WAAW,EAAE,CAAC;YACd,OAAO,EAAE,CAAC;YACV,cAAc,EAAE,CAAC;SACpB;KACJ;IACD,SAAS,EAAE,IAAI,EAAE,2BAA2B;IAC5C,IAAI,EAAE,EAAE,EAAE,SAAS;IACnB,MAAM,EAAE,EAAE,EAAE,SAAS;IACrB,WAAW,EAAE,IAAI,EAAE,SAAS;CAC/B,CAAA;AA2C8B,kCAAW;AAzC1C,4CAA4C;AAC5C,MAAM,oBAAoB,GAAG;IACzB,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,GAAG,EAAE,IAAI;IACT,IAAI,EAAE;QACF,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,EAAE;QACV,cAAc,EAAE,EAAE;KACrB;IACD,qBAAqB;CACxB,CAAA;AA6BQ,oDAAoB;AA3B7B,oCAAoC;AACpC,MAAM,YAAY,GAAG;IACjB,GAAG,EAAE;QACD,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,EAAE;QACd,mBAAmB,EAAE,IAAI,EAAE,YAAY;QACvC,MAAM,EAAE,sBAAe,CAAC,GAAG;QAC3B,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,IAAI;QACb,eAAe,EAAE,CAAC;QAClB,iDAAiD;QACjD,KAAK,EAAE;YACH,4CAA4C;YAC5C,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE;gBACZ,cAAc,EAAE,EAAE;aACrB;YACD,oDAAoD;YACpD,UAAU,EAAE,CAAC;SAChB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,IAAI,GAAG,EAAE;IACvB,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,EAAE;CAChB,CAAA;AAE2C,oCAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynesyslabs/demosdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "author": "Kynesys Labs",
@@ -12,6 +12,7 @@
12
12
  "exports": {
13
13
  ".": "./build/index.js",
14
14
  "./types": "./build/types/index.js",
15
+ "./websdk": "./build/websdk/index.js",
15
16
  "./xm-websdk": "./build/multichain/websdk/index.js",
16
17
  "./xm-localsdk": "./build/multichain/localsdk/index.js"
17
18
  },
@@ -27,6 +28,7 @@
27
28
  "@multiversx/sdk-extension-provider": "^3.0.0",
28
29
  "@multiversx/sdk-network-providers": "^2.4.3",
29
30
  "@multiversx/sdk-wallet": "^4.4.0",
31
+ "@solana/web3.js": "^1.91.7",
30
32
  "ethers": "^6.11.1",
31
33
  "node-forge": "^1.3.1",
32
34
  "socket.io-client": "^4.7.2",