Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions codeInbox/deploy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const HDWalletProvider = require('truffle-hdwallet-provider')
const Web3 = require('web3')
const {interface: interfaceABI, object: bytecode} = require('./compile')

const provider = new HDWalletProvider(
'wing ring core cushion guess barely write puzzle window slot sibling patient', 'https://rinkeby.infura.io/v3/66c147864c49427ba88d8c58d3b1db3c')
const web3 = new Web3(provider)

const deploy = async function () {
const accounts = await web3.eth.getAccounts()
console.log('Attempting to deploy from account ', accounts[0])
const result = await new web3.eth.Contract(JSON.parse(interfaceABI))
.deploy({data: bytecode, arguments: ['Nicholas good job']}).send({gas: '1000000', from: accounts[0]})
console.log('Contract deployed to ', result.options.address)

}
deploy();
15 changes: 15 additions & 0 deletions codeInbox/node_modules/.bin/rimraf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions codeInbox/node_modules/.bin/rimraf.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions codeInbox/node_modules/.bin/rimraf.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions codeInbox/node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions codeInbox/node_modules/.bin/semver.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions codeInbox/node_modules/.bin/semver.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions codeInbox/node_modules/.bin/solcjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions codeInbox/node_modules/.bin/solcjs.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions codeInbox/node_modules/.bin/solcjs.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions codeInbox/node_modules/balanced-match/.github/FUNDING.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions codeInbox/node_modules/balanced-match/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions codeInbox/node_modules/balanced-match/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions codeInbox/node_modules/balanced-match/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading