Skip to content

Commit

Permalink
Update testnet URL
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Oct 29, 2020
1 parent 6475357 commit 7bb823f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Build Status](https://travis-ci.com/aeternity/aepp-sdk-js.svg?branch=develop)](http://travis-ci.com/aeternity/aepp-sdk-js?branch=develop)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![npm](https://img.shields.io/npm/v/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk)
[![npm](https://img.shields.io/npm/l/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk)
[![npm](https://img.shields.io/npm/l/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk)
[![Greenkeeper badge](https://badges.greenkeeper.io/aeternity/aepp-sdk-js.svg)](https://greenkeeper.io/)
JavaScript SDK for the revolutionary [æternity] blockchain, targeting the
[æternity node] implementation. Aepp-sdk is [hosted on GitHub].
Expand Down Expand Up @@ -114,7 +114,7 @@ import MemoryAccount from '@aeternity/aepp-sdk/es/account/memory' // or other fl
import Node from '@aeternity/aepp-sdk/es/node' // or other flavor
import { AE_AMOUNT_FORMATS } from '@aeternity/aepp-sdk/es/utils/amount-formatter'

const NODE_URL = 'https://sdk-testnet.aepps.com'
const NODE_URL = 'https://testnet.aeternity.io'
const COMPILER_URL = 'COMPILER_URL' // required for using Contract
const ACCOUNT = MemoryAccount({ keypair: { secretKey: 'A_PRIV_KEY', publicKey: 'A_PUB_ADDRESS' } })

Expand All @@ -128,7 +128,7 @@ const ACCOUNT = MemoryAccount({ keypair: { secretKey: 'A_PRIV_KEY', publicKey: '

await sdkInstance.height() // get top block height
console.log('Current Block Height:', height)

await sdkInstance.spend(1, 'ak_asd23dasdasda...', { denomination: AE_AMOUNT_FORMATS.AE }) // spend one AE

})()
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In order to cater more specific needs, it is recommended to refer to the
### Testing Networks
When initialising a client, to test, you can use Aeternity's Test Nework URLs:

### Testnet (https://sdk-testnet.aepps.com)
### Testnet (https://testnet.aeternity.io)
You can use this URL with any releasee on [npmjs](https://www.npmjs.com/package/@aeternity/aepp-sdk). It offers the last stable version of [Node](https://github.com/aeternity/aeternity), used by all of of Aeternity's Dev Tools.

## Guides
Expand Down
4 changes: 2 additions & 2 deletions docs/contrib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ import MemoryAccount from '@aeternity/aepp-sdk/es/account/memory.js'
// make a "mixed flavor" containing Wallet and Contracts flavors
Wallet.compose(Contract)({
url: 'https://sdk-testnet.aepps.com',
internalUrl: 'https://sdk-testnet.aepps.com',
url: 'https://testnet.aeternity.io',
internalUrl: 'https://testnet.aeternity.io',
accounts: [MemoryAccount({keypair: {secretKey: account.priv, publicKey: account.pub}})],
address: account.pub,
onTx: true, // or a function to Guard the Rpc client
Expand Down
22 changes: 11 additions & 11 deletions docs/guides/how-to-build-an-wallet-app-or-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const readyStateCheckInterval = setInterval(function () {

```
- Then we need to initialize `Waellet` stamp in our extension and subscribe for new `runtime` connection's
After connection will be established we can start to send `announcePresence` message to the `page` to let `Aepp` know about `Waellet`
After connection will be established we can start to send `announcePresence` message to the `page` to let `Aepp` know about `Waellet`
```js
// background.js

Expand All @@ -84,8 +84,8 @@ const accounts = [
// account,
account2
]
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'

// Init extension stamp from sdk
Expand Down Expand Up @@ -121,8 +121,8 @@ RpcWallet({
// connected: { // Connected accounts
// 'ak_1asdasd...': {},
// 'ak_1asdasdf23...': {}
// }
// }
// }
// }
// })
action.accept()
} else {
Expand All @@ -135,11 +135,11 @@ RpcWallet({
// Here we can provide account for signing if it's not stored inside the SDK instance
// To do that you need to create MemoryAccount instance and provide it as second argument of accept function
// if (isInStorage(params.onAccount)) {
// First argument is encode transaction which will be using instead of one from AEPP (if provided)
// First argument is encode transaction which will be using instead of one from AEPP (if provided)
// Then this signing request will be signed using the provide MemoryAccount
// If you do not provide account manually SDK will try to find it inside the instance, else throw error
// action(null, { onAccount: MemoryAccount({ keypair }) })
// }
// }
accept()
} else {
deny()
Expand Down Expand Up @@ -205,8 +205,8 @@ RpcWallet({
// connected: { // Connected accounts
// 'ak_1asdasd...': {},
// 'ak_1asdasdf23...': {}
// }
// }
// }
// }
// })
accept()
} else { deny() }
Expand All @@ -217,11 +217,11 @@ RpcWallet({
// Here we can provide account for signing if it's not stored inside the SDK instance
// To do that you need to create MemoryAccount instance and provide it as second argument of accept function
// if (isInStorage(params.onAccount)) {
// First argument is encode transaction which will be using instead of one from AEPP (if provided)
// First argument is encode transaction which will be using instead of one from AEPP (if provided)
// Then this signing request will be signed using the provide MemoryAccount
// If you do not provide account manually SDK will try to find it inside the instance, else throw error
// action(null, { onAccount: MemoryAccount({ keypair }) })
// }
// }
accept()
} else {
deny()
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/import-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ code, such as the ones provided in the [`examples/node` directory](../examples/n
```js
const { Universal: Ae, MemoryAccount, Node } = require('@aeternity/aepp-sdk')

const node1 = Node({ url: 'https://sdk-testnet.aepps.com', internalUrl: 'https://sdk-testnet.aepps.com' })
const node1 = Node({ url: 'https://testnet.aeternity.io', internalUrl: 'https://testnet.aeternity.io' })
// const node2 = ...

const acc1 = MemoryAccount({ keypair: 'YOUR_KEYPAIR_OBJECT' })
// const acc2 = ...
Promise.all([
node1
]).then(nodes => {
Ae({
Ae({
nodes: [
{ name: 'someNode', instance: nodes[0] },
],
Expand All @@ -32,11 +32,11 @@ Promise.all([

// same with async
const main = async () => {
const node1 = await Node({ url: 'https://sdk-testnet.aepps.com', internalUrl: 'https://sdk-testnet.aepps.com' })
const node1 = await Node({ url: 'https://testnet.aeternity.io', internalUrl: 'https://testnet.aeternity.io' })
// const node2 = ...

const acc1 = MemoryAccount({ keypair: 'YOUR_KEYPAIR_OBJECT' })
// const acc2 = ...
// const acc2 = ...

const client = await Ae({
nodes: [
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/import-script-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The bundle will assign the SDK to a global `var` called `Ae`, and you can use it
<!-- include latest SDK version -->
<script src="https://unpkg.com/@aeternity/aepp-sdk/dist/aepp-sdk.browser-script.js"></script>
<script type="text/javascript">
Ae.Node({ url: 'https://sdk-testnet.aepps.com' }).then(node => {
Ae.Node({ url: 'https://testnet.aeternity.io' }).then(node => {
Ae.Universal({
nodes: [{ name: 'local', instance: node }]
}).then(aeInstance => {
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/import-tree-shaking.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import MemoryAccount from '@aeternity/aepp-sdk/es/account/memory'

// interact with aeternity's blockchain
(async () => {
const node = await Node({ url: 'https://sdk-testnet.aepps.com' })
const node = await Node({ url: 'https://testnet.aeternity.io' })
const account = MemoryAccount({ keypair: 'YOUR_KEYPAIR' })
// Init client
const client = await Universal({
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/import-vuejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
}
},
async mounted () {
const node = await Node({ url: 'https://sdk-testnet.aepps.com' })
const node = await Node({ url: 'https://testnet.aeternity.io' })
const account = MemoryAccount({ keypair: 'YOUR_KEYPAIR' })
// Init client
Expand Down

0 comments on commit 7bb823f

Please sign in to comment.