@obolnetwork/obol-sdk 2.10.2 → 2.11.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.
Files changed (51) hide show
  1. package/dist/cjs/package.json +1 -1
  2. package/dist/cjs/src/abi/BatchDeposit.js +120 -0
  3. package/dist/cjs/src/abi/Multicall3.js +253 -0
  4. package/dist/cjs/src/bytecodes.js +4 -4
  5. package/dist/cjs/src/constants.js +13 -7
  6. package/dist/cjs/src/eoa/eoa.js +48 -0
  7. package/dist/cjs/src/eoa/eoaHelpers.js +45 -1
  8. package/dist/cjs/src/index.js +2 -2
  9. package/dist/cjs/src/schema.js +83 -1
  10. package/dist/cjs/src/splits/splitHelpers.js +64 -19
  11. package/dist/cjs/src/splits/splits.js +54 -11
  12. package/dist/cjs/test/eoa/eoa.spec.js +75 -0
  13. package/dist/cjs/test/splits/splits.spec.js +84 -0
  14. package/dist/esm/package.json +1 -1
  15. package/dist/esm/src/abi/BatchDeposit.js +117 -0
  16. package/dist/esm/src/abi/Multicall3.js +250 -0
  17. package/dist/esm/src/bytecodes.js +3 -3
  18. package/dist/esm/src/constants.js +14 -8
  19. package/dist/esm/src/eoa/eoa.js +50 -2
  20. package/dist/esm/src/eoa/eoaHelpers.js +43 -0
  21. package/dist/esm/src/index.js +2 -2
  22. package/dist/esm/src/schema.js +82 -0
  23. package/dist/esm/src/splits/splitHelpers.js +61 -17
  24. package/dist/esm/src/splits/splits.js +56 -13
  25. package/dist/esm/test/eoa/eoa.spec.js +76 -1
  26. package/dist/esm/test/splits/splits.spec.js +85 -1
  27. package/dist/types/src/abi/BatchDeposit.d.ts +49 -0
  28. package/dist/types/src/abi/Multicall3.d.ts +37 -0
  29. package/dist/types/src/bytecodes.d.ts +3 -3
  30. package/dist/types/src/eoa/eoa.d.ts +34 -1
  31. package/dist/types/src/eoa/eoaHelpers.d.ts +15 -0
  32. package/dist/types/src/schema.d.ts +76 -0
  33. package/dist/types/src/splits/splitHelpers.d.ts +22 -1
  34. package/dist/types/src/splits/splits.d.ts +33 -1
  35. package/dist/types/src/types.d.ts +40 -1
  36. package/package.json +1 -1
  37. package/src/abi/BatchDeposit.ts +117 -0
  38. package/src/abi/Multicall3.ts +250 -0
  39. package/src/bytecodes.ts +3 -3
  40. package/src/constants.ts +16 -10
  41. package/src/eoa/eoa.ts +60 -2
  42. package/src/eoa/eoaHelpers.ts +68 -0
  43. package/src/index.ts +4 -4
  44. package/src/schema.ts +84 -0
  45. package/src/splits/splitHelpers.ts +99 -19
  46. package/src/splits/splits.ts +65 -15
  47. package/src/types.ts +43 -1
  48. package/dist/cjs/src/abi/Multicall.js +0 -148
  49. package/dist/esm/src/abi/Multicall.js +0 -145
  50. package/dist/types/src/abi/Multicall.d.ts +0 -35
  51. package/src/abi/Multicall.ts +0 -145
@@ -1,145 +0,0 @@
1
- export const MultiCallContract = {
2
- abi: [
3
- {
4
- constant: true,
5
- inputs: [],
6
- name: 'getCurrentBlockTimestamp',
7
- outputs: [
8
- {
9
- name: 'timestamp',
10
- type: 'uint256',
11
- },
12
- ],
13
- payable: false,
14
- stateMutability: 'view',
15
- type: 'function',
16
- },
17
- {
18
- constant: false,
19
- inputs: [
20
- {
21
- components: [
22
- {
23
- name: 'target',
24
- type: 'address',
25
- },
26
- {
27
- name: 'callData',
28
- type: 'bytes',
29
- },
30
- ],
31
- name: 'calls',
32
- type: 'tuple[]',
33
- },
34
- ],
35
- name: 'aggregate',
36
- outputs: [
37
- {
38
- name: 'blockNumber',
39
- type: 'uint256',
40
- },
41
- {
42
- name: 'returnData',
43
- type: 'bytes[]',
44
- },
45
- ],
46
- payable: false,
47
- stateMutability: 'nonpayable',
48
- type: 'function',
49
- },
50
- {
51
- constant: true,
52
- inputs: [],
53
- name: 'getLastBlockHash',
54
- outputs: [
55
- {
56
- name: 'blockHash',
57
- type: 'bytes32',
58
- },
59
- ],
60
- payable: false,
61
- stateMutability: 'view',
62
- type: 'function',
63
- },
64
- {
65
- constant: true,
66
- inputs: [
67
- {
68
- name: 'addr',
69
- type: 'address',
70
- },
71
- ],
72
- name: 'getEthBalance',
73
- outputs: [
74
- {
75
- name: 'balance',
76
- type: 'uint256',
77
- },
78
- ],
79
- payable: false,
80
- stateMutability: 'view',
81
- type: 'function',
82
- },
83
- {
84
- constant: true,
85
- inputs: [],
86
- name: 'getCurrentBlockDifficulty',
87
- outputs: [
88
- {
89
- name: 'difficulty',
90
- type: 'uint256',
91
- },
92
- ],
93
- payable: false,
94
- stateMutability: 'view',
95
- type: 'function',
96
- },
97
- {
98
- constant: true,
99
- inputs: [],
100
- name: 'getCurrentBlockGasLimit',
101
- outputs: [
102
- {
103
- name: 'gaslimit',
104
- type: 'uint256',
105
- },
106
- ],
107
- payable: false,
108
- stateMutability: 'view',
109
- type: 'function',
110
- },
111
- {
112
- constant: true,
113
- inputs: [],
114
- name: 'getCurrentBlockCoinbase',
115
- outputs: [
116
- {
117
- name: 'coinbase',
118
- type: 'address',
119
- },
120
- ],
121
- payable: false,
122
- stateMutability: 'view',
123
- type: 'function',
124
- },
125
- {
126
- constant: true,
127
- inputs: [
128
- {
129
- name: 'blockNumber',
130
- type: 'uint256',
131
- },
132
- ],
133
- name: 'getBlockHash',
134
- outputs: [
135
- {
136
- name: 'blockHash',
137
- type: 'bytes32',
138
- },
139
- ],
140
- payable: false,
141
- stateMutability: 'view',
142
- type: 'function',
143
- },
144
- ],
145
- };
@@ -1,35 +0,0 @@
1
- export declare const MultiCallContract: {
2
- abi: ({
3
- constant: boolean;
4
- inputs: {
5
- components: {
6
- name: string;
7
- type: string;
8
- }[];
9
- name: string;
10
- type: string;
11
- }[];
12
- name: string;
13
- outputs: {
14
- name: string;
15
- type: string;
16
- }[];
17
- payable: boolean;
18
- stateMutability: string;
19
- type: string;
20
- } | {
21
- constant: boolean;
22
- inputs: {
23
- name: string;
24
- type: string;
25
- }[];
26
- name: string;
27
- outputs: {
28
- name: string;
29
- type: string;
30
- }[];
31
- payable: boolean;
32
- stateMutability: string;
33
- type: string;
34
- })[];
35
- };
@@ -1,145 +0,0 @@
1
- export const MultiCallContract = {
2
- abi: [
3
- {
4
- constant: true,
5
- inputs: [],
6
- name: 'getCurrentBlockTimestamp',
7
- outputs: [
8
- {
9
- name: 'timestamp',
10
- type: 'uint256',
11
- },
12
- ],
13
- payable: false,
14
- stateMutability: 'view',
15
- type: 'function',
16
- },
17
- {
18
- constant: false,
19
- inputs: [
20
- {
21
- components: [
22
- {
23
- name: 'target',
24
- type: 'address',
25
- },
26
- {
27
- name: 'callData',
28
- type: 'bytes',
29
- },
30
- ],
31
- name: 'calls',
32
- type: 'tuple[]',
33
- },
34
- ],
35
- name: 'aggregate',
36
- outputs: [
37
- {
38
- name: 'blockNumber',
39
- type: 'uint256',
40
- },
41
- {
42
- name: 'returnData',
43
- type: 'bytes[]',
44
- },
45
- ],
46
- payable: false,
47
- stateMutability: 'nonpayable',
48
- type: 'function',
49
- },
50
- {
51
- constant: true,
52
- inputs: [],
53
- name: 'getLastBlockHash',
54
- outputs: [
55
- {
56
- name: 'blockHash',
57
- type: 'bytes32',
58
- },
59
- ],
60
- payable: false,
61
- stateMutability: 'view',
62
- type: 'function',
63
- },
64
- {
65
- constant: true,
66
- inputs: [
67
- {
68
- name: 'addr',
69
- type: 'address',
70
- },
71
- ],
72
- name: 'getEthBalance',
73
- outputs: [
74
- {
75
- name: 'balance',
76
- type: 'uint256',
77
- },
78
- ],
79
- payable: false,
80
- stateMutability: 'view',
81
- type: 'function',
82
- },
83
- {
84
- constant: true,
85
- inputs: [],
86
- name: 'getCurrentBlockDifficulty',
87
- outputs: [
88
- {
89
- name: 'difficulty',
90
- type: 'uint256',
91
- },
92
- ],
93
- payable: false,
94
- stateMutability: 'view',
95
- type: 'function',
96
- },
97
- {
98
- constant: true,
99
- inputs: [],
100
- name: 'getCurrentBlockGasLimit',
101
- outputs: [
102
- {
103
- name: 'gaslimit',
104
- type: 'uint256',
105
- },
106
- ],
107
- payable: false,
108
- stateMutability: 'view',
109
- type: 'function',
110
- },
111
- {
112
- constant: true,
113
- inputs: [],
114
- name: 'getCurrentBlockCoinbase',
115
- outputs: [
116
- {
117
- name: 'coinbase',
118
- type: 'address',
119
- },
120
- ],
121
- payable: false,
122
- stateMutability: 'view',
123
- type: 'function',
124
- },
125
- {
126
- constant: true,
127
- inputs: [
128
- {
129
- name: 'blockNumber',
130
- type: 'uint256',
131
- },
132
- ],
133
- name: 'getBlockHash',
134
- outputs: [
135
- {
136
- name: 'blockHash',
137
- type: 'bytes32',
138
- },
139
- ],
140
- payable: false,
141
- stateMutability: 'view',
142
- type: 'function',
143
- },
144
- ],
145
- };