Commit Graph

14 Commits

Author SHA1 Message Date
Ricardo Guilherme Schmidt b0e2f1b61b Improve claimTokens 2023-10-06 12:59:54 -03:00
Ricardo Guilherme Schmidt 95ebd28004 fix comments 2023-10-06 12:59:54 -03:00
r4bbit c0a035c073
refactor: rename `SNTPlaceHolder` to `SNTOptimismController` (#19)
As discussed in https://github.com/logos-co/optimism-bridge-snt/pull/17#discussion_r1347332217
2023-10-06 10:03:43 +02:00
r4bbit fe1a4e96ab
refactor: use custom error type instead of error strings (#18)
The `onlyBridge` modifier uses strings as error messages which are
expensive in gas.

This commit refactors this to use a custom error type instead and also
introduces some basic tests to ensure the errors are emitted properly.

It also adds some sanity tests for minting and burning bridge tokens.
2023-10-06 08:37:32 +02:00
r4bbit c76ba5b946 chore(deps): specify openzeppelin version 4.9.3 for reproducible builds
The code couldn't compile because it was using a version of
`Ownable2Step` that introduced breaking changes.

This commit sets the used version to the latest stable release of OZ,
which is 4.9.3. Hence the usages of `Ownable2Step` needed to change as
well.
2023-10-05 12:37:16 +02:00
r4bbit 715b95d2c8 fix(SNTPlaceHolder): fix incorrect usage of minime token type
The `SNTPlaceholder` uses `MiniMeToken` type in a function even though
only `MiniMeBase` is actually imported.

This commit fixes the function signature so that the code can actually
compile.
2023-10-05 12:37:16 +02:00
Ricardo Guilherme Schmidt c8b6f23554 small fix 2023-10-03 11:50:09 -03:00
Ricardo Guilherme Schmidt 88abe731e1 Remove faucet, update MiniMeToken to MiniMeBase 2023-10-03 11:46:37 -03:00
Ricardo Guilherme Schmidt 34a05aead1 delete Owned.sol 2023-10-03 11:42:20 -03:00
Ricardo Guilherme Schmidt 54f614f843 Ownership cannot be revoked/petrified
Fixes #8
2023-10-03 11:38:25 -03:00
Ricardo Guilherme Schmidt dd8bdbf589 Fixes #4 2023-09-26 12:14:43 -03:00
Ricardo Guilherme Schmidt a35c36ee47 Fixes #5 2023-09-26 12:08:35 -03:00
r4bbit 4a7a10ee33
refactor: move to foundry template 2023-09-26 16:58:36 +02:00
Ricardo Guilherme Schmidt aaba029cb8
add bridge code 2023-07-17 13:59:00 -03:00