From b3ac687e6832ed08fed7eab3fceae431a4613773 Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 20:26:36 +0800 Subject: [PATCH 1/8] Update index.md --- .../10_testnet-quick-start-guide/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md index e56187c5..b411fc8d 100644 --- a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md +++ b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md @@ -56,7 +56,7 @@ This section provides instructions on creating new blockchain accounts within th An account is a collection of authorizations, is stored on the blockchain, and is used to identify a sender/recipient. The flexible authorization structure of an account enables it to be owned either by an individual or group of individuals dependant on how permissions are configured. An account sends or receives a valid transaction to the blockchain. -For more information on EOSIO accounts and associated permissions, see the [Accounts and Permissions](../../../60_protocol-guides/40_accounts_and_permissions.md) page on the _EOSIO Developers Portal_. +For more information on EOSIO accounts and associated permissions, see the [Accounts and Permissions](../60_protocol-guides/40_accounts_and_permissions.md) page on the _EOSIO Developers Portal_. ## Create New Account The EOSIO Testnet provisions a new EOSIO blockchain account every time you sign up for a new EOSIO Testnet developer account. If you require more EOSIO blockchain accounts, follow the steps below. @@ -162,7 +162,7 @@ You must have the following prerequisites before uploading and deploying a smart 1. Testnet blockchain account with sufficient system resources. See the previous section of this guide **Buy and Stake System Resources** for information on staking and unstaking in the Testnet. [[info | Info]] -| For more information on how to build and compile smart contract source files, see the [Hello World Contract](../../../30_getting-started-guide/25_hello-world.md) section on the *EOSIO Developer Portal*. +| For more information on how to build and compile smart contract source files, see the [Hello World Contract](../30_getting-started-guide/25_hello-world.md) section on the *EOSIO Developer Portal*. ## Upload and Deploy Upload and deploy your smart contract on the EOSIO blockchain in a 3-step sequential process. @@ -189,7 +189,7 @@ Upload and deploy your smart contract on the EOSIO blockchain in a 3-step sequen # Push Actions An action is authorized by one or more actors created on the blockchain. Actions are created explicitly within a smart contract, or generated implicitly by application code. -For more information on Actions in EOSIO, see the [Actions](../../../60_protocol-guides/20_transactions_protocol.md#11-Actions) section in Transaction Protocol on the *EOSIO Developers Portal*. +For more information on Actions in EOSIO, see the [Actions](../60_protocol-guides/20_transactions_protocol.md#11-Actions) section in Transaction Protocol on the *EOSIO Developers Portal*. **Complete the following steps to push actions on the Testnet:** @@ -245,7 +245,7 @@ The type of key in **Key Type**. # View Transactions A transaction instance contains a transaction header and the list of action instances and transaction extensions that make the actual transaction. -For more information on Transactions in EOSIO, see the [Transactions Protocol](../../../60_protocol-guides/20_transactions_protocol.md) section on the *EOSIO Developers Portal*. +For more information on Transactions in EOSIO, see the [Transactions Protocol](../60_protocol-guides/20_transactions_protocol.md) section on the *EOSIO Developers Portal*. **Complete the following steps to view transactions on the Testnet:** From 2ed96f1b138c4221934e078fb896c808cbcf7517 Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 20:31:08 +0800 Subject: [PATCH 2/8] Update index.md --- .../70_quick-start-guides/10_testnet-quick-start-guide/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md index b411fc8d..21e2b105 100644 --- a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md +++ b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md @@ -56,7 +56,7 @@ This section provides instructions on creating new blockchain accounts within th An account is a collection of authorizations, is stored on the blockchain, and is used to identify a sender/recipient. The flexible authorization structure of an account enables it to be owned either by an individual or group of individuals dependant on how permissions are configured. An account sends or receives a valid transaction to the blockchain. -For more information on EOSIO accounts and associated permissions, see the [Accounts and Permissions](../60_protocol-guides/40_accounts_and_permissions.md) page on the _EOSIO Developers Portal_. +For more information on EOSIO accounts and associated permissions, see the [Accounts and Permissions](/60_protocol-guides/40_accounts_and_permissions.md) page on the _EOSIO Developers Portal_. ## Create New Account The EOSIO Testnet provisions a new EOSIO blockchain account every time you sign up for a new EOSIO Testnet developer account. If you require more EOSIO blockchain accounts, follow the steps below. From e4f192f69ec8d84410cdb0f273597af0854a6834 Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 20:32:34 +0800 Subject: [PATCH 3/8] Update index.md --- .../70_quick-start-guides/10_testnet-quick-start-guide/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md index 21e2b105..645711ed 100644 --- a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md +++ b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md @@ -56,7 +56,7 @@ This section provides instructions on creating new blockchain accounts within th An account is a collection of authorizations, is stored on the blockchain, and is used to identify a sender/recipient. The flexible authorization structure of an account enables it to be owned either by an individual or group of individuals dependant on how permissions are configured. An account sends or receives a valid transaction to the blockchain. -For more information on EOSIO accounts and associated permissions, see the [Accounts and Permissions](/60_protocol-guides/40_accounts_and_permissions.md) page on the _EOSIO Developers Portal_. +For more information on EOSIO accounts and associated permissions, see the [Accounts and Permissions](../../60_protocol-guides/40_accounts_and_permissions.md) page on the _EOSIO Developers Portal_. ## Create New Account The EOSIO Testnet provisions a new EOSIO blockchain account every time you sign up for a new EOSIO Testnet developer account. If you require more EOSIO blockchain accounts, follow the steps below. From 36cd8beb0d9315fb46a536dc4296ebbdb18f63fa Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 20:38:26 +0800 Subject: [PATCH 4/8] Update index.md --- .../10_testnet-quick-start-guide/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md index 645711ed..6f73ca47 100644 --- a/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md +++ b/docs/70_quick-start-guides/10_testnet-quick-start-guide/index.md @@ -162,7 +162,7 @@ You must have the following prerequisites before uploading and deploying a smart 1. Testnet blockchain account with sufficient system resources. See the previous section of this guide **Buy and Stake System Resources** for information on staking and unstaking in the Testnet. [[info | Info]] -| For more information on how to build and compile smart contract source files, see the [Hello World Contract](../30_getting-started-guide/25_hello-world.md) section on the *EOSIO Developer Portal*. +| For more information on how to build and compile smart contract source files, see the [Hello World Contract](../../30_getting-started-guide/25_hello-world.md) section on the *EOSIO Developer Portal*. ## Upload and Deploy Upload and deploy your smart contract on the EOSIO blockchain in a 3-step sequential process. @@ -189,7 +189,7 @@ Upload and deploy your smart contract on the EOSIO blockchain in a 3-step sequen # Push Actions An action is authorized by one or more actors created on the blockchain. Actions are created explicitly within a smart contract, or generated implicitly by application code. -For more information on Actions in EOSIO, see the [Actions](../60_protocol-guides/20_transactions_protocol.md#11-Actions) section in Transaction Protocol on the *EOSIO Developers Portal*. +For more information on Actions in EOSIO, see the [Actions](../../60_protocol-guides/20_transactions_protocol.md#11-Actions) section in Transaction Protocol on the *EOSIO Developers Portal*. **Complete the following steps to push actions on the Testnet:** @@ -245,7 +245,7 @@ The type of key in **Key Type**. # View Transactions A transaction instance contains a transaction header and the list of action instances and transaction extensions that make the actual transaction. -For more information on Transactions in EOSIO, see the [Transactions Protocol](../60_protocol-guides/20_transactions_protocol.md) section on the *EOSIO Developers Portal*. +For more information on Transactions in EOSIO, see the [Transactions Protocol](../../60_protocol-guides/20_transactions_protocol.md) section on the *EOSIO Developers Portal*. **Complete the following steps to view transactions on the Testnet:** From 565cf0143f1a74f61c3aa91a8b7a109b9561fd8d Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 20:58:37 +0800 Subject: [PATCH 5/8] Update 20_tic-tac-toe-game-smart-contract-single-node.md --- .../20_tic-tac-toe-game-smart-contract-single-node.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md index 46106ae6..693e179f 100644 --- a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md +++ b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md @@ -21,9 +21,9 @@ This tutorial requires the following: and -* The EOSIO platform software, Click on this link for instructions on [installing EOSIO binaries.](../30_getting-started-guide/20_local-development-environment/10_installing-eosio-binaries.md "Getting started - install binaries") +* The EOSIO platform software, click on this link for instructions on [installing EOSIO binaries.](../../30_getting-started-guide/20_local-development-environment/10_installing-eosio-binaries.md "Getting started - install binaries") * Familiarity with the EOSIO tools `cleos` and `keosd`. -* The EOSIO Contract Development Toolkit or eosio.cdt. Click on this link to [install the CDT.](../30_getting-started-guide/20_local-development-environment/20_installing-eosiocdt.md "EOSIO.CDT Installation Instructions") +* The EOSIO Contract Development Toolkit or eosio.cdt. Click on this link to [install the CDT.](../../30_getting-started-guide/20_local-development-environment/20_installing-eosiocdt.md) * Familiarity with the `eosio.cdt` which is used to compile smart contracts. Click on this link for an [overview of the EOSIO platform.](../20_introduction-to-eosio) From 441973ffd985ec7244ef8773f67e6963ebd907d5 Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 20:59:54 +0800 Subject: [PATCH 6/8] Update 20_tic-tac-toe-game-smart-contract-single-node.md --- .../20_tic-tac-toe-game-smart-contract-single-node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md index 693e179f..32bec80f 100644 --- a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md +++ b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md @@ -21,7 +21,7 @@ This tutorial requires the following: and -* The EOSIO platform software, click on this link for instructions on [installing EOSIO binaries.](../../30_getting-started-guide/20_local-development-environment/10_installing-eosio-binaries.md "Getting started - install binaries") +* The EOSIO platform software, click on this link for instructions on [installing EOSIO binaries.](../30_getting-started-guide/20_local-development-environment/10_installing-eosio-binaries.md) * Familiarity with the EOSIO tools `cleos` and `keosd`. * The EOSIO Contract Development Toolkit or eosio.cdt. Click on this link to [install the CDT.](../../30_getting-started-guide/20_local-development-environment/20_installing-eosiocdt.md) * Familiarity with the `eosio.cdt` which is used to compile smart contracts. From a088c21551eef35b74f59303edd4f2188195449e Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 21:00:35 +0800 Subject: [PATCH 7/8] Update 20_tic-tac-toe-game-smart-contract-single-node.md --- .../20_tic-tac-toe-game-smart-contract-single-node.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md index 32bec80f..860ea2e5 100644 --- a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md +++ b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md @@ -23,12 +23,12 @@ and * The EOSIO platform software, click on this link for instructions on [installing EOSIO binaries.](../30_getting-started-guide/20_local-development-environment/10_installing-eosio-binaries.md) * Familiarity with the EOSIO tools `cleos` and `keosd`. -* The EOSIO Contract Development Toolkit or eosio.cdt. Click on this link to [install the CDT.](../../30_getting-started-guide/20_local-development-environment/20_installing-eosiocdt.md) +* The EOSIO Contract Development Toolkit or eosio.cdt. Click on this link to [install the CDT.](../30_getting-started-guide/20_local-development-environment/20_installing-eosiocdt.md) * Familiarity with the `eosio.cdt` which is used to compile smart contracts. Click on this link for an [overview of the EOSIO platform.](../20_introduction-to-eosio) -Click on this link to [get started with EOSIO.](../30_getting-started-guide "Getting Started with EOSIO") +Click on this link to [get started with EOSIO.](../30_getting-started-guide) ### Tutorial Workflow From b1c5ce81061e25d5ad90e40750c88686758cc92b Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 9 Sep 2021 21:13:24 +0800 Subject: [PATCH 8/8] Update 20_tic-tac-toe-game-smart-contract-single-node.md --- .../20_tic-tac-toe-game-smart-contract-single-node.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md index 860ea2e5..a2183d2d 100644 --- a/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md +++ b/docs/80_tutorials/20_tic-tac-toe-game-smart-contract-single-node.md @@ -70,10 +70,10 @@ In the example below the player who placed x has won. When all the squares contain a marker and no player has three markers in a row, then the game is a draw. ### Accounts and Key Pairs -A blockchain account has a human readable name which is between 1 and 12 characters in length. Each account identifies a blockchain participant and the authority of that participant. Loading a smart contracts requires an account; an account can own one smart contract instance and a smart contract instance must be loaded by an account. Accounts are stored on the blockchain with their public keys. Each account requires at least one key pair (public and private keys.) The blockchain uses asymmetric cryptography to verify that the account pushing a transaction has signed the transaction with the matching private key. EOSIO blockchains use account authority tables to check that the account has the required authority to perform an action. For more information about accounts and permissions click on this link [Accounts and Permissions.](../60_protocol-guides/40_accounts_and_permissions.md "Accounts and Permissions Overview") +A blockchain account has a human readable name which is between 1 and 12 characters in length. Each account identifies a blockchain participant and the authority of that participant. Loading a smart contracts requires an account; an account can own one smart contract instance and a smart contract instance must be loaded by an account. Accounts are stored on the blockchain with their public keys. Each account requires at least one key pair (public and private keys.) The blockchain uses asymmetric cryptography to verify that the account pushing a transaction has signed the transaction with the matching private key. EOSIO blockchains use account authority tables to check that the account has the required authority to perform an action. For more information about accounts and permissions click on this link [Accounts and Permissions.](../60_protocol-guides/40_accounts_and_permissions.md) ### Smart Contract Actions -A smart contract exposes methods or ‘actions’ that transactions use to operate the game logic. Transactions may contain one or more ‘actions’. Transactions are generated dynamically outside the smart contract, within an application, or from the command line to call smart contract actions and execute business logic within a smart contract. Transactions are atomic. For example, if one action of a transaction fails the entire transaction fails and the blockchain state is restored to the original state. For more details about transactions and actions click on this link [Transactions Protocol.](../60_protocol-guides/20_transactions_protocol.md "Tranasctions Protocol") You can use `cleos` to create transactions and push transactions to the blockchain. Transactions contain one or more actions. You can also use `cleos` to call actions directly. Actions can call other actions and can also call actions from other smart contracts. +A smart contract exposes methods or ‘actions’ that transactions use to operate the game logic. Transactions may contain one or more ‘actions’. Transactions are generated dynamically outside the smart contract, within an application, or from the command line to call smart contract actions and execute business logic within a smart contract. Transactions are atomic. For example, if one action of a transaction fails the entire transaction fails and the blockchain state is restored to the original state. For more details about transactions and actions click on this link [Transactions Protocol.](../60_protocol-guides/20_transactions_protocol.md) You can use `cleos` to create transactions and push transactions to the blockchain. Transactions contain one or more actions. You can also use `cleos` to call actions directly. Actions can call other actions and can also call actions from other smart contracts. ![Transactions and Actions](images/tictactoe/transactions-and-actions-temp.png "Transactions and Actions") @@ -232,7 +232,7 @@ The tictactoe.hpp file (or header file) contains the declarations of the smart c The tictactoe.cpp file contains implementations of the smart contract actions declared in the tictactoe.hpp header file and uses the data structures declared in the header file. -The “Compile and deploy the smart contract to the blockchain” section details compilation of the files. The compiler is the `eosio-cpp` tool from the EOSIO.CDT. Click on this link for more information on the [EOSIO.CDT.](https://developers.eos.io/manuals/eosio.cdt/latest/index "EOSIO.CDT documentation") The EOSIO.CDT builds the smart contract and creates an `ABI` file. Click on this link for more information about [ABI Files.](../40_smart-contract-guides/30_understanding-ABI-files.md "Understand ABI Files") +The “Compile and deploy the smart contract to the blockchain” section details compilation of the files. The compiler is the `eosio-cpp` tool from the EOSIO.CDT. Click on this link for more information on the [EOSIO.CDT.](https://developers.eos.io/manuals/eosio.cdt/latest/index "EOSIO.CDT documentation") The EOSIO.CDT builds the smart contract and creates an `ABI` file. Click on this link for more information about [ABI Files.](../40_smart-contract-guides/30_understanding-ABI-files.md) ### Game Board Representation A `std::vector` represents the tic-tac-toe board. The number 0 marks an empty square. The number 1 denotes a movement by the host. The number 2 denotes a movement by the challenger. To make a movement, you push a transaction to the tic-tac-toe smart contract. @@ -637,7 +637,7 @@ The complete tictactoe.cpp file can be downloaded from github here: [Tic-tac-toe ## Compile and Deploy To deploy the smart contract to the blockchain first use the EOSIO.CDT (EOSIO Contract Development Toolkit) `eosio-cpp` tool to build the `.wasm` file and a corresponding `.abi` file. Click on this link for details on [eosio-cpp tool](https://developers.eos.io/manuals/eosio.cdt/latest/command-reference/eosio-cpp "eosio-cdt reference eosio-cpp tool") and click on this link for details about the [EOSIO.CDT](https://developers.eos.io/manuals/eosio.cdt/latest/index "Contract Development Toolkit") -The `.wasm` file (or webassembly) is the binary code that the `wasm engine` in the blockchain executes. The webassembly engine currently used in eosio is [eos-vm](https://github.com/EOSIO/eos-vm "git eos-vm"). The application binary interface or `.abi` file defines how to pack and unpack the data used by a smart contract, see [Understanding ABI Files.](../40_smart-contract-guides/30_understanding-ABI-files.md "Understand ABI Files") for more information. +The `.wasm` file (or webassembly) is the binary code that the `wasm engine` in the blockchain executes. The webassembly engine currently used in eosio is [eos-vm](https://github.com/EOSIO/eos-vm "git eos-vm"). The application binary interface or `.abi` file defines how to pack and unpack the data used by a smart contract, see [Understanding ABI Files.](../40_smart-contract-guides/30_understanding-ABI-files.md) for more information. ### Compilation To compile the smart contract change to the tictactoe folder and run `eosio-cpp`. Click on this link for more information about using the [eosio-cpp tool](https://developers.eos.io/manuals/eosio.cdt/latest/command-reference/eosio-cpp "eosio-cpp command reference") .