Skip to content

Commit bfe293b

Browse files
committed
feat(cli): adapt to rollups-node:v2.0.0-alpha.2
1 parent 9ee46f1 commit bfe293b

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

apps/cli/src/commands/rollups/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ const registerApplication = async (options: {
232232
]);
233233
const registration = stdout ? JSON.parse(stdout) : undefined;
234234
if (registration) {
235-
if (registration.State !== "ENABLED") {
236-
throw new Error(registration.Reason);
235+
if (registration.state !== "ENABLED") {
236+
throw new Error(registration.reason);
237237
}
238238
progress.succeed(`Registration ${chalk.cyan(name)}`);
239239
} else {

apps/cli/src/compose/rollups/default.env

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ CARTESI_BLOCKCHAIN_WS_ENDPOINT="${CARTESI_BLOCKCHAIN_WS_ENDPOINT:-ws://anvil:854
2323
CARTESI_BLOCKCHAIN_DEFAULT_BLOCK="${CARTESI_BLOCKCHAIN_DEFAULT_BLOCK:-latest}"
2424

2525
# contracts
26-
CARTESI_CONTRACTS_INPUT_BOX_ADDRESS="${CARTESI_CONTRACTS_INPUT_BOX_ADDRESS:-0x593E5BCf894D6829Dd26D0810DA7F064406aebB6}"
27-
CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER="${CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER:-1}"
28-
CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS="${CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS:-0xd7d4d184b82b1a4e08f304DDaB0A2A7a301C2620}"
29-
CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS="${CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS:-0xB897F7Fe78f220aE34B7FA9493092701a873Ed45}"
26+
CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS="${CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS:-0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0}"
27+
CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS="${CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS:-0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF}"
28+
CARTESI_CONTRACTS_SELF_HOSTED_APPLICATION_FACTORY_ADDRESS="${CARTESI_CONTRACTS_SELF_HOSTED_APPLICATION_FACTORY_ADDRESS:-0x4a409e1CaB9229711C4e1f68625DdbC75809e721}"
3029

3130
# auth
3231
CARTESI_AUTH_MNEMONIC="${CARTESI_AUTH_MNEMONIC:-test test test test test test test test test test test junk}"

apps/cli/src/exec/rollups.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export const getDeployments = async (
3131
"list",
3232
]);
3333
return JSON.parse(stdout).map((deployment: any) => ({
34-
id: deployment.ID,
35-
name: deployment.Name,
36-
address: deployment.IApplicationAddress,
37-
templateHash: deployment.TemplateHash,
38-
epochLength: deployment.EpochLength,
39-
state: deployment.State,
34+
id: deployment.id,
35+
name: deployment.name,
36+
address: deployment.iapplication_address,
37+
templateHash: deployment.template_hash,
38+
epochLength: deployment.epoch_lenght,
39+
state: deployment.state,
4040
}));
4141
} catch (e: unknown) {
4242
return [];

0 commit comments

Comments
 (0)