Skip to content

Commit

Permalink
chore: remove spl-token-registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-mocha committed Oct 8, 2022
1 parent dffff6a commit 8f73e7c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@project-serum/anchor": "^0.25.0",
"@solana-mobile/wallet-adapter-mobile": "^0.9.0",
"@solana/spl-token": "^0.2.0",
"@solana/spl-token-registry": "^0.2.3829",
"@solana/wallet-adapter-base": "^0.9.4",
"@solana/wallet-adapter-react": "^0.15.3",
"@solana/wallet-adapter-react-ui": "^0.9.5",
Expand Down
22 changes: 0 additions & 22 deletions src/models/Network.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
import { Network } from '@dcaf-labs/drip-sdk/dist/models';
import { ENV } from '@solana/spl-token-registry';
import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';

export function toENV(network: Network): ENV {
switch (network) {
case Network.Mainnet:
return ENV.MainnetBeta;
case Network.Devnet:
return ENV.Devnet;
default:
return ENV.Devnet;
}
}

export function isSupportedENV(env: ENV): boolean {
switch (env) {
case ENV.MainnetBeta:
case ENV.Devnet:
return true;
default:
return false;
}
}

export function getClusterApiUrl(network: Network): string {
switch (network) {
case Network.Mainnet:
Expand Down
19 changes: 0 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3199,13 +3199,6 @@
dependencies:
buffer "~6.0.3"

"@solana/spl-token-registry@^0.2.3829":
version "0.2.4574"
resolved "https://registry.npmjs.org/@solana/spl-token-registry/-/spl-token-registry-0.2.4574.tgz"
integrity sha512-JzlfZmke8Rxug20VT/VpI2XsXlsqMlcORIUivF+Yucj7tFi7A0dXG7h+2UnD0WaZJw8BrUz2ABNkUnv89vbv1A==
dependencies:
cross-fetch "3.0.6"

"@solana/spl-token@^0.2.0":
version "0.2.0"
resolved "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.2.0.tgz"
Expand Down Expand Up @@ -6023,13 +6016,6 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

cross-fetch@3.0.6:
version "3.0.6"
resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.0.6.tgz"
integrity sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==
dependencies:
node-fetch "2.6.1"

cross-fetch@^3.1.5:
version "3.1.5"
resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz"
Expand Down Expand Up @@ -10477,11 +10463,6 @@ node-fetch@2, node-fetch@2.6.7, node-fetch@^2.2.0, node-fetch@^2.6.0:
dependencies:
whatwg-url "^5.0.0"

node-fetch@2.6.1:
version "2.6.1"
resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz"
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==

node-forge@^1:
version "1.3.1"
resolved "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz"
Expand Down

0 comments on commit 8f73e7c

Please sign in to comment.