You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/versioned_docs/version-1.0.0/4_00_UC_OVERVIEW.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,22 @@ sidebar_label: Overview
5
5
original_id: uc_overview
6
6
---
7
7
8
-
The OpenST protocol allows for the staking of $OST⍺ on Ropsten Ethereum that enables Branded Tokens to be created, or "minted" on the OpenST network of sidechains. You can learn more about the OpenST Protocol [here.](https://openst.org/). The value of the utility tokens on the OpenST Utility Chain (UC) is backed by the $OST⍺ on the OpenST Value Chain (VC) - Ropsten Ethereum.
8
+
The OpenST protocol allows for the staking of $OST⍺ on Ropsten Ethereum that enables Branded Tokens to be created, or "minted" on the OpenST network of sidechains. You can learn more about the OpenST Protocol [here.](https://openst.org/) The value of the utility tokens on the OpenST Utility Chain (UC) is thus backed by the staked $OST⍺ on the OpenST Value Chain (VC) - Ropsten Ethereum.
9
9
10
10
The UC needs to support lower transaction fees and lower transaction confirmation times than the VC. OpenST Protocol hence is to enable micro-transactions within mainstream consumer applications using the utility tokens. For the utility chain we consider an Ethereum-based chain consensus engine which seals blocks cryptographically by Proof-of-Authority.
11
11
12
12
Proof-of-Authority is not Byzantine fault-tolerant, but it can still be considered useful in the context of UCs. The UC is cryptographically validated by a known set of validators then those validators can each report the block hashes they have seen on public Ethereum and a block hash is considered final when consensus among the validators is reached.
13
13
14
-
To understand more about the details on the protocol please refer to the OpenST [white paper.](https://ost.com/documents)
14
+
To understand more about the protocol refer to the OpenST [<u>white paper.</u>](https://ost.com/documents)
15
15
16
16
## Prerequisites
17
17
18
18
To be able to sync with the UC and also deploy contracts to it, you will need to install the following.
Executing this script will sycn your geth node and store the UC `chaindata` locally at `~/uc_node_1409/geth`
127
+
Executing this script will sycn your geth node and store the UC `chaindata` locally at `~/uc_node_1409/geth`. This might be different in your case depending on how you decide to set it up.
128
128
129
129
130
130
2. To execute the `setup_utility_chain_1409` bash script you must first modify the rights.
@@ -146,7 +146,7 @@ WS-RPC server listening port (default: 8546)
146
146
Extra Args if any:
147
147
```
148
148
149
-
As the script starts the geth node sync with the UC, copy the inter-process communication (`IPC`) path displayed. Learn more about [inter-process communication](https://en.wikipedia.org/wiki/Inter-process_communication). You will find the `IPC` endpoint path beside `IPC endpoint opened`in the console; copy the `URL` path, so that we can use it later for contract deployment. The `URL` path is the (local) path to attach a geth node from which you will later deploy sample contract on the UC.
149
+
As the script starts the geth node sync with the UC, copy the inter-process communication (`IPC`) path displayed. Learn more about [<u>inter-process communication</u>](https://en.wikipedia.org/wiki/Inter-process_communication). You will find the `IPC` endpoint path beside `IPC endpoint opened`in the console; copy the `URL` path, so that we can use it later for contract deployment. The `URL` path is the (local) path to attach a geth node from which you will later deploy sample contract on the UC.
150
150
151
151
The details below are specific to the `user` executing the script.
152
152
@@ -187,17 +187,15 @@ geth attach ~/uc_node_1409/geth.ipc // the IPC URL may be different in your case
187
187
188
188
> eth.syncing
189
189
{
190
-
currentBlock: 4279201,
191
-
highestBlock: 5009971,
192
-
knownStates: 3167,
193
-
pulledStates: 2651,
194
-
startingBlock: 4276705
190
+
startingBlock: 300,
191
+
currentBlock: 312,
192
+
highestBlock: 512
195
193
}
196
194
197
195
> eth.blockNumber
198
196
3628737
199
197
```
200
-
The responses give the required information on the status of node's sync with the UC. Make sure you are in sync with the latest blocks before proceeding with deploying contracts on the UC.
198
+
Take a look at [<u>eth.syncing</u>](https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethsyncing) and [<u>eth.blockNumber</u>](https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethsyncing) to know what they mean. The responses give the required information on the status of node's sync with the UC. Make sure you are in sync with the latest blocks before proceeding with deploying contracts on the UC.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-1.0.0/4_02_UC_DEPLOY.md
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -36,43 +36,42 @@ cat basicContract.js
36
36
geth attach ~/uc_node_1409/geth.ipc //this path will be different in your case
37
37
```
38
38
39
-
2. Create a new account, for this you will own the private key. So you can deploy your sample smart contract from this account. Enter a passphrase with which only you can access the account. To know about the list of available commands for geth look [here](https://ethereum.stackexchange.com/questions/28703/full-list-of-geth-terminal-commands)
39
+
2. Create a new account, for this you will own the private key. So you can deploy your sample smart contract from this account. Enter a passphrase with which only you can access the account. To know about the list of available commands for geth look [<u>here</u>](https://ethereum.stackexchange.com/questions/28703/full-list-of-geth-terminal-commands)
40
40
41
41
```bash
42
42
>personal.newAccount()
43
43
Passphrase:
44
44
Repeat passphrase:
45
45
```
46
46
47
-
3. This newly created account should be your [coinbase](https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethcoinbase) account (if you haven't already previously created an account). Please note this does not have any relation whatsoever to coinbase.com. Check for the coinbase account address and make sure its the same as the one created above, then take a look at your account's balance (this should be 0).
47
+
3. This newly created account should be your [<u>coinbase</u>](https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethcoinbase) account (if you haven't already previously created an account). Please note this does not have any relation whatsoever to coinbase.com. Check for the coinbase account address and make sure its the same as the one created above, then take a look at your account's balance (this should be 0).
48
48
49
49
```bash
50
50
> eth.coinbase
51
51
> eth.getBalance(eth.coinbase)
52
52
```
53
53
Copy-paste (save) the account address displayed here for the upcoming steps.
54
54
55
-
4. Now you need some funds - OST⍺ Prime to deploy your sample contract with `geth`. You should use the new [transfers api](https://dev.ost.com/docs/api_transfers_create.html)
55
+
4. Now you need some funds - OST⍺ Prime to deploy your sample contract with `geth`. You should use the new [<u>transfers api</u>](https://dev.ost.com/docs/api_transfers_create.html)
56
56
make sure to transfer to the coinbase address you have copied above.
57
57
58
-
For executing this step you will need to [register forOST KIT⍺](https://dev.ost.com/docs/kit.html). Complete the stepsin this tutorial before moving forward if you have not already.
58
+
For executing this step you will need to [<u>register forOST KIT⍺</u>](https://dev.ost.com/docs/kit.html). Complete the stepsin this tutorial before moving forward if you have not already.
59
59
60
-
5. In a separate console spin up an official OST KIT⍺ SDK and execute the new [Transfers API.](https://dev.ost.com/docs/api_transfers_create.html)
5. In a separate console spin up an official OST KIT⍺ SDK and execute the new [<u>Transfers API.</u>](https://dev.ost.com/docs/api_transfers_create.html)
Here we show the example of the JavaScript SDK. Make sure that the `to_address` is the coinbase address you copied previously. The amount to be sent to this address can be understood from the [Transfers API documentation.](https://dev.ost.com/docs/api_transfers_create.html#amount). Please note that you can transfer only as much OST OST⍺ Prime as you have available after the staking and minting. If you need more, you will have to stake and mint the required amound via the OST KIT⍺ dashboard.
65
+
Here we show the example of the JavaScript SDK. Make sure that the `to_address` is the coinbase address you copied previously. The amount to be sent to this address can be understood from the [<u>Transfers API documentation.</u>](https://dev.ost.com/docs/api_transfers_create.html#amount) Please note that you can transfer only as much OST OST⍺ Prime as you have available after staking and minting. If you need more, you will have to stake and mint the required amount via the OST KIT⍺ dashboard.
66
66
67
67
```javascript
68
68
const transferService = ostObj.services.transfers; // transfer object creation
69
69
transferService.execute({to_address:'0xd2b789293674faEE51bEb2d0338d15401dEbfdE3', amount:1000000000000000000}).then(function(res) { console.log(JSON.stringify(res)); }).catch(function(err) { console.log(JSON.stringify(err)); }); //here the address will be the coinbase address you copied.
70
-
71
70
```
72
71
73
72
## Contract Deployment on the UC
74
73
75
-
1. Provide some timeforthe balance to show up as transactions are mined and included into blocks by `geth` nodes. One way to check the status of the transfer would be to use the [List Transfers API.](https://dev.ost.com/docs/api_transfers_list.html) alternative you can check using the following commandin the `geth` console.
74
+
1. Provide some timeforthe balance to show up as transactions are mined and included into blocks by `geth` nodes. One way to check the status of the transfer would be to use the [<u>List Transfers API.</u>](https://dev.ost.com/docs/api_transfers_list.html) alternative you can check using the following commandin the `geth` console.
0 commit comments