New testnet address

This commit is contained in:
Mentor Palokaj 2021-10-30 14:33:19 +02:00
parent 83018a1a7c
commit 40fb9f5abb
4 changed files with 14 additions and 17 deletions

View File

@ -23,9 +23,7 @@ contract Rocketeer is ERC721Tradable {
{
// Birth the genesis Rocketeers
for( uint i=0; i < 10; i++ ) {
spawnRocketeer( owner() );
}
spawnRocketeer( owner() );
}

View File

@ -6,7 +6,7 @@ const { infura } = functions.config()
// Contract data
const contractAddress = {
mainnet: '',
rinkeby: '0x2829ba9d76e675b8867E1707A9aB49B280D916c6'
rinkeby: '0x95d6b9549315212D3FDce9FdCa9d80978b8bB41D'
}
// ABI with only the supply definitions

View File

@ -196,7 +196,7 @@ export function useChainId() {
const contractAddressByChainId = {
'0x1': '',
// '0x4': '0x2829ba9d76e675b8867E1707A9aB49B280D916c6', // Old
'0x4': '0x89D9f02D2877A35E8323DC1b578FD1f6014B04d0'
'0x4': '0x95d6b9549315212D3FDce9FdCa9d80978b8bB41D'
}
// Contract ABI with only totalSupply, balanceOf and Transfer

View File

@ -20,12 +20,7 @@
require('dotenv').config()
// const HDWalletProvider = require('@truffle/hdwallet-provider');
const LedgerWalletProvider = require('truffle-ledger-provider');
const ledgerOptions = {
index: process.env.LEDGER_INDEX,
path: process.env.LEDGER_PATH
}
const HDWalletProvider = require('@truffle/hdwallet-provider');
// Copied from https://github.com/ProjectOpenSea/opensea-creatures
const MNEMONIC = process.env.MNEMONIC;
@ -74,19 +69,23 @@ module.exports = {
},
rinkeby: {
provider: function () {
// return new HDWalletProvider(MNEMONIC, rinkebyNodeUrl);
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
// console.log( 'Running with ', rinkebyNodeUrl )
return new HDWalletProvider( { privateKeys: [ process.env.ROCKETEER_PRIVKEY ], index: 0, providerOrUrl: rinkebyNodeUrl } );
},
network_id: 4,
gasPrice: 2 * 1000000000,
gas: 5000000,
networkCheckTimeout: 1000000
},
live: {
network_id: 1,
provider: function () {
// return new HDWalletProvider(MNEMONIC, mainnetNodeUrl);
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
// console.log( 'Running with ', mainnetNodeUrl )
return new HDWalletProvider( { privateKeys: [ process.env.ROCKETEER_PRIVKEY ], index: 0, providerOrUrl: mainnetNodeUrl } );
},
// gas: 5000000,
gasPrice: 5000000000,
gas: 5000000,
gasPrice: 20 * 1000000000,
networkCheckTimeout: 1000000
},
},