-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add common rpc package (#2788)
* feat: add common rpc package * review feedback * update e2e * port zetacore high level helpers and tests * embed rpc.Clients in zetaclient/zetacored.Client * fmt * fix e2e lint * changelog
- Loading branch information
Showing
20 changed files
with
545 additions
and
461 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package runner | ||
|
||
import ( | ||
"github.com/btcsuite/btcd/rpcclient" | ||
"github.com/ethereum/go-ethereum/accounts/abi/bind" | ||
"github.com/ethereum/go-ethereum/ethclient" | ||
"github.com/gagliardetto/solana-go/rpc" | ||
|
||
zetacore_rpc "github.com/zeta-chain/zetacore/pkg/rpc" | ||
) | ||
|
||
// Clients contains all the RPC clients and gRPC clients for E2E tests | ||
type Clients struct { | ||
Zetacore zetacore_rpc.Clients | ||
|
||
// the RPC clients for external chains in the localnet | ||
BtcRPC *rpcclient.Client | ||
Solana *rpc.Client | ||
Evm *ethclient.Client | ||
EvmAuth *bind.TransactOpts | ||
|
||
// the RPC clients for ZetaChain | ||
Zevm *ethclient.Client | ||
ZevmAuth *bind.TransactOpts | ||
} |
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
Oops, something went wrong.