Split SablierV2OpenEnded.sol
into SablierV2OpenEndedBase.sol
and SablierV2OpenEnded.sol
#55
Closed
smol-ninja
started this conversation in
Ideas
Replies: 3 comments 4 replies
-
Leaving it here: https://github.com/boringcrypto/BoringSolidity/blob/78f4817d9c0d95fe9c45cd42e307ccd22cf5f4fc/contracts/BoringBatchable.sol Could be useful for batch txs |
Beta Was this translation helpful? Give feedback.
4 replies
-
I've added some more related thoughts in #10. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am closing it for now in favour of this ongoing discussion about |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally discussed in this issue.
Context
As decided here, we've included peripheral functions in
SablierV2OpenEnded.sol
which has resulted into one big contract. There are a few issues with it:createAndDepositMultiple
simply makes calls tocreateMultiple
anddepositMultiple
. This makes it difficult to separate core logic from the peripheral logic.Proposal
I would like propose to separate functions that can be classified as peripheral.
SablierV2OpenEndedBase.sol
in theabstracts
folder. Thereby moving all the internal and core functions here.SablierV2OpenEnded
would inherit fromSablierV2OpenEndedBase
and implement periphery related functions.Public functions in
SablierV2OpenEndedBase
restart
?refund
?Public functions in
SablierV2OpenEnded
Beta Was this translation helpful? Give feedback.
All reactions