-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/VRF-567-mercury-registry
- Loading branch information
Showing
63 changed files
with
967 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,15 @@ pnpmdep: ## Install solidity contract dependencies through pnpm | |
abigen: ## Build & install abigen. | ||
../tools/bin/build_abigen | ||
|
||
.PHONY: mockery | ||
mockery: $(mockery) ## Install mockery. | ||
go install github.com/vektra/mockery/[email protected] | ||
|
||
.PHONY: foundry-refresh | ||
foundry-refresh: | ||
foundryup | ||
git submodule deinit -f . | ||
git submodule update --init --recursive | ||
|
||
# To generate gethwrappers for a specific product, either set the `FOUNDRY_PROFILE` | ||
# env var or call the target with `FOUNDRY_PROFILE=product` | ||
|
@@ -43,15 +52,15 @@ abigen: ## Build & install abigen. | |
# make call example | ||
# make FOUNDRY_PROFILE=llo-feeds wrappers | ||
.PHONY: wrappers | ||
wrappers: pnpmdep abigen ## Recompiles solidity contracts and their go wrappers. | ||
wrappers: pnpmdep mockery abigen ## Recompiles solidity contracts and their go wrappers. | ||
./scripts/native_solc_compile_all_$(FOUNDRY_PROFILE) | ||
go generate ../core/gethwrappers/$(FOUNDRY_PROFILE) | ||
|
||
# This call generates all gethwrappers for all products. It does so based on the | ||
# assumption that native_solc_compile_all contains sub-calls to each product, and | ||
# go_generate does the same. | ||
.PHONY: wrappers-all | ||
wrappers-all: pnpmdep abigen ## Recompiles solidity contracts and their go wrappers. | ||
wrappers-all: pnpmdep mockery abigen ## Recompiles solidity contracts and their go wrappers. | ||
# go_generate contains a call to compile all contracts before generating wrappers | ||
go generate ../core/gethwrappers/go_generate.go | ||
|
||
|
Submodule forge-std
updated
27 files
+48 −6 | .github/workflows/ci.yml | |
+29 −0 | .github/workflows/sync.yml | |
+1 −1 | foundry.toml | |
+1 −1 | lib/ds-test | |
+1 −1 | package.json | |
+5 −3 | src/Base.sol | |
+4 −3 | src/Script.sol | |
+8 −8 | src/StdAssertions.sol | |
+24 −21 | src/StdChains.sol | |
+205 −17 | src/StdCheats.sol | |
+16 −1 | src/StdInvariant.sol | |
+14 −14 | src/StdJson.sol | |
+54 −3 | src/StdStorage.sol | |
+2 −2 | src/StdStyle.sol | |
+12 −3 | src/StdUtils.sol | |
+4 −3 | src/Test.sol | |
+182 −24 | src/Vm.sol | |
+394 −382 | src/console2.sol | |
+13,248 −0 | src/safeconsole.sol | |
+145 −84 | test/StdAssertions.t.sol | |
+112 −52 | test/StdChains.t.sol | |
+242 −43 | test/StdCheats.t.sol | |
+10 −10 | test/StdError.t.sol | |
+27 −12 | test/StdMath.t.sol | |
+66 −34 | test/StdStorage.t.sol | |
+4 −4 | test/StdStyle.t.sol | |
+80 −35 | test/StdUtils.t.sol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
AutomationForwarder_forward:testBasicSuccess() (gas: 87630) | ||
AutomationForwarder_forward:testNotAuthorizedReverts() (gas: 21681) | ||
AutomationForwarder_forward:testNotAuthorizedReverts() (gas: 25427) | ||
AutomationForwarder_forward:testWrongFunctionSelectorSuccess() (gas: 17958) | ||
AutomationForwarder_updateRegistry:testBasicSuccess() (gas: 14577) | ||
AutomationForwarder_updateRegistry:testNotFromRegistryNotAuthorizedReverts() (gas: 13893) | ||
MercuryRegistryTest:testMercuryRegistry() (gas: 951908) | ||
MercuryRegistryTest:testMercuryRegistryBatchUpkeep() (gas: 1728944) | ||
MercuryRegistryTest:testMercuryRegistryBatchUpkeep() (gas: 1728944) | ||
AutomationForwarder_updateRegistry:testNotFromRegistryNotAuthorizedReverts() (gas: 17665) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
HeartbeatRequester_getAggregatorRequestHeartbeat:testBasicSuccess() (gas: 75412) | ||
HeartbeatRequester_getAggregatorRequestHeartbeat:testHeartbeatNotPermittedReverts() (gas: 21730) | ||
HeartbeatRequester_permitHeartbeat:testBasicDeployerSuccess() (gas: 48280) | ||
HeartbeatRequester_permitHeartbeat:testBasicSuccess() (gas: 45856) | ||
HeartbeatRequester_permitHeartbeat:testOnlyCallableByOwnerReverts() (gas: 13796) | ||
HeartbeatRequester_permitHeartbeat:testBasicDeployerSuccess() (gas: 48229) | ||
HeartbeatRequester_permitHeartbeat:testBasicSuccess() (gas: 45844) | ||
HeartbeatRequester_permitHeartbeat:testOnlyCallableByOwnerReverts() (gas: 17584) | ||
HeartbeatRequester_removeHeartbeat:testBasicSuccess() (gas: 30192) | ||
HeartbeatRequester_removeHeartbeat:testOnlyCallableByOwnerReverts() (gas: 11629) | ||
HeartbeatRequester_removeHeartbeat:testOnlyCallableByOwnerReverts() (gas: 15417) | ||
HeartbeatRequester_removeHeartbeat:testRemoveNoPermitsSuccess() (gas: 15660) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FunctionsOracle_sendRequest:testEmptyRequestDataReverts() (gas: 13430) | ||
FunctionsOracle_sendRequest:testEmptyRequestDataReverts() (gas: 13452) | ||
FunctionsOracle_setDONPublicKey:testEmptyPublicKeyReverts() (gas: 10974) | ||
FunctionsOracle_setDONPublicKey:testOnlyOwnerReverts() (gas: 11255) | ||
FunctionsOracle_setDONPublicKey:testSetDONPublicKeySuccess() (gas: 126453) | ||
FunctionsOracle_setDONPublicKey:testSetDONPublicKey_gas() (gas: 97558) | ||
FunctionsOracle_setDONPublicKey:testSetDONPublicKey_gas() (gas: 97580) | ||
FunctionsOracle_setRegistry:testEmptyPublicKeyReverts() (gas: 10635) | ||
FunctionsOracle_setRegistry:testOnlyOwnerReverts() (gas: 10927) | ||
FunctionsOracle_setRegistry:testSetRegistrySuccess() (gas: 35791) | ||
FunctionsOracle_setRegistry:testSetRegistry_gas() (gas: 31987) | ||
FunctionsOracle_typeAndVersion:testTypeAndVersionSuccess() (gas: 6905) | ||
FunctionsRouter_Pause:test_Pause_RevertIfNotOwner() (gas: 13293) | ||
FunctionsRouter_Pause:test_Pause_Success() (gas: 20205) | ||
FunctionsRouter_Unpause:test_Unpause_RevertIfNotOwner() (gas: 13338) | ||
FunctionsRouter_Unpause:test_Unpause_Success() (gas: 77279) | ||
FunctionsSubscriptions_createSubscription:test_CreateSubscription_RevertIfNotAllowedSender() (gas: 26347) | ||
FunctionsSubscriptions_createSubscription:test_CreateSubscription_RevertIfPaused() (gas: 15699) | ||
FunctionsRouter_Pause:test_Pause_RevertIfNotOwner() (gas: 13315) | ||
FunctionsRouter_Pause:test_Pause_Success() (gas: 20254) | ||
FunctionsRouter_Unpause:test_Unpause_RevertIfNotOwner() (gas: 13294) | ||
FunctionsRouter_Unpause:test_Unpause_Success() (gas: 77334) | ||
FunctionsSubscriptions_createSubscription:test_CreateSubscription_RevertIfNotAllowedSender() (gas: 26368) | ||
FunctionsSubscriptions_createSubscription:test_CreateSubscription_RevertIfPaused() (gas: 15714) | ||
FunctionsSubscriptions_createSubscription:test_CreateSubscription_Success() (gas: 152436) |
Oops, something went wrong.