Skip to content

Commit

Permalink
chore: update tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Oct 24, 2024
1 parent 2fd2f6a commit 81d1478
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 22 deletions.
1 change: 1 addition & 0 deletions l1-contracts/.rebuild_patterns
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
^l1-contracts/src/.*\.sol$
^l1-contracts/test/governance/scenario/NewGerousiaPayload.sol$
1 change: 0 additions & 1 deletion yarn-project/aztec-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"@aztec/ethereum": "workspace:^",
"@aztec/foundation": "workspace:^",
"@aztec/kv-store": "workspace:^",
"@aztec/l1-artifacts": "workspace:^",
"@aztec/merkle-tree": "workspace:^",
"@aztec/p2p": "workspace:^",
"@aztec/protocol-contracts": "workspace:^",
Expand Down
3 changes: 0 additions & 3 deletions yarn-project/aztec-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
{
"path": "../kv-store"
},
{
"path": "../l1-artifacts"
},
{
"path": "../merkle-tree"
},
Expand Down
1 change: 0 additions & 1 deletion yarn-project/aztec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@aztec/ethereum": "workspace:^",
"@aztec/foundation": "workspace:^",
"@aztec/kv-store": "workspace:^",
"@aztec/l1-artifacts": "workspace:^",
"@aztec/noir-contracts.js": "workspace:^",
"@aztec/noir-protocol-circuits-types": "workspace:^",
"@aztec/p2p": "workspace:^",
Expand Down
3 changes: 0 additions & 3 deletions yarn-project/aztec/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
{
"path": "../kv-store"
},
{
"path": "../l1-artifacts"
},
{
"path": "../noir-contracts.js"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ INBOX_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'L1 -> L2 Inbox Address: \K0x
OUTBOX_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'L2 -> L1 Outbox Address: \K0x[a-fA-F0-9]{40}')
FEE_JUICE_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'Fee Juice Address: \K0x[a-fA-F0-9]{40}')
FEE_JUICE_PORTAL_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'Fee Juice Portal Address: \K0x[a-fA-F0-9]{40}')
NOMISMATOKOPIO_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'Nomismatokopio Address: \K0x[a-fA-F0-9]{40}')
SYSSTIA_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'Sysstia Address: \K0x[a-fA-F0-9]{40}')
GEROUSIA_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'Gerousia Address: \K0x[a-fA-F0-9]{40}')
APELLA_CONTRACT_ADDRESS=$(echo "$output" | grep -oP 'Apella Address: \K0x[a-fA-F0-9]{40}')


# Save contract addresses to state/l1-contracts.env
cat << EOCONFIG > $(git rev-parse --show-toplevel)/yarn-project/end-to-end/scripts/native-network/state/l1-contracts.env
Expand All @@ -52,6 +57,10 @@ export INBOX_CONTRACT_ADDRESS=$INBOX_CONTRACT_ADDRESS
export OUTBOX_CONTRACT_ADDRESS=$OUTBOX_CONTRACT_ADDRESS
export FEE_JUICE_CONTRACT_ADDRESS=$FEE_JUICE_CONTRACT_ADDRESS
export FEE_JUICE_PORTAL_CONTRACT_ADDRESS=$FEE_JUICE_PORTAL_CONTRACT_ADDRESS
export NOMISMATOKOPIO_CONTRACT_ADDRESS=$NOMISMATOKOPIO_CONTRACT_ADDRESS
export SYSSTIA_CONTRACT_ADDRESS=$SYSSTIA_CONTRACT_ADDRESS
export GEROUSIA_CONTRACT_ADDRESS=$GEROUSIA_CONTRACT_ADDRESS
export APELLA_CONTRACT_ADDRESS=$APELLA_CONTRACT_ADDRESS
EOCONFIG

echo "Contract addresses saved to state/l1-contracts.env"
1 change: 1 addition & 0 deletions yarn-project/end-to-end/src/e2e_p2p/gerousia.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe('e2e_p2p_gerousia', () => {
/**
* There is some flaky behavior in here, likely similar to what is in the gossip test.
* For this reason we are not running it as part of the CI.
* TODO(https://github.com/AztecProtocol/aztec-packages/issues/9164): Currently flakey
*/
it.skip('Should cast votes to upgrade gerousia', async () => {
// create the bootstrap node for the network
Expand Down
7 changes: 6 additions & 1 deletion yarn-project/ethereum/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
"rootDir": "src",
"tsBuildInfoFile": ".tsbuildinfo"
},
"include": ["src"],
"include": [
"src"
],
"references": [
{
"path": "../foundation"
},
{
"path": "../l1-artifacts"
}
]
}
11 changes: 3 additions & 8 deletions yarn-project/sequencer-client/src/publisher/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ export function prettyLogViemErrorMsg(err: any) {
}

export function prettyLogViemError(err: any, logger: Logger) {
if (err instanceof BaseError) {
const revertError = err.walk(err => err instanceof ContractFunctionRevertedError);
if (revertError instanceof ContractFunctionRevertedError) {
const errorName = revertError.data?.errorName ?? '';
const args =
revertError.metaMessages && revertError.metaMessages?.length > 1 ? revertError.metaMessages[1].trimStart() : '';
logger.debug(`canProposeAtTime failed with "${errorName}${args}"`);
}
const msg = prettyLogViemErrorMsg(err);
if (msg) {
logger.debug(`canProposeAtTime failed with "${msg}"`);
}
}
8 changes: 5 additions & 3 deletions yarn-project/sequencer-client/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { inspect } from 'util';
import { type BlockBuilderFactory } from '../block_builder/index.js';
import { type GlobalVariableBuilder } from '../global_variable_builder/global_builder.js';
import { type L1Publisher } from '../publisher/l1-publisher.js';
import { prettyLogViemError } from '../publisher/utils.js';
import { prettyLogViemErrorMsg } from '../publisher/utils.js';
import { type TxValidatorFactory } from '../tx_validator/tx_validator_factory.js';
import { type SequencerConfig } from './config.js';
import { SequencerMetrics } from './metrics.js';
Expand Down Expand Up @@ -315,8 +315,10 @@ export class Sequencer {
this.log.debug(`Can propose block ${proposalBlockNumber} at slot ${slot}`);
return slot;
} catch (err) {
this.log.verbose(`Rejected from being able to propose at next block with ${tipArchive}`);
prettyLogViemError(err, this.log);
const msg = prettyLogViemErrorMsg(err);
this.log.verbose(
`Rejected from being able to propose at next block with ${tipArchive.toString('hex')}: ${msg ? `${msg}` : ''}`,
);
throw err;
}
}
Expand Down
2 changes: 0 additions & 2 deletions yarn-project/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ __metadata:
"@aztec/ethereum": "workspace:^"
"@aztec/foundation": "workspace:^"
"@aztec/kv-store": "workspace:^"
"@aztec/l1-artifacts": "workspace:^"
"@aztec/merkle-tree": "workspace:^"
"@aztec/p2p": "workspace:^"
"@aztec/protocol-contracts": "workspace:^"
Expand Down Expand Up @@ -248,7 +247,6 @@ __metadata:
"@aztec/ethereum": "workspace:^"
"@aztec/foundation": "workspace:^"
"@aztec/kv-store": "workspace:^"
"@aztec/l1-artifacts": "workspace:^"
"@aztec/noir-contracts.js": "workspace:^"
"@aztec/noir-protocol-circuits-types": "workspace:^"
"@aztec/p2p": "workspace:^"
Expand Down

0 comments on commit 81d1478

Please sign in to comment.