Skip to content

Commit

Permalink
devnet: update sui addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Apr 12, 2024
1 parent dfdf93e commit 53a2b70
Show file tree
Hide file tree
Showing 14 changed files with 1,132 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def build_node_yaml():
"--suiRPC",
"http://sui:9000",
"--suiMoveEventType",
"0x7f6cebb8a489654d7a759483bd653c4be3e5ccfef17a8b5fd3ba98bd072fabc3::publish_message::WormholeMessage",
"0x320a40bff834b5ffa12d7f5cc2220dd733dd9e8e91c425800203d06fb2b1fee8::publish_message::WormholeMessage",
"--suiWS",
"ws://sui:9000",
]
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/consts/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const OVERRIDES = {
},
DEVNET: {
sui: {
core: "0xb49caa756546453e3145574c206a570a43506fbc2c43f0181834555f85dbe57d", // wormhole module State object ID
core: "0x12253210c90f89e7a8525e6c52d41309ff5bfb31f43f561b5fe6f50cd72f9668", // wormhole module State object ID
token_bridge:
"0xad0fd243ad451b773ccff4707842e0eeaa8c51a8071912fe3285247220b3fdd1", // token_bridge module State object ID
"0x830ed228c6f1bcb40003bb49af3277df2cbf933d63a6bcdcb0ba4580a1a7654e", // token_bridge module State object ID
},
aptos: {
token_bridge:
Expand Down
2 changes: 1 addition & 1 deletion scripts/devnet-consts.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
},
"21": {
"contracts": {
"tokenBridgeEmitterAddress": "be8d2e6809d4873bcf1d8be6af2b92500091ad6aa5dc76bc717af86a58d300ca"
"tokenBridgeEmitterAddress": "8c6ba6a65f1b9c7fba4c5ad710086ace208e9ac21786a923425efc8167a419f0"
}
},
"22": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/devnet_consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var knownDevnetTokenbridgeEmitters = map[vaa.ChainID]string{
vaa.ChainIDBSC: "0000000000000000000000000290fb167208af455bb137780163b7b7a9a10c16",
vaa.ChainIDAlgorand: "8ec299cb7f3efec28f542397e07f07118d74c875f85409ed8e6b93c17b60e992",
vaa.ChainIDWormchain: "c9138c6e5bd7a2ab79c1a87486c9d7349d064b35ac9f7498f3b207b3a61e6013",
vaa.ChainIDSui: "be8d2e6809d4873bcf1d8be6af2b92500091ad6aa5dc76bc717af86a58d300ca",
vaa.ChainIDSui: "8c6ba6a65f1b9c7fba4c5ad710086ace208e9ac21786a923425efc8167a419f0",
}

// KnownDevnetNFTBridgeEmitters is a map of known NFT emitters used during development.
Expand Down
4 changes: 2 additions & 2 deletions sdk/js/src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,9 @@ const DEVNET = {
"0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c",
},
sui: {
core: "0xb49caa756546453e3145574c206a570a43506fbc2c43f0181834555f85dbe57d", // wormhole module State object ID
core: "0x12253210c90f89e7a8525e6c52d41309ff5bfb31f43f561b5fe6f50cd72f9668", // wormhole module State object ID
token_bridge:
"0xad0fd243ad451b773ccff4707842e0eeaa8c51a8071912fe3285247220b3fdd1", // token_bridge module State object ID
"0x830ed228c6f1bcb40003bb49af3277df2cbf933d63a6bcdcb0ba4580a1a7654e", // token_bridge module State object ID
nft_bridge: undefined,
},
moonbeam: {
Expand Down
8 changes: 6 additions & 2 deletions sui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ FROM cli-gen AS cli-export
FROM const-gen AS const-export
FROM ghcr.io/wormhole-foundation/sui:1.19.1-mainnet@sha256:544a1b2aa5701fae25a19aed3c5e8c24e0caf7d1c9f511b6844d339a8f0b2a00 as sui

COPY sui/devnet/genesis_config genesis_config
RUN sui genesis -f --from-config genesis_config
# initial run
# COPY sui/devnet/genesis_config genesis_config
# RUN sui genesis -f --from-config genesis_config

# subsequent runs after committing files from /root/.sui/sui_config/
COPY sui/devnet/ /root/.sui/sui_config/

WORKDIR /tmp

Expand Down
125 changes: 125 additions & 0 deletions sui/devnet/127.0.0.1-36219.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
protocol-key-pair:
value: avYcyVgYMXTyaUYh9IRwLK0gSzl7YF6ZQDAbrS1Bhvo=
worker-key-pair:
value: AAvfYqj1HPsXmthZ1t2Uw19vU6tdhK48YAFgkhJ7P/sV
account-key-pair:
value: ABmHnCaxw0GWzW+1MZYfTDonS1wZsO8KO37SXgm6pqc6
network-key-pair:
value: AEpJ6PVCvnrtaxREy8UNSiDwLPPrZMh12TbgELadmAHB
db-path: /root/.sui/sui_config/authorities_db/8dcff6d15504
network-address: /ip4/127.0.0.1/tcp/36219/http
json-rpc-address: "127.0.0.1:37179"
enable-experimental-rest-api: true
metrics-address: "127.0.0.1:44423"
admin-interface-port: 35585
consensus-config:
address: /ip4/127.0.0.1/tcp/35107/http
db-path: /root/.sui/sui_config/consensus_db/8dcff6d15504
internal-worker-address: ~
max-pending-transactions: ~
max-submit-position: ~
submit-delay-step-override-millis: ~
narwhal-config:
header_num_of_batches_threshold: 32
max_header_num_of_batches: 1000
max_header_delay: 1000ms
min_header_delay: 500ms
gc_depth: 50
sync_retry_delay: 5000ms
sync_retry_nodes: 3
batch_size: 5000000
max_batch_delay: 100ms
max_concurrent_requests: 500000
prometheus_metrics:
socket_addr: /ip4/127.0.0.1/tcp/42177/http
network_admin_server:
primary_network_admin_server_port: 34745
worker_network_admin_server_base_port: 43111
anemo:
send_certificate_rate_limit: ~
report_batch_rate_limit: ~
request_batches_rate_limit: ~
enable-event-processing: false
enable-index-processing: true
grpc-load-shed: ~
grpc-concurrency-limit: 20000000000
p2p-config:
listen-address: "127.0.0.1:41551"
external-address: /ip4/127.0.0.1/udp/41551
state-sync:
checkpoint-content-timeout-ms: 10000
genesis:
genesis-file-location: /root/.sui/sui_config/genesis.blob
authority-store-pruning-config:
num-latest-epoch-dbs-to-retain: 3
epoch-db-pruning-period-secs: 3600
num-epochs-to-retain: 0
max-checkpoints-in-batch: 10
max-transactions-in-batch: 1000
end-of-epoch-broadcast-channel-capacity: 128
checkpoint-executor-config:
checkpoint-execution-max-concurrency: 200
local-execution-timeout-sec: 30
db-checkpoint-config:
perform-db-checkpoints-at-epoch-end: false
indirect-objects-threshold: 18446744073709551615
expensive-safety-check-config:
enable-epoch-sui-conservation-check: false
enable-deep-per-tx-sui-conservation-check: false
force-disable-epoch-sui-conservation-check: false
enable-state-consistency-check: false
force-disable-state-consistency-check: false
enable-secondary-index-checks: false
transaction-deny-config:
package-publish-disabled: false
package-upgrade-disabled: false
shared-object-disabled: false
user-transaction-disabled: false
receiving-objects-disabled: false
zklogin-sig-disabled: false
zklogin-disabled-providers: []
certificate-deny-config: {}
state-debug-dump-config: {}
state-archive-write-config:
concurrency: 0
use-for-pruning-watermark: false
state-archive-read-config: []
state-snapshot-write-config:
concurrency: 0
indexer-max-subscriptions: ~
transaction-kv-store-read-config:
base-url: ""
jwk-fetch-interval-seconds: 3600
zklogin-oauth-providers:
Mainnet:
- Facebook
- Google
- Twitch
Testnet:
- Facebook
- Google
- Twitch
Unknown:
- Apple
- Facebook
- Google
- Kakao
- Slack
- Twitch
authority-overload-config:
max-txn-age-in-queue:
secs: 1
nanos: 0
overload-monitor-interval:
secs: 10
nanos: 0
execution-queue-latency-soft-limit:
secs: 1
nanos: 0
execution-queue-latency-hard-limit:
secs: 10
nanos: 0
max-load-shedding-percentage: 95
min-load-shedding-percentage-above-hard-limit: 50
safe-transaction-ready-rate: 100
125 changes: 125 additions & 0 deletions sui/devnet/127.0.0.1-36853.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
protocol-key-pair:
value: OXnx3yM1C/ppgnDMx/o1d49fJs7E05kq11mXNae/O+I=
worker-key-pair:
value: AE4ZKvLhbIyoYlv0y7q7aPHyU/Jty/D1AzILgYUs4VqC
account-key-pair:
value: AEAh/lnBSwKKrazfLNz3J7DBu7W2EMuhcShk6MHJhxpT
network-key-pair:
value: AHdOWNkwAgBFMTlwVSGkhI4COGDX40frs5xOz72DHvNm
db-path: /root/.sui/sui_config/authorities_db/addeef94d898
network-address: /ip4/127.0.0.1/tcp/36853/http
json-rpc-address: "127.0.0.1:34043"
enable-experimental-rest-api: true
metrics-address: "127.0.0.1:45007"
admin-interface-port: 36657
consensus-config:
address: /ip4/127.0.0.1/tcp/45105/http
db-path: /root/.sui/sui_config/consensus_db/addeef94d898
internal-worker-address: ~
max-pending-transactions: ~
max-submit-position: ~
submit-delay-step-override-millis: ~
narwhal-config:
header_num_of_batches_threshold: 32
max_header_num_of_batches: 1000
max_header_delay: 1000ms
min_header_delay: 500ms
gc_depth: 50
sync_retry_delay: 5000ms
sync_retry_nodes: 3
batch_size: 5000000
max_batch_delay: 100ms
max_concurrent_requests: 500000
prometheus_metrics:
socket_addr: /ip4/127.0.0.1/tcp/44505/http
network_admin_server:
primary_network_admin_server_port: 45567
worker_network_admin_server_base_port: 43075
anemo:
send_certificate_rate_limit: ~
report_batch_rate_limit: ~
request_batches_rate_limit: ~
enable-event-processing: false
enable-index-processing: true
grpc-load-shed: ~
grpc-concurrency-limit: 20000000000
p2p-config:
listen-address: "127.0.0.1:37183"
external-address: /ip4/127.0.0.1/udp/37183
state-sync:
checkpoint-content-timeout-ms: 10000
genesis:
genesis-file-location: /root/.sui/sui_config/genesis.blob
authority-store-pruning-config:
num-latest-epoch-dbs-to-retain: 3
epoch-db-pruning-period-secs: 3600
num-epochs-to-retain: 0
max-checkpoints-in-batch: 10
max-transactions-in-batch: 1000
end-of-epoch-broadcast-channel-capacity: 128
checkpoint-executor-config:
checkpoint-execution-max-concurrency: 200
local-execution-timeout-sec: 30
db-checkpoint-config:
perform-db-checkpoints-at-epoch-end: false
indirect-objects-threshold: 18446744073709551615
expensive-safety-check-config:
enable-epoch-sui-conservation-check: false
enable-deep-per-tx-sui-conservation-check: false
force-disable-epoch-sui-conservation-check: false
enable-state-consistency-check: false
force-disable-state-consistency-check: false
enable-secondary-index-checks: false
transaction-deny-config:
package-publish-disabled: false
package-upgrade-disabled: false
shared-object-disabled: false
user-transaction-disabled: false
receiving-objects-disabled: false
zklogin-sig-disabled: false
zklogin-disabled-providers: []
certificate-deny-config: {}
state-debug-dump-config: {}
state-archive-write-config:
concurrency: 0
use-for-pruning-watermark: false
state-archive-read-config: []
state-snapshot-write-config:
concurrency: 0
indexer-max-subscriptions: ~
transaction-kv-store-read-config:
base-url: ""
jwk-fetch-interval-seconds: 3600
zklogin-oauth-providers:
Mainnet:
- Facebook
- Google
- Twitch
Testnet:
- Facebook
- Google
- Twitch
Unknown:
- Apple
- Facebook
- Google
- Kakao
- Slack
- Twitch
authority-overload-config:
max-txn-age-in-queue:
secs: 1
nanos: 0
overload-monitor-interval:
secs: 10
nanos: 0
execution-queue-latency-soft-limit:
secs: 1
nanos: 0
execution-queue-latency-hard-limit:
secs: 10
nanos: 0
max-load-shedding-percentage: 95
min-load-shedding-percentage-above-hard-limit: 50
safe-transaction-ready-rate: 100
Loading

0 comments on commit 53a2b70

Please sign in to comment.