Skip to content

Commit

Permalink
Merge pull request #24 from rain-zxn/ont
Browse files Browse the repository at this point in the history
add ontevm
  • Loading branch information
rain-zxn authored Apr 7, 2022
2 parents 6bf85e0 + 85f9346 commit e3d0950
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 272 deletions.
557 changes: 292 additions & 265 deletions abi/eccm_abi/eccm_abi.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion base/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var (
HEIMDALL uint64 = 201
MATIC uint64 = 202
ARBITRUM uint64 = 205
ONTEVM uint64 = 5555
ONTEVM uint64 = 333

SWITCHEO uint64 = 1000

Expand Down
6 changes: 3 additions & 3 deletions chains/ontevm/ontevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ package ontevm
import (
"time"

ontology_go_sdk "github.com/ontio/ontology-go-sdk"
"github.com/ontio/ontology/smartcontract/service/native/cross_chain/header_sync"
outils "github.com/ontio/ontology/smartcontract/service/native/utils"
ontology_poly_sdk "github.com/rain-zxn/ontology-go-sdk"

"github.com/polynetwork/bridge-common/chains"
"github.com/polynetwork/bridge-common/util"
"github.com/polynetwork/poly/native/service/utils"
)

type Rpc = ontology_poly_sdk.OntologySdk
type Rpc = ontology_go_sdk.OntologySdk

type Client struct {
*Rpc
address string
}

func New(url string) *Client {
sdk := ontology_poly_sdk.NewOntologySdk()
sdk := ontology_go_sdk.NewOntologySdk()
sdk.NewRpcClient().SetAddress(url)

return &Client{
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ require (
github.com/joeqian10/neo-gogogo v1.4.0
github.com/mattn/go-colorable v0.1.7
github.com/mattn/go-isatty v0.0.13
github.com/ontio/ontology v1.14.0-beta.0.20210818114002-fedaf66010a7
github.com/ontio/ontology-go-sdk v1.12.4
github.com/ontio/ontology v1.14.1-alpha
github.com/ontio/ontology-go-sdk v1.12.6-0.20220406074604-83d34f3f46ab
github.com/polynetwork/cosmos-poly-module v0.0.0-20200810030259-95d586518759
github.com/polynetwork/poly v1.3.1
github.com/polynetwork/poly-go-sdk v0.0.0-20210114035303-84e1615f4ad4
Expand All @@ -31,5 +31,4 @@ require (
github.com/tendermint/tendermint v0.33.9
github.com/tendermint/tm-db v0.5.2 // indirect
golang.org/x/sys v0.0.0-20210915083310-ed5796bab164 // indirect
github.com/rain-zxn/ontology-go-sdk v1.1.1
)

0 comments on commit e3d0950

Please sign in to comment.