Git Product home page Git Product logo

swader / dankbots Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0x0000d3ad/dankbots

0.0 1.0 0.0 18 KB

DANKBOTS is an NFT drop of completely unique, algorithmically generated Block Shaped Bots living on the Ethereum blockchain. The project brings a unique vision to the NFT space, fine art community and metaverse. With classic minimalist art and a thesis that will change the standard for NFT projects of the future, DANKBOTS has become one of the most anticipated NFT drops of 2022.

License: MIT License

Solidity 100.00%

dankbots's Introduction

DANKBOTS

DANKBOTS is an NFT drop of completely unique, algorithmically generated Block Shaped Bots living on the Ethereum blockchain. The project brings a unique vision to the NFT space, fine art community and metaverse. With classic minimalist art and a thesis that will change the standard for NFT projects of the future, DANKBOTS has become one of the most anticipated NFT drops of 2022.

Prerequisites

  1. NPM v6.14.8
  2. Truffle v5.5.9
  3. Solidity Compiler v.0.8.4 (to be specified in truffle-config.js)
  4. Ganache v2.5.4

Initial Steps

First, you must set up a project using truffle. On the command line, type:

truffle init DankBots

This will create a directory with a file structure containing (among other things):

  1. "contracts" directory - this is where the code will live
  2. truffle-config.js - config file specifying details for compilation and deployment

Copy Contract Code

Replace the default "DankBots.sol" in the "contracts" folder with the one in this repository.

Edit Config

The truffle-config.js must be edit with the following:

  1. Your infura link (if you want to deploy to mainnet/testnets)
  2. Change the compiler version to "0.8.4"

Create a .secret File

Create a file called '.secret' in the parent directory (same directory as truffle-config.js). In this directory you will place the 12 word mnemonic for your development account. You cannot deploy to the mainnet or testnet without this. Do not upload the .secret file or check it in anywhere (this is your secret key).

Compiling

In the parent directory, type:

truffle compile

If you have done everything correctly you should see something like the following:

Compiling your contracts...

===========================

> Compiling .\contracts\DankBots.sol

> Compiling .\contracts\Migrations.sol

> Artifacts written to C:\Users\13212\OneDrive\Desktop\Solidity\Dankbots\build\contracts

> Compiled successfully using: \ - solc: 0.8.4+commit.c7e474f2.Emscripten.clang

Testing

Before deploying, we recommend thoroughly testing the contract. Truffle provides a test suite that can automate unit tests provided in the "test" directory. Test cases are written in .js files. You can have one or more test files in the test directory, which will all be executed by simply typing:

truffle test

We recommend testing on the local testnet with Ganache, then deploying to one or more testnets e.g. Ropsten or Rinkeby, before deploying to mainnet.

Deploying

Before deploying the code, we need to create a file named "2_deploy_contracts.js" in the "migrations" directory, which will specify the DankBots contract to the deployer. Once you've done this, simply type:

truffle deploy --network <network>

where <network> corresponds to a network specified in your truffle-config.js file. For example "truffle deploy --network development" should deploy to your local Ganache instance. "truffle deploy --network ropsten" will deploy to the Ropsten test network (assuming you have specified this properly in truffle-config.js). To deploy to mainnet, use "truffle deploy --network mainnet".

dankbots's People

Contributors

0x0000d3ad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.