Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
8b6c1218
Commit
8b6c1218
authored
Jul 30, 2020
by
vipwzw
Committed by
33cn
Aug 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
c9ec7b28
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
11 deletions
+14
-11
abi.go
plugin/dapp/evm/executor/abi/abi.go
+1
-0
argument.go
plugin/dapp/evm/executor/abi/argument.go
+1
-0
numbers.go
plugin/dapp/evm/executor/abi/numbers.go
+2
-1
fp.go
plugin/dapp/evm/executor/vm/common/crypto/bls12381/fp.go
+1
-1
fp_test.go
...in/dapp/evm/executor/vm/common/crypto/bls12381/fp_test.go
+1
-1
errors.go
plugin/dapp/evm/executor/vm/model/errors.go
+4
-4
protocol_params.go
plugin/dapp/evm/executor/vm/params/protocol_params.go
+4
-4
No files found.
plugin/dapp/evm/executor/abi/abi.go
View file @
8b6c1218
...
...
@@ -242,6 +242,7 @@ func (abi *ABI) MethodByID(sigdata []byte) (*Method, error) {
}
var
revertSelector
=
crypto
.
Keccak256
([]
byte
(
"Error(string)"
))[
:
4
]
// UnpackRevert 解包转换为string
func
UnpackRevert
(
data
[]
byte
)
(
string
,
error
)
{
if
len
(
data
)
<
4
{
...
...
plugin/dapp/evm/executor/abi/argument.go
View file @
8b6c1218
...
...
@@ -30,6 +30,7 @@ type Argument struct {
Type
Type
Indexed
bool
// indexed is only used by events
}
// Arguments 参数
type
Arguments
[]
Argument
...
...
plugin/dapp/evm/executor/abi/numbers.go
View file @
8b6c1218
...
...
@@ -17,8 +17,9 @@
package
abi
import
(
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"
"math/big"
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common"
)
// U256 converts a big Int into a 256bit EVM number.
...
...
plugin/dapp/evm/executor/vm/common/crypto/bls12381/fp.go
View file @
8b6c1218
...
...
@@ -127,7 +127,7 @@ func inverse(inv, e *fe) {
laddAssign
(
s
,
r
)
z
+=
r
.
mul2
()
}
k
++
k
++
}
if
!
found
{
...
...
plugin/dapp/evm/executor/vm/common/crypto/bls12381/fp_test.go
View file @
8b6c1218
...
...
@@ -846,7 +846,7 @@ func TestFp2NonResidue(t *testing.T) {
t
.
Fatal
(
"element is quadratic non residue, 2"
,
i
)
}
}
else
{
i
--
i
--
}
}
}
...
...
plugin/dapp/evm/executor/vm/model/errors.go
View file @
8b6c1218
...
...
@@ -40,13 +40,13 @@ var (
ErrMaxCodeSizeExceeded
=
errors
.
New
(
"evm: max code size exceeded"
)
// ErrNoCoinsAccount no coins account in executor!
ErrNoCoinsAccount
=
errors
.
New
(
"no coins account in executor"
)
ErrNoCoinsAccount
=
errors
.
New
(
"no coins account in executor"
)
// ErrReturnStackExceeded
ErrReturnStackExceeded
=
errors
.
New
(
"return stack limit reached"
)
ErrReturnStackExceeded
=
errors
.
New
(
"return stack limit reached"
)
// ErrInvalidSubroutineEntry
ErrInvalidSubroutineEntry
=
errors
.
New
(
"invalid subroutine entry"
)
// ErrInvalidJump
ErrInvalidJump
=
errors
.
New
(
"invalid jump destination"
)
ErrInvalidJump
=
errors
.
New
(
"invalid jump destination"
)
// ErrInvalidRetsub
ErrInvalidRetsub
=
errors
.
New
(
"invalid retsub"
)
ErrInvalidRetsub
=
errors
.
New
(
"invalid retsub"
)
)
plugin/dapp/evm/executor/vm/params/protocol_params.go
View file @
8b6c1218
...
...
@@ -82,7 +82,7 @@ const (
//SloadGasEIP150 uint64 = 200
//SloadGasEIP1884 uint64 = 800 // Cost of SLOAD after EIP 1884 (part of Istanbul)
//SloadGasEIP2200 uint64 = 800 // Cost of SLOAD after EIP 2200 (part of Istanbul)
ExtcodeHashGasConstantinople
uint64
=
400
// Cost of EXTCODEHASH (introduced in Constantinople)
ExtcodeHashGasConstantinople
uint64
=
400
// Cost of EXTCODEHASH (introduced in Constantinople)
//ExtcodeHashGasEIP1884 uint64 = 700 // Cost of EXTCODEHASH after EIP 1884 (part in Istanbul)
//SelfdestructGasEIP150 uint64 = 5000 // Cost of SELFDESTRUCT post EIP 150 (Tangerine)
//
...
...
@@ -139,9 +139,9 @@ var (
// DifficultyBoundDivisor The bound divisor of the difficulty, used in the update calculations.
DifficultyBoundDivisor
=
big
.
NewInt
(
2048
)
// GenesisDifficulty Difficulty of the Genesis block.
GenesisDifficulty
=
big
.
NewInt
(
131072
)
GenesisDifficulty
=
big
.
NewInt
(
131072
)
// MinimumDifficulty The minimum that the difficulty may ever be.
MinimumDifficulty
=
big
.
NewInt
(
131072
)
MinimumDifficulty
=
big
.
NewInt
(
131072
)
// DurationLimit The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
DurationLimit
=
big
.
NewInt
(
13
)
DurationLimit
=
big
.
NewInt
(
13
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment