From dc1b807ac633d28798ec6eaffc6bb2a3ac4f9fcf Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Thu, 5 Nov 2020 10:54:44 +0300 Subject: [PATCH] Update testnet URL in JS files --- es/ae/wallet.js | 2 +- es/chain/node.js | 2 +- es/node.js | 2 +- es/tx/tx.js | 2 +- es/tx/validator.js | 2 +- examples/browser/extension/src/js/background.js | 4 ++-- .../vuejs/connect-two-ae/identity/src/components/Home.vue | 3 +-- 7 files changed, 8 insertions(+), 9 deletions(-) diff --git a/es/ae/wallet.js b/es/ae/wallet.js index 9194bdf2bc..aa44813608 100644 --- a/es/ae/wallet.js +++ b/es/ae/wallet.js @@ -126,7 +126,7 @@ async function rpcAddress ({ params, session }) { * @param {Function} [options.onContract] - Contract method protector function * @return {Object} Wallet instance * @example Wallet({ - url: 'https://sdk-testnet.aepps.com/', + url: 'https://testnet.aeternity.io/', accounts: [MemoryAccount({keypair})], address: keypair.publicKey, onTx: confirm, diff --git a/es/chain/node.js b/es/chain/node.js index 232751c4ff..8753efb985 100644 --- a/es/chain/node.js +++ b/es/chain/node.js @@ -227,7 +227,7 @@ async function resolveName (nameOrId, prefix, { verify = false, resolveByNode = * @rtype Stamp * @param {Object} [options={}] - Initializer object * @return {Object} ChainNode instance - * @example ChainNode({url: 'https://sdk-testnet.aepps.com/'}) + * @example ChainNode({url: 'https://testnet.aeternity.io/'}) */ const ChainNode = Chain.compose(Oracle, TransactionValidator, NodePool, { init ({ verifyTx = true }) { diff --git a/es/node.js b/es/node.js index a8e7cb568c..6095dfb948 100644 --- a/es/node.js +++ b/es/node.js @@ -112,7 +112,7 @@ function axiosError (handler) { * @param {String} options.internalUrl - Base URL for internal requests * @param {String} options.axiosConfig - Object with axios configuration. Example { config: {}, errorHandler: (err) => throw err } * @return {Object} Node client - * @example Node({url: 'https://sdk-testnet.aepps.com'}) + * @example Node({url: 'https://testnet.aeternity.io'}) */ const Node = stampit(AsyncInit, { async init ({ url = this.url, internalUrl = this.internalUrl, axiosConfig: { config, errorHandler } = {} }) { diff --git a/es/tx/tx.js b/es/tx/tx.js index 95d6e94733..76cffa41c5 100644 --- a/es/tx/tx.js +++ b/es/tx/tx.js @@ -504,7 +504,7 @@ async function prepareTxParams (txType, { senderId, nonce: n, ttl: t, fee: f, ga * @param {String} options.url - Node url * @param {String} options.internalUrl - Node internal url * @return {Object} Transaction instance - * @example Transaction({url: 'https://sdk-testnet.aepps.com/'}) + * @example Transaction({url: 'https://testnet.aeternity.io/'}) */ const Transaction = ChainNode.compose(Tx, { init ({ nativeMode = true, showWarning = false }) { diff --git a/es/tx/validator.js b/es/tx/validator.js index f599a2ee42..2a34a5327a 100644 --- a/es/tx/validator.js +++ b/es/tx/validator.js @@ -217,7 +217,7 @@ function customVerification (txType, data) { * @param {Object} [options.url] - Node url * @param {Object} [options.internalUrl] - Node internal url * @return {Object} Transaction Validator instance - * @example TransactionValidator({url: 'https://sdk-testnet.aepps.com'}) + * @example TransactionValidator({url: 'https://testnet.aeternity.io'}) */ const TransactionValidator = NodePool.compose({ methods: { diff --git a/examples/browser/extension/src/js/background.js b/examples/browser/extension/src/js/background.js index 1e8402af70..06ae73d2d6 100644 --- a/examples/browser/extension/src/js/background.js +++ b/examples/browser/extension/src/js/background.js @@ -52,8 +52,8 @@ const accounts = [ account2 ] // Send wallet connection info to Aepp throug content script -const NODE_URL = 'https://sdk-testnet.aepps.com' -const NODE_INTERNAL_URL = 'https://sdk-testnet.aepps.com' +const NODE_URL = 'https://testnet.aeternity.io' +const NODE_INTERNAL_URL = 'https://testnet.aeternity.io' const COMPILER_URL = 'https://compiler.aepps.com' async function init () { diff --git a/examples/browser/vuejs/connect-two-ae/identity/src/components/Home.vue b/examples/browser/vuejs/connect-two-ae/identity/src/components/Home.vue index a7996511d7..6be3bd497a 100644 --- a/examples/browser/vuejs/connect-two-ae/identity/src/components/Home.vue +++ b/examples/browser/vuejs/connect-two-ae/identity/src/components/Home.vue @@ -97,9 +97,8 @@ balance: null, nodeInfoResponse: null, height: null, - url: 'https://sdk-testnet.aepps.com', + url: 'https://testnet.aeternity.io', mainNetUrl: 'https://mainnet.aeternity.io', - internalUrl: 'https://testnet.aeternity.io', compilerUrl: 'https://compiler.aepps.com', aeppUrl: '//0.0.0.0:9001' }