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

Deploy bridge #1956

Merged
merged 77 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from 75 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
78aabee
add skel
felipemadero May 20, 2024
a2d0d6e
add missing files
felipemadero May 20, 2024
7781e62
check for forge to have been installed
felipemadero May 20, 2024
b098757
add comments
felipemadero May 20, 2024
9c2cb9c
start automating foundry install
felipemadero May 20, 2024
aceff27
added automated froundry install
felipemadero May 20, 2024
17e6c81
start working agains teleporter repo
felipemadero May 21, 2024
fe993a1
deploying contract given abi and bin files
felipemadero May 21, 2024
a158f30
adding destination deploy
felipemadero May 21, 2024
7adfec9
deploying the destination
felipemadero May 21, 2024
92e573c
ux design 2 for bridge deploy of fuji
felipemadero May 22, 2024
d37e5b9
add popular token info list
felipemadero May 23, 2024
04bd4eb
move to new file
felipemadero May 23, 2024
c836def
add blockchain alias to popular tokens json
felipemadero May 24, 2024
64c1eac
start using teleporter bridge deploy
felipemadero May 24, 2024
bfdc9ff
adddress suggestions
felipemadero May 24, 2024
1e0651f
fix recommended
felipemadero May 24, 2024
33dc80e
update to latest esp
felipemadero May 30, 2024
109a0c6
start obtaining erc20 token balances
felipemadero Jun 8, 2024
1563c68
add key list for erc20 tokens
felipemadero Jun 8, 2024
e1b5005
enable local network and filter inputs subnets by network
felipemadero Jun 8, 2024
a7f1ea0
refactor obtaining chain info into a separate function
felipemadero Jun 8, 2024
6962536
Merge branch 'main' into deploy-bridge-explore-ux-2
felipemadero Jun 8, 2024
c9aecfc
use flags for hub chain def
felipemadero Jun 9, 2024
78b523c
add flags for the different hub options
felipemadero Jun 9, 2024
35d64e7
validate and prompt hub options
felipemadero Jun 9, 2024
60f39f1
nit
felipemadero Jun 9, 2024
f853595
add validation for subnet name
felipemadero Jun 9, 2024
6c6575b
nits
felipemadero Jun 9, 2024
6960aa6
validate erc20 token
felipemadero Jun 9, 2024
479e824
start adding helpers for deploy
felipemadero Jun 9, 2024
d8f58a7
bridge hub deployed
felipemadero Jun 9, 2024
e7a35aa
erc20 hub deployed on local network c-chain
felipemadero Jun 9, 2024
bb13f14
nit
felipemadero Jun 9, 2024
8af7be1
nit
felipemadero Jun 9, 2024
c1ab45c
if given hub, get erc20 address from hub, then token details from erc20
felipemadero Jun 9, 2024
aaaf23c
ready to deploy spoke
felipemadero Jun 9, 2024
807353b
add spoke deploy
felipemadero Jun 10, 2024
4596747
nit
felipemadero Jun 10, 2024
9b025d1
nits
felipemadero Jun 10, 2024
68aefe0
add registration
felipemadero Jun 10, 2024
30806b3
added hub deploy for native tokens
felipemadero Jun 10, 2024
708603c
add contract indicator to key list
felipemadero Jun 10, 2024
ad86e26
refactor into lib
felipemadero Jun 10, 2024
3ba0512
add foundry install stuff
felipemadero Jun 10, 2024
701ec76
add foundry install to flow
felipemadero Jun 10, 2024
c922c5d
add bridge contracts download
felipemadero Jun 10, 2024
ff679ea
nits
felipemadero Jun 10, 2024
8f2f493
added bridge contracts download + compilation
felipemadero Jun 11, 2024
f0e780f
nit
felipemadero Jun 11, 2024
6dc2f8a
add explanations
felipemadero Jun 11, 2024
7863968
nit
felipemadero Jun 11, 2024
e93333d
started working simple contract method call
felipemadero Jun 11, 2024
74cb23c
this is beauty
felipemadero Jun 11, 2024
55f8dcb
added native transfer
felipemadero Jun 11, 2024
9629c7f
avoid passing in field names
felipemadero Jun 11, 2024
bd58420
added contract call
felipemadero Jun 11, 2024
3ce261d
add contract file
felipemadero Jun 11, 2024
bc6241d
check hub kind
felipemadero Jun 11, 2024
20198b4
add send function for bridge hubs
felipemadero Jun 11, 2024
6f02e70
cleanup of key transfer
felipemadero Jun 11, 2024
0eb6698
full go and back for erc20 - erc20
felipemadero Jun 11, 2024
1695263
fix symbol on key list
felipemadero Jun 11, 2024
d03080d
remove all abi file ref
felipemadero Jun 12, 2024
d348164
do not compile abi anymore
felipemadero Jun 12, 2024
db8fe3c
lint
felipemadero Jun 12, 2024
6eef546
add prompts to key transfer
felipemadero Jun 12, 2024
42197c8
lint
felipemadero Jun 12, 2024
c952590
add subnets flag to list to select different subnet balances
felipemadero Jun 12, 2024
3895c56
nit
felipemadero Jun 12, 2024
49a7561
fix e2e
felipemadero Jun 12, 2024
3084d1c
fix key e2e
felipemadero Jun 12, 2024
00c04b6
fix recommended tags
felipemadero Jun 12, 2024
2884608
enable filtering out native token on key list
felipemadero Jun 12, 2024
f4dc802
make transaction commit to wait for tx acceptance
felipemadero Jun 12, 2024
1f0434e
Merge branch 'main' into deploy-bridge-explore-ux-2
felipemadero Jun 18, 2024
81f47df
Use registry release (#1958)
felipemadero Jun 18, 2024
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
37 changes: 23 additions & 14 deletions cmd/keycmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ const (
)

var (
forceCreate bool
filename string
forceCreate bool
skipBalances bool
filename string
)

func createKey(_ *cobra.Command, args []string) error {
Expand Down Expand Up @@ -53,19 +54,21 @@ func createKey(_ *cobra.Command, args []string) error {
return err
}
ux.Logger.PrintToUser("Key loaded")
networks := []models.Network{models.NewFujiNetwork(), models.NewMainnetNetwork()}
pchain := true
cchain := true
xchain := true
pClients, xClients, cClients, evmClients, err := getClients(networks, pchain, cchain, xchain, "")
if err != nil {
return err
if !skipBalances {
networks := []models.Network{models.NewFujiNetwork(), models.NewMainnetNetwork()}
pchain := true
cchain := true
xchain := true
clients, err := getClients(networks, pchain, cchain, xchain, nil)
if err != nil {
return err
}
addrInfos, err := getStoredKeyInfo(clients, networks, keyName)
if err != nil {
return err
}
printAddrInfos(addrInfos)
}
addrInfos, err := getStoredKeyInfo(pClients, xClients, cClients, evmClients, networks, keyName)
if err != nil {
return err
}
printAddrInfos(addrInfos)
}

return nil
Expand Down Expand Up @@ -101,5 +104,11 @@ If you'd like to import an existing key instead of generating one from scratch,
false,
"overwrite an existing key with the same name",
)
cmd.Flags().BoolVar(
&skipBalances,
"skip-balances",
false,
"do not query public network balances for an imported key",
)
return cmd
}
Loading
Loading