Skip to content

Commit

Permalink
mod:update chain33 & avalanche dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bysomeone committed May 26, 2024
1 parent 3c67738 commit 9b7d710
Show file tree
Hide file tree
Showing 50 changed files with 94 additions and 48 deletions.
1 change: 1 addition & 0 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.8
// +build go1.8

package main
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/33cn/plugin

go 1.19

replace github.com/33cn/chain33 => github.com/bysomeone/chain33 v0.0.0-20240512025003-55d7dc44896a
replace github.com/33cn/chain33 => github.com/bysomeone/chain33 v0.0.0-20240526154333-c9b4079f37f6

require (
github.com/33cn/chain33 v0.0.0-00010101000000-000000000000
Expand Down Expand Up @@ -268,7 +268,7 @@ require (
)

replace (
github.com/ava-labs/avalanchego => github.com/bysomeone/avalanchego v0.0.0-20240511070301-a9a2aac50464
github.com/ava-labs/avalanchego => github.com/bysomeone/avalanchego v0.0.0-20240525154058-c4ea5da7ec71
github.com/btcsuite/btcd/btcec => github.com/btcsuite/btcd v0.22.3
github.com/consensys/gnark-crypto => github.com/consensys/gnark-crypto v0.5.3
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtE
github.com/btcsuite/winsvc v1.0.0 h1:J9B4L7e3oqhXOcm+2IuNApwzQec85lE+QaikUcCs+dk=
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s=
github.com/bysomeone/avalanchego v0.0.0-20240511070301-a9a2aac50464 h1:fjGGreFQgEMo+jTduHpxVpDOVbGd45Wata/KXu9ieWg=
github.com/bysomeone/avalanchego v0.0.0-20240511070301-a9a2aac50464/go.mod h1:SgoXVssKD3a3diOV4qaTkOEQ+2KEfErcdOASIhV6a1s=
github.com/bysomeone/chain33 v0.0.0-20240512025003-55d7dc44896a h1:ZnYbRkAmbf95wyyt11j1FcQfm5ClzHX+qOhxUkfJ4Rk=
github.com/bysomeone/chain33 v0.0.0-20240512025003-55d7dc44896a/go.mod h1:NEpm22MBaVvBlXMxokvnecNf4hfE9VWG/6LdEYP4zvw=
github.com/bysomeone/avalanchego v0.0.0-20240525154058-c4ea5da7ec71 h1:y70tfpRGONtMp0EqL+uYMTdaTR4OBpC631a97b0dTa4=
github.com/bysomeone/avalanchego v0.0.0-20240525154058-c4ea5da7ec71/go.mod h1:SgoXVssKD3a3diOV4qaTkOEQ+2KEfErcdOASIhV6a1s=
github.com/bysomeone/chain33 v0.0.0-20240526154333-c9b4079f37f6 h1:fpWxDK9ic/CaRp3RcnXCKHPQl7CAyc7ph6CwJSqXnsE=
github.com/bysomeone/chain33 v0.0.0-20240526154333-c9b4079f37f6/go.mod h1:BwuBoRogoSU1GouVhnFCtLIOGcRALtLaq7ThEu/FsKE=
github.com/c-bata/go-prompt v0.2.2 h1:uyKRz6Z6DUyj49QVijyM339UJV9yhbr70gESwbNU3e0=
github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34=
github.com/cactus/go-statsd-client/statsd v0.0.0-20191106001114-12b4e2b38748/go.mod h1:l/bIBLeOl9eX+wxJAzxS4TveKRtAqlyDpHjhkfO0MEI=
Expand Down
5 changes: 3 additions & 2 deletions plugin/consensus/ticket/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import (
"encoding/hex"
"errors"
"fmt"
"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/system/address/eth"
"math/big"
"strconv"
"strings"
"sync"
"time"

"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/system/address/eth"

"github.com/33cn/chain33/common"
"github.com/33cn/chain33/common/crypto"
"github.com/33cn/chain33/common/difficulty"
Expand Down
1 change: 1 addition & 0 deletions plugin/crypto/bls/bls.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"crypto/rand"
"errors"
"fmt"

"github.com/33cn/chain33/common"

"github.com/33cn/chain33/common/crypto"
Expand Down
3 changes: 2 additions & 1 deletion plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"crypto/ecdsa"
"errors"
"fmt"
"github.com/ethereum/go-ethereum/core/txpool"
"math"
"math/big"
"regexp"
Expand All @@ -23,6 +22,8 @@ import (
"sync/atomic"
"time"

"github.com/ethereum/go-ethereum/core/txpool"

chain33Common "github.com/33cn/chain33/common"
dbm "github.com/33cn/chain33/common/db"
log "github.com/33cn/chain33/common/log/log15"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package ethtxs

import (
"crypto/ecdsa"
"github.com/ethereum/go-ethereum/core/txpool"
"math/big"
"time"

"github.com/ethereum/go-ethereum/core/txpool"

chain33Common "github.com/33cn/chain33/common"
"github.com/33cn/chain33/common/log/log15"
"github.com/33cn/plugin/plugin/dapp/cross2eth/contracts/contracts4eth/generated"
Expand Down
3 changes: 2 additions & 1 deletion plugin/dapp/cross2eth/ebrelayer/types/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion plugin/dapp/cross2eth/ebrelayer/types/relayer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion plugin/dapp/evm/executor/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ package executor
import (
"bytes"
"fmt"
log "github.com/33cn/chain33/common/log/log15"
"math/big"
"os"
"reflect"

log "github.com/33cn/chain33/common/log/log15"

"github.com/33cn/chain33/common/address"
drivers "github.com/33cn/chain33/system/dapp"
"github.com/33cn/chain33/types"
Expand Down
3 changes: 2 additions & 1 deletion plugin/dapp/evm/executor/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import (
"encoding/hex"
"errors"
"fmt"
"github.com/33cn/chain33/system/crypto/secp256k1eth"
"math"
"strings"
"sync/atomic"

"github.com/33cn/chain33/system/crypto/secp256k1eth"

"github.com/33cn/chain33/common/address"

"github.com/33cn/chain33/account"
Expand Down
1 change: 1 addition & 0 deletions plugin/dapp/evm/executor/exec_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package executor
import (
"bytes"
"errors"

"github.com/33cn/chain33/common"
"github.com/33cn/chain33/system/crypto/secp256k1eth"
"github.com/33cn/chain33/types"
Expand Down
5 changes: 3 additions & 2 deletions plugin/dapp/evm/executor/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import (
"encoding/hex"
"errors"
"fmt"
"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/system/address/eth"
"math/big"
"strings"
"sync/atomic"

"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/system/address/eth"

"github.com/33cn/chain33/executor"

"github.com/33cn/chain33/common"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.7 && amd64 && !gccgo && !appengine
// +build go1.7,amd64,!gccgo,!appengine

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !go1.7 && amd64 && !gccgo && !appengine
// +build !go1.7,amd64,!gccgo,!appengine

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !amd64 || appengine || gccgo
// +build !amd64 appengine gccgo

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.9
// +build go1.9

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build (amd64 && blsasm) || (amd64 && blsadx)
// +build amd64,blsasm amd64,blsadx

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build amd64 && blsadx
// +build amd64,blsadx

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build amd64 && blsasm
// +build amd64,blsasm

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.

//go:build amd64 || arm64
// +build amd64 arm64

// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.

//go:build gofuzz
// +build gofuzz

package bn256 //nolint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.

//go:build !amd64 && !arm64
// +build !amd64,!arm64

// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64,!generic arm64,!generic

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (!amd64 && !arm64) || generic
// +build !amd64,!arm64 generic

//nolint:unparam // 忽视本文件所有golangci-linter检查
Expand Down
3 changes: 2 additions & 1 deletion plugin/dapp/evm/executor/vm/state/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package state

import (
"errors"

"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"
)
import "github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"

// TxData 本文件用来存储硬分叉中需要用到的数据
type EvmTxData struct {
Expand Down
5 changes: 3 additions & 2 deletions plugin/dapp/evm/types/evmcontract.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions plugin/dapp/evmxgo/types/evmxgo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions plugin/dapp/exchange/types/exchange.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions plugin/dapp/mix/types/cryptokey.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions plugin/dapp/mix/types/merkletree.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions plugin/dapp/mix/types/mix.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions plugin/dapp/mix/types/mixwallet.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions plugin/dapp/multisig/executor/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package executor

import (
"encoding/hex"

"github.com/33cn/plugin/plugin/dapp/common"

"github.com/33cn/chain33/system/address/btc"
Expand Down
Loading

0 comments on commit 9b7d710

Please sign in to comment.