-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kernel contract eth-proxy #218
Open
chenfengjin
wants to merge
91
commits into
OpenAtomFoundation:master
Choose a base branch
from
chenfengjin:eth-proxy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
fa3e0e3
update error check
5b207a9
Add contract QueryTx and QueryBlock in Contract (#204)
chenfengjin 5cb17cd
RFC: Add unit test
dfade08
Add unit test
2af0ea7
RFC: Add unit test
22c5b57
trigger ci
0cf4275
go mod tidy
6fb07cc
RFC: update unit test
9d1b4e6
RFC: Add testdata
2c7f0ff
update chain core test
f3e2b0b
update helper.go
c837913
remove xxx_ field in helper.go
102d803
remove useless field in fakechaincore
8de5134
update test helper
5e9baa9
update test helper
11ada75
secp256k1 first version
067286d
trigger ci
1a6d6e2
Add evm proxy
542c9e8
Add evm proxy
24d6564
RFC: Add testdata
dd7e67e
eth-proxy ok
558e522
RFC: evmproxy using contract call ok
76a3e06
counter increase down
c4719ca
initiator ok
7e49156
WIP: add kernel contract eth-proxy
4c9cb9b
Add signature verification
9b2c96a
use rpl to generate tx msg
9519120
RFC: Add signature verify code
609c9c3
signature verify ok
d7c208a
trigger ci
e37e0b8
evm proxy to seperate proxy
chenfengjin 885b718
reorg code
da8bec9
Add .SendTransaction
02f6e06
use kernel contract evm
8e26ec5
Add SendRawContract and Call
6ff9f1e
remove useless code
991ab38
remove useless code
a523226
Revert "remove useless code"
00c5363
remove useless manager test
3f1fac1
remove useless manager test
57e2fb2
Add test helper
f8c5dce
Add test helper
b2f3a00
Add test helper
486b9c2
Add test helper
ec7ebcd
fix ci problems
bb075f8
update send transaction
0c0855c
Add transfer support
5d9aedf
Add transfer support
590649f
update go.mod
ff1d480
update burrow dependency
550da64
Remvoe setevmproxy
7a46fc8
Remove useless code
575fe17
Remove useless code
59916e9
enable contract permission check
c348111
update evm proxy test
770b24d
update evm proxy test
691572a
update evm proxy test
1f11111
update evm proxy test
a1beb2c
update test helper
54ef204
Add unit test for SendRawTransaction and ContractCall
49d5b9b
resolve conflix
f5787b3
resolve conflix
64f3596
remove binary file
05cf515
format code
71ff8d7
format code
82c5437
format code
06c1a19
update code style
cf967f2
remove uesless code
4e7923d
format code
d566584
add testdata
0f7a15f
update unit test
9999d67
store eth transaction when sendRawTransaction
3db9e82
comment out sendtransaction as it is not used
d985765
remove testdata
913b54e
rename filename to lower case as linux is case sensitive
99713fd
comment out ContractCall as it can be replaced by preexec
8381281
Add GetTransactionReceipt method
5ed6cc7
resolve confliction
adc058a
generate txHash in proxy contract
0f8532b
RFC: remove transfer in evm contract
chenfengjin 05c1c73
WIP: add balance
chenfengjin 4f862c9
fix hex encoding
chenfengjin 9388d4a
add transfer and balance of
chenfengjin 5981847
add transfer and BalanceOf && remove ContractCall and SendTransaction
chenfengjin f12ebb1
update burrow version
chenfengjin 9747c76
Add TransactionCount
chenfengjin 0bfc3c0
Add TransactionCount
chenfengjin becacea
update GetTransactionCount
chenfengjin c665616
RFC: Add coin base process&& add inititlaizeAccount for unit test
chenfengjin 47524e3
RFC: fix fee problem
chenfengjin 044383d
Add Pledge Redeem Allowance (#3)
chenfengjin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,8 @@ type KContext interface { | |
Initiator() string | ||
Caller() string | ||
AuthRequire() []string | ||
|
||
TransferAmount() string | ||
ContractName() string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 覆盖Kcontext的transfer方法,只能通过合约名字转账,不用加ContractName |
||
// 状态修改接口 | ||
StateSandbox | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TransferAmount的签名参考go sdk的签名