hermes-swap 0.0.1 → 0.0.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 @@
1
+ function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}var Hermes=/*#__PURE__*/function(){function a(){_classCallCheck(this,a)}return _createClass(a,[{key:"expect",value:function expect(){return Promise.resolve(BigInt(0))}},{key:"swap",value:function swap(a){var b={fromToken:a.fromToken,toToken:a.toToken,amount:a.amount};return Promise.resolve(b)}},{key:"bridge",value:function bridge(a){var b={fromToken:a.fromToken,toToken:a.toToken,amount:a.amount};return Promise.resolve(b)}},{key:"swapAndBridge",value:function swapAndBridge(){return Promise.resolve({})}}]),a}();export default Hermes;
@@ -0,0 +1 @@
1
+ export{};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hermes-swap",
3
- "version": "0.0.1",
4
- "description": "A TypeScript utility library for value guard operations",
3
+ "version": "0.0.3",
4
+ "description": "A TypeScript utility library for swap and bridge",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
7
7
  "scripts": {
@@ -16,7 +16,8 @@
16
16
  },
17
17
  "keywords": [
18
18
  "typescript",
19
- "value-guard",
19
+ "swap",
20
+ "bridge",
20
21
  "utility",
21
22
  "validation"
22
23
  ],
@@ -31,6 +32,7 @@
31
32
  },
32
33
  "devDependencies": {
33
34
  "@types/jest": "^30.0.0",
35
+ "babel-preset-minify": "^0.5.2",
34
36
  "father": "^4.6.5",
35
37
  "jest": "^30.1.3",
36
38
  "ts-jest": "^29.4.4",
package/dist/cjs/index.js DELETED
@@ -1,52 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/index.ts
20
- var src_exports = {};
21
- __export(src_exports, {
22
- default: () => src_default
23
- });
24
- module.exports = __toCommonJS(src_exports);
25
- var Hermes = class {
26
- constructor() {
27
- }
28
- expect(params) {
29
- return Promise.resolve(BigInt(0));
30
- }
31
- swap(params) {
32
- const receipt = {
33
- fromToken: params.fromToken,
34
- toToken: params.toToken,
35
- amount: params.amount
36
- };
37
- return Promise.resolve(receipt);
38
- }
39
- bridge(params) {
40
- const receipt = {
41
- fromToken: params.fromToken,
42
- toToken: params.toToken,
43
- amount: params.amount
44
- };
45
- return Promise.resolve(receipt);
46
- }
47
- swapAndBridge(params) {
48
- const receipt = {};
49
- return Promise.resolve(receipt);
50
- }
51
- };
52
- var src_default = Hermes;
package/dist/cjs/types.js DELETED
@@ -1,17 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
-
15
- // src/types.ts
16
- var types_exports = {};
17
- module.exports = __toCommonJS(types_exports);
File without changes
File without changes