Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realign 5.0.0 #701

Merged
merged 4 commits into from
Oct 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# [5.0.0](https://github.com/aeternity/aepp-sdk-js/compare/4.7.0...5.0.0) (2019-10-04)


### Bug Fixes

* **rpc:** fix resolution rpc ops ([#669](https://github.com/aeternity/aepp-sdk-js/issues/669)) ([abd7c56](https://github.com/aeternity/aepp-sdk-js/commit/abd7c56))


### Code Refactoring

* **ACI:** rework Sophia Option type representation ([#691](https://github.com/aeternity/aepp-sdk-js/issues/691)) ([0dbb2fe](https://github.com/aeternity/aepp-sdk-js/commit/0dbb2fe))


### Features

* **AENS:** Add ability to spend by name ([#682](https://github.com/aeternity/aepp-sdk-js/issues/682)) ([0d43804](https://github.com/aeternity/aepp-sdk-js/commit/0d43804))
* **AENS:** Add ability to claim contract, oracle, SC ([#671](https://github.com/aeternity/aepp-sdk-js/issues/671)) ([49fd0fd](https://github.com/aeternity/aepp-sdk-js/commit/49fd0fd))
* **GA:** enbale GA ([#692](https://github.com/aeternity/aepp-sdk-js/issues/692)) ([eded912](https://github.com/aeternity/aepp-sdk-js/commit/eded912))
* **Lima:** Lima compatibility ([#683](https://github.com/aeternity/aepp-sdk-js/issues/683)) ([a88042e](https://github.com/aeternity/aepp-sdk-js/commit/a88042e)), closes [#632](https://github.com/aeternity/aepp-sdk-js/issues/632) [#653](https://github.com/aeternity/aepp-sdk-js/issues/653) [#658](https://github.com/aeternity/aepp-sdk-js/issues/658) [#660](https://github.com/aeternity/aepp-sdk-js/issues/660) [#680](https://github.com/aeternity/aepp-sdk-js/issues/680) [#693](https://github.com/aeternity/aepp-sdk-js/issues/693) [#687](https://github.com/aeternity/aepp-sdk-js/issues/687)
- AENS auction support
- compiler 4.0.0 support
- node 5.0.0 support
- SDK use `FATE` for contract by default
* **AE**: Add pointers verification for spend by name

### BREAKING CHANGES

* **aci:** Change Sophia option type representation in ACI
```js
// from
await contract.methods.optionFn(Promise.resolve(1) || Promise.reject())
// to
await contract.methods.optionFn(1 || undefined)
```



# [5.0.0-next.1](https://github.com/aeternity/aepp-sdk-js/compare/4.6.0...4.7.0-next.1) (2019-09-10)


Expand Down
1 change: 0 additions & 1 deletion docs/api/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/account
Account module

**Export**: Account
**Example**
```js
import Account from '@aeternity/aepp-sdk/es/account'
Expand Down
1 change: 0 additions & 1 deletion docs/api/account/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/account/memory
Memory Account module

**Export**: MemoryAccount
**Example**
```js
import MemoryAccount from '@aeternity/aepp-sdk/es/account/memory'
Expand Down
1 change: 0 additions & 1 deletion docs/api/account/selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Accounts Selector module

This is the complement to [@aeternity/aepp-sdk/es/accounts](#module_@aeternity/aepp-sdk/es/accounts).

**Export**: Selector
**Example**
```js
import Selector from '@aeternity/aepp-sdk/es/account/selector'
Expand Down
1 change: 0 additions & 1 deletion docs/api/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/accounts
Accounts module

**Export**: Accounts
**Example**
```js
import Accounts from '@aeternity/aepp-sdk/es/accounts'
Expand Down
29 changes: 22 additions & 7 deletions docs/api/ae.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
## @aeternity/aepp-sdk/es/ae
Ae module

**Export**: Ae
**Example**
```js
import Ae from '@aeternity/aepp-sdk/es/ae'
```

* [@aeternity/aepp-sdk/es/ae](#module_@aeternity/aepp-sdk/es/ae)
* [Ae([options])](#exp_module_@aeternity/aepp-sdk/es/ae--Ae) ⇒ `Object` ⏏
* [.destroyInstance()](#module_@aeternity/aepp-sdk/es/ae--Ae+destroyInstance) ⇒ `void`
* _async_
* [.send(tx, [options])](#module_@aeternity/aepp-sdk/es/ae--Ae+send) ⇒ `String` \| `String`
* [.spend(amount, recipientId, options)](#module_@aeternity/aepp-sdk/es/ae--Ae+spend) ⇒ `String` \| `String`
* [.transferFunds(percentage, recipientId, options)](#module_@aeternity/aepp-sdk/es/ae--Ae+transferFunds) ⇒ `String` \| `String`
* _instance_
* [.destroyInstance()](#module_@aeternity/aepp-sdk/es/ae--Ae+destroyInstance) ⇒ `void`
* _async_
* [.send(tx, [options])](#module_@aeternity/aepp-sdk/es/ae--Ae+send) ⇒ `String` \| `String`
* [.spend(amount, recipientId, options)](#module_@aeternity/aepp-sdk/es/ae--Ae+spend) ⇒ `String` \| `String`
* [.transferFunds(percentage, recipientId, options)](#module_@aeternity/aepp-sdk/es/ae--Ae+transferFunds) ⇒ `String` \| `String`
* _inner_
* [~resolveRecipientName(nameOrAddress, verify)](#module_@aeternity/aepp-sdk/es/ae--Ae..resolveRecipientName) ⇒ `String`

<a id="exp_module_@aeternity/aepp-sdk/es/ae--Ae"></a>

Expand Down Expand Up @@ -76,7 +78,7 @@ Send tokens to another account
| Param | Type | Description |
| --- | --- | --- |
| amount | `Number` \| `String` | Amount to spend |
| recipientId | `String` | Address of recipient account |
| recipientId | `String` | Address or Name of recipient account |
| options | `Object` | Options |

<a id="module_@aeternity/aepp-sdk/es/ae--Ae+transferFunds"></a>
Expand All @@ -95,3 +97,16 @@ Send a percentage of funds to another account
| recipientId | `String` | Address of recipient account |
| options | `Object` | Options |

<a id="module_@aeternity/aepp-sdk/es/ae--Ae..resolveRecipientName"></a>

#### Ae~resolveRecipientName(nameOrAddress, verify) ⇒ `String`
Resolve AENS name and return name hash

**Kind**: inner method of [`Ae`](#exp_module_@aeternity/aepp-sdk/es/ae--Ae)
**Returns**: `String` - Address or AENS name hash

| Param | Type |
| --- | --- |
| nameOrAddress | `String` |
| verify | |

20 changes: 19 additions & 1 deletion docs/api/ae/aens.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ The high-level description of the naming system is
https://github.com/aeternity/protocol/blob/master/AENS.md in the protocol
repository.

**Export**: Aens
**Example**
```js
import Aens from '@aeternity/aepp-sdk/es/ae/aens'
```

* [@aeternity/aepp-sdk/es/ae/aens](#module_@aeternity/aepp-sdk/es/ae/aens)
* [Aens([options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--Aens) ⇒ `Object` ⏏
* _global_
* [exports.isNameValid(name, [throwError])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--exports.isNameValid) ⇒ ⏏
* _instance_
* [.update(nameId, target, options)](#exp_module_@aeternity/aepp-sdk/es/ae/aens--update) ⇒ `Object` ⏏
* [.query(name)](#exp_module_@aeternity/aepp-sdk/es/ae/aens--query) ⇒ `Promise.&lt;Object&gt;` ⏏
Expand All @@ -40,6 +41,23 @@ Aens provides name-system related methods atop
| --- | --- | --- | --- |
| [options] | `Object` | <code>{}</code> | Initializer object |

<a id="exp_module_@aeternity/aepp-sdk/es/ae/aens--exports.isNameValid"></a>

### exports.isNameValid(name, [throwError]) ⇒ ⏏
Is name valid

**Kind**: global method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
**Returns**: Boolean
**Throws**:

- Error


| Param | Type | Default | Description |
| --- | --- | --- | --- |
| name | `string` | | |
| [throwError] | `boolean` | <code>true</code> | Throw error on invalid |

<a id="exp_module_@aeternity/aepp-sdk/es/ae/aens--update"></a>

### .update(nameId, target, options) ⇒ `Object` ⏏
Expand Down
1 change: 0 additions & 1 deletion docs/api/ae/aepp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/ae/aepp
Aepp module

**Export**: Aepp
**Example**
```js
import Ae from '@aeternity/aepp-sdk/es/ae/aepp'
Expand Down
3 changes: 2 additions & 1 deletion docs/api/ae/contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Contract module - routines to interact with the æternity contract
High level documentation of the contracts are available at
https://github.com/aeternity/protocol/tree/master/contracts and

**Export**: Contract
**Example**
```js
import Contract from '@aeternity/aepp-sdk/es/ae/contract' (Using tree-shaking)
Expand Down Expand Up @@ -93,6 +92,7 @@ Encode call data for contract call
| args | `Array` | | Argument's for call |
| [options] | `Object` | <code>{}</code> | Options |
| [options.filesystem] | `Object` | <code>{}</code> | Contract external namespaces map |
| [options.backend] | `Object` | <code>&#x27;fate&#x27;</code> | Compiler backend |

<a id="exp_module_@aeternity/aepp-sdk/es/ae/contract--contractDecodeData"></a>

Expand Down Expand Up @@ -215,6 +215,7 @@ Compile contract source code
| source | `String` | | Contract sourece code |
| [options] | `Object` | <code>{}</code> | Transaction options (fee, ttl, gas, amount, deposit) |
| [options.filesystem] | `Object` | <code>{}</code> | Contract external namespaces map* @return {Promise<Object>} Result object |
| [options.backend] | `Object` | <code>&#x27;aevm&#x27;</code> | Contract backend version (aevm|fate) |

**Example**
```js
Expand Down
18 changes: 17 additions & 1 deletion docs/api/ae/oracle.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ The high-level description of the oracle system is
https://github.com/aeternity/protocol/blob/master/ORACLE.md in the protocol
repository.

**Export**: Oracle
**Example**
```js
import Oracle from '@aeternity/aepp-sdk/es/ae/oracle'
Expand All @@ -18,6 +17,7 @@ import Oracle from '@aeternity/aepp-sdk/es/ae/oracle'
* _instance_
* _async_
* [.getOracleObject(oracleId)](#exp_module_@aeternity/aepp-sdk/es/ae/oracle--getOracleObject) ⇒ `Promise.&lt;Object&gt;` ⏏
* [.exports.pollForQueries(oracleId, onQuery, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/oracle--exports.pollForQueries) ⇒ `function` ⏏
* [.getQueryObject(oracleId, queryId)](#exp_module_@aeternity/aepp-sdk/es/ae/oracle--getQueryObject) ⇒ `Promise.&lt;Object&gt;` ⏏
* [.exports.pollForQueryResponse(oracleId, queryId, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/oracle--exports.pollForQueryResponse) ⇒ `Promise.&lt;Object&gt;` ⏏
* [.registerOracle(queryFormat, responseFormat, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/oracle--registerOracle) ⇒ `Promise.&lt;Object&gt;` ⏏
Expand Down Expand Up @@ -54,6 +54,22 @@ Constructor for Oracle Object (helper object for using Oracle)
| --- | --- | --- |
| oracleId | `String` | Oracle public key |

<a id="exp_module_@aeternity/aepp-sdk/es/ae/oracle--exports.pollForQueries"></a>

### .exports.pollForQueries(oracleId, onQuery, [options]) ⇒ `function` ⏏
Poll for oracle queries

**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/oracle`](#module_@aeternity/aepp-sdk/es/ae/oracle)
**Returns**: `function` - stopPolling - Stop polling function
**Category**: async

| Param | Type | Description |
| --- | --- | --- |
| oracleId | `String` | Oracle public key |
| onQuery | `function` | OnQuery callback |
| [options] | `Object` | Options object |
| [options.interval] | `Object` | Poll interval(default: 5000) |

<a id="exp_module_@aeternity/aepp-sdk/es/ae/oracle--getQueryObject"></a>

### .getQueryObject(oracleId, queryId) ⇒ `Promise.&lt;Object&gt;` ⏏
Expand Down
1 change: 0 additions & 1 deletion docs/api/ae/universal.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/ae/universal
Universal module

**Export**: Universal
**Example**
```js
import Ae from '@aeternity/aepp-sdk/es/ae/universal'
Expand Down
1 change: 0 additions & 1 deletion docs/api/chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/chain
Chain module

**Export**: Chain
**Example**
```js
import Chain from '@aeternity/aepp-sdk/es/chain'
Expand Down
1 change: 0 additions & 1 deletion docs/api/chain/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ChainNode module

This is the complement to [@aeternity/aepp-sdk/es/chain](#module_@aeternity/aepp-sdk/es/chain).

**Export**: ChainNode
**Example**
```js
import ChainNode from '@aeternity/aepp-sdk/es/chain/node'
Expand Down
1 change: 0 additions & 1 deletion docs/api/channel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/channel/index
Channel module

**Export**: Channel
**Example**
```js
import Channel from '@aeternity/aepp-sdk/es/channel/index'
Expand Down
1 change: 0 additions & 1 deletion docs/api/contract/aci.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/contract/aci
ContractACI module

**Export**: ContractACI
**Example**
```js
import ContractACI from '@aeternity/aepp-sdk/es/contract/aci'
Expand Down
1 change: 0 additions & 1 deletion docs/api/contract/compiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ContractCompilerAPI module

This is the complement to [@aeternity/aepp-sdk/es/contract](#module_@aeternity/aepp-sdk/es/contract).

**Export**: ContractCompilerAPI
**Example**
```js
import ContractCompilerAPI from '@aeternity/aepp-sdk/es/contract/compiler'
Expand Down
2 changes: 1 addition & 1 deletion docs/api/contract/ga.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { GeneralizeAccount } from '@aeternity/aepp-sdk' (Using bundle)
GeneralizeAccount Stamp

Provide Generalize Account implementation
[module:@aeternity/aepp-sdk/es/contract.ga](module:@aeternity/aepp-sdk/es/contract.ga) clients.
[@aeternity/aepp-sdk/es/contract/ga](#module_@aeternity/aepp-sdk/es/contract/ga) clients.

**Kind**: Exported function
**Returns**: `Object` - GeneralizeAccount instance
Expand Down
1 change: 0 additions & 1 deletion docs/api/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/node
Node module

**Export**: Node
**Example**
```js
import Node from '@aeternity/aepp-sdk/es/node'
Expand Down
1 change: 0 additions & 1 deletion docs/api/oracle.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/oracle
Oracle Base module

**Export**: Contract
**Example**
```js
import ContractBase from '@aeternity/aepp-sdk/es/oracle'
Expand Down
1 change: 0 additions & 1 deletion docs/api/oracle/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ OracleNodeAPI module

This is the complement to [@aeternity/aepp-sdk/es/oracle](#module_@aeternity/aepp-sdk/es/oracle).

**Export**: OracleNodeAPI
**Example**
```js
import OracleNodeAPI from '@aeternity/aepp-sdk/es/oracle/node'
Expand Down
1 change: 0 additions & 1 deletion docs/api/rpc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/rpc/client
RPC client module

**Export**: RpcClient
**Example**
```js
import RpcClient from '@aeternity/aepp-sdk/es/rpc/client'
Expand Down
1 change: 0 additions & 1 deletion docs/api/tx.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/tx
Tx module

**Export**: Tx
**Example**
```js
import Tx from '@aeternity/aepp-sdk/es/tx'
Expand Down
1 change: 0 additions & 1 deletion docs/api/tx/builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/tx/builder
JavaScript-based Transaction builder

**Export**: TxBuilder
**Example**
```js
import Transaction from '@aeternity/aepp-sdk/es/tx/builder'
Expand Down
1 change: 0 additions & 1 deletion docs/api/tx/builder/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/tx/builder/helpers
JavaScript-based Transaction builder helper function's

**Export**: TxBuilderHelper
**Example**
```js
import TxBuilderHelper from '@aeternity/aepp-sdk/es/tx/builder/helpers'
Expand Down
1 change: 0 additions & 1 deletion docs/api/tx/builder/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/tx/builder/schema
Transaction Schema for TxBuilder

**Export**: TxSchema
**Example**
```js
import TxSchema from '@aeternity/aepp-sdk/es/tx/builder/schema'
Expand Down
1 change: 0 additions & 1 deletion docs/api/tx/tx.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/tx/tx
Transaction module

**Export**: Transaction
**Example**
```js
import Transaction from '@aeternity/aepp-sdk/es/tx/tx'
Expand Down
1 change: 0 additions & 1 deletion docs/api/tx/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
## @aeternity/aepp-sdk/es/tx/validator
Transaction validator

**Export**: TransactionValidator
**Example**
```js
import TransactionValidator from '@aeternity/aepp-sdk/es/tx/validator'
Expand Down
Loading