-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade sui packages and compiler to 1.19.1-mainnet (#3803)
* sui: upgrade to mainnet-1.19.1 * sui: update Dockerfile.base * sui: update tilt deployment to support new sui binary * sui: remove faucet and simplify tilt deploy script * sui: add script for switching Move.toml files between networks * devnet: update sui addresses, regen config --------- Co-authored-by: Evan Gray <[email protected]>
- Loading branch information
Showing
56 changed files
with
1,112 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
FROM docker.io/redhat/ubi8@sha256:56c374376a42da40f3aec753c4eab029b5ea162d70cb5f0cda24758780c31d81 as sui-node | ||
|
||
# RUN apt-get update && apt-get -y install libclang-dev jq cmake curl npm --no-install-recommends | ||
RUN dnf -y update | ||
RUN dnf -y install jq cmake curl npm git gcc openssl-devel gcc-c++ clang make git | ||
|
||
COPY sui/scripts/setup_rust.sh /tmp | ||
RUN /tmp/setup_rust.sh | ||
FROM rust:1.62@sha256:5777f201f507075309c4d2d1c1e8d8219e654ae1de154c844341050016a64a0c as sui-node | ||
|
||
WORKDIR /tmp | ||
|
||
COPY sui/scripts/node_builder.sh /tmp | ||
RUN curl -L https://github.com/MystenLabs/sui/releases/download/mainnet-v1.19.1/sui-mainnet-v1.19.1-ubuntu-x86_64.tgz > sui-mainnet-v1.19.1-ubuntu-x86_64.tgz | ||
RUN echo "6a8cc96759760293143a00fe7031a5fea70d2dff5b98d18c0470c09555da63e0 sui-mainnet-v1.19.1-ubuntu-x86_64.tgz" | sha256sum -c --status | ||
|
||
RUN /tmp/node_builder.sh | ||
RUN tar -xvf sui-mainnet-v1.19.1-ubuntu-x86_64.tgz | ||
RUN mv target/release/sui-ubuntu-x86_64 /bin/sui | ||
RUN mv target/release/sui-faucet-ubuntu-x86_64 /bin/sui-faucet | ||
RUN mv target/release/sui-node-ubuntu-x86_64 /bin/sui-node | ||
|
||
FROM docker.io/redhat/ubi8@sha256:56c374376a42da40f3aec753c4eab029b5ea162d70cb5f0cda24758780c31d81 as export-stage | ||
RUN rm sui-mainnet-v1.19.1-ubuntu-x86_64.tgz | ||
|
||
RUN dnf -y update | ||
RUN dnf -y install jq curl git make | ||
RUN apt-get update | ||
RUN apt-get install -y ca-certificates curl gnupg | ||
RUN mkdir -p /etc/apt/keyrings | ||
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
|
||
# Update nodejs version from 10.24.0 to 18.x | ||
RUN yum install https://rpm.nodesource.com/pub_18.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y | ||
RUN yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1 | ||
ARG NODE_MAJOR=18 | ||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list | ||
|
||
COPY --from=sui-node /root/.cargo/bin/sui /bin/sui | ||
COPY --from=sui-node /root/.cargo/bin/sui-faucet /bin/sui-faucet | ||
COPY --from=sui-node /root/.cargo/bin/sui-node /bin/sui-node | ||
RUN apt-get update | ||
RUN apt-get install nodejs -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
- Twitch | ||
Testnet: | ||
- Twitch | ||
Unknown: | ||
- Apple | ||
- 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 |
Oops, something went wrong.