Skip to content

Commit

Permalink
Revert "Constants for Deploy Scripts (#109)" (#110)
Browse files Browse the repository at this point in the history
This reverts commit c8746f5.
  • Loading branch information
mikeghen authored May 23, 2022
1 parent c8746f5 commit ec76919
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 35 deletions.
Binary file modified .DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions scripts/approve-subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ const {
web3tx,
} = require('@decentral.ee/web3-helpers');
const SuperfluidSDK = require('@superfluid-finance/js-sdk');
import { Constants } from '../misc/Constants';


const HOST_ADDRESS = "0x3E14dC1b13c488a8d5D310918780c983bD5982E7";
const CFA_ADDRESS = Constants.CFA_SUPERFLUID_ADDRESS;
const IDA_ADDRESS = Constants.IDA_SUPERFLUID_ADDRESS;
const RIC_CONTRACT_ADDRESS = Constants.RIC_TOKEN_ADDRESS;
const CFA_ADDRESS = "0x6EeE6060f715257b970700bc2656De21dEdF074C";
const IDA_ADDRESS = "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1";
const RIC_CONTRACT_ADDRESS = "0x263026e7e53dbfdce5ae55ade22493f828922965";
const USDCX_ADDRESS = "0xCAa7349CEA390F89641fe306D93591f87595dc1F";
const ETHX_ADDRESS = "0x27e1e4E6BC79D93032abef01025811B7E4727e85";
const REXMARKET_CONTRACT_ADDRESS = "0xF6a03FCf12Cdc8066aFaf12255105CA301E15ba6";
const SF_RESOLVER = Constants.SF_RESOLVER;
const SF_RESOLVER = '0xE0cc76334405EE8b39213E620587d815967af39C';


async function main() {
Expand Down
12 changes: 6 additions & 6 deletions scripts/arguments.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Constants } from '../misc/Constants';

// Polygon Mainnet
const HOST_ADDRESS = "0x3E14dC1b13c488a8d5D310918780c983bD5982E7";
const CFA_ADDRESS = Constants.CFA_SUPERFLUID_ADDRESS;
const IDA_ADDRESS = Constants.IDA_SUPERFLUID_ADDRESS;
const CFA_ADDRESS = "0x6EeE6060f715257b970700bc2656De21dEdF074C";
const IDA_ADDRESS = "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1";
const DAIX_ADDRESS = "0x1305F6B6Df9Dc47159D12Eb7aC2804d4A33173c2";
const ETHX_ADDRESS = "0x27e1e4E6BC79D93032abef01025811B7E4727e85";
const SUSHISWAP_ROUTER_ADDRESS = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff";
const TELLOR_ORACLE_ADDRESS = Constants.TELLOR_ORACLE_ADDRESS;
const RIC_CONTRACT_ADDRESS = Constants.RIC_TOKEN_ADDRESS;
const TELLOR_ORACLE_ADDRESS = "0xACC2d27400029904919ea54fFc0b18Bf07C57875";
const RIC_CONTRACT_ADDRESS = "0x263026e7e53dbfdce5ae55ade22493f828922965";
const TELLOR_REQUEST_ID = 60;
const OWNER_ADDRESS = Constants.OWNER_ADDRESS;
const OWNER_ADDRESS = "0x3226C9EaC0379F04Ba2b1E1e1fcD52ac26309aeA";
const REX_REFERRAL_ADDRESS = "0xA0eC9E1542485700110688b3e6FbebBDf23cd901";

module.exports = [
Expand Down
14 changes: 6 additions & 8 deletions scripts/deploy-rexonewaymarket.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import { Constants } from '../misc/Constants';

async function main() {

const [deployer] = await ethers.getSigners();
console.log(process.argv);

// Polygon Mainnet
const HOST_ADDRESS = "0x3E14dC1b13c488a8d5D310918780c983bD5982E7";
const CFA_ADDRESS = Constants.CFA_SUPERFLUID_ADDRESS;
const IDA_ADDRESS = Constants.IDA_SUPERFLUID_ADDRESS;
const TELLOR_ORACLE_ADDRESS = Constants.TELLOR_ORACLE_ADDRESS;
const RIC_CONTRACT_ADDRESS = Constants.RIC_TOKEN_ADDRESS;
const ROUTER_ADDRESS = Constants.SUSHISWAP_ROUTER_ADDRESS;
const CFA_ADDRESS = "0x6EeE6060f715257b970700bc2656De21dEdF074C";
const IDA_ADDRESS = "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1";
const TELLOR_ORACLE_ADDRESS = "0xACC2d27400029904919ea54fFc0b18Bf07C57875";
const RIC_CONTRACT_ADDRESS = "0x263026e7e53dbfdce5ae55ade22493f828922965";
const ROUTER_ADDRESS = "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506";

USDCX_ADDRESS = "0xCAa7349CEA390F89641fe306D93591f87595dc1F";
TELLOR_USDC_REQUEST_ID = 78;
RIC_ADDRESS = Constants.RIC_TOKEN_ADDRESS;
RIC_ADDRESS = "0x263026E7e53DBFDce5ae55Ade22493f828922965";
TELLOR_RIC_REQUEST_ID = 77;

console.log("Deploying contracts with the account:", deployer.address);
Expand Down
8 changes: 3 additions & 5 deletions scripts/deploy-rextwowaymarket.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Constants } from '../misc/Constants';

async function main() {

function sleep(ms) {
Expand All @@ -13,9 +11,9 @@ async function main() {

// Polygon Mainnet
const HOST_ADDRESS = "0x3E14dC1b13c488a8d5D310918780c983bD5982E7";
const CFA_ADDRESS = Constants.CFA_SUPERFLUID_ADDRESS;
const IDA_ADDRESS = Constants.IDA_SUPERFLUID_ADDRESS;
const TELLOR_ORACLE_ADDRESS = Constants.TELLOR_ORACLE_ADDRESS;
const CFA_ADDRESS = "0x6EeE6060f715257b970700bc2656De21dEdF074C";
const IDA_ADDRESS = "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1";
const TELLOR_ORACLE_ADDRESS = "0xACC2d27400029904919ea54fFc0b18Bf07C57875";

const DAIX_ADDRESS = "0x1305F6B6Df9Dc47159D12Eb7aC2804d4A33173c2";
const USDCX_ADDRESS = "0xCAa7349CEA390F89641fe306D93591f87595dc1F";
Expand Down
8 changes: 3 additions & 5 deletions scripts/deploy-rextwowaymaticmarket.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Constants } from '../misc/Constants';

async function main() {

function sleep(ms) {
Expand All @@ -13,9 +11,9 @@ async function main() {

// Polygon Mainnet
const HOST_ADDRESS = "0x3E14dC1b13c488a8d5D310918780c983bD5982E7";
const CFA_ADDRESS = Constants.CFA_SUPERFLUID_ADDRESS;
const IDA_ADDRESS = Constants.IDA_SUPERFLUID_ADDRESS;
const TELLOR_ORACLE_ADDRESS = Constants.TELLOR_ORACLE_ADDRESS;
const CFA_ADDRESS = "0x6EeE6060f715257b970700bc2656De21dEdF074C";
const IDA_ADDRESS = "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1";
const TELLOR_ORACLE_ADDRESS = "0xACC2d27400029904919ea54fFc0b18Bf07C57875";

DAIX_ADDRESS = "0x1305F6B6Df9Dc47159D12Eb7aC2804d4A33173c2";
USDCX_ADDRESS = "0xCAa7349CEA390F89641fe306D93591f87595dc1F";
Expand Down
10 changes: 4 additions & 6 deletions scripts/deploy-rextwowayricmarket.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Constants } from "../misc/Constants";

async function main() {

function sleep(ms) {
Expand All @@ -13,14 +11,14 @@ async function main() {

// Polygon Mainnet
const HOST_ADDRESS = "0x3E14dC1b13c488a8d5D310918780c983bD5982E7";
const CFA_ADDRESS = Constants.CFA_SUPERFLUID_ADDRESS;
const IDA_ADDRESS = Constants.IDA_SUPERFLUID_ADDRESS;
const TELLOR_ORACLE_ADDRESS = Constants.TELLOR_ORACLE_ADDRESS;
const CFA_ADDRESS = "0x6EeE6060f715257b970700bc2656De21dEdF074C";
const IDA_ADDRESS = "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1";
const TELLOR_ORACLE_ADDRESS = "0xACC2d27400029904919ea54fFc0b18Bf07C57875";

DAIX_ADDRESS = "0x1305F6B6Df9Dc47159D12Eb7aC2804d4A33173c2";
USDCX_ADDRESS = "0xCAa7349CEA390F89641fe306D93591f87595dc1F";
TELLOR_USDC_REQUEST_ID = 78;
RIC_ADDRESS = Constants.RIC_TOKEN_ADDRESS;
RIC_ADDRESS = "0x263026E7e53DBFDce5ae55Ade22493f828922965";
TELLOR_RIC_REQUEST_ID = 77;

console.log("Deploying contracts with the account:", deployer.address);
Expand Down

0 comments on commit ec76919

Please sign in to comment.