Catalog npm
PACKAGE EXPLORERView in registry

@0xbudisantoso/ether-test

npm

## Overview

Versions collected1
Direct dependencies1From release 1.0.0
Last observed20 Oct, 22:44 UTC

README

Current package documentation

Go Ethereum Test Suite

Overview

This project contains a suite of tests written in Go for interacting with Ethereum smart contracts and performing various blockchain-related operations. The tests demonstrate how to connect to the Ethereum network, send transactions, and interact with a custom smart contract.

Prerequisites

  • Golang: Ensure you have Go installed on your system. Download Go
  • Ethereum Node: Access to an Ethereum node is required. This can be either a local node or a remote service
  • Solidity Contract: A deployed instance of the smart contract on the Ethereum network.

Installation

  1. Clone the repository:
    git clone https://github.com/filswan/ether-test
    
  2. Navigate to the project directory:
    cd ether-test
    
  3. Install dependencies:
    go mod tidy
    

Configuration

Set up your .env file with the necessary environment variables:

SENDER_PRIVATE_KEY=your_private_key

Test Files

  • ethclient_test.go: Demonstrates how to connect to an Ethereum client and fetches basic blockchain data like the latest block number and network ID.

  • ethclient_fund_test.go: Contains tests for transferring Ether to an Ethereum address. It demonstrates how to construct, sign, and send transactions.

  • config_test.go: (Provide a brief description of what this file does).

Running Tests

To run the tests, use the following command:

go test -v ./...

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest15 Mar 20241

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
a1budisantoso/ether-test

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d62226d8a274ca78fce5382c89fa253ebf309571e59aa99283e79f7f6bc3176b