Skip to content

Commit

Permalink
update system contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 1, 2024
1 parent ba5a7d0 commit 37b09fa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions e2e/txserver/zeta_tx_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,26 @@ func (zts ZetaTxServer) EnableHeaderVerification(account string, chainIDList []i
return err
}

// UpdateGatewayAddress updates the gateway address
func (zts ZetaTxServer) UpdateGatewayAddress(account, gatewayAddr string) error {
// retrieve account
acc, err := zts.clientCtx.Keyring.Key(account)
if err != nil {
return err
}
addr, err := acc.GetAddress()
if err != nil {
return err
}

//_, err = zts.BroadcastTx(account, fungibletypes.Neew(
// addr.String(),
// gatewayAddr,
//))
return err

}

// DeploySystemContractsAndZRC20 deploys the system contracts and ZRC20 contracts
// returns the addresses of uniswap factory, router and erc20 zrc20
func (zts ZetaTxServer) DeploySystemContractsAndZRC20(
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/rakyll/statik v0.1.7
github.com/zeta-chain/keystone/keys v0.0.0-20231105174229-903bc9405da2
github.com/zeta-chain/protocol-contracts v1.0.2-athens3.0.20240731083336-bfd778c3b81c
github.com/zeta-chain/protocol-contracts v1.0.2-athens3.0.20240801083800-4c703865863e
google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0
gopkg.in/yaml.v2 v2.4.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1742,8 +1742,8 @@ github.com/zeta-chain/go-tss v0.0.0-20240718213003-31767e0c90ba h1:7Qcc2uQq2Tp1O
github.com/zeta-chain/go-tss v0.0.0-20240718213003-31767e0c90ba/go.mod h1:LN1IBRN8xQkKgdgLhl5BDGZyPm70QOTbVLejdS2FVpo=
github.com/zeta-chain/keystone/keys v0.0.0-20231105174229-903bc9405da2 h1:gd2uE0X+ZbdFJ8DubxNqLbOVlCB12EgWdzSNRAR82tM=
github.com/zeta-chain/keystone/keys v0.0.0-20231105174229-903bc9405da2/go.mod h1:x7Bkwbzt2W2lQfjOirnff0Dj+tykdbTG1FMJPVPZsvE=
github.com/zeta-chain/protocol-contracts v1.0.2-athens3.0.20240731083336-bfd778c3b81c h1:ARifR/Hx2ExOrMreumkEW+FBpo/r+anUAb/DaLTNxvY=
github.com/zeta-chain/protocol-contracts v1.0.2-athens3.0.20240731083336-bfd778c3b81c/go.mod h1:SjT7QirtJE8stnAe1SlNOanxtfSfijJm3MGJ+Ax7w7w=
github.com/zeta-chain/protocol-contracts v1.0.2-athens3.0.20240801083800-4c703865863e h1:NZunYHXFI2I9pazDsRxH8F0KEiMikjj35tqJ/iiYjNw=
github.com/zeta-chain/protocol-contracts v1.0.2-athens3.0.20240801083800-4c703865863e/go.mod h1:SjT7QirtJE8stnAe1SlNOanxtfSfijJm3MGJ+Ax7w7w=
github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM=
github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U=
github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM=
Expand Down

0 comments on commit 37b09fa

Please sign in to comment.