8000 GitHub - Coop-Records/collectibles-protocol
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Coop-Records/collectibles-protocol

Repository files navigation

Collectibles Protocol

A smart contract protocol for managing collectibles on Abstract's testnet, built with Foundry.

Foundry consists of:

  • Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
  • Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
  • Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
  • Chisel: Fast, utilitarian, and verbose solidity REPL.

Documentation

https://book.getfoundry.sh/

Setup

Environment Variables

  1. Copy the example environment file:
cp .env.example .env
  1. Update the .env file with your configuration:
# RPC URLs
ABSTRACT_TESTNET_RPC_URL=https://api.testnet.abs.xyz
ABSTRACT_VERIFIER_URL=https://api-sepolia.abscan.org/api

# Deployment
PRIVATE_KEY=0xyour_private_key_here

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Deploy

First, make sure your environment variables are loaded:

source .env

Then run the deployment script:

forge script script/Counter.s.sol:CounterScript --rpc-url $ABSTRACT_TESTNET_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --verifier blockscout --verifier-url $ABSTRACT_VERIFIER_URL -vvvv --zksync

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0