Skip to content

Commit

Permalink
Add AnyAllowed address to Suave library
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Nov 6, 2023
1 parent b328d64 commit 255e588
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 45 deletions.
2 changes: 1 addition & 1 deletion core/types/suave_structs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions core/vm/contracts_suave_runtime_adapter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions suave/artifacts/Suave.sol/Suave.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
"name": "PeekerReverted",
"type": "error"
},
{
"inputs": [],
"name": "ANYALLOWED",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BUILD_ETH_BLOCK",
Expand Down Expand Up @@ -200,9 +213,9 @@
}
],
"deployedBytecode": {
"object": "0x73000000000000000000000000000000000000000030146080604052600436106100f45760003560e01c8063ad05aae411610096578063c91e11df11610070578063c91e11df14610183578063d91525db1461018e578063f057975914610199578063f0608b1c146101a457600080fd5b8063ad05aae414610162578063b61b127d1461016d578063bc50c0051461017857600080fd5b80637320cb17116100d25780637320cb1714610136578063744795b914610141578063751afe2c1461014c57806394804c691461015757600080fd5b806301c19530146100f9578063040e51831461012057806369094cbc1461012b575b600080fd5b610104634320000181565b6040516001600160a01b03909116815260200160405180910390f35b610104634210000381565b610104634201000181565b610104634203000081565b610104634010000181565b610104634210003781565b610104634210000181565b610104634202000081565b610104634210000081565b610104634210000281565b610104634203000181565b610104634201000081565b610104634202000181565b61010463430000018156fea164736f6c6343000813000a"
"object": "0x73000000000000000000000000000000000000000030146080604052600436106100ff5760003560e01c8063ad05aae4116100a1578063d91525db11610070578063d91525db14610199578063de3dafbf146101a4578063f0579759146101bf578063f0608b1c146101ca57600080fd5b8063ad05aae41461016d578063b61b127d14610178578063bc50c00514610183578063c91e11df1461018e57600080fd5b80637320cb17116100dd5780637320cb1714610141578063744795b91461014c578063751afe2c1461015757806394804c691461016257600080fd5b806301c1953014610104578063040e51831461012b57806369094cbc14610136575b600080fd5b61010f634320000181565b6040516001600160a01b03909116815260200160405180910390f35b61010f634210000381565b61010f634201000181565b61010f634203000081565b61010f634010000181565b61010f634210003781565b61010f634210000181565b61010f634202000081565b61010f634210000081565b61010f634210000281565b61010f634203000181565b61010f634201000081565b61010f73c8df3686b4afb2bb53e60eae97ef043fe03fb82981565b61010f634202000181565b61010f63430000018156fea164736f6c6343000813000a"
},
"bytecode": {
"object": "0x6101bc61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100f45760003560e01c8063ad05aae411610096578063c91e11df11610070578063c91e11df14610183578063d91525db1461018e578063f057975914610199578063f0608b1c146101a457600080fd5b8063ad05aae414610162578063b61b127d1461016d578063bc50c0051461017857600080fd5b80637320cb17116100d25780637320cb1714610136578063744795b914610141578063751afe2c1461014c57806394804c691461015757600080fd5b806301c19530146100f9578063040e51831461012057806369094cbc1461012b575b600080fd5b610104634320000181565b6040516001600160a01b03909116815260200160405180910390f35b610104634210000381565b610104634201000181565b610104634203000081565b610104634010000181565b610104634210003781565b610104634210000181565b610104634202000081565b610104634210000081565b610104634210000281565b610104634203000181565b610104634201000081565b610104634202000181565b61010463430000018156fea164736f6c6343000813000a"
"object": "0x6101e261003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100ff5760003560e01c8063ad05aae4116100a1578063d91525db11610070578063d91525db14610199578063de3dafbf146101a4578063f0579759146101bf578063f0608b1c146101ca57600080fd5b8063ad05aae41461016d578063b61b127d14610178578063bc50c00514610183578063c91e11df1461018e57600080fd5b80637320cb17116100dd5780637320cb1714610141578063744795b91461014c578063751afe2c1461015757806394804c691461016257600080fd5b806301c1953014610104578063040e51831461012b57806369094cbc14610136575b600080fd5b61010f634320000181565b6040516001600160a01b03909116815260200160405180910390f35b61010f634210000381565b61010f634201000181565b61010f634203000081565b61010f634010000181565b61010f634210003781565b61010f634210000181565b61010f634202000081565b61010f634210000081565b61010f634210000281565b61010f634203000181565b61010f634201000081565b61010f73c8df3686b4afb2bb53e60eae97ef043fe03fb82981565b61010f634202000181565b61010f63430000018156fea164736f6c6343000813000a"
}
}
54 changes: 27 additions & 27 deletions suave/artifacts/addresses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions suave/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ struct {{.Name}} {
{{end}} }
{{end}}
address public constant ANYALLOWED =
0xC8df3686b4Afb2BB53e60EAe97EF043FE03Fb829;
address public constant IS_CONFIDENTIAL_ADDR =
0x0000000000000000000000000000000042010000;
{{range .Functions}}
Expand Down
2 changes: 2 additions & 0 deletions suave/sol/libraries/Suave.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ library Suave {
uint64 amount;
}

address public constant ANYALLOWED = 0xC8df3686b4Afb2BB53e60EAe97EF043FE03Fb829;

address public constant IS_CONFIDENTIAL_ADDR = 0x0000000000000000000000000000000042010000;

address public constant BUILD_ETH_BLOCK = 0x0000000000000000000000000000000042100001;
Expand Down
2 changes: 1 addition & 1 deletion suave/sol/scripts/forge_example.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "../libraries/SuaveForge.sol";
import "forge-std/Script.sol";

contract Example is Script {
address[] public addressList = [0xC8df3686b4Afb2BB53e60EAe97EF043FE03Fb829];
address[] public addressList = [Suave.ANYALLOWED];

function run() public {
Suave.Bid memory bid = SuaveForge.newBid(0, addressList, addressList, "default:v0:ethBundles");
Expand Down

0 comments on commit 255e588

Please sign in to comment.