You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please open an issue if you need help to deploy to an EVM chain of your choice.
24
24
@@ -27,12 +27,13 @@ Please open an issue if you need help to deploy to an EVM chain of your choice.
27
27
```ml
28
28
src
29
29
├─ Multicaller.sol — "The multicaller contract"
30
-
└─ MulticallerReader.sol — "Library to read the `msg.sender` of the multicaller contract"
30
+
├─ MulticallerWithSender.sol — "The multicaller with sender contract"
31
+
└─ LibMulticaller.sol — "Library to read the multicaller with sender contract"
31
32
```
32
33
33
34
## Installation
34
35
35
-
You can use the [`src/MulticallerReader.sol`](./src/MulticallerReader.sol) library in your contracts to query the Multicaller efficiently.
36
+
You can use the [`src/LibMulticaller.sol`](./src/LibMulticaller.sol) library in your contracts to query the multicaller with sender contract efficiently.
36
37
37
38
To install with [**Foundry**](https://github.com/gakonst/foundry):
38
39
@@ -61,6 +62,8 @@ Aggregates multiple calls in a single transaction.
61
62
62
63
The `msg.value` will be forwarded to the last call.
63
64
65
+
### MulticallerWithSender
66
+
64
67
#### `aggregateWithSender`
65
68
```solidity
66
69
function aggregateWithSender(address[] calldata targets, bytes[] calldata data)
@@ -84,21 +87,21 @@ Returns the address that called `aggregateWithSender` on the contract.
84
87
85
88
The value is always the zero address outside a transaction.
86
89
87
-
### MulticallerReader
90
+
### LibMulticaller
88
91
89
-
Library to read the `msg.sender` of the multicaller contract.
92
+
Library to read the multicaller with sender contract.
90
93
91
94
#### `multicallerSender`
92
95
```solidity
93
96
function multicallerSender() internal view returns (address)
94
97
```
95
-
Returns the address that called `aggregateWithSender` on the multicaller.
98
+
Returns the address that called `aggregateWithSender` on the multicaller with sender contract.
96
99
97
100
#### `sender`
98
101
```solidity
99
102
function sender() internal view returns (address result)
100
103
```
101
-
Returns the address that called `aggregateWithSender` on the multicaller, if `msg.sender` is the multicaller.
104
+
Returns the address that called `aggregateWithSender` on the multicaller with sender contract, if `msg.sender` is the multicaller with sender contract.
102
105
103
106
Otherwise, returns `msg.sender`.
104
107
@@ -114,7 +117,7 @@ The contracts are designed with a priority on efficiency and minimalism.
114
117
115
118
For the following, the contracts called must read the `msg.sender` from the multicaller contract.
116
119
117
-
The `MulticallerReader` library can be used for efficient reading.
120
+
The `LibMulticaller` library can be used for efficient reading.
0 commit comments