Update JS SDK API to the new version (#61)

* FluenceClient renamed to FluencePeer.
* Using Aqua compiler is now the recommended way for all interaction with the network, including services registration and sending requests
* Old API (sendParticle etc) has been removed
* Opaque seed format replaced with 32 byte ed25519 private key. KeyPair introduced
* Documentation update
This commit is contained in:
Pavel
2021-09-08 12:42:30 +03:00
committed by GitHub
parent c7ab9d56ee
commit 6436cd5684
37 changed files with 1880 additions and 2773 deletions

View File

@ -14,14 +14,12 @@
* limitations under the License.
*/
export { seedToPeerId, peerIdToSeed, generatePeerId } from './internal/peerIdUtils';
export { PeerIdB58 } from './internal/commonTypes';
export { SecurityTetraplet } from '@fluencelabs/avm';
export * from './api';
export * from './FluenceClient';
export * from './internal/builtins';
import log, { LogLevelDesc } from 'loglevel';
export { KeyPair } from './internal/KeyPair';
export { FluencePeer, AvmLoglevel } from './internal/FluencePeer';
export { PeerIdB58, CallParams } from './internal/commonTypes';
export const setLogLevel = (level: LogLevelDesc) => {
log.setLevel(level);
};