Skip to content

magical-oasis/smart-contracts

Repository files navigation

smartcontract

Truffle setup

See: https://www.trufflesuite.com/tutorial

  1. Install truffle
npm install -g truffle
  1. Run truffle version
truffle version
  1. Download ganache https://www.trufflesuite.com/docs/ganache/quickstart

Development command

truffle migrate --reset --network rinkeby


let instance = await DefiMarket.deployed()

let accounts = await web3.eth.getAccounts()

instance.addTradeOffer(accounts[1], 123, {from: accounts[0], value: 1})

instance.listingIdToBuyersAddress.call(123, 0)

instance.getNumberOfBuyingOfferForListingId.call(123)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published