Skip to content

Commit

Permalink
feat holesky account
Browse files Browse the repository at this point in the history
  • Loading branch information
WarriorFromLongAgo committed Nov 28, 2024
1 parent 620933c commit 77b72ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestGetAccountBalance(t *testing.T) {
if err != nil {
fmt.Println("new mock client fail", "err", err)
}
accountItem := []string{"0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97"}
accountItem := []string{"0xD79053a14BC465d9C1434d4A4fAbdeA7b6a2A94b"}
symbol := []string{"ETH"}
contractAddress := []string{"0x00"}
protocolType := []string{""}
Expand Down
11 changes: 8 additions & 3 deletions examples/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ import (
)

var (
EtherscanBaseUrl = "https://api.etherscan.io/api?"
EtherscanApiKey = "HZEZGEPJJDA633N421AYW9NE8JFNZZC7JT"
EtherscanTimeout = time.Second * 20
//EtherscanBaseUrl = "https://api.etherscan.io/api?"
//EtherscanApiKey = "HZEZGEPJJDA633N421AYW9NE8JFNZZC7JT"
//EtherscanTimeout = time.Second * 20

OklinkBaseUrl = "https://www.oklink.com"
OklinkApiKey = "5181d535-b68f-41cf-bbc6-25905e46b6a6"
OkTimeout = time.Second * 20

// test success
EtherscanBaseUrl = "https://api-holesky.etherscan.io/api?"
EtherscanApiKey = "HZEZGEPJJDA633N421AYW9NE8JFNZZC7JT"
EtherscanTimeout = time.Second * 20
)

func NewMockClient() (*oklink.ChainExplorerAdaptor, *etherscan.ChainExplorerAdaptor, error) {
Expand Down

0 comments on commit 77b72ba

Please sign in to comment.