@pushchain/core 2.0.2 → 2.0.5

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 (46) hide show
  1. package/package.json +4 -3
  2. package/src/lib/constants/abi/erc20.evm.d.ts +36 -0
  3. package/src/lib/constants/abi/erc20.evm.js +26 -0
  4. package/src/lib/constants/abi/erc20.evm.js.map +1 -0
  5. package/src/lib/constants/abi/index.d.ts +3 -0
  6. package/src/lib/constants/abi/index.js +7 -1
  7. package/src/lib/constants/abi/index.js.map +1 -1
  8. package/src/lib/constants/abi/pushsolanagateway.json +1880 -0
  9. package/src/lib/constants/abi/universalGatewayV0.evm.d.ts +31 -0
  10. package/src/lib/constants/abi/universalGatewayV0.evm.js +141 -0
  11. package/src/lib/constants/abi/universalGatewayV0.evm.js.map +1 -0
  12. package/src/lib/constants/index.d.ts +1 -0
  13. package/src/lib/constants/index.js.map +1 -1
  14. package/src/lib/constants/tokens.d.ts +50 -0
  15. package/src/lib/constants/tokens.js +172 -0
  16. package/src/lib/constants/tokens.js.map +1 -0
  17. package/src/lib/generated/uexecutor/v1/query.d.ts +23 -0
  18. package/src/lib/generated/uexecutor/v1/query.js +79 -0
  19. package/src/lib/generated/uexecutor/v1/query.js.map +1 -0
  20. package/src/lib/generated/uexecutor/v1/types.d.ts +91 -0
  21. package/src/lib/generated/uexecutor/v1/types.js +856 -0
  22. package/src/lib/generated/uexecutor/v1/types.js.map +1 -0
  23. package/src/lib/generated/v1/tx.d.ts +4 -4
  24. package/src/lib/generated/v1/tx.js +1 -1
  25. package/src/lib/index.d.ts +1 -0
  26. package/src/lib/index.js.map +1 -1
  27. package/src/lib/orchestrator/orchestrator.d.ts +19 -0
  28. package/src/lib/orchestrator/orchestrator.js +796 -7
  29. package/src/lib/orchestrator/orchestrator.js.map +1 -1
  30. package/src/lib/orchestrator/orchestrator.types.d.ts +13 -0
  31. package/src/lib/progress-hook/progress-hook.js +61 -2
  32. package/src/lib/progress-hook/progress-hook.js.map +1 -1
  33. package/src/lib/progress-hook/progress-hook.types.d.ts +8 -0
  34. package/src/lib/progress-hook/progress-hook.types.js +11 -0
  35. package/src/lib/progress-hook/progress-hook.types.js.map +1 -1
  36. package/src/lib/push-chain/push-chain.d.ts +17 -0
  37. package/src/lib/push-chain/push-chain.js +190 -0
  38. package/src/lib/push-chain/push-chain.js.map +1 -1
  39. package/src/lib/push-client/push-client.d.ts +5 -0
  40. package/src/lib/push-client/push-client.js +15 -0
  41. package/src/lib/push-client/push-client.js.map +1 -1
  42. package/src/lib/utils.d.ts +98 -2
  43. package/src/lib/utils.js +264 -8
  44. package/src/lib/utils.js.map +1 -1
  45. package/src/lib/vm-client/svm-client.js +83 -4
  46. package/src/lib/vm-client/svm-client.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushchain/core",
3
- "version": "2.0.2",
3
+ "version": "2.0.5",
4
4
  "homepage": "https://push.org",
5
5
  "keywords": [
6
6
  "pushchain",
@@ -45,5 +45,6 @@
45
45
  "devDependencies": {
46
46
  "secp256k1": "^5.0.1",
47
47
  "ts-proto": "^2.0.3"
48
- }
49
- }
48
+ },
49
+ "types": "./src/index.d.ts"
50
+ }
@@ -0,0 +1,36 @@
1
+ export declare const ERC20_EVM: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "allowance";
4
+ readonly inputs: readonly [{
5
+ readonly name: "owner";
6
+ readonly type: "address";
7
+ readonly internalType: "address";
8
+ }, {
9
+ readonly name: "spender";
10
+ readonly type: "address";
11
+ readonly internalType: "address";
12
+ }];
13
+ readonly outputs: readonly [{
14
+ readonly name: "";
15
+ readonly type: "uint256";
16
+ readonly internalType: "uint256";
17
+ }];
18
+ readonly stateMutability: "view";
19
+ }, {
20
+ readonly type: "function";
21
+ readonly name: "approve";
22
+ readonly inputs: readonly [{
23
+ readonly name: "spender";
24
+ readonly type: "address";
25
+ readonly internalType: "address";
26
+ }, {
27
+ readonly name: "amount";
28
+ readonly type: "uint256";
29
+ readonly internalType: "uint256";
30
+ }];
31
+ readonly outputs: readonly [{
32
+ readonly name: "";
33
+ readonly type: "bool";
34
+ }];
35
+ readonly stateMutability: "nonpayable";
36
+ }];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC20_EVM = void 0;
4
+ exports.ERC20_EVM = [
5
+ {
6
+ type: 'function',
7
+ name: 'allowance',
8
+ inputs: [
9
+ { name: 'owner', type: 'address', internalType: 'address' },
10
+ { name: 'spender', type: 'address', internalType: 'address' },
11
+ ],
12
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
13
+ stateMutability: 'view',
14
+ },
15
+ {
16
+ type: 'function',
17
+ name: 'approve',
18
+ inputs: [
19
+ { name: 'spender', type: 'address', internalType: 'address' },
20
+ { name: 'amount', type: 'uint256', internalType: 'uint256' },
21
+ ],
22
+ outputs: [{ name: '', type: 'bool' }],
23
+ stateMutability: 'nonpayable',
24
+ },
25
+ ];
26
+ //# sourceMappingURL=erc20.evm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc20.evm.js","sourceRoot":"","sources":["../../../../../../../packages/core/src/lib/constants/abi/erc20.evm.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YAC3D,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;SAC9D;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,MAAM;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YAC7D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;SAC7D;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QACrC,eAAe,EAAE,YAAY;KAC9B;CACO,CAAC"}
@@ -3,3 +3,6 @@ export { default as FEE_LOCKER_SVM } from './feeLocker.json';
3
3
  export { FACTORY_V1 } from './factoryV1';
4
4
  export { UEA_EVM } from './uea.evm';
5
5
  export { UEA_SVM } from './uea.svm';
6
+ export { UNIVERSAL_GATEWAY_V0 } from './universalGatewayV0.evm';
7
+ export { ERC20_EVM } from './erc20.evm';
8
+ export { default as SVM_GATEWAY_IDL } from './pushsolanagateway.json';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UEA_SVM = exports.UEA_EVM = exports.FACTORY_V1 = exports.FEE_LOCKER_SVM = exports.FEE_LOCKER_EVM = void 0;
3
+ exports.SVM_GATEWAY_IDL = exports.ERC20_EVM = exports.UNIVERSAL_GATEWAY_V0 = exports.UEA_SVM = exports.UEA_EVM = exports.FACTORY_V1 = exports.FEE_LOCKER_SVM = exports.FEE_LOCKER_EVM = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  var feeLocker_evm_1 = require("./feeLocker.evm");
6
6
  Object.defineProperty(exports, "FEE_LOCKER_EVM", { enumerable: true, get: function () { return feeLocker_evm_1.FEE_LOCKER_EVM; } });
@@ -12,4 +12,10 @@ var uea_evm_1 = require("./uea.evm");
12
12
  Object.defineProperty(exports, "UEA_EVM", { enumerable: true, get: function () { return uea_evm_1.UEA_EVM; } });
13
13
  var uea_svm_1 = require("./uea.svm");
14
14
  Object.defineProperty(exports, "UEA_SVM", { enumerable: true, get: function () { return uea_svm_1.UEA_SVM; } });
15
+ var universalGatewayV0_evm_1 = require("./universalGatewayV0.evm");
16
+ Object.defineProperty(exports, "UNIVERSAL_GATEWAY_V0", { enumerable: true, get: function () { return universalGatewayV0_evm_1.UNIVERSAL_GATEWAY_V0; } });
17
+ var erc20_evm_1 = require("./erc20.evm");
18
+ Object.defineProperty(exports, "ERC20_EVM", { enumerable: true, get: function () { return erc20_evm_1.ERC20_EVM; } });
19
+ var pushsolanagateway_json_1 = require("./pushsolanagateway.json");
20
+ Object.defineProperty(exports, "SVM_GATEWAY_IDL", { enumerable: true, get: function () { return tslib_1.__importDefault(pushsolanagateway_json_1).default; } });
15
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/core/src/lib/constants/abi/index.ts"],"names":[],"mappings":";;;;AAAA,iDAAiD;AAAxC,+GAAA,cAAc,OAAA;AACvB,mDAA6D;AAApD,yIAAA,OAAO,OAAkB;AAClC,yCAAyC;AAAhC,uGAAA,UAAU,OAAA;AACnB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/core/src/lib/constants/abi/index.ts"],"names":[],"mappings":";;;;AAAA,iDAAiD;AAAxC,+GAAA,cAAc,OAAA;AACvB,mDAA6D;AAApD,yIAAA,OAAO,OAAkB;AAClC,yCAAyC;AAAhC,uGAAA,UAAU,OAAA;AACnB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAC7B,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,mEAAsE;AAA7D,kJAAA,OAAO,OAAmB"}