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
Add additional deployment and view scripts, and deploy flashtestations to multiple networks
The existing deployment scripts all take arguments via the .env file, and this becomes difficult
and error prone when we have to deploy multiple contracts and keep track of many env vars. This
PR adds a DeployAll script which takes its arguments via 'forge script' command line arguments, which is
simpler and less error-prone.
We also get a helpful script for viewing a TEE's RegisteredTEE struct, and deploy the flashtestation
contracts to several networks
Individual Commits:
make first DeployAll script which deploys Policy and Registry
deploy some more to experimental
deploy more on experimental
deploy to alphanet
permission 0x306ab4fe782dde50a97584b6d4cad9375f7b5d02199c4c78821ad6622670c6b7 workloadID on unichain sepolia
commit DeployAll script, update README, and deploy mainnet flashtestations contracts
add script/GetRegistration.s.sol script
this is helpful for viewing a particular TEE registration's measurement registers
Copy file name to clipboardExpand all lines: README.md
+31-17Lines changed: 31 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,25 @@ cp env.sample .env
85
85
Then, provide correct values for the following env vars, which all the forge scripts below will use:
86
86
87
87
- ETHERSCAN_API_KEY
88
-
-UNICHAIN_SEPOLIA_RPC_URL
88
+
-RPC_URL
89
89
90
-
### Unichain Sepolia
90
+
### DeployAll
91
91
92
-
#### FlashtestationsRegistry
92
+
Deploys both the FlashtestationsRegistry and the BlockBuilderPolicy. This is the simplest and best way to deploy the necessary contracts in the flashtestations repository
93
+
94
+
```bash
95
+
# add the RPC_URL and ETHERSCAN_API_KEY's to your environment. Make sure RPC_URL is set to the intended network (e.g. unichain sepolia)
# See https://github.com/automata-network/automata-dcap-attestation/tree/4c579aff71562afe254de4009f5235873fdcc953?tab=readme-ov-file#deployment
100
+
# for the appropriate `AutomataDcapAttestationFee.sol` contract that matches your $RPC_URL's network
This is the primary contract of this repository. It allows TDX v4 devices to register themselves onchain with an Ethereum address/public key, such that later transactions from that address can be trusted to originate from a TEE.
Create a raw attestation quote and store it in `script/raw_tdx_quotes/`. This is needed for the `RegisterTEEScript` script for its $PATH_TO_ATTESTATION_QUOTE argument
0 commit comments