@cartesi/cli 2.0.0-alpha.12 → 2.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  export const DEFAULT_SEND_CONFIG = {
2
- eip712TxUrl: "http://localhost:8080/transaction",
2
+ eip712TxUrl: "http://127.0.0.1:6751/transaction",
3
3
  chainId: 31337,
4
4
  maxGasPrice: 10,
5
5
  };
@@ -127,7 +127,7 @@ export const createStartCommand = () => {
127
127
  .addOption(new Option("--cpus <number>", "number of cpu limits for the rollups-node").argParser(Number))
128
128
  .addOption(new Option("--memory <number>", "memory limit for the rollups-node in MB").argParser(Number))
129
129
  .option("--services <string>", `optional services to start, comma separated list from [${availableServices.map(({ name }) => name).join(", ")}]`, commaSeparatedList, [])
130
- .option("-p, --port <number>", "port to listen on", Number, 8080)
130
+ .option("-p, --port <number>", "port to listen on", Number, 6751)
131
131
  .option("--dry-run", "show the docker compose configuration", false)
132
132
  .option("-v, --verbose", "verbose output", false)
133
133
  .action(async (options, command) => {
@@ -136,7 +136,7 @@ export const createStartCommand = () => {
136
136
  const binPath = path.join(path.dirname(new URL(import.meta.url).pathname), "..");
137
137
  // setup the environment variable used in docker compose
138
138
  const env = {
139
- BLOCK_TIME: blockTime.toString(),
139
+ CARTESI_BLOCK_TIME: blockTime.toString(),
140
140
  CARTESI_BLOCKCHAIN_DEFAULT_BLOCK: defaultBlock,
141
141
  CARTESI_LOG_LEVEL: verbose ? "debug" : "info",
142
142
  CARTESI_BIN_PATH: binPath,
@@ -24,9 +24,10 @@ CARTESI_BLOCKCHAIN_WS_ENDPOINT="${CARTESI_BLOCKCHAIN_WS_ENDPOINT:-ws://anvil:854
24
24
  CARTESI_BLOCKCHAIN_DEFAULT_BLOCK="${CARTESI_BLOCKCHAIN_DEFAULT_BLOCK:-latest}"
25
25
 
26
26
  # contracts
27
- CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS="${CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS:-0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0}"
28
- CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS="${CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS:-0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF}"
29
- CARTESI_CONTRACTS_SELF_HOSTED_APPLICATION_FACTORY_ADDRESS="${CARTESI_CONTRACTS_SELF_HOSTED_APPLICATION_FACTORY_ADDRESS:-0x4a409e1CaB9229711C4e1f68625DdbC75809e721}"
27
+ CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS="${CARTESI_CONTRACTS_APPLICATION_FACTORY_ADDRESS:-0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051}"
28
+ CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS="${CARTESI_CONTRACTS_AUTHORITY_FACTORY_ADDRESS:-0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051}"
29
+ CARTESI_CONTRACTS_INPUT_BOX_ADDRESS="${CARTESI_CONTRACTS_INPUT_BOX_ADDRESS:-0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051}"
30
+ CARTESI_CONTRACTS_SELF_HOSTED_APPLICATION_FACTORY_ADDRESS="${CARTESI_CONTRACTS_SELF_HOSTED_APPLICATION_FACTORY_ADDRESS:-0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051}"
30
31
 
31
32
  # auth
32
33
  CARTESI_AUTH_MNEMONIC="${CARTESI_AUTH_MNEMONIC:-test test test test test test test test test test test junk}"
@@ -1,7 +1,28 @@
1
+ configs:
2
+ anvil_proxy:
3
+ content: |
4
+ http:
5
+ routers:
6
+ anvil:
7
+ rule: "PathPrefix(`/anvil`)"
8
+ middlewares:
9
+ - "remove-anvil-prefix"
10
+ service: anvil
11
+ middlewares:
12
+ remove-anvil-prefix:
13
+ replacePathRegex:
14
+ regex: "^/anvil(.*)"
15
+ replacement: "$1"
16
+ services:
17
+ anvil:
18
+ loadBalancer:
19
+ servers:
20
+ - url: "http://anvil:8545"
21
+
1
22
  services:
2
23
  anvil:
3
24
  image: ${CARTESI_SDK_IMAGE}
4
- command: ["devnet", "--block-time", "${BLOCK_TIME:-5}"]
25
+ command: ["devnet", "--block-time", "${CARTESI_BLOCK_TIME:-5}"]
5
26
  healthcheck:
6
27
  test: ["CMD", "eth_isready"]
7
28
  start_period: 10s
@@ -13,5 +34,6 @@ services:
13
34
  ANVIL_IP_ADDR: 0.0.0.0
14
35
 
15
36
  proxy:
16
- volumes:
17
- - ./proxy/anvil.yaml:/etc/traefik/conf.d/anvil.yaml
37
+ configs:
38
+ - source: anvil_proxy
39
+ target: /etc/traefik/conf.d/anvil.yaml
@@ -1,3 +1,36 @@
1
+ configs:
2
+ bundler_proxy:
3
+ content: |
4
+ http:
5
+ routers:
6
+ bundler:
7
+ rule: "PathPrefix(`/bundler`)"
8
+ middlewares:
9
+ - "cors"
10
+ - "remove-bundler-prefix"
11
+ service: bundler
12
+ middlewares:
13
+ cors:
14
+ headers:
15
+ accessControlAllowMethods:
16
+ - GET
17
+ - OPTIONS
18
+ - PUT
19
+ accessControlAllowHeaders: "*"
20
+ accessControlAllowOriginList:
21
+ - "*"
22
+ accessControlMaxAge: 100
23
+ addVaryHeader: true
24
+ remove-bundler-prefix:
25
+ replacePathRegex:
26
+ regex: "^/bundler/(.*)"
27
+ replacement: "/$1"
28
+ services:
29
+ bundler:
30
+ loadBalancer:
31
+ servers:
32
+ - url: "http://bundler:4337"
33
+
1
34
  services:
2
35
  bundler:
3
36
  image: ${CARTESI_SDK_IMAGE}
@@ -33,5 +66,6 @@ services:
33
66
  retries: 5
34
67
 
35
68
  proxy:
36
- volumes:
37
- - ./proxy/bundler.yaml:/etc/traefik/conf.d/bundler.yaml
69
+ configs:
70
+ - source: bundler_proxy
71
+ target: /etc/traefik/conf.d/bundler.yaml
@@ -1,3 +1,24 @@
1
+ configs:
2
+ espresso_proxy:
3
+ content: |
4
+ http:
5
+ routers:
6
+ espresso-reader:
7
+ rule: "PathPrefix(`/transaction`)"
8
+ middlewares:
9
+ - "remove-espresso-reader-prefix"
10
+ service: espresso-reader
11
+ middlewares:
12
+ remove-espresso-reader-prefix:
13
+ replacePathRegex:
14
+ regex: "^/transaction/(.*)"
15
+ replacement: "/$1"
16
+ services:
17
+ espresso-reader:
18
+ loadBalancer:
19
+ servers:
20
+ - url: "http://espresso_reader:8081"
21
+
1
22
  services:
2
23
  espresso:
3
24
  image: ${CARTESI_SDK_IMAGE}
@@ -19,7 +40,7 @@ services:
19
40
  ESPRESSO_BUILDER_PORT: 23000
20
41
  ESPRESSO_DEV_NODE_PORT: 20000
21
42
  ESPRESSO_SEQUENCER_ETH_MNEMONIC: ${CARTESI_AUTH_MNEMONIC:-test test test test test test test test test test test junk}
22
- ESPRESSO_SEQUENCER_L1_POLLING_INTERVAL: "${BLOCK_TIME}s"
43
+ ESPRESSO_SEQUENCER_L1_POLLING_INTERVAL: "${CARTESI_BLOCK_TIME}s"
23
44
  ESPRESSO_STATE_PROVER_UPDATE_INTERVAL: "10s"
24
45
  ESPRESSO_SEQUENCER_DATABASE_MAX_CONNECTIONS: 25
25
46
  ESPRESSO_SEQUENCER_STORAGE_PATH: /data/espresso
@@ -55,5 +76,6 @@ services:
55
76
  ESPRESSO_BASE_URL: http://espresso:24000
56
77
 
57
78
  proxy:
58
- volumes:
59
- - ./proxy/espresso.yaml:/etc/traefik/conf.d/espresso.yaml
79
+ configs:
80
+ - source: espresso_proxy
81
+ target: /etc/traefik/conf.d/espresso.yaml
@@ -4,9 +4,42 @@ x-explorer_db_env: &explorer_db_env
4
4
  DB_HOST: database
5
5
  DB_PASS: password
6
6
 
7
+ configs:
8
+ explorer_api_proxy:
9
+ content: |
10
+ http:
11
+ routers:
12
+ explorer-api:
13
+ rule: "PathPrefix(`/explorer-api`)"
14
+ middlewares:
15
+ - "remove-explorer-api-prefix"
16
+ service: explorer-api
17
+ middlewares:
18
+ remove-explorer-api-prefix:
19
+ replacePathRegex:
20
+ regex: "^/explorer-api/(.*)"
21
+ replacement: "/$1"
22
+ services:
23
+ explorer-api:
24
+ loadBalancer:
25
+ servers:
26
+ - url: "http://explorer_api:4350"
27
+ explorer_proxy:
28
+ content: |
29
+ http:
30
+ routers:
31
+ explorer:
32
+ rule: "PathPrefix(`/explorer`)"
33
+ service: explorer
34
+ services:
35
+ explorer:
36
+ loadBalancer:
37
+ servers:
38
+ - url: "http://explorer:3000"
39
+
7
40
  services:
8
41
  explorer_api:
9
- image: cartesi/rollups-explorer-api:1.0.0-alpha.3
42
+ image: cartesi/rollups-explorer-api:1.0.0-alpha.4
10
43
  environment:
11
44
  <<: *explorer_db_env
12
45
  GQL_PORT: 4350
@@ -31,7 +64,7 @@ services:
31
64
  condition: service_healthy
32
65
 
33
66
  squid_processor:
34
- image: cartesi/rollups-explorer-api:1.0.0-alpha.3
67
+ image: cartesi/rollups-explorer-api:1.0.0-alpha.4
35
68
  environment:
36
69
  <<: *explorer_db_env
37
70
  CHAIN_IDS: ${CARTESI_BLOCKCHAIN_ID:-13370}
@@ -44,7 +77,7 @@ services:
44
77
  condition: service_healthy
45
78
 
46
79
  explorer:
47
- image: cartesi/rollups-explorer:1.0.0-alpha.2
80
+ image: cartesi/rollups-explorer:1.0.0-alpha.3
48
81
  expose:
49
82
  - 3000
50
83
  depends_on:
@@ -52,6 +85,8 @@ services:
52
85
  condition: service_healthy
53
86
 
54
87
  proxy:
55
- volumes:
56
- - ./proxy/explorer.yaml:/etc/traefik/conf.d/explorer.yaml
57
- - ./proxy/explorer-api.yaml:/etc/traefik/conf.d/explorer-api.yaml
88
+ configs:
89
+ - source: explorer_proxy
90
+ target: /etc/traefik/conf.d/explorer.yaml
91
+ - source: explorer_api_proxy
92
+ target: /etc/traefik/conf.d/explorer-api.yaml
@@ -1,3 +1,17 @@
1
+ configs:
2
+ graphql_proxy:
3
+ content: |
4
+ http:
5
+ routers:
6
+ graphql:
7
+ rule: "PathPrefix(`/graphql`)"
8
+ service: graphql
9
+ services:
10
+ graphql:
11
+ loadBalancer:
12
+ servers:
13
+ - url: "http://graphql:8080"
14
+
1
15
  services:
2
16
  graphql:
3
17
  image: ${CARTESI_SDK_IMAGE}
@@ -19,5 +33,6 @@ services:
19
33
  condition: service_healthy
20
34
 
21
35
  proxy:
22
- volumes:
23
- - ./proxy/graphql.yaml:/etc/traefik/conf.d/graphql.yaml
36
+ configs:
37
+ - source: graphql_proxy
38
+ target: /etc/traefik/conf.d/graphql.yaml
@@ -1,3 +1,24 @@
1
+ configs:
2
+ rollups_node_proxy:
3
+ content: |
4
+ http:
5
+ routers:
6
+ inspect_server:
7
+ rule: "PathPrefix(`/inspect`)"
8
+ service: inspect_server
9
+ rpc_server:
10
+ rule: "PathPrefix(`/rpc`)"
11
+ service: rpc_server
12
+ services:
13
+ inspect_server:
14
+ loadBalancer:
15
+ servers:
16
+ - url: "http://rollups-node:10012"
17
+ rpc_server:
18
+ loadBalancer:
19
+ servers:
20
+ - url: "http://rollups-node:10011"
21
+
1
22
  services:
2
23
  rollups-node:
3
24
  image: cartesi/rollups-runtime:${CARTESI_SDK_VERSION}
@@ -24,8 +45,9 @@ services:
24
45
  - snapshots:/var/lib/cartesi-rollups-node/snapshots
25
46
 
26
47
  proxy:
27
- volumes:
28
- - ./proxy/rollups-node.yaml:/etc/traefik/conf.d/rollups-node.yaml
48
+ configs:
49
+ - source: rollups_node_proxy
50
+ target: /etc/traefik/conf.d/rollups-node.yaml
29
51
 
30
52
  volumes:
31
53
  snapshots:
@@ -1,3 +1,24 @@
1
+ configs:
2
+ passkey_server_proxy:
3
+ content: |
4
+ http:
5
+ routers:
6
+ passkey-server:
7
+ rule: "PathPrefix(`/passkey`)"
8
+ middlewares:
9
+ - "remove-passkey-server-prefix"
10
+ service: passkey-server
11
+ middlewares:
12
+ remove-passkey-server-prefix:
13
+ replacePathRegex:
14
+ regex: "^/passkey/(.*)"
15
+ replacement: "/$1"
16
+ services:
17
+ passkey-server:
18
+ loadBalancer:
19
+ servers:
20
+ - url: "http://passkey-server:3000"
21
+
1
22
  services:
2
23
  passkey-server:
3
24
  image: ${CARTESI_SDK_IMAGE}
@@ -11,5 +32,6 @@ services:
11
32
  retries: 5
12
33
 
13
34
  proxy:
14
- volumes:
15
- - ./proxy/passkey-server.yaml:/etc/traefik/conf.d/passkey-server.yaml
35
+ configs:
36
+ - source: passkey_server_proxy
37
+ target: /etc/traefik/conf.d/passkey-server.yaml
@@ -1,3 +1,24 @@
1
+ configs:
2
+ paymaster_proxy:
3
+ content: |
4
+ http:
5
+ routers:
6
+ paymaster:
7
+ rule: "PathPrefix(`/paymaster`)"
8
+ middlewares:
9
+ - "remove-paymaster-prefix"
10
+ service: paymaster
11
+ middlewares:
12
+ remove-paymaster-prefix:
13
+ replacePathRegex:
14
+ regex: "^/paymaster/(.*)"
15
+ replacement: "/$1"
16
+ services:
17
+ paymaster:
18
+ loadBalancer:
19
+ servers:
20
+ - url: "http://paymaster:3000"
21
+
1
22
  services:
2
23
  paymaster:
3
24
  image: ${CARTESI_SDK_IMAGE}
@@ -14,5 +35,6 @@ services:
14
35
  retries: 5
15
36
 
16
37
  proxy:
17
- volumes:
18
- - ./proxy/paymaster.yaml:/etc/traefik/conf.d/paymaster.yaml
38
+ configs:
39
+ - source: paymaster_proxy
40
+ target: /etc/traefik/conf.d/paymaster.yaml
@@ -21,4 +21,4 @@ services:
21
21
  "--log.level=INFO",
22
22
  ]
23
23
  ports:
24
- - ${CARTESI_LISTEN_PORT:-8080}:8088
24
+ - ${CARTESI_LISTEN_PORT:-6751}:8088
package/dist/config.d.ts CHANGED
@@ -30,7 +30,7 @@ export declare class InvalidStringArrayError extends Error {
30
30
  constructor();
31
31
  }
32
32
  export declare const DEFAULT_COMPOSE_ENVIRONMENT_NAME = "cartesi-rollups";
33
- export declare const DEFAULT_SDK_VERSION = "0.12.0-alpha.15";
33
+ export declare const DEFAULT_SDK_VERSION = "0.12.0-alpha.19";
34
34
  export declare const DEFAULT_SDK_IMAGE = "cartesi/sdk";
35
35
  type DriveFormat = "ext2" | "sqfs";
36
36
  export type ImageInfo = {
package/dist/config.js CHANGED
@@ -65,7 +65,7 @@ export const DEFAULT_COMPOSE_ENVIRONMENT_NAME = "cartesi-rollups";
65
65
  const DEFAULT_FORMAT = "ext2";
66
66
  const DEFAULT_RAM = "128Mi";
67
67
  const DEFAULT_RAM_IMAGE = "/usr/share/cartesi-machine/images/linux.bin";
68
- export const DEFAULT_SDK_VERSION = "0.12.0-alpha.15";
68
+ export const DEFAULT_SDK_VERSION = "0.12.0-alpha.19";
69
69
  export const DEFAULT_SDK_IMAGE = "cartesi/sdk";
70
70
  export const defaultRootDriveConfig = () => ({
71
71
  builder: "docker",
@@ -115,9 +115,9 @@ export declare const applicationFactoryAbi: readonly [{
115
115
  }];
116
116
  readonly name: "ApplicationCreated";
117
117
  }];
118
- export declare const applicationFactoryAddress: "0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0";
118
+ export declare const applicationFactoryAddress: "0xc7006f70875BaDe89032001262A846D3Ee160051";
119
119
  export declare const applicationFactoryConfig: {
120
- readonly address: "0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0";
120
+ readonly address: "0xc7006f70875BaDe89032001262A846D3Ee160051";
121
121
  readonly abi: readonly [{
122
122
  readonly type: "function";
123
123
  readonly inputs: readonly [{
@@ -309,9 +309,9 @@ export declare const authorityFactoryAbi: readonly [{
309
309
  }];
310
310
  readonly name: "AuthorityCreated";
311
311
  }];
312
- export declare const authorityFactoryAddress: "0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF";
312
+ export declare const authorityFactoryAddress: "0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051";
313
313
  export declare const authorityFactoryConfig: {
314
- readonly address: "0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF";
314
+ readonly address: "0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051";
315
315
  readonly abi: readonly [{
316
316
  readonly type: "function";
317
317
  readonly inputs: readonly [{
@@ -464,9 +464,9 @@ export declare const erc1155BatchPortalAbi: readonly [{
464
464
  }];
465
465
  readonly stateMutability: "view";
466
466
  }];
467
- export declare const erc1155BatchPortalAddress: "0xBc70d79F916A6d48aB0b8F03AC58f89742dEDA34";
467
+ export declare const erc1155BatchPortalAddress: "0xc700A2e5531E720a2434433b6ccf4c0eA2400051";
468
468
  export declare const erc1155BatchPortalConfig: {
469
- readonly address: "0xBc70d79F916A6d48aB0b8F03AC58f89742dEDA34";
469
+ readonly address: "0xc700A2e5531E720a2434433b6ccf4c0eA2400051";
470
470
  readonly abi: readonly [{
471
471
  readonly type: "constructor";
472
472
  readonly inputs: readonly [{
@@ -566,9 +566,9 @@ export declare const erc1155SinglePortalAbi: readonly [{
566
566
  }];
567
567
  readonly stateMutability: "view";
568
568
  }];
569
- export declare const erc1155SinglePortalAddress: "0xB778147D50219544F113A55DE1d8de626f0cC1bB";
569
+ export declare const erc1155SinglePortalAddress: "0xc700A261279aFC6F755A3a67D86ae43E2eBD0051";
570
570
  export declare const erc1155SinglePortalConfig: {
571
- readonly address: "0xB778147D50219544F113A55DE1d8de626f0cC1bB";
571
+ readonly address: "0xc700A261279aFC6F755A3a67D86ae43E2eBD0051";
572
572
  readonly abi: readonly [{
573
573
  readonly type: "constructor";
574
574
  readonly inputs: readonly [{
@@ -664,9 +664,9 @@ export declare const erc20PortalAbi: readonly [{
664
664
  readonly inputs: readonly [];
665
665
  readonly name: "ERC20TransferFailed";
666
666
  }];
667
- export declare const erc20PortalAddress: "0x05355c2F9bA566c06199DEb17212c3B78C1A3C31";
667
+ export declare const erc20PortalAddress: "0xc700D6aDd016eECd59d989C028214Eaa0fCC0051";
668
668
  export declare const erc20PortalConfig: {
669
- readonly address: "0x05355c2F9bA566c06199DEb17212c3B78C1A3C31";
669
+ readonly address: "0xc700D6aDd016eECd59d989C028214Eaa0fCC0051";
670
670
  readonly abi: readonly [{
671
671
  readonly type: "constructor";
672
672
  readonly inputs: readonly [{
@@ -758,9 +758,9 @@ export declare const erc721PortalAbi: readonly [{
758
758
  }];
759
759
  readonly stateMutability: "view";
760
760
  }];
761
- export declare const erc721PortalAddress: "0x0F5A20d3729c44FedabBb560b3D633dc1c246DDe";
761
+ export declare const erc721PortalAddress: "0xc700d52F5290e978e9CAe7D1E092935263b60051";
762
762
  export declare const erc721PortalConfig: {
763
- readonly address: "0x0F5A20d3729c44FedabBb560b3D633dc1c246DDe";
763
+ readonly address: "0xc700d52F5290e978e9CAe7D1E092935263b60051";
764
764
  readonly abi: readonly [{
765
765
  readonly type: "constructor";
766
766
  readonly inputs: readonly [{
@@ -844,9 +844,9 @@ export declare const etherPortalAbi: readonly [{
844
844
  readonly inputs: readonly [];
845
845
  readonly name: "EtherTransferFailed";
846
846
  }];
847
- export declare const etherPortalAddress: "0xd31aD6613bDaA139E7D12B2428C0Dd00fdBF8aDa";
847
+ export declare const etherPortalAddress: "0xc70076a466789B595b50959cdc261227F0D70051";
848
848
  export declare const etherPortalConfig: {
849
- readonly address: "0xd31aD6613bDaA139E7D12B2428C0Dd00fdBF8aDa";
849
+ readonly address: "0xc70076a466789B595b50959cdc261227F0D70051";
850
850
  readonly abi: readonly [{
851
851
  readonly type: "constructor";
852
852
  readonly inputs: readonly [{
@@ -982,9 +982,9 @@ export declare const inputBoxAbi: readonly [{
982
982
  }];
983
983
  readonly name: "InputTooLarge";
984
984
  }];
985
- export declare const inputBoxAddress: "0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c";
985
+ export declare const inputBoxAddress: "0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051";
986
986
  export declare const inputBoxConfig: {
987
- readonly address: "0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c";
987
+ readonly address: "0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051";
988
988
  readonly abi: readonly [{
989
989
  readonly type: "function";
990
990
  readonly inputs: readonly [{
@@ -1156,9 +1156,9 @@ export declare const quorumFactoryAbi: readonly [{
1156
1156
  }];
1157
1157
  readonly name: "QuorumCreated";
1158
1158
  }];
1159
- export declare const quorumFactoryAddress: "0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E";
1159
+ export declare const quorumFactoryAddress: "0xC7003CAb437640b91C3351B98e9e8aA413410051";
1160
1160
  export declare const quorumFactoryConfig: {
1161
- readonly address: "0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E";
1161
+ readonly address: "0xC7003CAb437640b91C3351B98e9e8aA413410051";
1162
1162
  readonly abi: readonly [{
1163
1163
  readonly type: "function";
1164
1164
  readonly inputs: readonly [{
@@ -1260,9 +1260,9 @@ export declare const safeErc20TransferAbi: readonly [{
1260
1260
  }];
1261
1261
  readonly name: "SafeERC20FailedOperation";
1262
1262
  }];
1263
- export declare const safeErc20TransferAddress: "0x35187C9f069D34aB73c02327ae155746a8274208";
1263
+ export declare const safeErc20TransferAddress: "0xc700903d822E108a93B21F69A0a6475F42930051";
1264
1264
  export declare const safeErc20TransferConfig: {
1265
- readonly address: "0x35187C9f069D34aB73c02327ae155746a8274208";
1265
+ readonly address: "0xc700903d822E108a93B21F69A0a6475F42930051";
1266
1266
  readonly abi: readonly [{
1267
1267
  readonly type: "function";
1268
1268
  readonly inputs: readonly [{
@@ -1400,9 +1400,9 @@ export declare const selfHostedApplicationFactoryAbi: readonly [{
1400
1400
  }];
1401
1401
  readonly stateMutability: "view";
1402
1402
  }];
1403
- export declare const selfHostedApplicationFactoryAddress: "0x4a409e1CaB9229711C4e1f68625DdbC75809e721";
1403
+ export declare const selfHostedApplicationFactoryAddress: "0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051";
1404
1404
  export declare const selfHostedApplicationFactoryConfig: {
1405
- readonly address: "0x4a409e1CaB9229711C4e1f68625DdbC75809e721";
1405
+ readonly address: "0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051";
1406
1406
  readonly abi: readonly [{
1407
1407
  readonly type: "constructor";
1408
1408
  readonly inputs: readonly [{
package/dist/contracts.js CHANGED
@@ -102,7 +102,7 @@ export const applicationFactoryAbi = [
102
102
  name: 'ApplicationCreated',
103
103
  },
104
104
  ];
105
- export const applicationFactoryAddress = '0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0';
105
+ export const applicationFactoryAddress = '0xc7006f70875BaDe89032001262A846D3Ee160051';
106
106
  export const applicationFactoryConfig = {
107
107
  address: applicationFactoryAddress,
108
108
  abi: applicationFactoryAbi,
@@ -173,7 +173,7 @@ export const authorityFactoryAbi = [
173
173
  name: 'AuthorityCreated',
174
174
  },
175
175
  ];
176
- export const authorityFactoryAddress = '0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF';
176
+ export const authorityFactoryAddress = '0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051';
177
177
  export const authorityFactoryConfig = {
178
178
  address: authorityFactoryAddress,
179
179
  abi: authorityFactoryAbi,
@@ -254,7 +254,7 @@ export const erc1155BatchPortalAbi = [
254
254
  stateMutability: 'view',
255
255
  },
256
256
  ];
257
- export const erc1155BatchPortalAddress = '0xBc70d79F916A6d48aB0b8F03AC58f89742dEDA34';
257
+ export const erc1155BatchPortalAddress = '0xc700A2e5531E720a2434433b6ccf4c0eA2400051';
258
258
  export const erc1155BatchPortalConfig = {
259
259
  address: erc1155BatchPortalAddress,
260
260
  abi: erc1155BatchPortalAbi,
@@ -302,7 +302,7 @@ export const erc1155SinglePortalAbi = [
302
302
  stateMutability: 'view',
303
303
  },
304
304
  ];
305
- export const erc1155SinglePortalAddress = '0xB778147D50219544F113A55DE1d8de626f0cC1bB';
305
+ export const erc1155SinglePortalAddress = '0xc700A261279aFC6F755A3a67D86ae43E2eBD0051';
306
306
  export const erc1155SinglePortalConfig = {
307
307
  address: erc1155SinglePortalAddress,
308
308
  abi: erc1155SinglePortalAbi,
@@ -345,7 +345,7 @@ export const erc20PortalAbi = [
345
345
  },
346
346
  { type: 'error', inputs: [], name: 'ERC20TransferFailed' },
347
347
  ];
348
- export const erc20PortalAddress = '0x05355c2F9bA566c06199DEb17212c3B78C1A3C31';
348
+ export const erc20PortalAddress = '0xc700D6aDd016eECd59d989C028214Eaa0fCC0051';
349
349
  export const erc20PortalConfig = {
350
350
  address: erc20PortalAddress,
351
351
  abi: erc20PortalAbi,
@@ -392,7 +392,7 @@ export const erc721PortalAbi = [
392
392
  stateMutability: 'view',
393
393
  },
394
394
  ];
395
- export const erc721PortalAddress = '0x0F5A20d3729c44FedabBb560b3D633dc1c246DDe';
395
+ export const erc721PortalAddress = '0xc700d52F5290e978e9CAe7D1E092935263b60051';
396
396
  export const erc721PortalConfig = {
397
397
  address: erc721PortalAddress,
398
398
  abi: erc721PortalAbi,
@@ -433,7 +433,7 @@ export const etherPortalAbi = [
433
433
  },
434
434
  { type: 'error', inputs: [], name: 'EtherTransferFailed' },
435
435
  ];
436
- export const etherPortalAddress = '0xd31aD6613bDaA139E7D12B2428C0Dd00fdBF8aDa';
436
+ export const etherPortalAddress = '0xc70076a466789B595b50959cdc261227F0D70051';
437
437
  export const etherPortalConfig = {
438
438
  address: etherPortalAddress,
439
439
  abi: etherPortalAbi,
@@ -517,7 +517,7 @@ export const inputBoxAbi = [
517
517
  name: 'InputTooLarge',
518
518
  },
519
519
  ];
520
- export const inputBoxAddress = '0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c';
520
+ export const inputBoxAddress = '0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051';
521
521
  export const inputBoxConfig = {
522
522
  address: inputBoxAddress,
523
523
  abi: inputBoxAbi,
@@ -588,7 +588,7 @@ export const quorumFactoryAbi = [
588
588
  name: 'QuorumCreated',
589
589
  },
590
590
  ];
591
- export const quorumFactoryAddress = '0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E';
591
+ export const quorumFactoryAddress = '0xC7003CAb437640b91C3351B98e9e8aA413410051';
592
592
  export const quorumFactoryConfig = {
593
593
  address: quorumFactoryAddress,
594
594
  abi: quorumFactoryAbi,
@@ -614,7 +614,7 @@ export const safeErc20TransferAbi = [
614
614
  name: 'SafeERC20FailedOperation',
615
615
  },
616
616
  ];
617
- export const safeErc20TransferAddress = '0x35187C9f069D34aB73c02327ae155746a8274208';
617
+ export const safeErc20TransferAddress = '0xc700903d822E108a93B21F69A0a6475F42930051';
618
618
  export const safeErc20TransferConfig = {
619
619
  address: safeErc20TransferAddress,
620
620
  abi: safeErc20TransferAbi,
@@ -716,7 +716,7 @@ export const selfHostedApplicationFactoryAbi = [
716
716
  stateMutability: 'view',
717
717
  },
718
718
  ];
719
- export const selfHostedApplicationFactoryAddress = '0x4a409e1CaB9229711C4e1f68625DdbC75809e721';
719
+ export const selfHostedApplicationFactoryAddress = '0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051';
720
720
  export const selfHostedApplicationFactoryConfig = {
721
721
  address: selfHostedApplicationFactoryAddress,
722
722
  abi: selfHostedApplicationFactoryAbi,
package/dist/wallet.js CHANGED
@@ -91,7 +91,7 @@ const selectTransport = async (options, chain) => {
91
91
  const defaultUrl = chain.rpcUrls.default.http[0];
92
92
  // if the chain is cannon and URL is valid, use it without asking the user
93
93
  if (chain.id === cannon.id) {
94
- const port = 8080; // XXX: how to get environment port?
94
+ const port = 6751; // XXX: how to get environment port?
95
95
  const url = `http://127.0.0.1:${port}/anvil`;
96
96
  if (await testChainUrl(chain, url)) {
97
97
  return http(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartesi/cli",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.13",
4
4
  "description": "Cartesi CLI",
5
5
  "author": "Danilo Tuler <tuler@pobox.com>",
6
6
  "bin": {
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@biomejs/biome": "^1.9.4",
46
- "@cartesi/devnet": "2.0.0-alpha.6",
46
+ "@cartesi/devnet": "2.0.0-alpha.7",
47
47
  "@cartesi/rollups": "2.0.0",
48
48
  "@types/bytes": "^3.1.5",
49
49
  "@types/fs-extra": "^11.0.4",
@@ -1,17 +0,0 @@
1
- http:
2
- routers:
3
- anvil:
4
- rule: "PathPrefix(`/anvil`)"
5
- middlewares:
6
- - "remove-anvil-prefix"
7
- service: anvil
8
- middlewares:
9
- remove-anvil-prefix:
10
- replacePathRegex:
11
- regex: "^/anvil(.*)"
12
- replacement: "$1"
13
- services:
14
- anvil:
15
- loadBalancer:
16
- servers:
17
- - url: "http://anvil:8545"
@@ -1,29 +0,0 @@
1
- http:
2
- routers:
3
- bundler:
4
- rule: "PathPrefix(`/bundler`)"
5
- middlewares:
6
- - "cors"
7
- - "remove-bundler-prefix"
8
- service: bundler
9
- middlewares:
10
- cors:
11
- headers:
12
- accessControlAllowMethods:
13
- - GET
14
- - OPTIONS
15
- - PUT
16
- accessControlAllowHeaders: "*"
17
- accessControlAllowOriginList:
18
- - "*"
19
- accessControlMaxAge: 100
20
- addVaryHeader: true
21
- remove-bundler-prefix:
22
- replacePathRegex:
23
- regex: "^/bundler/(.*)"
24
- replacement: "/$1"
25
- services:
26
- bundler:
27
- loadBalancer:
28
- servers:
29
- - url: "http://bundler:4337"
@@ -1,17 +0,0 @@
1
- http:
2
- routers:
3
- espresso-reader:
4
- rule: "PathPrefix(`/transaction`)"
5
- middlewares:
6
- - "remove-espresso-reader-prefix"
7
- service: espresso-reader
8
- middlewares:
9
- remove-espresso-reader-prefix:
10
- replacePathRegex:
11
- regex: "^/transaction/(.*)"
12
- replacement: "/$1"
13
- services:
14
- espresso-reader:
15
- loadBalancer:
16
- servers:
17
- - url: "http://espresso_reader:8081"
@@ -1,17 +0,0 @@
1
- http:
2
- routers:
3
- explorer-api:
4
- rule: "PathPrefix(`/explorer-api`)"
5
- middlewares:
6
- - "remove-explorer-api-prefix"
7
- service: explorer-api
8
- middlewares:
9
- remove-explorer-api-prefix:
10
- replacePathRegex:
11
- regex: "^/explorer-api/(.*)"
12
- replacement: "/$1"
13
- services:
14
- explorer-api:
15
- loadBalancer:
16
- servers:
17
- - url: "http://explorer_api:4350"
@@ -1,10 +0,0 @@
1
- http:
2
- routers:
3
- explorer:
4
- rule: "PathPrefix(`/explorer`)"
5
- service: explorer
6
- services:
7
- explorer:
8
- loadBalancer:
9
- servers:
10
- - url: "http://explorer:3000"
@@ -1,10 +0,0 @@
1
- http:
2
- routers:
3
- graphql:
4
- rule: "PathPrefix(`/graphql`)"
5
- service: graphql
6
- services:
7
- graphql:
8
- loadBalancer:
9
- servers:
10
- - url: "http://graphql:8080"
@@ -1,17 +0,0 @@
1
- http:
2
- routers:
3
- passkey-server:
4
- rule: "PathPrefix(`/passkey`)"
5
- middlewares:
6
- - "remove-passkey-server-prefix"
7
- service: passkey-server
8
- middlewares:
9
- remove-passkey-server-prefix:
10
- replacePathRegex:
11
- regex: "^/passkey/(.*)"
12
- replacement: "/$1"
13
- services:
14
- passkey-server:
15
- loadBalancer:
16
- servers:
17
- - url: "http://passkey-server:3000"
@@ -1,17 +0,0 @@
1
- http:
2
- routers:
3
- paymaster:
4
- rule: "PathPrefix(`/paymaster`)"
5
- middlewares:
6
- - "remove-paymaster-prefix"
7
- service: paymaster
8
- middlewares:
9
- remove-paymaster-prefix:
10
- replacePathRegex:
11
- regex: "^/paymaster/(.*)"
12
- replacement: "/$1"
13
- services:
14
- paymaster:
15
- loadBalancer:
16
- servers:
17
- - url: "http://paymaster:3000"
@@ -1,17 +0,0 @@
1
- http:
2
- routers:
3
- inspect_server:
4
- rule: "PathPrefix(`/inspect`)"
5
- service: inspect_server
6
- rpc_server:
7
- rule: "PathPrefix(`/rpc`)"
8
- service: rpc_server
9
- services:
10
- inspect_server:
11
- loadBalancer:
12
- servers:
13
- - url: "http://rollups-node:10012"
14
- rpc_server:
15
- loadBalancer:
16
- servers:
17
- - url: "http://rollups-node:10011"