mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
New testnet address
This commit is contained in:
parent
83018a1a7c
commit
40fb9f5abb
@ -23,9 +23,7 @@ contract Rocketeer is ERC721Tradable {
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Birth the genesis Rocketeers
|
// Birth the genesis Rocketeers
|
||||||
for( uint i=0; i < 10; i++ ) {
|
spawnRocketeer( owner() );
|
||||||
spawnRocketeer( owner() );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ const { infura } = functions.config()
|
|||||||
// Contract data
|
// Contract data
|
||||||
const contractAddress = {
|
const contractAddress = {
|
||||||
mainnet: '',
|
mainnet: '',
|
||||||
rinkeby: '0x2829ba9d76e675b8867E1707A9aB49B280D916c6'
|
rinkeby: '0x95d6b9549315212D3FDce9FdCa9d80978b8bB41D'
|
||||||
}
|
}
|
||||||
|
|
||||||
// ABI with only the supply definitions
|
// ABI with only the supply definitions
|
||||||
|
@ -196,7 +196,7 @@ export function useChainId() {
|
|||||||
const contractAddressByChainId = {
|
const contractAddressByChainId = {
|
||||||
'0x1': '',
|
'0x1': '',
|
||||||
// '0x4': '0x2829ba9d76e675b8867E1707A9aB49B280D916c6', // Old
|
// '0x4': '0x2829ba9d76e675b8867E1707A9aB49B280D916c6', // Old
|
||||||
'0x4': '0x89D9f02D2877A35E8323DC1b578FD1f6014B04d0'
|
'0x4': '0x95d6b9549315212D3FDce9FdCa9d80978b8bB41D'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Contract ABI with only totalSupply, balanceOf and Transfer
|
// Contract ABI with only totalSupply, balanceOf and Transfer
|
||||||
|
@ -20,12 +20,7 @@
|
|||||||
|
|
||||||
require('dotenv').config()
|
require('dotenv').config()
|
||||||
|
|
||||||
// const HDWalletProvider = require('@truffle/hdwallet-provider');
|
const HDWalletProvider = require('@truffle/hdwallet-provider');
|
||||||
const LedgerWalletProvider = require('truffle-ledger-provider');
|
|
||||||
const ledgerOptions = {
|
|
||||||
index: process.env.LEDGER_INDEX,
|
|
||||||
path: process.env.LEDGER_PATH
|
|
||||||
}
|
|
||||||
|
|
||||||
// Copied from https://github.com/ProjectOpenSea/opensea-creatures
|
// Copied from https://github.com/ProjectOpenSea/opensea-creatures
|
||||||
const MNEMONIC = process.env.MNEMONIC;
|
const MNEMONIC = process.env.MNEMONIC;
|
||||||
@ -74,19 +69,23 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
rinkeby: {
|
rinkeby: {
|
||||||
provider: function () {
|
provider: function () {
|
||||||
// return new HDWalletProvider(MNEMONIC, rinkebyNodeUrl);
|
// console.log( 'Running with ', rinkebyNodeUrl )
|
||||||
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
|
return new HDWalletProvider( { privateKeys: [ process.env.ROCKETEER_PRIVKEY ], index: 0, providerOrUrl: rinkebyNodeUrl } );
|
||||||
},
|
},
|
||||||
network_id: 4,
|
network_id: 4,
|
||||||
|
gasPrice: 2 * 1000000000,
|
||||||
|
gas: 5000000,
|
||||||
|
networkCheckTimeout: 1000000
|
||||||
},
|
},
|
||||||
live: {
|
live: {
|
||||||
network_id: 1,
|
network_id: 1,
|
||||||
provider: function () {
|
provider: function () {
|
||||||
// return new HDWalletProvider(MNEMONIC, mainnetNodeUrl);
|
// console.log( 'Running with ', mainnetNodeUrl )
|
||||||
return new LedgerWalletProvider( ledgerOptions, rinkebyNodeUrl );
|
return new HDWalletProvider( { privateKeys: [ process.env.ROCKETEER_PRIVKEY ], index: 0, providerOrUrl: mainnetNodeUrl } );
|
||||||
},
|
},
|
||||||
// gas: 5000000,
|
gas: 5000000,
|
||||||
gasPrice: 5000000000,
|
gasPrice: 20 * 1000000000,
|
||||||
|
networkCheckTimeout: 1000000
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user