@kynesyslabs/demosdk 2.2.31 → 2.2.32

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,14 +1,6 @@
1
1
  import { BridgeTradePayload } from "../types/bridge/bridgeTradePayload";
2
2
  import { ChainProviders, SupportedChains, SupportedTokens } from "../types/bridge/constants";
3
3
  export { BridgeTradePayload, ChainProviders, SupportedChains, SupportedTokens };
4
- import * as NativeBridgeTypes from "./nativeBridgeTypes";
5
- declare const NativeBridge: {
6
- types: typeof NativeBridgeTypes;
7
- methods: {
8
- generateOperation(): {
9
- operation: NativeBridgeTypes.BridgeOperation;
10
- transaction: import("../types").Transaction;
11
- };
12
- };
13
- };
14
- export { NativeBridge };
4
+ import { methods as NativeBridgeMethods } from "./nativeBridge";
5
+ export { NativeBridgeMethods };
6
+ export { BridgeOperation as NativeBridgeOperation, NativeBridgePayload, SupportedChain as NativeBridgeSupportedChain, SupportedStablecoin as NativeBridgeSupportedStablecoin, SupportedEVMChain as NativeBridgeSupportedEVMChain, supportedChains as NativeBridgeSupportedChains, supportedStablecoins as NativeBridgeSupportedStablecoins, supportedEVMChains as NativeBridgeSupportedEVMChains, usdcContracts as NativeBridgeUSDCContracts, usdcAbi as NativeBridgeUSDCAbi, } from "./nativeBridgeTypes";
@@ -1,49 +1,17 @@
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.NativeBridge = exports.SupportedTokens = exports.SupportedChains = exports.ChainProviders = void 0;
3
+ exports.NativeBridgeUSDCAbi = exports.NativeBridgeUSDCContracts = exports.NativeBridgeSupportedEVMChains = exports.NativeBridgeSupportedStablecoins = exports.NativeBridgeSupportedChains = exports.NativeBridgeMethods = exports.SupportedTokens = exports.SupportedChains = exports.ChainProviders = void 0;
37
4
  const constants_1 = require("../types/bridge/constants");
38
5
  Object.defineProperty(exports, "ChainProviders", { enumerable: true, get: function () { return constants_1.ChainProviders; } });
39
6
  Object.defineProperty(exports, "SupportedChains", { enumerable: true, get: function () { return constants_1.SupportedChains; } });
40
7
  Object.defineProperty(exports, "SupportedTokens", { enumerable: true, get: function () { return constants_1.SupportedTokens; } });
41
- // Native bridge exports
42
- const NativeBridgeTypes = __importStar(require("./nativeBridgeTypes"));
43
8
  const nativeBridge_1 = require("./nativeBridge");
44
- const NativeBridge = {
45
- types: NativeBridgeTypes,
46
- methods: nativeBridge_1.methods,
47
- };
48
- exports.NativeBridge = NativeBridge;
9
+ Object.defineProperty(exports, "NativeBridgeMethods", { enumerable: true, get: function () { return nativeBridge_1.methods; } });
10
+ // Export types from nativeBridgeTypes
11
+ var nativeBridgeTypes_1 = require("./nativeBridgeTypes");
12
+ Object.defineProperty(exports, "NativeBridgeSupportedChains", { enumerable: true, get: function () { return nativeBridgeTypes_1.supportedChains; } });
13
+ Object.defineProperty(exports, "NativeBridgeSupportedStablecoins", { enumerable: true, get: function () { return nativeBridgeTypes_1.supportedStablecoins; } });
14
+ Object.defineProperty(exports, "NativeBridgeSupportedEVMChains", { enumerable: true, get: function () { return nativeBridgeTypes_1.supportedEVMChains; } });
15
+ Object.defineProperty(exports, "NativeBridgeUSDCContracts", { enumerable: true, get: function () { return nativeBridgeTypes_1.usdcContracts; } });
16
+ Object.defineProperty(exports, "NativeBridgeUSDCAbi", { enumerable: true, get: function () { return nativeBridgeTypes_1.usdcAbi; } });
49
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bridge/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAIiC;AAEJ,+FALzB,0BAAc,OAKyB;AAAE,gGAJzC,2BAAe,OAIyC;AAAE,gGAH1D,2BAAe,OAG0D;AAE7E,wBAAwB;AACxB,uEAAwD;AACxD,iDAA+D;AAE/D,MAAM,YAAY,GAAG;IACjB,KAAK,EAAE,iBAAiB;IACxB,OAAO,EAAE,sBAAmB;CAC/B,CAAA;AAEQ,oCAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bridge/index.ts"],"names":[],"mappings":";;;AACA,wDAIiC;AAEJ,+FALzB,0BAAc,OAKyB;AAAE,gGAJzC,2BAAe,OAIyC;AAAE,gGAH1D,2BAAe,OAG0D;AAE7E,iDAA+D;AACtD,oGADW,sBAAmB,OACX;AAE5B,sCAAsC;AACtC,yDAW4B;AALxB,gIAAA,eAAe,OAA+B;AAC9C,qIAAA,oBAAoB,OAAoC;AACxD,mIAAA,kBAAkB,OAAkC;AACpD,8HAAA,aAAa,OAA6B;AAC1C,wHAAA,OAAO,OAAuB"}
@@ -1,5 +1,16 @@
1
1
  export declare const supportedChains: readonly ["EVM", "SOLANA"];
2
2
  export declare const supportedStablecoins: readonly ["USDC"];
3
+ export type BridgeOperation = {
4
+ demoAddress: string;
5
+ originChain: SupportedChain;
6
+ destinationChain: SupportedChain;
7
+ originAddress: string;
8
+ destinationAddress: string;
9
+ amount: string;
10
+ token: SupportedStablecoin;
11
+ txHash: string;
12
+ status: "empty" | "pending" | "completed" | "failed";
13
+ };
3
14
  export type NativeBridgePayload = {
4
15
  operation: BridgeOperation;
5
16
  };
@@ -18,14 +29,3 @@ export declare const usdcAbi: string[];
18
29
  export type SupportedChain = typeof supportedChains[number];
19
30
  export type SupportedStablecoin = typeof supportedStablecoins[number];
20
31
  export type SupportedEVMChain = typeof supportedEVMChains[number];
21
- export interface BridgeOperation {
22
- demoAddress: string;
23
- originChain: SupportedChain;
24
- destinationChain: SupportedChain;
25
- originAddress: string;
26
- destinationAddress: string;
27
- amount: string;
28
- token: SupportedStablecoin;
29
- txHash: string;
30
- status: "empty" | "pending" | "completed" | "failed";
31
- }
@@ -1 +1 @@
1
- {"version":3,"file":"nativeBridgeTypes.js","sourceRoot":"","sources":["../../../src/bridge/nativeBridgeTypes.ts"],"names":[],"mappings":";AAAA,8FAA8F;;;AAE9F,mCAAmC;AACtB,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAU,CAAA;AAC5C,QAAA,oBAAoB,GAAG,CAAC,MAAM,CAAU,CAAA;AAMrD,2BAA2B;AACd,QAAA,kBAAkB,GAAG;IAC9B,KAAK;IACL,SAAS;IACT,KAAK;IACL,UAAU;IACV,UAAU;IACV,WAAW;IACX,MAAM;CACA,CAAA;AAEV,mEAAmE;AACtD,QAAA,aAAa,GAAG;IACzB,QAAQ,EAAE,4CAA4C,EAAE,eAAe;IACvE,OAAO,EAAE,4CAA4C,EAAE,cAAc;IACrE,GAAG,EAAE,4CAA4C,EAAE,mBAAmB;IACtE,QAAQ,EAAE,4CAA4C,EAAE,wBAAwB;IAChF,QAAQ,EAAE,4CAA4C,EAAE,wBAAwB;IAChF,SAAS,EAAE,4CAA4C,EAAE,YAAY;IACrE,IAAI,EAAE,4CAA4C,EAAE,oBAAoB;IACxE,MAAM,EAAE,8CAA8C,EAAE,qBAAqB;CAChF,CAAA;AAED,gCAAgC;AACnB,QAAA,OAAO,GAAG;IACnB,0DAA0D;IAC1D,0CAA0C;CAC7C,CAAA"}
1
+ {"version":3,"file":"nativeBridgeTypes.js","sourceRoot":"","sources":["../../../src/bridge/nativeBridgeTypes.ts"],"names":[],"mappings":";AAAA,8FAA8F;;;AAE9F,mCAAmC;AACtB,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAU,CAAA;AAC5C,QAAA,oBAAoB,GAAG,CAAC,MAAM,CAAU,CAAA;AAoBrD,2BAA2B;AACd,QAAA,kBAAkB,GAAG;IAC9B,KAAK;IACL,SAAS;IACT,KAAK;IACL,UAAU;IACV,UAAU;IACV,WAAW;IACX,MAAM;CACA,CAAA;AAEV,mEAAmE;AACtD,QAAA,aAAa,GAAG;IACzB,QAAQ,EAAE,4CAA4C,EAAE,eAAe;IACvE,OAAO,EAAE,4CAA4C,EAAE,cAAc;IACrE,GAAG,EAAE,4CAA4C,EAAE,mBAAmB;IACtE,QAAQ,EAAE,4CAA4C,EAAE,wBAAwB;IAChF,QAAQ,EAAE,4CAA4C,EAAE,wBAAwB;IAChF,SAAS,EAAE,4CAA4C,EAAE,YAAY;IACrE,IAAI,EAAE,4CAA4C,EAAE,oBAAoB;IACxE,MAAM,EAAE,8CAA8C,EAAE,qBAAqB;CAChF,CAAA;AAED,gCAAgC;AACnB,QAAA,OAAO,GAAG;IACnB,0DAA0D;IAC1D,0CAA0C;CAC7C,CAAA"}
package/build/index.js CHANGED
@@ -49,5 +49,6 @@ exports.l2ps = __importStar(require("./l2ps")); // REVIEW This is exporting the
49
49
  exports.websdk = __importStar(require("./websdk"));
50
50
  exports.abstraction = __importStar(require("./abstraction"));
51
51
  exports.web2 = __importStar(require("./websdk/Web2Calls"));
52
+ // Export bridge module and its types
52
53
  exports.bridge = __importStar(require("./bridge"));
53
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA6B;AAC7B,iDAAgC;AAChC,sDAAsD;AACtD,2DAA0C;AAC1C,iDAAgC;AAEhC,gCAAgC;AAChC,oEAAmD;AACnD,gEAA+C;AAC/C,4DAA2C,CAAC,gCAAgC;AAE5E,mDAAkC;AAClC,yDAAwC;AAExC,+CAA8B,CAAC,oFAAoF;AAEnH,mDAAkC;AAClC,6DAA4C;AAC5C,2DAA0C;AAE1C,mDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA6B;AAC7B,iDAAgC;AAChC,sDAAsD;AACtD,2DAA0C;AAC1C,iDAAgC;AAEhC,gCAAgC;AAChC,oEAAmD;AACnD,gEAA+C;AAC/C,4DAA2C,CAAC,gCAAgC;AAE5E,mDAAkC;AAClC,yDAAwC;AAExC,+CAA8B,CAAC,oFAAoF;AAEnH,mDAAkC;AAClC,6DAA4C;AAC5C,2DAA0C;AAE1C,qCAAqC;AACrC,mDAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynesyslabs/demosdk",
3
- "version": "2.2.31",
3
+ "version": "2.2.32",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "author": "Kynesys Labs",