Skip to content

Commit

Permalink
Merge pull request #1085 from aeternity/feature/update-testnet-url
Browse files Browse the repository at this point in the history
Update testnet URL in JS files
  • Loading branch information
mradkov authored Nov 5, 2020
2 parents c5e16aa + dc1b807 commit 58a6b15
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion es/ae/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion es/chain/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
2 changes: 1 addition & 1 deletion es/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } = {} }) {
Expand Down
2 changes: 1 addition & 1 deletion es/tx/tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
2 changes: 1 addition & 1 deletion es/tx/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions examples/browser/extension/src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 58a6b15

Please sign in to comment.