Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust deployments to Sepolia testnet #3741

Merged
merged 9 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ endif
development:
make all environment=development

# Build with contract packages published to the NPM registry and tagged `goerli`.
goerli:
make all environment=goerli
# Build with contract packages published to the NPM registry and tagged `sepolia`.
sepolia:
make all environment=sepolia

# Build with contract packages published to the NPM registry and tagged `mainnet`.
mainnet:
Expand Down Expand Up @@ -146,4 +146,4 @@ cmd-help: build
@echo '$$ $(app_name) start --help' > docs/resources/client-start-help
./$(app_name) start --help >> docs/resources/client-start-help

.PHONY: all development goerli download_artifacts generate gen_proto build cmd-help release build_multi
.PHONY: all development sepolia download_artifacts generate gen_proto build cmd-help release build_multi
2 changes: 1 addition & 1 deletion config/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (n Type) Ethereum() ethereum.Network {
return []ethereum.Network{
ethereum.Unknown,
ethereum.Mainnet,
ethereum.Goerli,
ethereum.Sepolia,
ethereum.Developer,
}[n]
}
Expand Down
2 changes: 1 addition & 1 deletion config/peers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestResolvePeers(t *testing.T) {
"/dns4/bst-a01.tbtc.boar.network/tcp/5001/ipfs/16Uiu2HAmAmCrLuUmnBgpavU8y8JBUN6jWAQ93JwydZy3ABRyY6wU",
"/dns4/bst-b01.tbtc.boar.network/tcp/5001/ipfs/16Uiu2HAm4w5HdJQxBnadGRepaiGfWVvtMzhdAGZVcrf9i71mv69V",
}},
"goerli network": {
"sepolia network": {
network: network.Testnet,
expectedPeers: []string{
"/dns4/bootstrap-0.test.keep.network/tcp/3919/ipfs/16Uiu2HAmCcfVpHwfBKNFbQuhvGuFXHVLQ65gB4sJm7HyrcZuLttH",
Expand Down
2 changes: 1 addition & 1 deletion docs/development/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ make mainnet
```

```
make goerli
make sepolia
```

Development
Expand Down
2 changes: 1 addition & 1 deletion docs/registration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ link:https://docs.threshold.network/extras/contract-addresses/ethereum-mainnet[E
page for the recent Mainnet addresses of the contracts.

NOTE: icon:flask[] For addresses of Testnet contracts please visit the
link:https://docs.threshold.network/extras/contract-addresses/goerli-testnet#tbtc-application-contracts[link].
link:https://docs.threshold.network/resources/contract-addresses/sepolia-testnet[link].
2 changes: 1 addition & 1 deletion docs/run-keep-node.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ include::../config/_peers/testnet[]
=== Contracts

To get adresses of contracts on Testnet please see the
link:https://docs.threshold.network/extras/contract-addresses/goerli-testnet#tbtc-application-contracts[link].
link:https://docs.threshold.network/resources/contract-addresses/sepolia-testnet[link].

=== Installation

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ require (
github.com/checksum0/go-electrum v0.0.0-20220912200153-b862ac442cf9
github.com/ethereum/go-ethereum v1.10.19
github.com/go-test/deep v1.0.8
github.com/golang/protobuf v1.5.2
github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa
github.com/hashicorp/go-multierror v1.1.1
github.com/ipfs/go-datastore v0.5.1
github.com/ipfs/go-ipfs-config v0.16.0
github.com/ipfs/go-log v1.0.5
github.com/ipfs/go-log/v2 v2.5.1
github.com/jbenet/goprocess v0.1.4
github.com/keep-network/keep-common v1.7.1-0.20230501122407-5cc3757ccf0d
github.com/keep-network/keep-common v1.7.1-0.20231107101149-559db3d3849e
github.com/libp2p/go-addr-util v0.2.0
github.com/libp2p/go-libp2p v0.20.1
github.com/libp2p/go-libp2p-core v0.16.1
Expand Down Expand Up @@ -79,6 +78,7 @@ require (
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/godbus/dbus/v5 v5.0.4 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/gopacket v1.1.19 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8
github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d/go.mod h1:P2viExyCEfeWGU259JnaQ34Inuec4R38JCyBx2edgD0=
github.com/keep-network/go-electrum v0.0.0-20230524074410-befe891c2f8c h1:wBBb0rIOnYpOqH+QkwEQ/2LT6n7v+ELJlDePvoR7pQY=
github.com/keep-network/go-electrum v0.0.0-20230524074410-befe891c2f8c/go.mod h1:eiMFzdvS+x8Voi0bmiZtVfJ3zMNRUnPNDnhCQR0tudo=
github.com/keep-network/keep-common v1.7.1-0.20230501122407-5cc3757ccf0d h1:6AiGKgOEmwO1Cri87bMfmxgF8ZgE5HIJOQUO7nZszh0=
github.com/keep-network/keep-common v1.7.1-0.20230501122407-5cc3757ccf0d/go.mod h1:OmaZrnZODf6RJ95yUn2kBjy8Z4u2npPJQkSiyimluto=
github.com/keep-network/keep-common v1.7.1-0.20231107101149-559db3d3849e h1:6kXLtv3TfObPoBNSAMqpMefOyK01y6X4zghau6F5NDg=
github.com/keep-network/keep-common v1.7.1-0.20231107101149-559db3d3849e/go.mod h1:OmaZrnZODf6RJ95yUn2kBjy8Z4u2npPJQkSiyimluto=
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/kube/keep-test/keep-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Config Maps:

Secrets:

- `eth-network-goerli`
- `eth-network-sepolia`
- `eth-account-passphrases`
- `eth-account-privatekeys`
10 changes: 5 additions & 5 deletions infrastructure/kube/keep-test/keep-client/gen/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
app: keep
type: client
id: #@ str(client.id)
network: goerli
network: sepolia
#@ end

#@ def name():
Expand Down Expand Up @@ -73,7 +73,7 @@ spec:
- name: ETH_WS_URL
valueFrom:
secretKeyRef:
name: eth-network-goerli
name: eth-network-sepolia
key: ws-url
envFrom:
- configMapRef:
Expand Down Expand Up @@ -117,12 +117,12 @@ spec:
- name: CHAIN_API_URL
valueFrom:
secretKeyRef:
name: eth-network-goerli
name: eth-network-sepolia
key: http-url
- name: CONTRACT_OWNER_ETH_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: eth-network-goerli
name: eth-network-sepolia
key: contract-owner-eth-account-private-key
- name: KEEP_CLIENT_ETH_PRIVATE_KEY
valueFrom:
Expand All @@ -139,7 +139,7 @@ spec:
args:
- "initialize"
- "--network"
- "goerli"
- "sepolia"
- "--owner"
- "$(KEEP_CLIENT_ETH_ADDRESS)"
- "--provider"
Expand Down
Loading