@reyaxyz/common 0.97.0 → 0.98.1

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 (61) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +1 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/services/getSocketBridgeTime.js +5 -5
  5. package/dist/services/getSocketBridgeTime.js.map +1 -1
  6. package/dist/transactions/abis/CoreProxy.json +5600 -0
  7. package/dist/transactions/abis/Periphery.json +1464 -0
  8. package/dist/transactions/abis/socket/VaultWithPayload.json +40 -0
  9. package/dist/transactions/action.js +22 -0
  10. package/dist/transactions/action.js.map +1 -0
  11. package/dist/transactions/consts.js +7 -0
  12. package/dist/transactions/consts.js.map +1 -0
  13. package/dist/transactions/contractAddresses.js +36 -0
  14. package/dist/transactions/contractAddresses.js.map +1 -0
  15. package/dist/transactions/executeTransaction.js +120 -0
  16. package/dist/transactions/executeTransaction.js.map +1 -0
  17. package/dist/transactions/index.js +32 -0
  18. package/dist/transactions/index.js.map +1 -0
  19. package/dist/transactions/routerCommands.js +45 -0
  20. package/dist/transactions/routerCommands.js.map +1 -0
  21. package/dist/transactions/sign.js +146 -0
  22. package/dist/transactions/sign.js.map +1 -0
  23. package/dist/transactions/trade.js +24 -0
  24. package/dist/transactions/trade.js.map +1 -0
  25. package/dist/transactions/txHelpers.js +8 -0
  26. package/dist/transactions/txHelpers.js.map +1 -0
  27. package/dist/types/index.d.ts +1 -0
  28. package/dist/types/index.d.ts.map +1 -1
  29. package/dist/types/transactions/action.d.ts +27 -0
  30. package/dist/types/transactions/action.d.ts.map +1 -0
  31. package/dist/types/transactions/consts.d.ts +4 -0
  32. package/dist/types/transactions/consts.d.ts.map +1 -0
  33. package/dist/types/transactions/contractAddresses.d.ts +8 -0
  34. package/dist/types/transactions/contractAddresses.d.ts.map +1 -0
  35. package/dist/types/transactions/executeTransaction.d.ts +15 -0
  36. package/dist/types/transactions/executeTransaction.d.ts.map +1 -0
  37. package/dist/types/transactions/index.d.ts +12 -0
  38. package/dist/types/transactions/index.d.ts.map +1 -0
  39. package/dist/types/transactions/routerCommands.d.ts +23 -0
  40. package/dist/types/transactions/routerCommands.d.ts.map +1 -0
  41. package/dist/types/transactions/sign.d.ts +12 -0
  42. package/dist/types/transactions/sign.d.ts.map +1 -0
  43. package/dist/types/transactions/trade.d.ts +2 -0
  44. package/dist/types/transactions/trade.d.ts.map +1 -0
  45. package/dist/types/transactions/txHelpers.d.ts +2 -0
  46. package/dist/types/transactions/txHelpers.d.ts.map +1 -0
  47. package/package.json +2 -2
  48. package/src/index.ts +1 -0
  49. package/src/services/getSocketBridgeTime.ts +5 -5
  50. package/src/transactions/abis/CoreProxy.json +5600 -0
  51. package/src/transactions/abis/Periphery.json +1464 -0
  52. package/src/transactions/abis/socket/VaultWithPayload.json +40 -0
  53. package/src/transactions/action.ts +41 -0
  54. package/src/transactions/consts.ts +3 -0
  55. package/src/transactions/contractAddresses.ts +41 -0
  56. package/src/transactions/executeTransaction.ts +83 -0
  57. package/src/transactions/index.ts +11 -0
  58. package/src/transactions/routerCommands.ts +62 -0
  59. package/src/transactions/sign.ts +135 -0
  60. package/src/transactions/trade.ts +25 -0
  61. package/src/transactions/txHelpers.ts +3 -0
package/README.md CHANGED
@@ -6,5 +6,5 @@
6
6
 
7
7
  | Statements | Branches | Functions | Lines |
8
8
  | --------------------------- | ----------------------- | ------------------------- | ----------------- |
9
- | ![Statements](https://img.shields.io/badge/statements-15.4%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-16.66%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-11.21%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-15.91%25-red.svg?style=flat) |
9
+ | ![Statements](https://img.shields.io/badge/statements-13.74%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-14.96%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-9.75%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-14.11%25-red.svg?style=flat) |
10
10
 
package/dist/index.js CHANGED
@@ -21,4 +21,5 @@ __exportStar(require("./services"), exports);
21
21
  __exportStar(require("./modules"), exports);
22
22
  __exportStar(require("./rest"), exports);
23
23
  __exportStar(require("./decorators"), exports);
24
+ __exportStar(require("./transactions"), exports);
24
25
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B","sourcesContent":["export * from './types';\nexport * from './commands';\nexport * from './utils';\nexport * from './services';\nexport * from './modules';\nexport * from './rest';\nexport * from './decorators';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B;AAC7B,iDAA+B","sourcesContent":["export * from './types';\nexport * from './commands';\nexport * from './utils';\nexport * from './services';\nexport * from './modules';\nexport * from './rest';\nexport * from './decorators';\nexport * from './transactions';\n"]}
@@ -6,19 +6,19 @@ var types_1 = require("../types");
6
6
  var socketFees = (_a = {},
7
7
  // mainnet
8
8
  _a[types_1.MoneyInOutChainId.ethereumMainnet] = {
9
- bridgeTimeInMS: 3 * 60 * 1000,
9
+ bridgeTimeInMS: 15 * 60 * 1000,
10
10
  },
11
11
  _a[types_1.MoneyInOutChainId.opMainnet] = {
12
- bridgeTimeInMS: 3 * 60 * 1000,
12
+ bridgeTimeInMS: 15 * 60 * 1000,
13
13
  },
14
14
  _a[types_1.MoneyInOutChainId.polygonMainnet] = {
15
- bridgeTimeInMS: 3 * 60 * 1000,
15
+ bridgeTimeInMS: 15 * 60 * 1000,
16
16
  },
17
17
  _a[types_1.MoneyInOutChainId.arbitrumOne] = {
18
- bridgeTimeInMS: 3 * 60 * 1000,
18
+ bridgeTimeInMS: 15 * 60 * 1000,
19
19
  },
20
20
  _a[types_1.MoneyInOutChainId.baseMainnet] = {
21
- bridgeTimeInMS: 3 * 60 * 1000,
21
+ bridgeTimeInMS: 15 * 60 * 1000,
22
22
  },
23
23
  // testnet
24
24
  _a[types_1.MoneyInOutChainId.polygonMumbai] = {
@@ -1 +1 @@
1
- {"version":3,"file":"getSocketBridgeTime.js","sourceRoot":"/","sources":["services/getSocketBridgeTime.ts"],"names":[],"mappings":";;;;AAAA,kCAIkB;AAElB,IAAM,UAAU;IACd,UAAU;IACV,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,SAAS,IAAG;QAC7B,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,cAAc,IAAG;QAClC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,WAAW,IAAG;QAC/B,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,WAAW,IAAG;QAC/B,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,UAAU;IACV,GAAC,yBAAiB,CAAC,aAAa,IAAG;QACjC,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KAC/B;IACD,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,SAAS,IAAG;QAC7B,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;OACF,CAAC;AAEK,IAAM,mBAAmB,GAAG,UACjC,MAAiC;IAEjC,OAAO,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC9C,CAAC,CAAC;AAJW,QAAA,mBAAmB,uBAI9B","sourcesContent":["import {\n GetSocketBridgeTimeResult,\n GetSocketBridgeTimeParams,\n MoneyInOutChainId,\n} from '../types';\n\nconst socketFees: Record<MoneyInOutChainId, GetSocketBridgeTimeResult> = {\n // mainnet\n [MoneyInOutChainId.ethereumMainnet]: {\n bridgeTimeInMS: 3 * 60 * 1000,\n },\n [MoneyInOutChainId.opMainnet]: {\n bridgeTimeInMS: 3 * 60 * 1000,\n },\n [MoneyInOutChainId.polygonMainnet]: {\n bridgeTimeInMS: 3 * 60 * 1000,\n },\n [MoneyInOutChainId.arbitrumOne]: {\n bridgeTimeInMS: 3 * 60 * 1000,\n },\n [MoneyInOutChainId.baseMainnet]: {\n bridgeTimeInMS: 3 * 60 * 1000,\n },\n // testnet\n [MoneyInOutChainId.polygonMumbai]: {\n bridgeTimeInMS: 55 * 60 * 1000,\n },\n [MoneyInOutChainId.arbitrumSepolia]: {\n bridgeTimeInMS: 5 * 60 * 1000,\n },\n [MoneyInOutChainId.opSepolia]: {\n bridgeTimeInMS: 5 * 60 * 1000,\n },\n [MoneyInOutChainId.ethereumSepolia]: {\n bridgeTimeInMS: 5 * 60 * 1000,\n },\n};\n\nexport const getSocketBridgeTime = (\n params: GetSocketBridgeTimeParams,\n): GetSocketBridgeTimeResult => {\n return socketFees[params.moneyInOutChainId];\n};\n"]}
1
+ {"version":3,"file":"getSocketBridgeTime.js","sourceRoot":"/","sources":["services/getSocketBridgeTime.ts"],"names":[],"mappings":";;;;AAAA,kCAIkB;AAElB,IAAM,UAAU;IACd,UAAU;IACV,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KAC/B;IACD,GAAC,yBAAiB,CAAC,SAAS,IAAG;QAC7B,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KAC/B;IACD,GAAC,yBAAiB,CAAC,cAAc,IAAG;QAClC,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KAC/B;IACD,GAAC,yBAAiB,CAAC,WAAW,IAAG;QAC/B,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KAC/B;IACD,GAAC,yBAAiB,CAAC,WAAW,IAAG;QAC/B,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KAC/B;IACD,UAAU;IACV,GAAC,yBAAiB,CAAC,aAAa,IAAG;QACjC,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KAC/B;IACD,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,SAAS,IAAG;QAC7B,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;IACD,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KAC9B;OACF,CAAC;AAEK,IAAM,mBAAmB,GAAG,UACjC,MAAiC;IAEjC,OAAO,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC9C,CAAC,CAAC;AAJW,QAAA,mBAAmB,uBAI9B","sourcesContent":["import {\n GetSocketBridgeTimeResult,\n GetSocketBridgeTimeParams,\n MoneyInOutChainId,\n} from '../types';\n\nconst socketFees: Record<MoneyInOutChainId, GetSocketBridgeTimeResult> = {\n // mainnet\n [MoneyInOutChainId.ethereumMainnet]: {\n bridgeTimeInMS: 15 * 60 * 1000,\n },\n [MoneyInOutChainId.opMainnet]: {\n bridgeTimeInMS: 15 * 60 * 1000,\n },\n [MoneyInOutChainId.polygonMainnet]: {\n bridgeTimeInMS: 15 * 60 * 1000,\n },\n [MoneyInOutChainId.arbitrumOne]: {\n bridgeTimeInMS: 15 * 60 * 1000,\n },\n [MoneyInOutChainId.baseMainnet]: {\n bridgeTimeInMS: 15 * 60 * 1000,\n },\n // testnet\n [MoneyInOutChainId.polygonMumbai]: {\n bridgeTimeInMS: 55 * 60 * 1000,\n },\n [MoneyInOutChainId.arbitrumSepolia]: {\n bridgeTimeInMS: 5 * 60 * 1000,\n },\n [MoneyInOutChainId.opSepolia]: {\n bridgeTimeInMS: 5 * 60 * 1000,\n },\n [MoneyInOutChainId.ethereumSepolia]: {\n bridgeTimeInMS: 5 * 60 * 1000,\n },\n};\n\nexport const getSocketBridgeTime = (\n params: GetSocketBridgeTimeParams,\n): GetSocketBridgeTimeResult => {\n return socketFees[params.moneyInOutChainId];\n};\n"]}