mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 04:21:20 +00:00
3163f40e58
- Added new requests for sending raw transactions - Made provisions for other types of transactions generated, including contracts - Modified the models and services to accommodate general values
31 lines
802 B
Go
31 lines
802 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/ledgerwatch/erigon/cmd/devnet/models"
|
|
)
|
|
|
|
// ExecuteAllMethods runs all the simulation tests for erigon devnet
|
|
func ExecuteAllMethods() {
|
|
// test connection to JSON RPC
|
|
fmt.Println("Mocking get requests to JSON RPC...")
|
|
pingErigonRpc()
|
|
fmt.Println()
|
|
|
|
// get balance of the receiver's account
|
|
callGetBalance(addr, models.Latest, 0)
|
|
fmt.Println()
|
|
|
|
// confirm that the txpool is empty
|
|
fmt.Println("Confirming the tx pool is empty...")
|
|
callTxPoolContent()
|
|
|
|
// send a token from the dev address to the recipient address
|
|
callSendTx(sendValue, recipientAddress, models.DevAddress)
|
|
fmt.Println()
|
|
|
|
// confirm that the txpool has this transaction in the queue
|
|
fmt.Println("Confirming the tx pool has the latest transaction...")
|
|
callTxPoolContent()
|
|
}
|