-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds handling of Transaction commands.
- Loading branch information
Showing
133 changed files
with
11,397 additions
and
3,084 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.39.1 | ||
0.39.2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package types | ||
|
||
import ( | ||
"github.com/status-im/status-go/eth-node/types" | ||
"math/big" | ||
) | ||
|
||
type Message struct { | ||
to *types.Address | ||
from types.Address | ||
nonce uint64 | ||
amount *big.Int | ||
gasLimit uint64 | ||
gasPrice *big.Int | ||
data []byte | ||
checkNonce bool | ||
} | ||
|
||
func NewMessage(from types.Address, to *types.Address, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte, checkNonce bool) Message { | ||
return Message{ | ||
from: from, | ||
to: to, | ||
nonce: nonce, | ||
amount: amount, | ||
gasLimit: gasLimit, | ||
gasPrice: gasPrice, | ||
data: data, | ||
checkNonce: checkNonce, | ||
} | ||
} | ||
|
||
func (m Message) From() types.Address { return m.from } | ||
func (m Message) To() *types.Address { return m.to } | ||
func (m Message) GasPrice() *big.Int { return m.gasPrice } | ||
func (m Message) Value() *big.Int { return m.amount } | ||
func (m Message) Gas() uint64 { return m.gasLimit } | ||
func (m Message) Nonce() uint64 { return m.nonce } | ||
func (m Message) Data() []byte { return m.data } | ||
func (m Message) CheckNonce() bool { return m.checkNonce } |
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.