Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
peerreez committed May 28, 2024
0 parents commit ec492cb
Show file tree
Hide file tree
Showing 26 changed files with 66,563 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.secret
node_modules
src/abis
24 changes: 24 additions & 0 deletions migrations/2_initial_migration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const JamToken = artifacts.require('JamToken');
const StellartToken = artifacts.require('StellartToken');
const TokenFarm = artifacts.require('TokenFarm');

module.exports = async function(deployer, network, accounts) {

// Despliegue del JamToken
await deployer.deploy(JamToken)
const jamToken = await JamToken.deployed()

// Despliegue del StellartToken
await deployer.deploy(StellartToken)
const stellartToken = await StellartToken.deployed()

// Despliegue del TokenFarm
await deployer.deploy(TokenFarm, stellartToken.address, jamToken.address)
const tokenFarm = await TokenFarm.deployed()

// Transferir tokens StellartToken (token de recompensa) a TokenFarm (1 millon de tokens)
await stellartToken.transfer(tokenFarm.address, '1000000000000000000000000')

// Transferencia de los tokens para el Staking
// await jamToken.transfer(accounts[1], '10000000000000000')
}
Loading

0 comments on commit ec492cb

Please sign in to comment.