Trabalho 2 de INF1305 (Tópicos em Computação II - Blockchain)

Alunos

Professores

  • Gustavo Robichez de Carvalho
  • Rafael Nasser

Arquivos

Nome do Arquivo Descrição
Upstream.sol Smart contract.
index.html Dashboard.
investments.html Investments page.
spendings.html Investment allocation page.
app_index.js Dashboard JS.
app_investments.js Investments JS.
app_spendings.js Allocations JS.

Recursos Utilizados

Instalação de dependências

npm install

Rebuild do Contrato e Testes

truffle migrate --reset

truffle test

Execução das páginas

npm run dev

Console truffle e funções convenientes

truffle console

Upstream.deployed().then(function (instance) { app = instance })

web3.eth.getAccounts().then(function (account) { acc = account[0] })

app.function(parameters, { from: acc })