From cdd653fd663f6550536e10f8b8b701327b2e88c7 Mon Sep 17 00:00:00 2001 From: "yenlin.lai" Date: Thu, 21 Mar 2019 16:20:57 +0800 Subject: misc: replace shopspring/decimal with our fork --- core/vm/sqlvm/ast/ast.go | 3 ++- core/vm/sqlvm/ast/types.go | 2 +- core/vm/sqlvm/ast/types_test.go | 2 +- core/vm/sqlvm/common/decimal/decimal.go | 2 +- core/vm/sqlvm/common/storage.go | 2 +- core/vm/sqlvm/parser/internal/helpers.go | 3 ++- core/vm/sqlvm/runtime/instructions.go | 2 +- core/vm/sqlvm/runtime/instructions_test.go | 2 +- core/vm/sqlvm/schema/schema.go | 2 +- core/vm/sqlvm/schema/schema_test.go | 2 +- 10 files changed, 12 insertions(+), 10 deletions(-) (limited to 'core') diff --git a/core/vm/sqlvm/ast/ast.go b/core/vm/sqlvm/ast/ast.go index d5ebb35af..a2f0748f5 100644 --- a/core/vm/sqlvm/ast/ast.go +++ b/core/vm/sqlvm/ast/ast.go @@ -3,8 +3,9 @@ package ast import ( "fmt" + "github.com/dexon-foundation/decimal" + "github.com/dexon-foundation/dexon/core/vm/sqlvm/errors" - "github.com/shopspring/decimal" ) // --------------------------------------------------------------------------- diff --git a/core/vm/sqlvm/ast/types.go b/core/vm/sqlvm/ast/types.go index ee8036576..53f3217a0 100644 --- a/core/vm/sqlvm/ast/types.go +++ b/core/vm/sqlvm/ast/types.go @@ -6,7 +6,7 @@ import ( "math" "math/big" - "github.com/shopspring/decimal" + "github.com/dexon-foundation/decimal" "github.com/dexon-foundation/dexon/common" dec "github.com/dexon-foundation/dexon/core/vm/sqlvm/common/decimal" diff --git a/core/vm/sqlvm/ast/types_test.go b/core/vm/sqlvm/ast/types_test.go index d2051c4b5..accbbe741 100644 --- a/core/vm/sqlvm/ast/types_test.go +++ b/core/vm/sqlvm/ast/types_test.go @@ -4,7 +4,7 @@ import ( "database/sql" "testing" - "github.com/shopspring/decimal" + "github.com/dexon-foundation/decimal" "github.com/stretchr/testify/suite" "github.com/dexon-foundation/dexon/common" diff --git a/core/vm/sqlvm/common/decimal/decimal.go b/core/vm/sqlvm/common/decimal/decimal.go index 0c3d5971a..b02a8ed23 100644 --- a/core/vm/sqlvm/common/decimal/decimal.go +++ b/core/vm/sqlvm/common/decimal/decimal.go @@ -1,6 +1,6 @@ package decimal -import "github.com/shopspring/decimal" +import "github.com/dexon-foundation/decimal" // Shared vars. var ( diff --git a/core/vm/sqlvm/common/storage.go b/core/vm/sqlvm/common/storage.go index 674efbf17..22ef85885 100644 --- a/core/vm/sqlvm/common/storage.go +++ b/core/vm/sqlvm/common/storage.go @@ -3,7 +3,7 @@ package common import ( "math/big" - "github.com/shopspring/decimal" + "github.com/dexon-foundation/decimal" "golang.org/x/crypto/sha3" "github.com/dexon-foundation/dexon/common" diff --git a/core/vm/sqlvm/parser/internal/helpers.go b/core/vm/sqlvm/parser/internal/helpers.go index 38033fcf0..386a4be7e 100644 --- a/core/vm/sqlvm/parser/internal/helpers.go +++ b/core/vm/sqlvm/parser/internal/helpers.go @@ -8,10 +8,11 @@ import ( "strings" "unicode/utf8" + "github.com/dexon-foundation/decimal" + "github.com/dexon-foundation/dexon/common" "github.com/dexon-foundation/dexon/core/vm/sqlvm/ast" "github.com/dexon-foundation/dexon/core/vm/sqlvm/errors" - "github.com/shopspring/decimal" ) // Parser was generated with pigeon v1.0.0-99-gbb0192c. diff --git a/core/vm/sqlvm/runtime/instructions.go b/core/vm/sqlvm/runtime/instructions.go index 17691d0d4..a1c992988 100644 --- a/core/vm/sqlvm/runtime/instructions.go +++ b/core/vm/sqlvm/runtime/instructions.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/shopspring/decimal" + "github.com/dexon-foundation/decimal" dexCommon "github.com/dexon-foundation/dexon/common" "github.com/dexon-foundation/dexon/core/vm/sqlvm/ast" diff --git a/core/vm/sqlvm/runtime/instructions_test.go b/core/vm/sqlvm/runtime/instructions_test.go index 4d2e0b153..2601fcce3 100644 --- a/core/vm/sqlvm/runtime/instructions_test.go +++ b/core/vm/sqlvm/runtime/instructions_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - "github.com/shopspring/decimal" + "github.com/dexon-foundation/decimal" "github.com/stretchr/testify/suite" dexCommon "github.com/dexon-foundation/dexon/common" diff --git a/core/vm/sqlvm/schema/schema.go b/core/vm/sqlvm/schema/schema.go index d50a3ff46..708bbf672 100644 --- a/core/vm/sqlvm/schema/schema.go +++ b/core/vm/sqlvm/schema/schema.go @@ -4,7 +4,7 @@ import ( "errors" "io" - "github.com/shopspring/decimal" + "github.com/dexon-foundation/decimal" "github.com/dexon-foundation/dexon/common" "github.com/dexon-foundation/dexon/core/vm/sqlvm/ast" diff --git a/core/vm/sqlvm/schema/schema_test.go b/core/vm/sqlvm/schema/schema_test.go index 71f0ee6d3..37fa90bb0 100644 --- a/core/vm/sqlvm/schema/schema_test.go +++ b/core/vm/sqlvm/schema/schema_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "github.com/shopspring/decimal" + "github.com/dexon-foundation/decimal" "github.com/stretchr/testify/suite" "github.com/dexon-foundation/dexon/core/vm/sqlvm/ast" -- cgit v1.2.3