├── LICENSE ├── README.md ├── aave ├── 1_deposit_withdraw_borrow_repay.png ├── 2_flashloan.png └── 3update_interest_rates.pdf ├── alchemix-protocol ├── deposit-mint-withdraw-repay.png └── transmuter-stakingpools.png ├── aleo ├── 1_leo_compiler_parser_into_ast.png ├── 2_snarkVM_mining_prove.pdf └── 3_snarkVM_mining_prove_msm_cuda.pdf ├── aptos ├── 1_block-stm.png ├── 2_mempool.png ├── 3_aptosvm.png ├── 4_consensus.png ├── 5_consensus_decoupled.png └── 6_execute_tranactions_parallel.png ├── arbitrum-nitro ├── 1create_block.png ├── 2prover.png ├── 3staker.png └── 4execute_messages.png ├── arbitrum ├── 1_arbitrum_virtual_machine.png ├── 4_marshalforproof.png ├── arbos.png └── onestepproof.png ├── atomicals └── 1mint-dft.pdf ├── avalanche ├── 1_startup.png └── 2_block_build.png ├── celestia └── 1_sample.png ├── chainlink ├── 1start.png └── 2offchainconsensus.png ├── cosmos └── 1_cosmos_ibc_register_services.png ├── curve └── pools-compound.png ├── diem └── 1_diem_tx_submit.png ├── eos ├── 2_eosio_evm.png ├── 3_eosio_buyram.png └── dpos_time_sequence.png ├── erigon └── diagnostics.png ├── eth2 └── lighthouse_production_beacon_node.png ├── ethereum ├── 1_contract_call.png ├── 2_geth_start.png ├── 3_contract_call_create2_delegatecall.png └── 4_web3_websocket_service.png ├── fei-protocol └── fei-protocol.png ├── flow ├── 1_execute_script.png └── 2_flow_start.png ├── fractional_art └── 1_mint_auction_redeem.png ├── fuel ├── 1start.png └── 2fuel-vm.png ├── gmx ├── 1glp_V1.png ├── 2liquidate_position_V1.pdf ├── 3market_increase_order_V2.pdf ├── 4deposit_V2.pdf └── 5governor_V2.pdf ├── hummingbot └── 1start.png ├── ice-substrate └── 1_get_balance_from_metamask.png ├── jesse └── 1backtest.png ├── layerzero └── 1_pingpong.png ├── lightpool ├── 01hotstuff_produceblock-1.pdf ├── 02hotstuff_pacemaker.pdf ├── 03hotstuff_produceblock-2.pdf ├── 04grevm_tx_dependency.pdf ├── 05revm_journal_state.pdf ├── 06aptos-decouple_execution.pdf ├── 07aptos-notification.pdf ├── 08aptos_consensus_proposal.pdf ├── 09aptos_block_execte.pdf ├── 10aptos_readset.pdf ├── 11aptos_writeset.pdf ├── 12hotstuff_jolteon_ditto_proposol.pdf ├── 13sui_state_storage.pdf └── 14sui_execute_state.pdf ├── liquity ├── redeem_rewards_recoverymode.png └── trove_open_liquidate.png ├── llvm ├── 1_inkwell_kaleidoscope.png ├── 2_backend_instruction_selection.pdf ├── 3_backend_prologue_epilogue.pdf ├── 4_backend_asmprinter.pdf └── README.md ├── makerdao ├── MCD System 2.0.png ├── auction-keeper.png ├── dss-deploy-scripts.png ├── governance-portal-v2.png ├── mcd-cdp-portal.png └── oracles-v2.png ├── mina └── 1_sudoku_zkapp_flow.png ├── moonbeam ├── 1_rpc_handle_register_and_call.png ├── 2_wasm_contract_call.png ├── 4_prepare_block_storage_changes.png └── 5_startup.png ├── near └── 1_produce_block.png ├── neon-evm ├── 2_evm_loader.png ├── 3_neon_evm_contract_call.png ├── 4_neon_evm_proxy.png └── sputnikvm.png ├── nostr └── 1nostr-rs-replay.png ├── oasis-network ├── 1_emerald-paratime.png ├── 2_cipher-paratime.png └── 3_runtime_host_protocol.png ├── opensea └── 1_nft_loot_mint.png ├── optimism-opstack ├── 1produce_block_l1_deposit_txs.png ├── 2produce_block_l2_txs.png ├── 3batch_submit.png ├── 4sync_block.png ├── 5proposer.png └── 6dispute.png ├── optimism ├── 4_contract_call.png ├── fraud_verifier.png ├── solc-compiler.png └── state_commitment.png ├── partydao ├── 1_partybid.png ├── 2_partybid_unittest_deploy_contribute.png └── 3_partybid_unittest_claim_finalize.png ├── polkadot └── ink_precompile.png ├── raydium └── 1deposit-swap.pdf ├── sei └── 1txs_orderbook_parallelization.pdf ├── serum ├── 1_anchor.png └── 2_serum_dex.png ├── solana ├── 1_transaction_processing_unit.png ├── 2_broadcast_shreds.png ├── 3_transaction_validate_unit.png ├── 5_data_structure.png ├── 7_gossip_service.png ├── 8_program_virtual_machine_rbpf.png ├── 9_program_log.png └── proof_of_history.png ├── solidity └── solc-compiler.png ├── ston.fi └── 1provide_liquidity.pdf ├── sui ├── 1_authority_handle_certificate.png ├── 2_narwhal_process_certificate.png ├── 3_compiler_parser.png └── 4_compiler_parser_ast_struct.png ├── sushiswap ├── 1_liquidity_provider_mining.png ├── 2_bentobox_deposit_withdraw_setstrategy_havest.png └── sushi_interface.png ├── synthetix ├── 1issuesynths.png ├── 2burnsynths.png └── 3modifyposition.png ├── terra ├── 1_terra_node_start.png └── 2_terra_wasm_apply_block.png ├── thegraph ├── 1_graph_node_start.png └── 2_subgraph_hosts_wasm_execute.png ├── uniswap ├── 2v3-swap.png ├── 3v3-interface-wallet.png ├── v2-interface.png └── v3-add-liquidity.png ├── wasm-instructions ├── call.cpp └── call.wast ├── zk-halo2-plonk ├── 1_single_chip_circuit.png ├── 2_two_chips_circuit.png └── 3_copy_constraint.png ├── zkevm-ethereum-foundation ├── 1_appliedzkp_circuits_add.png ├── 2_appliedzkp_circuits_witness_loading.png ├── 3_appliedzkp_circuits_witness_loading_rws.png └── 4_appliedzkp_circuits_constraint_builder.png ├── zkevm-polygon-hermez └── 1_zkevm_node.png └── zksync ├── 1_hardhat_zksync_solc.png ├── 2_zksolc.png └── zksyc1.0 ├── block_commit.png ├── circuit_data_structure.png ├── eth_sender.png ├── eth_watch.png ├── execute_op.png ├── verified_proof.png ├── zinc-compiler.png ├── zinc-vm.png └── zksync_zkevm_compiler_yul.png /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## web3 and blockchain 2 | This repo records my reading notes of web3 and blockchain open source projects , If you got problems, You can add my telegram: @cactuslabs. -------------------------------------------------------------------------------- /aave/1_deposit_withdraw_borrow_repay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aave/1_deposit_withdraw_borrow_repay.png -------------------------------------------------------------------------------- /aave/2_flashloan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aave/2_flashloan.png -------------------------------------------------------------------------------- /aave/3update_interest_rates.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aave/3update_interest_rates.pdf -------------------------------------------------------------------------------- /alchemix-protocol/deposit-mint-withdraw-repay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/alchemix-protocol/deposit-mint-withdraw-repay.png -------------------------------------------------------------------------------- /alchemix-protocol/transmuter-stakingpools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/alchemix-protocol/transmuter-stakingpools.png -------------------------------------------------------------------------------- /aleo/1_leo_compiler_parser_into_ast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aleo/1_leo_compiler_parser_into_ast.png -------------------------------------------------------------------------------- /aleo/2_snarkVM_mining_prove.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aleo/2_snarkVM_mining_prove.pdf -------------------------------------------------------------------------------- /aleo/3_snarkVM_mining_prove_msm_cuda.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aleo/3_snarkVM_mining_prove_msm_cuda.pdf -------------------------------------------------------------------------------- /aptos/1_block-stm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aptos/1_block-stm.png -------------------------------------------------------------------------------- /aptos/2_mempool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aptos/2_mempool.png -------------------------------------------------------------------------------- /aptos/3_aptosvm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aptos/3_aptosvm.png -------------------------------------------------------------------------------- /aptos/4_consensus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aptos/4_consensus.png -------------------------------------------------------------------------------- /aptos/5_consensus_decoupled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aptos/5_consensus_decoupled.png -------------------------------------------------------------------------------- /aptos/6_execute_tranactions_parallel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/aptos/6_execute_tranactions_parallel.png -------------------------------------------------------------------------------- /arbitrum-nitro/1create_block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum-nitro/1create_block.png -------------------------------------------------------------------------------- /arbitrum-nitro/2prover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum-nitro/2prover.png -------------------------------------------------------------------------------- /arbitrum-nitro/3staker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum-nitro/3staker.png -------------------------------------------------------------------------------- /arbitrum-nitro/4execute_messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum-nitro/4execute_messages.png -------------------------------------------------------------------------------- /arbitrum/1_arbitrum_virtual_machine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum/1_arbitrum_virtual_machine.png -------------------------------------------------------------------------------- /arbitrum/4_marshalforproof.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum/4_marshalforproof.png -------------------------------------------------------------------------------- /arbitrum/arbos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum/arbos.png -------------------------------------------------------------------------------- /arbitrum/onestepproof.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/arbitrum/onestepproof.png -------------------------------------------------------------------------------- /atomicals/1mint-dft.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/atomicals/1mint-dft.pdf -------------------------------------------------------------------------------- /avalanche/1_startup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/avalanche/1_startup.png -------------------------------------------------------------------------------- /avalanche/2_block_build.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/avalanche/2_block_build.png -------------------------------------------------------------------------------- /celestia/1_sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/celestia/1_sample.png -------------------------------------------------------------------------------- /chainlink/1start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/chainlink/1start.png -------------------------------------------------------------------------------- /chainlink/2offchainconsensus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/chainlink/2offchainconsensus.png -------------------------------------------------------------------------------- /cosmos/1_cosmos_ibc_register_services.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/cosmos/1_cosmos_ibc_register_services.png -------------------------------------------------------------------------------- /curve/pools-compound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/curve/pools-compound.png -------------------------------------------------------------------------------- /diem/1_diem_tx_submit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/diem/1_diem_tx_submit.png -------------------------------------------------------------------------------- /eos/2_eosio_evm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/eos/2_eosio_evm.png -------------------------------------------------------------------------------- /eos/3_eosio_buyram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/eos/3_eosio_buyram.png -------------------------------------------------------------------------------- /eos/dpos_time_sequence.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/eos/dpos_time_sequence.png -------------------------------------------------------------------------------- /erigon/diagnostics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/erigon/diagnostics.png -------------------------------------------------------------------------------- /eth2/lighthouse_production_beacon_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/eth2/lighthouse_production_beacon_node.png -------------------------------------------------------------------------------- /ethereum/1_contract_call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/ethereum/1_contract_call.png -------------------------------------------------------------------------------- /ethereum/2_geth_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/ethereum/2_geth_start.png -------------------------------------------------------------------------------- /ethereum/3_contract_call_create2_delegatecall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/ethereum/3_contract_call_create2_delegatecall.png -------------------------------------------------------------------------------- /ethereum/4_web3_websocket_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/ethereum/4_web3_websocket_service.png -------------------------------------------------------------------------------- /fei-protocol/fei-protocol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/fei-protocol/fei-protocol.png -------------------------------------------------------------------------------- /flow/1_execute_script.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/flow/1_execute_script.png -------------------------------------------------------------------------------- /flow/2_flow_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/flow/2_flow_start.png -------------------------------------------------------------------------------- /fractional_art/1_mint_auction_redeem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/fractional_art/1_mint_auction_redeem.png -------------------------------------------------------------------------------- /fuel/1start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/fuel/1start.png -------------------------------------------------------------------------------- /fuel/2fuel-vm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/fuel/2fuel-vm.png -------------------------------------------------------------------------------- /gmx/1glp_V1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/gmx/1glp_V1.png -------------------------------------------------------------------------------- /gmx/2liquidate_position_V1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/gmx/2liquidate_position_V1.pdf -------------------------------------------------------------------------------- /gmx/3market_increase_order_V2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/gmx/3market_increase_order_V2.pdf -------------------------------------------------------------------------------- /gmx/4deposit_V2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/gmx/4deposit_V2.pdf -------------------------------------------------------------------------------- /gmx/5governor_V2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/gmx/5governor_V2.pdf -------------------------------------------------------------------------------- /hummingbot/1start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/hummingbot/1start.png -------------------------------------------------------------------------------- /ice-substrate/1_get_balance_from_metamask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/ice-substrate/1_get_balance_from_metamask.png -------------------------------------------------------------------------------- /jesse/1backtest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/jesse/1backtest.png -------------------------------------------------------------------------------- /layerzero/1_pingpong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/layerzero/1_pingpong.png -------------------------------------------------------------------------------- /lightpool/01hotstuff_produceblock-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/01hotstuff_produceblock-1.pdf -------------------------------------------------------------------------------- /lightpool/02hotstuff_pacemaker.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/02hotstuff_pacemaker.pdf -------------------------------------------------------------------------------- /lightpool/03hotstuff_produceblock-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/03hotstuff_produceblock-2.pdf -------------------------------------------------------------------------------- /lightpool/04grevm_tx_dependency.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/04grevm_tx_dependency.pdf -------------------------------------------------------------------------------- /lightpool/05revm_journal_state.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/05revm_journal_state.pdf -------------------------------------------------------------------------------- /lightpool/06aptos-decouple_execution.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/06aptos-decouple_execution.pdf -------------------------------------------------------------------------------- /lightpool/07aptos-notification.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/07aptos-notification.pdf -------------------------------------------------------------------------------- /lightpool/08aptos_consensus_proposal.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/08aptos_consensus_proposal.pdf -------------------------------------------------------------------------------- /lightpool/09aptos_block_execte.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/09aptos_block_execte.pdf -------------------------------------------------------------------------------- /lightpool/10aptos_readset.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/10aptos_readset.pdf -------------------------------------------------------------------------------- /lightpool/11aptos_writeset.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/11aptos_writeset.pdf -------------------------------------------------------------------------------- /lightpool/12hotstuff_jolteon_ditto_proposol.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/12hotstuff_jolteon_ditto_proposol.pdf -------------------------------------------------------------------------------- /lightpool/13sui_state_storage.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/13sui_state_storage.pdf -------------------------------------------------------------------------------- /lightpool/14sui_execute_state.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/lightpool/14sui_execute_state.pdf -------------------------------------------------------------------------------- /liquity/redeem_rewards_recoverymode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/liquity/redeem_rewards_recoverymode.png -------------------------------------------------------------------------------- /liquity/trove_open_liquidate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/liquity/trove_open_liquidate.png -------------------------------------------------------------------------------- /llvm/1_inkwell_kaleidoscope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/llvm/1_inkwell_kaleidoscope.png -------------------------------------------------------------------------------- /llvm/2_backend_instruction_selection.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/llvm/2_backend_instruction_selection.pdf -------------------------------------------------------------------------------- /llvm/3_backend_prologue_epilogue.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/llvm/3_backend_prologue_epilogue.pdf -------------------------------------------------------------------------------- /llvm/4_backend_asmprinter.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/llvm/4_backend_asmprinter.pdf -------------------------------------------------------------------------------- /llvm/README.md: -------------------------------------------------------------------------------- 1 | ## build llvm 2 | ``` 3 | $ git clone git@github.com:llvm/llvm-project.git --recursive 4 | $ cd llvm-project 5 | $ git checkout llvmorg-14.0.3 6 | $ cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../llvm 7 | $ make 8 | ``` 9 | 10 | ## build&execute kaleidoscope 11 | ``` 12 | $ git clone git@github.com:TheDan64/inkwell.git --recursive 13 | $ cd inkwell 14 | $ LLVM_SYS_140_PREFIX=/to/path/llvm-project/build cargo build --features llvm14-0 --example kaleidoscope 15 | $ ./target/debug/kaleidoscope --dc --dp --dl 16 | ``` -------------------------------------------------------------------------------- /makerdao/MCD System 2.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/makerdao/MCD System 2.0.png -------------------------------------------------------------------------------- /makerdao/auction-keeper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/makerdao/auction-keeper.png -------------------------------------------------------------------------------- /makerdao/dss-deploy-scripts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/makerdao/dss-deploy-scripts.png -------------------------------------------------------------------------------- /makerdao/governance-portal-v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/makerdao/governance-portal-v2.png -------------------------------------------------------------------------------- /makerdao/mcd-cdp-portal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/makerdao/mcd-cdp-portal.png -------------------------------------------------------------------------------- /makerdao/oracles-v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/makerdao/oracles-v2.png -------------------------------------------------------------------------------- /mina/1_sudoku_zkapp_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/mina/1_sudoku_zkapp_flow.png -------------------------------------------------------------------------------- /moonbeam/1_rpc_handle_register_and_call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/moonbeam/1_rpc_handle_register_and_call.png -------------------------------------------------------------------------------- /moonbeam/2_wasm_contract_call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/moonbeam/2_wasm_contract_call.png -------------------------------------------------------------------------------- /moonbeam/4_prepare_block_storage_changes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/moonbeam/4_prepare_block_storage_changes.png -------------------------------------------------------------------------------- /moonbeam/5_startup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/moonbeam/5_startup.png -------------------------------------------------------------------------------- /near/1_produce_block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/near/1_produce_block.png -------------------------------------------------------------------------------- /neon-evm/2_evm_loader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/neon-evm/2_evm_loader.png -------------------------------------------------------------------------------- /neon-evm/3_neon_evm_contract_call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/neon-evm/3_neon_evm_contract_call.png -------------------------------------------------------------------------------- /neon-evm/4_neon_evm_proxy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/neon-evm/4_neon_evm_proxy.png -------------------------------------------------------------------------------- /neon-evm/sputnikvm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/neon-evm/sputnikvm.png -------------------------------------------------------------------------------- /nostr/1nostr-rs-replay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/nostr/1nostr-rs-replay.png -------------------------------------------------------------------------------- /oasis-network/1_emerald-paratime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/oasis-network/1_emerald-paratime.png -------------------------------------------------------------------------------- /oasis-network/2_cipher-paratime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/oasis-network/2_cipher-paratime.png -------------------------------------------------------------------------------- /oasis-network/3_runtime_host_protocol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/oasis-network/3_runtime_host_protocol.png -------------------------------------------------------------------------------- /opensea/1_nft_loot_mint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/opensea/1_nft_loot_mint.png -------------------------------------------------------------------------------- /optimism-opstack/1produce_block_l1_deposit_txs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism-opstack/1produce_block_l1_deposit_txs.png -------------------------------------------------------------------------------- /optimism-opstack/2produce_block_l2_txs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism-opstack/2produce_block_l2_txs.png -------------------------------------------------------------------------------- /optimism-opstack/3batch_submit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism-opstack/3batch_submit.png -------------------------------------------------------------------------------- /optimism-opstack/4sync_block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism-opstack/4sync_block.png -------------------------------------------------------------------------------- /optimism-opstack/5proposer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism-opstack/5proposer.png -------------------------------------------------------------------------------- /optimism-opstack/6dispute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism-opstack/6dispute.png -------------------------------------------------------------------------------- /optimism/4_contract_call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism/4_contract_call.png -------------------------------------------------------------------------------- /optimism/fraud_verifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism/fraud_verifier.png -------------------------------------------------------------------------------- /optimism/solc-compiler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism/solc-compiler.png -------------------------------------------------------------------------------- /optimism/state_commitment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/optimism/state_commitment.png -------------------------------------------------------------------------------- /partydao/1_partybid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/partydao/1_partybid.png -------------------------------------------------------------------------------- /partydao/2_partybid_unittest_deploy_contribute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/partydao/2_partybid_unittest_deploy_contribute.png -------------------------------------------------------------------------------- /partydao/3_partybid_unittest_claim_finalize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/partydao/3_partybid_unittest_claim_finalize.png -------------------------------------------------------------------------------- /polkadot/ink_precompile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/polkadot/ink_precompile.png -------------------------------------------------------------------------------- /raydium/1deposit-swap.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/raydium/1deposit-swap.pdf -------------------------------------------------------------------------------- /sei/1txs_orderbook_parallelization.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sei/1txs_orderbook_parallelization.pdf -------------------------------------------------------------------------------- /serum/1_anchor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/serum/1_anchor.png -------------------------------------------------------------------------------- /serum/2_serum_dex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/serum/2_serum_dex.png -------------------------------------------------------------------------------- /solana/1_transaction_processing_unit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/1_transaction_processing_unit.png -------------------------------------------------------------------------------- /solana/2_broadcast_shreds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/2_broadcast_shreds.png -------------------------------------------------------------------------------- /solana/3_transaction_validate_unit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/3_transaction_validate_unit.png -------------------------------------------------------------------------------- /solana/5_data_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/5_data_structure.png -------------------------------------------------------------------------------- /solana/7_gossip_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/7_gossip_service.png -------------------------------------------------------------------------------- /solana/8_program_virtual_machine_rbpf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/8_program_virtual_machine_rbpf.png -------------------------------------------------------------------------------- /solana/9_program_log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/9_program_log.png -------------------------------------------------------------------------------- /solana/proof_of_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solana/proof_of_history.png -------------------------------------------------------------------------------- /solidity/solc-compiler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/solidity/solc-compiler.png -------------------------------------------------------------------------------- /ston.fi/1provide_liquidity.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/ston.fi/1provide_liquidity.pdf -------------------------------------------------------------------------------- /sui/1_authority_handle_certificate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sui/1_authority_handle_certificate.png -------------------------------------------------------------------------------- /sui/2_narwhal_process_certificate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sui/2_narwhal_process_certificate.png -------------------------------------------------------------------------------- /sui/3_compiler_parser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sui/3_compiler_parser.png -------------------------------------------------------------------------------- /sui/4_compiler_parser_ast_struct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sui/4_compiler_parser_ast_struct.png -------------------------------------------------------------------------------- /sushiswap/1_liquidity_provider_mining.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sushiswap/1_liquidity_provider_mining.png -------------------------------------------------------------------------------- /sushiswap/2_bentobox_deposit_withdraw_setstrategy_havest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sushiswap/2_bentobox_deposit_withdraw_setstrategy_havest.png -------------------------------------------------------------------------------- /sushiswap/sushi_interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/sushiswap/sushi_interface.png -------------------------------------------------------------------------------- /synthetix/1issuesynths.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/synthetix/1issuesynths.png -------------------------------------------------------------------------------- /synthetix/2burnsynths.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/synthetix/2burnsynths.png -------------------------------------------------------------------------------- /synthetix/3modifyposition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/synthetix/3modifyposition.png -------------------------------------------------------------------------------- /terra/1_terra_node_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/terra/1_terra_node_start.png -------------------------------------------------------------------------------- /terra/2_terra_wasm_apply_block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/terra/2_terra_wasm_apply_block.png -------------------------------------------------------------------------------- /thegraph/1_graph_node_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/thegraph/1_graph_node_start.png -------------------------------------------------------------------------------- /thegraph/2_subgraph_hosts_wasm_execute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/thegraph/2_subgraph_hosts_wasm_execute.png -------------------------------------------------------------------------------- /uniswap/2v3-swap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/uniswap/2v3-swap.png -------------------------------------------------------------------------------- /uniswap/3v3-interface-wallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/uniswap/3v3-interface-wallet.png -------------------------------------------------------------------------------- /uniswap/v2-interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/uniswap/v2-interface.png -------------------------------------------------------------------------------- /uniswap/v3-add-liquidity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/uniswap/v3-add-liquidity.png -------------------------------------------------------------------------------- /wasm-instructions/call.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace wasm; 4 | 5 | static uint32_t test_static1 = 0; 6 | static uint32_t test_static2 = 0; 7 | 8 | ACTION call::test(uint64_t i, uint64_t j) 9 | { 10 | 11 | balance1 = 10; 12 | //balance2 = 10; 13 | 14 | test_static1 = i; 15 | test_static2 = j; 16 | 17 | print_log(); 18 | 19 | print(balance1); 20 | //print(balance2); 21 | } 22 | 23 | 24 | void call::print_log() 25 | { 26 | print(test_static1); 27 | print(test_static2); 28 | 29 | } 30 | 31 | WASM_DISPATCH( call, (test)) 32 | -------------------------------------------------------------------------------- /wasm-instructions/call.wast: -------------------------------------------------------------------------------- 1 | (module 2 | (type (;0;) (func (param i32 i64 i64))) 3 | (type (;1;) (func (param i64))) 4 | (type (;2;) (func (param i32 i32))) 5 | (type (;3;) (func (param i32 i32 i32) (result i32))) 6 | (type (;4;) (func (result i32))) 7 | (type (;5;) (func (param i32 i32) (result i32))) 8 | (type (;6;) (func)) 9 | (type (;7;) (func (param i32) (result i32))) 10 | (type (;8;) (func (param i32))) 11 | (type (;9;) (func (param i64 i64 i64))) 12 | (type (;10;) (func (param i64 i64 i32) (result i32))) 13 | (import "env" "printui" (func (;0;) (type 1))) 14 | (import "env" "wasm_assert" (func (;1;) (type 2))) 15 | (import "env" "memset" (func (;2;) (type 3))) 16 | (import "env" "action_data_size" (func (;3;) (type 4))) 17 | (import "env" "read_action_data" (func (;4;) (type 5))) 18 | (import "env" "memcpy" (func (;5;) (type 3))) 19 | (func (;6;) (type 6) 20 | call 9) (;执行9号函数;) 21 | (func (;7;) (type 7) (param i32) (result i32) (;malloc/calloc;) 22 | (local i32 i32 i32) 23 | block ;; label = @1 24 | block ;; label = @2 25 | block ;; label = @3 26 | block ;; label = @4 27 | get_local 0 (;申请字节数Z;) 28 | i32.eqz 29 | br_if 0 (;@4;) (;申请字节数Z为0, 转65;) 30 | i32.const 0 31 | i32.const 0 32 | i32.load offset=8204 (;从8204获得当前页数1(入栈);) 33 | get_local 0 34 | i32.const 16 35 | i32.shr_u (;字节数(出栈)右移16位(出栈) = 申请页数A(入栈);) 36 | tee_local 1 (;申请页数A放1号变量;) 37 | i32.add (;申请页数A(出栈) + 当前页数(出栈) = 总页数B(入栈);) 38 | tee_local 2 (;总页数B放2号变量;) 39 | i32.store offset=8204 (;新页数B放8204;) 40 | i32.const 0 41 | i32.const 0 42 | i32.load offset=8196 (;从8196获得内存尾部地址8248(入栈);) 43 | tee_local 3 (;内存尾部地址end放3号变量;) 44 | get_local 0 45 | i32.add (;内存尾部地址end(出栈) + 申请字节数Z(出栈) = new_end(入栈);) 46 | i32.const 7 47 | i32.add 48 | i32.const -8 49 | i32.and 50 | tee_local 0 (;( new_end + 7) / 8 = new_end2(new_end 8字节对齐)放0号变量;) 51 | i32.store offset=8196 (;new_end2放8196;) 52 | get_local 2 53 | i32.const 16 54 | i32.shl (;总页数B左移16位,即总页数BX64K;) 55 | get_local 0 (;new_end2(入栈);) 56 | i32.le_u (;new_end2和总页数X64K对比;) 57 | br_if 1 (;@3;) (;大于需要+1页,转68;) 58 | get_local 1 59 | memory.grow (;增加页数A;) 60 | i32.const -1 61 | i32.eq 62 | br_if 2 (;@2;) (;失败转81;) 63 | br 3 (;@1;) (;成功转87;) 64 | end 65 | i32.const 0 (;返回值0(入栈);) 66 | return 67 | end 68 | i32.const 0 69 | get_local 2 (;总页数+1(入栈);) 70 | i32.const 1 71 | i32.add 72 | i32.store offset=8204 (;总页数+1放8204;) 73 | get_local 1 (;申请页数+1(入栈);) 74 | i32.const 1 75 | i32.add (;申请页数(出栈)+1(出栈);) 76 | memory.grow 77 | i32.const -1 78 | i32.ne 79 | br_if 1 (;@1;) 80 | end 81 | i32.const 0 82 | i32.const 8216 83 | call 1 (;失败;) 84 | get_local 3 85 | return 86 | end 87 | get_local 3) (;成功,返回首地址;) 88 | (func (;8;) (type 8) (param i32)) 89 | (func (;9;) (type 6) (;初始化8204放页数/8196放内存尾地址;) 90 | (local i32) 91 | get_global 0 (;0号全局变量8176(入栈);) 92 | i32.const 16 (;常量16(入栈);) 93 | i32.sub (;8176(出栈)-16(出栈) = 8160(入栈);) 94 | tee_local 0 (;8160 付值给0号变量;) 95 | i32.const 0 (;常量0(入栈);) 96 | i32.store offset=12 (;常量0(出栈)付值给8160(出栈) + 12 = 8172, 即[8172]=0 ;) 97 | i32.const 0 (;常量0(入栈);) 98 | get_local 0 (;8160(入栈);) 99 | i32.load offset=12 (;8160(出栈)+ 12 = 8172地址内的0(入栈);) 100 | i32.load (;0(出栈)地址内的值8248?(入栈);) 101 | i32.const 7 (;常量7(入栈);) 102 | i32.add (;8248(出栈)+ 7(出栈)= 8255(人栈);) 103 | i32.const -8 (;常量-8入栈;) 104 | i32.and (;8255(出栈) & -8(出栈) = 8248(入栈), 即(8248+7)/8, 8字节对齐 ;) 105 | tee_local 0 (;8248付值给0号变量;) 106 | i32.store offset=8196 (;8248(出栈) 付值给 0(出栈) + 8196 = 8196, 即[8196] = 8248;) 107 | i32.const 0 (;常量0入栈;) 108 | get_local 0 (;变量0(8248)入栈;) 109 | i32.store offset=8192 (;8248(出栈) 付值给 0(出栈) + 8192 = 8192, 即[8192] = 8248;) 110 | i32.const 0 (;常量0入栈;) 111 | memory.size (;内存页数1入栈;) 112 | i32.store offset=8204) (;内存页数1(出栈) 付值给0(出栈) + 8204 = 8204;) 113 | (func (;10;) (type 8) (param i32)) 114 | (func (;11;) (type 0) (param i32 i64 i64) 115 | i32.const 0 116 | get_local 1 117 | i64.store32 offset=8208 (;[8208] = i;) 118 | get_local 0 119 | i32.const 10 120 | i32.store offset=28 (;[contract+28] = 10, 即call.balance1 = 10;) 121 | i32.const 0 122 | get_local 2 123 | i64.store32 offset=8212 (;[8212] = j;) 124 | get_local 1 125 | i64.const 4294967295 126 | i64.and 127 | call 0 (;打印i;) 128 | i32.const 0 129 | i64.load32_u offset=8212 130 | call 0 (;打印j;) 131 | get_local 0 132 | i64.load32_u offset=28 133 | call 0 (;打印call.balance1;) 134 | get_local 0 135 | i64.load32_u offset=32 136 | call 0) (;打印call.balance2;) 137 | (func (;12;) (type 9) (param i64 i64 i64) 138 | (local i32) 139 | get_global 0 (;0号全局变量8192入栈, global0本次调用局部变量地址下限,返回前恢复;) 140 | i32.const 16 (;常量16入栈;) 141 | i32.sub (;8192(出栈)-16(出栈) = 8176 入栈;) 142 | tee_local 3 (;8176 付值给3号变量;) 143 | set_global 0 (;8176 付值给0号全局变量;) 144 | call 6 (;执行6号函数, 初始化页数和内存尾地址;) 145 | block ;; label = @1 146 | get_local 1 (;receiver(入栈);) 147 | get_local 0 (;code(入栈);) 148 | i64.ne (;receiver(出栈) 和 code(出栈)相同为0(入栈);) 149 | br_if 0 (;@1;) (;不为0(出栈)跳出block @1;) 150 | get_local 2 (;action(入栈);) 151 | i64.const -3841130677495922688 (;常量(入栈);) 152 | i64.ne (;action(出栈) 和 常量(出栈)相同为0(入栈);) 153 | br_if 0 (;@1;) (;不为0(出栈)跳出block @1;) 154 | get_local 3 (;3号变量8176入栈;) 155 | i32.const 0 (;常量0入栈;) 156 | i32.store offset=12 (;0(出栈)付值给 8176(出栈) + 12 = 8188;) 157 | get_local 3 (;3号变量8176入栈;) 158 | i32.const 1 (;常量1入栈;) 159 | i32.store offset=8 (;1(出栈)付值给 8176(出栈) + 8 = 8184 ;) 160 | get_local 3 (;3号变量8176入栈;) 161 | get_local 3 (;3号变量8176入栈;) 162 | i64.load offset=8 (;8176(出栈) + 8 = 8184 的值1入栈;) 163 | i64.store (;1(出栈)付值给8176(出栈), 就是把编号1放到3号变量,函数间接地址1通过elem转换指向11号函数;) 164 | get_local 1 (;recever(入栈);) 165 | get_local 1 (;code(入栈);) 166 | get_local 3 (;保存有函数间接地址1的8176(入栈);) 167 | call 13 168 | drop 169 | end 170 | i32.const 0 171 | call 10 172 | get_local 3 173 | i32.const 16 174 | i32.add 175 | set_global 0) 176 | (func (;13;) (type 10) (param i64 i64 i32) (result i32) 177 | (local i32 i32 i32 i32 i32 i32 i32) 178 | get_global 0 (;0号全局变量8176入栈;) 179 | i32.const 64 (;常量64入栈;) 180 | i32.sub (;8176(出栈) - 64(出栈) = 8112 入栈;) 181 | tee_local 3 (;8112 付值给3号变量;) 182 | set_local 4 (;8112(出栈)付值给4号变量;) 183 | get_local 3 (;3号变量8112入栈;) 184 | set_global 0 (;8112(出栈)给0号全局变量;) 185 | get_local 2 (;8176入栈;) 186 | i32.load offset=4 (;8176(出栈) + 4 = 8180的?0入栈;) 187 | set_local 5 (;0(出栈)付值给5号变量;) 188 | get_local 2 (;8176入栈;) 189 | i32.load (;8176(出栈)的值函数间接地址1入栈;) 190 | set_local 6 (;函数间接地址1(出栈),付值给6号变量;) 191 | block ;; label = @1 192 | block ;; label = @2 193 | block ;; label = @3 194 | block ;; label = @4 195 | call 3 (;获得参数数据大小16(入栈);) 196 | tee_local 7 (;16(出栈)付值给7号变量;) 197 | i32.eqz (;不等于0,0入栈;) 198 | br_if 0 (;@4;)(;不等于0,退出;) 199 | get_local 7 (;大小入栈;) 200 | i32.const 513 (;常量513入栈;) 201 | i32.lt_u (;16(出栈) < 513(出栈), 1入栈;) 202 | br_if 1 (;@3;)(;1(出栈),跳转到212;) 203 | get_local 7 (;大小入栈;) 204 | call 7 (;申请内存;) 205 | set_local 2 (;内存地址放2号变量;) 206 | br 2 (;@2;) (;跳转到222;) 207 | end 208 | i32.const 0 (;常量0入栈;) 209 | set_local 2 (;地址0放2号变量;) 210 | br 2 (;@1;) (;跳转到222;) 211 | end 212 | get_local 3 (;8112(入栈);) 213 | get_local 7 (;大小16(入栈);) 214 | i32.const 15 215 | i32.add 216 | i32.const -16 217 | i32.and 218 | i32.sub (;8112(出栈) - 16(大小) = 8096(入栈);) 219 | tee_local 2 (;buffer地址8096;) 220 | set_global 0 (;global 0设置成8096;) 221 | end 222 | get_local 2 (;buffer地址8096;) 223 | get_local 7 (;buffer大小;) 224 | call 4 (;读取参数数据;) 225 | drop 226 | end 227 | get_local 4 228 | i64.const 0 229 | i64.store offset=56 230 | get_local 4 231 | i64.const 0 232 | i64.store offset=48 233 | block ;; label = @1 234 | get_local 7 235 | i32.const 7 236 | i32.gt_u 237 | br_if 0 (;@1;) 238 | i32.const 0 239 | i32.const 8241 240 | call 1 241 | end 242 | get_local 2 243 | get_local 7 244 | i32.add 245 | set_local 3 246 | get_local 4 247 | i32.const 48 248 | i32.add 249 | i32.const 8 250 | i32.add 251 | set_local 8 (;8号变量是第二个参数, 8112+48+8=8168;) 252 | get_local 4 253 | i32.const 48 254 | i32.add 255 | get_local 2 256 | i32.const 8 257 | call 5 (;复制第一个参数,buffer8096 复制8个字节到8112+48=8160;) 258 | drop 259 | get_local 2 260 | i32.const 8 261 | i32.add 262 | set_local 9 263 | block ;; label = @1 264 | get_local 7 265 | i32.const -8 266 | i32.and 267 | i32.const 8 268 | i32.ne 269 | br_if 0 (;@1;) 270 | i32.const 0 271 | i32.const 8241 272 | call 1 273 | end 274 | get_local 8 275 | get_local 9 276 | i32.const 8 277 | call 5 (;复制第二个参数,buffer+8 8104号变量所指向的地址复制8个字节8号变量所指向的地址;) 278 | drop 279 | get_local 4 280 | i32.const 32 281 | i32.add 282 | get_local 3 283 | i32.store 284 | get_local 4 285 | get_local 2 286 | i32.store offset=24 (;ds设置给T;) 287 | get_local 4 288 | i32.const 28 289 | i32.add 290 | get_local 2 291 | i32.const 16 292 | i32.add 293 | i32.store 294 | get_local 4 295 | get_local 1 296 | i64.store offset=16 (;code设置给T;) 297 | get_local 4 298 | get_local 0 299 | i64.store offset=8 (;self设置给T;) 300 | get_local 4 301 | i32.const 8 302 | i32.add 303 | get_local 5 304 | i32.const 1 305 | i32.shr_s 306 | i32.add 307 | set_local 3 (;确定合约T地址8120;) 308 | get_local 4 309 | i32.const 48 310 | i32.add 311 | i32.const 8 312 | i32.add 313 | i64.load 314 | set_local 0 315 | get_local 4 316 | i64.load offset=48 317 | set_local 1 318 | block ;; label = @1 319 | get_local 5 320 | i32.const 1 321 | i32.and 322 | i32.eqz 323 | br_if 0 (;@1;) 324 | get_local 3 325 | i32.load 326 | get_local 6 327 | i32.add 328 | i32.load 329 | set_local 6 330 | end 331 | get_local 3 332 | get_local 1 333 | get_local 0 334 | get_local 6 (;函数间接地址1(入栈);) 335 | call_indirect (type 0) (;函数间接地址1通过elem_table转换成11号函数;) 336 | block ;; label = @1 337 | get_local 7 338 | i32.const 513 339 | i32.lt_u 340 | br_if 0 (;@1;) 341 | get_local 2 342 | call 8 343 | end 344 | get_local 4 345 | i32.const 64 346 | i32.add 347 | set_global 0 348 | i32.const 1) 349 | (table (;0;) 2 2 anyfunc) 350 | (memory (;0;) 1) 351 | (global (;0;) (mut i32) (i32.const 8192)) 352 | (global (;1;) i32 (i32.const 8246)) 353 | (global (;2;) i32 (i32.const 8246)) 354 | (export "apply" (func 12)) 355 | (elem (i32.const 1) 11) 356 | (data (i32.const 8216) "failed to allocate pages\00read\00") 357 | (data (i32.const 0) "8 \00\00")) 358 | -------------------------------------------------------------------------------- /zk-halo2-plonk/1_single_chip_circuit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zk-halo2-plonk/1_single_chip_circuit.png -------------------------------------------------------------------------------- /zk-halo2-plonk/2_two_chips_circuit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zk-halo2-plonk/2_two_chips_circuit.png -------------------------------------------------------------------------------- /zk-halo2-plonk/3_copy_constraint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zk-halo2-plonk/3_copy_constraint.png -------------------------------------------------------------------------------- /zkevm-ethereum-foundation/1_appliedzkp_circuits_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zkevm-ethereum-foundation/1_appliedzkp_circuits_add.png -------------------------------------------------------------------------------- /zkevm-ethereum-foundation/2_appliedzkp_circuits_witness_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zkevm-ethereum-foundation/2_appliedzkp_circuits_witness_loading.png -------------------------------------------------------------------------------- /zkevm-ethereum-foundation/3_appliedzkp_circuits_witness_loading_rws.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zkevm-ethereum-foundation/3_appliedzkp_circuits_witness_loading_rws.png -------------------------------------------------------------------------------- /zkevm-ethereum-foundation/4_appliedzkp_circuits_constraint_builder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zkevm-ethereum-foundation/4_appliedzkp_circuits_constraint_builder.png -------------------------------------------------------------------------------- /zkevm-polygon-hermez/1_zkevm_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zkevm-polygon-hermez/1_zkevm_node.png -------------------------------------------------------------------------------- /zksync/1_hardhat_zksync_solc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/1_hardhat_zksync_solc.png -------------------------------------------------------------------------------- /zksync/2_zksolc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/2_zksolc.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/block_commit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/block_commit.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/circuit_data_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/circuit_data_structure.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/eth_sender.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/eth_sender.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/eth_watch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/eth_watch.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/execute_op.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/execute_op.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/verified_proof.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/verified_proof.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/zinc-compiler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/zinc-compiler.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/zinc-vm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/zinc-vm.png -------------------------------------------------------------------------------- /zksync/zksyc1.0/zksync_zkevm_compiler_yul.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyu1998/web3.learning/fcab6f5d457ea53c6d7f1fa165790c585c7a87c0/zksync/zksyc1.0/zksync_zkevm_compiler_yul.png --------------------------------------------------------------------------------