Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
Metallicus Dev committed Mar 23, 2021
1 parent 5212f4b commit 260a492
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 12 deletions.
File renamed without changes.
92 changes: 91 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,91 @@
node_modules

# compiled output
/dist
/tmp
/out-tsc

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# IDEs and editors
.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
.sass-cache
connect.lock
typings

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*


# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# Lerna
lerna-debug.log

# System Files
.DS_Store
Thumbs.db
@jafri
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Proton Examples

Modify .env with your private key and constants.js with your account name, etc

Main function shows the following:
Shows the following:
1. Purchase blockchain storage
2. Deploying token contract like RANDOM
3. Create RANDOM
Expand All @@ -17,16 +15,15 @@ Main function shows the following:
12. Get NFT listings
13. Buy NFT with XPR
14. Cancel NFT sale
15. Transfer NFT

# Installation
1. Rename .env.example to .env
2. Run `npm i `
3. Modify index.js at root to run the functions you want
4. `node index.js`

```
npm i
```

# Example run

Modify index.js at root and run `node index.js`
# Example index.js

```js
const { buyStorage } = require('./chain/buy-storage')
Expand All @@ -45,5 +42,5 @@ main()
# Setup testnet
1. Go to https://monitor.testnet.protonchain.com/
2. Create key pair (save this securely)
3. Create account
3. Create account with key pair
4. Faucet for some free testnet XPR!

0 comments on commit 260a492

Please sign in to comment.