fix: remove usage of api.*.testnet.solana.com

This commit is contained in:
Michael Vines 2019-07-24 16:38:57 -07:00
parent 6c32bca04d
commit 4dd8da8d8d
6 changed files with 10 additions and 12 deletions

View File

@ -13,8 +13,6 @@ const contractState = new solanaWeb3.Account();
let url;
url = 'http://localhost:8899';
//url = 'https://api.testnet.solana.com/master';
//url = 'https://api.testnet.solana.com';
const connection = new solanaWeb3.Connection(url);
function showBalance() {

View File

@ -24,7 +24,6 @@
// Fetch account balance
let url = 'http://localhost:8899';
//url = 'https://api.testnet.solana.com';
const connection = new solanaWeb3.Connection(url);
connection.getBalance(account.publicKey)

View File

@ -9,7 +9,7 @@ const solanaWeb3 = require('..');
const account = new solanaWeb3.Account();
let url;
url = 'https://api.testnet.solana.com';
url = 'https://testnet.solana.com:8443';
//url = 'http://localhost:8899';
const connection = new solanaWeb3.Connection(url);

View File

@ -6,9 +6,9 @@ import {testnetDefaultChannel} from '../../package.json';
* @private
*/
const endpoint = {
edge: 'https://api.edge.testnet.solana.com',
beta: 'https://api.beta.testnet.solana.com',
stable: 'https://api.testnet.solana.com',
edge: 'https://edge.testnet.solana.com:8443',
beta: 'https://beta.testnet.solana.com:8443',
stable: 'https://testnet.solana.com:8443',
};
/**

View File

@ -9,7 +9,7 @@ test('invalid', () => {
test('edge', () => {
expect(testnetChannelEndpoint('edge')).toEqual(
'https://api.edge.testnet.solana.com',
'https://edge.testnet.solana.com:8443',
);
});

View File

@ -6,12 +6,13 @@
export const url = 'http://localhost:8899/';
/*
export const url = 'https://edge.testnet.solana.com:8443/';
export const url = 'https://beta.testnet.solana.com:8443/';
export const url = 'https://testnet.solana.com:8443/';
*/
/*
export const url = 'http://edge.testnet.solana.com:8899/';
export const url = 'http://beta.testnet.solana.com:8899/';
export const url = 'http://testnet.solana.com:8899/';
export const url = 'https://api.edge.testnet.solana.com/';
export const url = 'https://api.beta.testnet.solana.com/';
export const url = 'https://api.testnet.solana.com/';
*/