* feat: update api urls (cherry picked from commit0f3045fb68
) * fix: cluster test (cherry picked from commitae5a10dffd
) * docs: update old devnet and testnet url references (cherry picked from commitec621e71dc
) * fix: update devnet and testnet urls (cherry picked from commit7be3171f4a
) Co-authored-by: Josh Hundley <josh.hundley@gmail.com>
This commit is contained in:
@@ -5,13 +5,13 @@
|
||||
*/
|
||||
const endpoint = {
|
||||
http: {
|
||||
devnet: 'http://devnet.solana.com',
|
||||
testnet: 'http://testnet.solana.com',
|
||||
devnet: 'http://api.devnet.solana.com',
|
||||
testnet: 'http://api.testnet.solana.com',
|
||||
'mainnet-beta': 'http://api.mainnet-beta.solana.com',
|
||||
},
|
||||
https: {
|
||||
devnet: 'https://devnet.solana.com',
|
||||
testnet: 'https://testnet.solana.com',
|
||||
devnet: 'https://api.devnet.solana.com',
|
||||
testnet: 'https://api.testnet.solana.com',
|
||||
'mainnet-beta': 'https://api.mainnet-beta.solana.com',
|
||||
},
|
||||
};
|
||||
|
@@ -13,9 +13,13 @@ describe('Cluster Util', () => {
|
||||
});
|
||||
|
||||
it('devnet', () => {
|
||||
expect(clusterApiUrl()).to.eq('https://devnet.solana.com');
|
||||
expect(clusterApiUrl('devnet')).to.eq('https://devnet.solana.com');
|
||||
expect(clusterApiUrl('devnet', true)).to.eq('https://devnet.solana.com');
|
||||
expect(clusterApiUrl('devnet', false)).to.eq('http://devnet.solana.com');
|
||||
expect(clusterApiUrl()).to.eq('https://api.devnet.solana.com');
|
||||
expect(clusterApiUrl('devnet')).to.eq('https://api.devnet.solana.com');
|
||||
expect(clusterApiUrl('devnet', true)).to.eq(
|
||||
'https://api.devnet.solana.com',
|
||||
);
|
||||
expect(clusterApiUrl('devnet', false)).to.eq(
|
||||
'http://api.devnet.solana.com',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user