Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Tal Muskal committed Oct 9, 2022
1 parent b952e32 commit 00f95ae
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 24 deletions.
6 changes: 3 additions & 3 deletions docs/covax/become-a-bp.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ nodeos \
--http-validate-host=false \
--verbose-http-errors \
--enable-stale-production \
--wasm-runtime=eos-vm \
--wasm-runtime=eos-vm-jit \
--eos-vm-oc-enable \
--p2p-peer-address eosnode-covax.liquidapps.io:9876 \
--p2p-peer-address node1.eosdsp.com:9888 \
Expand Down Expand Up @@ -175,7 +175,7 @@ nodeos \
--http-validate-host=false \
--verbose-http-errors \
--enable-stale-production \
--wasm-runtime=eos-vm \
--wasm-runtime=eos-vm-jit \
--eos-vm-oc-enable \
--p2p-peer-address eosnode-covax.liquidapps.io:9876 \
--p2p-peer-address node1.eosdsp.com:9888 \
Expand Down Expand Up @@ -241,7 +241,7 @@ nodeos \
--http-validate-host=false \
--verbose-http-errors \
--enable-stale-production \
--wasm-runtime=eos-vm \
--wasm-runtime=eos-vm-jit \
--eos-vm-oc-enable \
--hard-replay-blockchain \
--p2p-peer-address eosnode-covax.liquidapps.io:9876 \
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/boxes/dapp-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dapp-services
* [`seed-microservices`](seed-microservices.md)
* [`core-extensions`](core-extensions.md)
* [`demux`](demux.md)
* [`firehose`](firehose.md)
* [`dfuse`](dfuse.md)
* [`seed-eos`](seed-eos.md)
* [`events`](events.md)
Expand All @@ -22,7 +23,6 @@ dapp-services
* [`client-lib-base`](client-lib-base.md)
* [`ipfs-daemon`](ipfs-daemon.md)
### npm packages
* [`@dfuse/client`](http://npmjs.com/package/@dfuse/client)
* [`big-integer`](http://npmjs.com/package/big-integer)
* [`bytebuffer`](http://npmjs.com/package/bytebuffer)
* [`cors`](http://npmjs.com/package/cors)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

dfuse
firehose
====================


Expand All @@ -16,11 +16,16 @@ dfuse
* [`log-extensions`](log-extensions.md)
### npm packages
* [`@dfuse/client`](http://npmjs.com/package/@dfuse/client)
* [`@grpc/proto-loader`](http://npmjs.com/package/@grpc/proto-loader)
* [`grpc`](http://npmjs.com/package/grpc)
* [`node-fetch`](http://npmjs.com/package/node-fetch)
* [`protobufjs`](http://npmjs.com/package/protobufjs)
* [`ws`](http://npmjs.com/package/ws)


## Install
```bash
zeus unbox dfuse
zeus unbox firehose
```


Expand All @@ -35,4 +40,4 @@ zeus unbox dfuse



## [Source](https://github.com/liquidapps-io/zeus-sdk/tree/master/boxes/groups/microservices/dfuse)
## [Source](https://github.com/liquidapps-io/zeus-sdk/tree/master/boxes/groups/microservices/firehose)
3 changes: 3 additions & 0 deletions docs/developers/boxes/liquidx.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ zeus unbox liquidx
"nodeos_port": 2424,
"secured": false,
"nodeos_state_history_port": 12341,
"firehose_grpc_address": "localhost",
"firehose_grpc_secured": false,
"firehose_grpc_port": 13036,
"nodeos_p2p_port": 12451,
"nodeos_endpoint": "http://localhost:2424",
"demux_port": 1232,
Expand Down
1 change: 1 addition & 0 deletions docs/developers/boxes/oracle-zeos.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ oracle-zeos

* [`ipfs-dapp-service`](ipfs-dapp-service.md)
* [`oracle-dapp-service`](oracle-dapp-service.md)
* [`storage-dapp-service`](storage-dapp-service.md)
### npm packages
* [`node-fetch`](http://npmjs.com/package/node-fetch)
* [`@liquidapps/dapp-client`](http://npmjs.com/package/@liquidapps/dapp-client)
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/cron-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ zeus test -c

## Deploy Contract
```bash
export DSP_ENDPOINT=https://kylin-dsp-2.liquidapps.io
export DSP_ENDPOINT=https://kylin-dsp-1.liquidapps.io
export KYLIN_TEST_ACCOUNT=<ACCOUNT_NAME>
export KYLIN_TEST_PUBLIC_KEY=<ACTIVE_PUBLIC_KEY>
# Buy RAM:
Expand Down
14 changes: 7 additions & 7 deletions docs/developers/dapp-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const fetch = require('node-fetch'); // node
const { TextEncoder, TextDecoder } = require('util'); // node only; native TextEncoder/Decoder
const defaultPrivateKey = "5JMUyaQ4qw6Zt816B1kWJjgRA5cdEE6PhCb2BW45rU8GBEDa1RC"; // bob
const signatureProvider = new JsSignatureProvider([defaultPrivateKey]);
const rpc = new JsonRpc('https://kylin-dsp-2.liquidapps.io', { fetch });
const rpc = new JsonRpc('https://kylin-dsp-1.liquidapps.io', { fetch });
const api = new Api({ rpc, signatureProvider, textDecoder: new TextDecoder(), textEncoder: new TextEncoder() });

(async () => {
Expand Down Expand Up @@ -235,8 +235,8 @@ const response = await service.push_liquid_account_transaction(
const response = await (await getClient()).dappNetwork.get_package_info( "cardgame1112", "accountless1" );
console.log(response);
// {
// api: 'https://kylin-dsp-2.liquidapps.io',
// package_json_uri: 'https://kylin-dsp-2.liquidapps.io/liquidaccts2.dsp-package.json',
// api: 'https://kylin-dsp-1.liquidapps.io',
// package_json_uri: 'https://kylin-dsp-1.liquidapps.io/liquidaccts2.dsp-package.json',
// package_id: 'liquidaccts2',
// service: 'accountless1',
// provider: 'heliosselene',
Expand Down Expand Up @@ -355,8 +355,8 @@ for (const row of response.rows) {
console.log(row);
// {
// id: 9,
// api_endpoint: 'https://kylin-dsp-2.liquidapps.io',
// package_json_uri: 'https://kylin-dsp-2.liquidapps.io/package1.dsp-package.json',
// api_endpoint: 'https://kylin-dsp-1.liquidapps.io',
// package_json_uri: 'https://kylin-dsp-1.liquidapps.io/package1.dsp-package.json',
// package_id: 'package1',
// service: 'ipfsservice1',
// provider: 'heliosselene',
Expand Down Expand Up @@ -387,8 +387,8 @@ for (const row of response.rows) {
console.log(row);
// {
// id: 9,
// api_endpoint: 'https://kylin-dsp-2.liquidapps.io',
// package_json_uri: 'https://kylin-dsp-2.liquidapps.io/package1.dsp-package.json',
// api_endpoint: 'https://kylin-dsp-1.liquidapps.io',
// package_json_uri: 'https://kylin-dsp-1.liquidapps.io/package1.dsp-package.json',
// package_id: 'package1',
// service: 'ipfsservice1',
// provider: 'heliosselene',
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/harmony-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ zeus test -c

## Deploy Contract
```bash
export DSP_ENDPOINT=https://kylin-dsp-2.liquidapps.io
export DSP_ENDPOINT=https://kylin-dsp-1.liquidapps.io
export KYLIN_TEST_ACCOUNT=<ACCOUNT_NAME>
export KYLIN_TEST_PUBLIC_KEY=<ACTIVE_PUBLIC_KEY>
# Buy RAM:
Expand Down
6 changes: 3 additions & 3 deletions docs/developers/storage-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ zeus test -c

## Deploy Contract
```bash
export DSP_ENDPOINT=https://kylin-dsp-2.liquidapps.io
export DSP_ENDPOINT=https://kylin-dsp-1.liquidapps.io
export KYLIN_TEST_ACCOUNT=<ACCOUNT_NAME>
export KYLIN_TEST_PUBLIC_KEY=<ACTIVE_PUBLIC_KEY>
# Buy RAM:
Expand Down Expand Up @@ -189,7 +189,7 @@ node test.js
```js
const { createClient } = require('@liquidapps/dapp-client');
const fetch = require('isomorphic-fetch');
const endpoint = "https://kylin-dsp-2.liquidapps.io";
const endpoint = "https://kylin-dsp-1.liquidapps.io";
const getClient = () => createClient( { network:"kylin", httpEndpoint: endpoint, fetch });

(async () => {
Expand Down Expand Up @@ -227,7 +227,7 @@ To fetch data, the following example can be used:
const fetch = require("node-fetch");

(async () => {
let res = await fetch('https://kylin-dsp-2.liquidapps.io/v1/dsp/liquidstorag/get_uri', {
let res = await fetch('https://kylin-dsp-1.liquidapps.io/v1/dsp/liquidstorag/get_uri', {
method: 'POST',
mode: 'cors',
body: JSON.stringify({ uri: "ipfs://zb2rhX28fttoDTUhpmHBgQa2PzjL1N3XUDaL9rZvx8dLZseji" })
Expand Down
8 changes: 4 additions & 4 deletions docs/developers/vaccounts-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ zeus test -c

## Deploy Contract
```bash
export DSP_ENDPOINT=https://kylin-dsp-2.liquidapps.io
export DSP_ENDPOINT=https://kylin-dsp-1.liquidapps.io
export KYLIN_TEST_ACCOUNT=<ACCOUNT_NAME>
export KYLIN_TEST_PUBLIC_KEY=<ACTIVE_PUBLIC_KEY>
# Buy RAM:
Expand Down Expand Up @@ -202,12 +202,12 @@ Push LiquidAccount actions easily with zeus's wrapper of the `dapp-client` libra
You also have the ability to store your private keys with or without encryption. If you choose to encrypt, you can pass the `--encrypted` flag when creating a new account to store the keys. You can provide a password by command line, or with the flag `--password`. If you use the account again, zeus will look for the key based on what network you are operating on. If it finds it, it will use that key to sign and prompt for a password if needed.

```bash
zeus vaccounts push-action <CONTRACT> <ACTION> <PAYLOAD> --dsp-url https://kylin-dsp-2.liquidapps.io
zeus vaccounts push-action <CONTRACT> <ACTION> <PAYLOAD> --dsp-url https://kylin-dsp-1.liquidapps.io

# optional flags:

--dsp-url # url to DAPP Service Provider's API endpoint
# default: https://kylin-dsp-2.liquidapps.io
# default: https://kylin-dsp-1.liquidapps.io
--private-key # LiquidAccount private key, can be provided or auto generated
# will be auto generated and stored in the storage path if not provided
--encrypted # Encrypt the LiquidAccount keys with a password
Expand All @@ -220,7 +220,7 @@ zeus vaccounts push-action <CONTRACT> <ACTION> <PAYLOAD> --dsp-url https://kylin

# Example:
zeus vaccounts push-action test1v regaccount '{"vaccount":"vaccount1"}'
zeus vaccounts push-action vacctstst123 regaccount '{"vaccount":"vaccount2"}' --private-key 5KJL... -u https://kylin-dsp-2.liquidapps.io
zeus vaccounts push-action vacctstst123 regaccount '{"vaccount":"vaccount2"}' --private-key 5KJL... -u https://kylin-dsp-1.liquidapps.io
zeus vaccounts push-action vacctstst123 regaccount '{"vaccount":"vaccount3"}' -u http://kylin-dsp-2.liquidapps.io/ --encrypted --network=kylin --password=password
```

Expand Down
2 changes: 1 addition & 1 deletion docs/dsps/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export SERVICE=ipfsservice1
# zeus command automatically adds QUOTA / DAPP, so we must add it here
export QUOTA="1.0000 QUOTA"
export MIN_STAKE_QUANTITY="10.0000 DAPP"
export EOS_ENDPOINT=https://kylin-dsp-2.liquidapps.io # or mainnet: https://api.eosnewyork.io
export EOS_ENDPOINT=https://kylin-dsp-1.liquidapps.io # or mainnet: https://api.eosnewyork.io
cleos -u $EOS_ENDPOINT push action dappservices regpkg "{\"newpackage\":{\"api_endpoint\":\"$DSP_ENDPOINT\",\"enabled\":0,\"id\":0,\"min_stake_quantity\":\"$MIN_STAKE_QUANTITY\",\"min_unstake_period\":\"$MIN_UNSTAKE_PERIOD\",\"package_id\":\"$PACKAGE_ID\",\"package_json_uri\":\"$PACKAGE_JSON_URI\",\"package_period\":\"$PACKAGE_PERIOD\",\"provider\":\"$DSP_ACCOUNT\",\"quota\":\"$QUOTA\",\"service\":\"$SERVICE\"},
\"annual_inflation\":$ANNUAL_INFLATION}" -p $DSP_ACCOUNT
```
Expand Down

0 comments on commit 00f95ae

Please sign in to comment.