Skip to content

Commit

Permalink
✨ Support TESTNET
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed May 10, 2023
1 parent 93173f3 commit bfa0251
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const { VUE_APP_INDEXER_URL } = process.env;
export const INDEXER_URL = VUE_APP_INDEXER_URL || 'https://mainnet-node.like.co';
export const API_PUBLIC_URL = 'https://api.like.co';

export const IS_TESTNET = false;
export const INDEXER_URL = VUE_APP_INDEXER_URL || (IS_TESTNET ? 'https://node.testnet.like.co' : 'https://mainnet-node.like.co');
export const API_PUBLIC_URL = IS_TESTNET ? 'https://api.rinkeby.like.co' : 'https://api.like.co';
export const EXAMPLE_CREATOR_ADDRESS = 'like13f4glvg80zvfrrs7utft5p68pct4mcq7t5atf6';

// The like.co API address
export const API_ADDRESS = 'like17m4vwrnhjmd20uu7tst7nv0kap6ee7js69jfrs';
export const API_ADDRESS = IS_TESTNET ? 'like1yney2cqn5qdrlc50yr5l53898ufdhxafqz9gxp' : 'like17m4vwrnhjmd20uu7tst7nv0kap6ee7js69jfrs';
export const IGNORE_ADDRESS_LIST = [
API_ADDRESS,
// The like.co API address in testnet
Expand Down

0 comments on commit bfa0251

Please sign in to comment.