Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥 Remove whitelist server API, use api.like.co arweave #387

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions components/Alerts/SignFailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
>
, {{ $t('IscnRegisterForm.error.buy') }}
</Link>

<Link
v-else-if="errorType === 'USER_NOT_WHITELISTED'"
:class="['text-white', 'ml-[2px]']"
href="https://forms.gle/GFbp9SNwSWdmmnQQ6"
>
, {{ $t('IscnRegisterForm.error.notWhitelisted') }}
</Link>
</Snackbar>
</template>

Expand Down
4 changes: 2 additions & 2 deletions constant/api.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import querystring from 'querystring';
import { IS_TESTNET } from ".";

export const API_POST_ARWEAVE_ESTIMATE = '/arweave/estimate';
export const API_POST_ARWEAVE_UPLOAD = '/arweave/upload';
export const API_POST_NUMBERS_PROTOCOL_ASSETS = '/numbers-protocol/assets';

const LIKE_CO_API_ROOT = IS_TESTNET ? 'https://api.rinkeby.like.co' : 'https://api.like.co'
const LIKECOIN_CHAIN_API = IS_TESTNET ? 'https://node.testnet.like.co' : 'https://mainnet-node.like.co';
export const LIKER_NFT_TARGET_ADDRESS = IS_TESTNET ? 'like1yney2cqn5qdrlc50yr5l53898ufdhxafqz9gxp' : 'like17m4vwrnhjmd20uu7tst7nv0kap6ee7js69jfrs';
export const API_POST_ARWEAVE_ESTIMATE = `${LIKE_CO_API_ROOT}/arweave/estimate`;
export const API_POST_ARWEAVE_UPLOAD = `${LIKE_CO_API_ROOT}/arweave/upload`;
export const API_LIKER_NFT_MINT = `${LIKE_CO_API_ROOT}/likernft/mint`;
export const API_LIKER_NFT_MINT_IMAGE = `${LIKE_CO_API_ROOT}/likernft/mint/image`;
export const API_LIKER_NFT_PURCHASE = `${LIKE_CO_API_ROOT}/likernft/purchase`;
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
"test": "jest"
},
"dependencies": {
"@bundlr-network/client": "^0.11.2",
"@cosmjs/proto-signing": "^0.30.1",
"@cosmjs/stargate": "^0.30.1",
"@ipld/car": "^4.1.6",
"@keplr-wallet/types": "^0.11.4",
"@likecoin/iscn-js": "^0.6.8",
"@likecoin/iscn-message-types": "^0.0.7",
Expand All @@ -35,7 +33,6 @@
"@walletconnect/client": "^1.6.6",
"@walletconnect/qrcode-modal": "^1.6.6",
"@walletconnect/utils": "^1.6.6",
"arweave": "^1.10.16",
"axios": "^0.21.4",
"bignumber.js": "^9.0.1",
"cheerio": "^1.0.0-rc.11",
Expand All @@ -47,7 +44,6 @@
"fast-json-stable-stringify": "^2.1.0",
"form-data": "^4.0.0",
"image-type": "^4.1.0",
"ipfs-http-client": "^56",
"ipfs-only-hash": "^4.0.0",
"lodash.chunk": "^4.2.0",
"lodash.debounce": "^4.0.8",
Expand All @@ -67,8 +63,7 @@
"vue-class-component": "^7.2.6",
"vue-gtag": "^1.16.1",
"vue-property-decorator": "^9.1.2",
"vuex-class": "^0.3.2",
"web3.storage": "^4.4.0"
"vuex-class": "^0.3.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.14.7",
Expand Down
1 change: 0 additions & 1 deletion pages/nft/iscn/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
INSUFFICIENT_BALANCE = 'INSUFFICIENT_BALANCE',
MISSING_SIGNER = 'MISSING_SIGNER',
USER_NOT_ISCN_OWNER = 'USER_NOT_ISCN_OWNER',
USER_NOT_WHITELISTED = 'USER_NOT_WHITELISTED',
}

export enum State {
Expand Down Expand Up @@ -727,7 +726,7 @@
this.isCustomOgimage = true;
logTrackerEvent(this, 'IscnMintNFT', 'GetOgImageExists', arweaveID, 1);
} catch (err) {
console.error(err)

Check warning on line 729 in pages/nft/iscn/_iscnId.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

Unexpected console statement
}
}
if (!this.ogImageBlob && !this.ogImageArweaveId) {
Expand Down
306 changes: 0 additions & 306 deletions server/arweave/index.ts

This file was deleted.

Loading
Loading