-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c44f6c4
commit ec678f6
Showing
27 changed files
with
2,323 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export enum Network { | ||
Mainnet = 1, | ||
Rinkeby = 4, | ||
Arbitrum = 42161, | ||
Arbitrum = 42_161, | ||
Goerli = 5, | ||
Sepolia = 11_155_111, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
import { Network } from './networks'; | ||
|
||
export const NFTX_ROUTER_URL = { | ||
[Network.Goerli]: | ||
'https://lmw8qdcm7e.execute-api.eu-central-1.amazonaws.com/prod/quote', | ||
[Network.Goerli]: 'https://api.nftx.xyz/v3/eth-goerli/quote', | ||
[Network.Sepolia]: 'https://api.nftx.xyz/v3/eth-sepolia/quote', | ||
}; | ||
|
||
export const NFTX_APR_URL = { | ||
[Network.Mainnet]: 'https://data.nftx.xyz/vaultaprs', | ||
[Network.Rinkeby]: 'https://data.nftx.xyz/vaultaprs', | ||
[Network.Arbitrum]: 'https://data.nftx.xyz/vaultaprs', | ||
[Network.Goerli]: 'https://data.nftx.xyz/vaultaprs', | ||
}; | ||
|
||
export const ALCHEMY_URL = { | ||
[Network.Mainnet]: 'https://eth-mainnet.g.alchemy.com', | ||
[Network.Goerli]: 'https://eth-goerli.g.alchemy.com', | ||
[Network.Arbitrum]: 'https://arb-mainnet.g.alchemy.com', | ||
}; | ||
|
||
export const NFTX_API_URL = 'https://api-v3.nftx.xyz'; | ||
|
||
export const RESERVOIR_URL = { | ||
[Network.Mainnet]: 'https://api.reservoir.tools', | ||
[Network.Goerli]: 'https://api-goerli.reservoir.tools', | ||
[Network.Arbitrum]: 'https://api-arbitrum.reservoir.tools', | ||
[Network.Sepolia]: 'https://api-sepolia.reservoir.tools', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { Network } from './networks'; | ||
|
||
export const WeiPerEther = 1000000000000000000n; | ||
export const Zero = 0n; | ||
export const MaxUint256 = | ||
115792089237316195423570985008687907853269984665640564039457584007913129639935n; | ||
export const PREMIUM_DURATION = 36000; | ||
|
||
export const PREMIUM_DURATION = { | ||
[Network.Goerli]: 36000, // 10 hours | ||
[Network.Sepolia]: 3600, // 1 hour | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.