erigon-pulse/cmd/devnet/commands/all.go
Leonard Chinonso 3163f40e58
Added Mechanism For Sending Raw Transaction (#5825)
- 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
2022-10-31 17:46:49 +07:00

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()
}