最新版EOS开发入门手册:The EOS Wiki

感谢

首先我们要感谢Jason Pan完成了漫长的翻译工作与为开发者群体做出的贡献。

这是开始,不是结束。如有纰漏也请联系微信: dongtao 恳请指正

同时,除了下文中奉献的图文版本,我们也准备了Word版本,您可以加我的微信,转发给你

但是您需要

  1. 转发本文到朋友圈
  2. 联系微信: dongtao

当然这个行为在传播知识的同时也充满了宣传性质。

也请体谅所有贡献者的私心,感谢!

目录

  • Contents
  • OVERVIEW[概述] 1
  • Glossary[词汇] 1
  • SETTING UP A LOCAL ENVIRONMENT[设置本地环境] 7
  • Overview[概述] 7
  • Getting the Code[获取代码] 8
  • Building EOSIO[构建 EOSIO] 8
  • Automated build script[自动化构建脚本] 9
  • System Requirements (all platforms)[系统需求(所有平台)] 9
  • Run the build script[运行构建脚本] 9
  • Build validation[构建验证] 9
  • Install the executables[安装可执行文件] 10
  • Creating and Launching a Single Node Testnet[创建和启动单节点测试网络] 10
  • Advanced Steps[高级步骤] 11
  • Docker 13
  • Install  Dependencies[安装依赖关系] 13
  • Build EOSIO image[构建 EOSIO 镜像] 13
  • Start nodeos docker container only[仅仅在 docker 容器中启动 nodeos] 13
  • Get chain info[获取链的信息] 13
  • Start both nodeos and keosd containers[启动 nodeos 和 keosd 容器] 14
  • Execute cleos commands[运行 cleos 命令] 14
  • Change default configuration[修改默认配置] 14
  • Clear data-dir[清除数据文件夹] 15
  • Troubleshooting Guide 15
  • PROGRAMS & TOOLS[程序和工具] 17
  • Programs[程序] 17
  • nodeos 17
  • cleos 17
  • keosd 19
  • launcher 19
  • Tools[工具] 19
  • eosiocpp 19
  • Using eosiocpp to generate the ABI specification file[使用 eosiocpp 产生 abi 规格文件] 19
  • Examples 20
  • Declaring an action[声明一个操作] 20
  • Declaring a table[定义一个表] 20
  • Example of typedef exporting[重定义导出的例子] 21
  • Using the generated serialization/deserialization functions and explicit user defined apply[使用生成的序列化/反 序列化函数和显式用户定义请求] 22
  • Calling contract with test values[用测试值调用合约] 23
  • PUBLIC TESTNET [公共测试网络] 24
  • ACCOUNTS & PERMISSIONS[账户和权限] 25
  • Wallets[钱包] 25
  • Accounts[账户] 25
  • Authorities and Permissions[授权和权限] 26
  • Putting it all Together[融会贯通] 26
  • Default Account Configuration (Single-Sig)[默认账户配置(单个签名)] 26
  • Multi-sig Account & Custom Permissions[多签名账户和自定义权限] 27
  • Observations[意见] 29
  • CLI WALLET[命令行钱包] 30
  • Overview[概述] 30
  • Overview[概述] 3
  • How to Run keosd[如何运行 keosd] 30
  • Command Reference[命令参考] 30
  • Create[创建钱包] 30
  • Open[打开钱包] 31
  • Lock[锁定钱包] 31
  • Unlock wallet[解锁钱包] 31
  • Import private key into wallet[导入私钥到钱包] 31
  • Create a key pair within the wallet[在钱包里创建一个密钥对] 32
  • List[列出钱包] 32
  • Public Keys[列出公钥] 32
  • Public/Private Key Pairs[查询公私钥] 32
  • Auto locking[自动锁定] 33
  • Launching keosd manually[手动启动 keosd] 33
  • Managing Wallets with nodeos[使用 nodeos 管理钱包] 33
  • Multiple keosd running[运行多个 keosd] 34
  • COMMAND REFERENCE[命令行参考] 35
  • cleos command[cleos 命令] 35
  • eos-wallets command[钱包命令] 36
  • Examples[例子] 37
  • All command[所有命令] 37
  • All subcommand[所有子命令] 37
  • Connect to node[链接节点] 38
  • Query blockchain state[查询区块链状态] 38
  • Get Transaction by transaction_id[通过 transaction_id 获取交易] 38
  • Get Actions by account[通过账户获取操作] 40
  • Transfer Currency[转账货币] 41
  • Create wallet[创建钱包] 41
  • List wallets[列出钱包] 42
  • Import key to wallet[导入密钥到钱包] 42
  • List wallet keys[列出钱包密钥] 42
  • Lock wallet[锁定钱包] 42
  • Unlock wallet[解锁钱包] 43
  • Open wallet[打开钱包] 43
  • Create keys[创建密钥] 43
  • Create account[创建账户] 44
  • Account servants[子账户] 45
  • Check account balance[检查账户余额] 45
  • Get account details[获取账户详细信息] 45
  • Create or Modify Permissions[创建和修改权限] 46
  • Deploy Contract[部署合约] 47
  • Query Contract ABI[查询合约的 ABI] 49
  • Push Message to Contract[推送消息到合约] 50
  • 4 Overview[概述]
  • Querying Contract[查询合约] 52
  • Using Separate Wallet App[使用独立的钱包应用] 52
  • Error Examples[错误的例子] 53
  • PERSISTENCE API[持久化 API] 54
  • Overview[概述] 54
  • The Need for Persistence Services[持久化服务的需求] 54
  • The EOSIO Multi-Index API[EOSIO 多索引 API] 55
  • EOSIO Multi-Index Iterators[EOSIO 多索引迭代器] 56
  • Putting It All Together[融会贯通] 57
  • How to Create Your EOSIO Multi-Index Table[如何创建你自己的 EOSIO 多索引表] 57
  • How to Use Your EOSIO Multi-Index Table[如何使用 EOSIO 的多索引表] 58
  • Vehicle Maintenance Tracker Example[车辆维护跟踪器示例] 58
  • Vehicle Maintenance Tracker service Table[车辆维修跟踪服务表] 59
  • Vehicle Maintenance Tracker customer Table[车辆维护跟踪器客户表] 62
  • C++ API Reference[C++API 参考] 65
  • eosio::multi_index 65
  • Constructor[构造函数] 66
  • Copy and Assignment[复制和分配] 67
  • Table Manipulation[表操作] 67
  • emplace 67
  • get 68
  • find 69
  • modify 70
  • erase 71
  • Member Access[成员访问] 72
  • get_code 72
  • Overview[概述] 5
  • get_scope 73
  • Utilities[实用程序] 73
  • available_primary_key 73
  • Iterators[迭代器] 73
  • begin and cbegin 74
  • end and cend 74
  • rbegin and crbegin 74
  • rend and crend 74
  • lower_bound 75
  • upper_bound 75
  • get_index 76
  • iterator_to 77
  • indexed_by 77
  • The eosio::multi_index::index API (Secondary Indices[二级索引]) 78
  • Constructor[构造函数] 79
  • Copy and Assignment[复制和分配] 79
  • Table Manipulation[表操作] 80
  • get 80
  • find 80
  • modify 81
  • erase 82
  • Member Access[成员访问] 83
  • get_code 83
  • get_scope 84
  • name 84
  • number 84
  • Iterators[迭代器] 84
  • const_iterator 85
  • const_reverse_iterator 85
  • begin and cbegin 85
  • end and cend 85
  • rbegin and crbegin 86
  • rend and crend 86
  • lower_bound 86
  • upper_bound 87
  • iterator_to 87
  • Utilities[实用程序] 88
  • extract_secondary_key 88
  • SMART CONTRACT[智能合约] 89
  • Introduction to EOSIO Smart Contracts[EOSIO 智能合约介绍] 89
  • Required Background Knowledge[必须的背景知识] 89
  • C / C++ Experience[C/C++技能] 89
  • Linux / Mac OS Experience[LINUX/MAC OS 技能] 90
  • Command Line Knowledge[命令行知识] 90
  • Basics of EOSIO Smart Contracts[EOSIO 智能合约基础] 90
  • Overview[概述] 90
  • Action vs Transaction[操作与交易区别] 91
  • Transaction Confirmation[交易确认] 92
  • Action Name Restricti 约束 ons[Action 名称] 93
  • Overview[概述] 7
  • Action Handlers and Action “Apply” Context[Action 操作者和“应用”上下文] 93
  • Communication Model and Execution Flow[通信模型和执行流程] 95
  • Inline Communication[内联通信] 95
  • Deferred Communication[延期通信] 95
  • Example Transaction Flow[交易流示例] 96
  • Example Deferred Transaction Flow[延迟交易流示例] 98
  • Smart Contract Files[智能合约文件] 99
  • hpp 99
  • cpp 99
  • apply action handler and the EOSIO_ABI macro[apply 操作和 EOSIO_ABI 宏] 100
  • The EOSIO_ABI macro[EOSIO_ABI 宏] 101
  • wast 101
  • abi 102
  • Debugging Smart Contracts[调试智能合约] 103
  • Method[方法] 103
  • Print API 104
  • Example[示例] 105
  • debug.cpp 105
  • debug.wast 105
  • debug.abi 105
  • Deploy and Apply an Action[部署并应用一个操作] 106
  • TUTORIALS[教程] 108
  • Getting Started with Contracts[合约入门] 108
  • Starting a Private Blockchain[启动私有区块链] 108
  • Creating a Wallet[创建一个钱包] 109
  • Loading the Bios Contract[加载 BIOS 合约] 110
  • Creating Accounts[创建账户] 111
  • Create Two User Accounts[创建两个用户账户] 112
  • Eosio.token, Exchange, and Eosio.msig Contracts 114
  • Create the Currency Token[创建当前 Token] 114
  • Issue Tokens to Account “User”[向“User 账户发行 token”] 116
  • Transfer Tokens to Account “Tester”[向“tester”账户转账] 117
  • Deploy Exchange Contract[部署交换合约] 118
  • Deploy Eosio.msig Contract[部署 Eosio.msig 合约] 118
  • Exchange Deposit and Withdrawal[存取交易] 120
  • Setup[部署] 120
  • Prerequisites[预备知识] 120
  • Ensure eosio::history_api_plugin is running[确保 eosio::history_api_plugin 已经运行] 120
  • Activate log filtering[激活日志过滤] 121
  • Replay the blockchain[重放区块链] 121
  • Set up additional accounts[设置额外的账户] 122
  • Accepting Deposits[接受存款] 122
  • Initial Condition[初始条件] 122
  • Polling Account History[查询账户历史] 123
  • Fetching only “New” Actions[抓取“最新”的操作] 125
  • Machine Readable Account History (JSON)[机器可读帐户历史记录(JSON)] 126
  • WARNING[警告] 127
  • Validating Balance[验证余额] 127
  • Processing Withdrawals[处理取款] 127
  • Handling Errors[错误处理] 129
  • Exchange Security[交易安全] 130
  • Hello World Contract[Hello World 合约] 132
  • hello/hello.cpp 132
  • Hello World Ricardian Contract[李嘉图式 Hello World 合约] 134
  • Comprehensive Accounts & Wallets Tutorial[全面的帐户和钱包教程] 137
  • Tutorial Audience[教程的读者] 137
  • What You’ll Learn[你将学习] 137
  • Prerequisites[预备知识] 137
  • Overview[概述] 9
  • EOSIO Accounts and Wallets Conceptual Overview[EOSIO 账户和钱包概念概述] 138
  • Creating and Managing Wallets[创建和管理钱包] 139
  • Managing Multiple Wallets and Wallet Names[管理多个钱包和钱包名称] 140
  • Generating and Importing EOSIO Keys[产生并导入 EOSIO 密钥] 143
  • Backing up your wallet[备份你的钱包] 144
  • Creating an Account[创建账户] 145
  • Account Related Operations[账户相关操作] 147
  • Bios Boot Sequence Tutorial[Bios 引导顺序教程] 149
  • Manual Execution of the Boot Sequence[手动执行启动顺序] 149
  • Configure the initial set of nodeos nodes[配置 nodeos 节点的初始集] 151
  • Create config and data directories for each nodeos[为每个 nodeos 创建配置和数据目录] 151
  • Prepare IP addresses for peer-to-peer communication[准备对等通信的 IP 地址] 152
  • Start the “genesis” node[启动创世节点] 153
  • Create a wallet[创建钱包] 153
  • Configure the genesis.json file.[配置 genesis.json 文件] 153
  • Create the key for the eosio account[为 eosio 账户创建密钥] 154
  • Start the genesis nodeos node[启动 genesis nodeos 节点] 154
  • Create important system accounts[创建重要的系统账户] 154
  • Install the eosio.token contract[安装 eosio.token 合约] 155
  • Set the eosio.msig contract[配置 eosio.msig 合约] 156
  • Create and allocate the SYS currency[创建和分配 SYS 货币] 156
  • Set the eosio.system contract[设置 eosio.system 合约] 157
  • Transition from single producer to multiple producers[从单一生产者转变为多个生产者] 158
  • Make eosio.msig a privileged account[使 eosio.msig 成为特权帐户] 158
  • Stake tokens and expand the network[标记代币并扩展网络] 158
  • Create staked accounts[创建放款账户] 159
  • Select the producers[选择生产者] 161
  • Register as a producer[注册成为一个生产者] 161
  • List the producers[列出生产者] 162
  • Start the producers[启动生产者] 162
  • Vote for producers[为生产者投票] 165
  • Producers can claim rewards[生产者可以要求奖励] 165
  • Register proxies and proxy voting[注册代理和代理投票] 165
  • eosio resigns[eosio 辞职] 166
  • Tic-Tac-Toe[井字棋] 167
  • Objective[目的] 167
  • Assumption[假设] 167
  • Board[棋盘] 167
  • Action[操作] 168
  • Contract account[合约账户] 168
  • Start![启动] 169
  • Defining Structure[结构定义] 169
  • Games Table[游戏表] 169
  • Game Structure[游戏结构] 170
  • Action Structure[操作的结构] 171
  • Create[创建] 171
  • Restart[重启] 171
  • Close[关闭] 172
  • Move[移动] 172
  • Overview[概述]
  • Main 173
  • Action handler[操作处理程序] 173
  • Create Action Handler[创建操作处理程序] 175
  • Restart Action Handler[重新启动操作处理程序] 176
  • Close Action Handler[关闭操作处理程序] 177
  • Move Action Handler[移动操作处理程序] 177
  • Movement Validation[运动验证] 179
  • Get Winner[获取赢家] 180
  • Creating ABI[创建 ABI] 181
  • Table ABI 182
  • Actions ABI 183
  • Compile![编译] 184
  • Deploy![部署] 185
  • Play! 185
  • Create 185
  • Move 185
  • Restart 185
  • Close 186
  • See the game status 186
  • Upgrading the system contract[升级系统合约] 187
  • Indirect method using eosio.msig contract[使用 eosio.msig 合约的间接方法] 187
  • Direct method (avoids using eosio.msig contract) 187
  • TESTNET SINGLE HOST MULTINODE[单主机多节点测试网络] 194
  • Create a Default Wallet[创建一个默认钱包] 194
  • Start the First Producer Node[启动第一个生产者节点] 195
  • Start the Second Producer Node[启动第二个生产者节点] 195
  • RELEASES[发布版] 202
  • CODING STANDARDS[编码规范] 205

更多内容请添加 我 微信 dongtao

Add a Comment

电子邮件地址不会被公开。 必填项已用*标注