@pushchain/core 2.1.11 → 3.0.0
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.
- package/CHANGELOG.md +6 -0
- package/package.json +4 -3
- package/src/lib/constants/abi/erc20.evm.d.ts +33 -0
- package/src/lib/constants/abi/erc20.evm.js +19 -0
- package/src/lib/constants/abi/erc20.evm.js.map +1 -1
- package/src/lib/constants/abi/universalGatewayV0.evm.d.ts +56 -9
- package/src/lib/constants/abi/universalGatewayV0.evm.js +1023 -64
- package/src/lib/constants/abi/universalGatewayV0.evm.js.map +1 -1
- package/src/lib/constants/abi/universalGatewayV0.json +1223 -206
- package/src/lib/constants/chain.d.ts +4 -0
- package/src/lib/constants/chain.js +24 -2
- package/src/lib/constants/chain.js.map +1 -1
- package/src/lib/constants/tokens.d.ts +1 -0
- package/src/lib/constants/tokens.js +3 -0
- package/src/lib/constants/tokens.js.map +1 -1
- package/src/lib/generated/v1/tx.d.ts +1 -2
- package/src/lib/generated/v1/tx.js +2 -1
- package/src/lib/generated/v1/tx.js.map +1 -1
- package/src/lib/orchestrator/orchestrator.d.ts +6 -2
- package/src/lib/orchestrator/orchestrator.js +645 -336
- package/src/lib/orchestrator/orchestrator.js.map +1 -1
- package/src/lib/orchestrator/payload-builders.d.ts +5 -0
- package/src/lib/orchestrator/payload-builders.js +58 -0
- package/src/lib/orchestrator/payload-builders.js.map +1 -0
- package/src/lib/push-chain/helpers/abis.d.ts +31 -0
- package/src/lib/push-chain/helpers/abis.js +75 -0
- package/src/lib/push-chain/helpers/abis.js.map +1 -0
- package/src/lib/push-chain/helpers/addresses.d.ts +1 -0
- package/src/lib/push-chain/helpers/addresses.js +5 -0
- package/src/lib/push-chain/helpers/addresses.js.map +1 -0
- package/src/lib/utils.d.ts +9 -0
- package/src/lib/utils.js +73 -0
- package/src/lib/utils.js.map +1 -1
- package/src/lib/vm-client/svm-client.js +26 -3
- package/src/lib/vm-client/svm-client.js.map +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushchain/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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
|
+
}
|
|
@@ -33,4 +33,37 @@ export declare const ERC20_EVM: readonly [{
|
|
|
33
33
|
readonly type: "bool";
|
|
34
34
|
}];
|
|
35
35
|
readonly stateMutability: "nonpayable";
|
|
36
|
+
}, {
|
|
37
|
+
readonly type: "function";
|
|
38
|
+
readonly name: "transfer";
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly name: "recipient";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "amount";
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
readonly internalType: "uint256";
|
|
47
|
+
}];
|
|
48
|
+
readonly outputs: readonly [{
|
|
49
|
+
readonly name: "";
|
|
50
|
+
readonly type: "bool";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "nonpayable";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly name: "transferFrom";
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly name: "sender";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "recipient";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "amount";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
}];
|
|
36
69
|
}];
|
|
@@ -22,5 +22,24 @@ exports.ERC20_EVM = [
|
|
|
22
22
|
outputs: [{ name: '', type: 'bool' }],
|
|
23
23
|
stateMutability: 'nonpayable',
|
|
24
24
|
},
|
|
25
|
+
{
|
|
26
|
+
type: 'function',
|
|
27
|
+
name: 'transfer',
|
|
28
|
+
inputs: [
|
|
29
|
+
{ name: 'recipient', type: 'address', internalType: 'address' },
|
|
30
|
+
{ name: 'amount', type: 'uint256', internalType: 'uint256' },
|
|
31
|
+
],
|
|
32
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
33
|
+
stateMutability: 'nonpayable',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: 'function',
|
|
37
|
+
name: 'transferFrom',
|
|
38
|
+
inputs: [
|
|
39
|
+
{ name: 'sender', type: 'address', internalType: 'address' },
|
|
40
|
+
{ name: 'recipient', type: 'address', internalType: 'address' },
|
|
41
|
+
{ name: 'amount', type: 'uint256', internalType: 'uint256' },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
25
44
|
];
|
|
26
45
|
//# sourceMappingURL=erc20.evm.js.map
|
|
@@ -1 +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"}
|
|
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;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YAC/D,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;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YAC5D,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YAC/D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;SAC7D;KACF;CACO,CAAC"}
|
|
@@ -1,31 +1,78 @@
|
|
|
1
1
|
export declare const UNIVERSAL_GATEWAY_V0: ({
|
|
2
|
+
inputs: {
|
|
3
|
+
internalType: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
2
8
|
type: string;
|
|
9
|
+
anonymous?: undefined;
|
|
10
|
+
outputs?: undefined;
|
|
11
|
+
stateMutability?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
anonymous: boolean;
|
|
14
|
+
inputs: ({
|
|
15
|
+
indexed: boolean;
|
|
16
|
+
internalType: string;
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
components?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
components: {
|
|
22
|
+
internalType: string;
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}[];
|
|
26
|
+
indexed: boolean;
|
|
27
|
+
internalType: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
})[];
|
|
3
31
|
name: string;
|
|
4
|
-
|
|
5
|
-
outputs
|
|
32
|
+
type: string;
|
|
33
|
+
outputs?: undefined;
|
|
34
|
+
stateMutability?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
inputs: {
|
|
37
|
+
internalType: string;
|
|
6
38
|
name: string;
|
|
7
39
|
type: string;
|
|
40
|
+
}[];
|
|
41
|
+
name: string;
|
|
42
|
+
outputs: {
|
|
8
43
|
internalType: string;
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
9
46
|
}[];
|
|
10
47
|
stateMutability: string;
|
|
11
|
-
} | {
|
|
12
48
|
type: string;
|
|
13
|
-
|
|
49
|
+
anonymous?: undefined;
|
|
50
|
+
} | {
|
|
14
51
|
inputs: ({
|
|
52
|
+
internalType: string;
|
|
15
53
|
name: string;
|
|
16
54
|
type: string;
|
|
17
|
-
internalType: string;
|
|
18
55
|
components?: undefined;
|
|
19
56
|
} | {
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
internalType: string;
|
|
23
57
|
components: {
|
|
58
|
+
internalType: string;
|
|
24
59
|
name: string;
|
|
25
60
|
type: string;
|
|
26
|
-
internalType: string;
|
|
27
61
|
}[];
|
|
62
|
+
internalType: string;
|
|
63
|
+
name: string;
|
|
64
|
+
type: string;
|
|
28
65
|
})[];
|
|
66
|
+
name: string;
|
|
29
67
|
outputs: never[];
|
|
30
68
|
stateMutability: string;
|
|
69
|
+
type: string;
|
|
70
|
+
anonymous?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
stateMutability: string;
|
|
73
|
+
type: string;
|
|
74
|
+
inputs?: undefined;
|
|
75
|
+
name?: undefined;
|
|
76
|
+
anonymous?: undefined;
|
|
77
|
+
outputs?: undefined;
|
|
31
78
|
})[];
|