找到约 15 条结果

文章 二层网络 Optimism 智能合约要点解析

... uint32 _l2Gas, bytes memory _data ) internal { // Construct calldata for finalizeDeposit call bytes memory message = abi.encodeWithSelector( IL2ERC20Bridge.finalizeDeposit.selector, address(0), Lib_PredeployAddresses.OVM_ETH, ...

文章 黑科技区块链如何来建设“智慧城市”

...智慧城市解决方案,如图2-1-1所示。 The new smart city is constructed with the focus mainly on big data and block chain technology, and the multi-dimensional smart city solution is formed by means of combining “one center, four platforms, multi-application, unified chain”, as show...

文章 STARK 证明系统时序图

... PhaseAnyone with access to the binary file and thepublic parameters can reconstruct the Image ID. Note over P: Execute the binary toconstruct the Main Execution Trace. Note over P: Compute Low DegreeExtension to construct theExtended Main Execution Trace. Note over P: Merklize Extended Mai...

文章 Substrate 总览(3) - 入门参考

...strate根目录上,执行 ``` cargo run -- --dev -d .sub --block-construction-execution=NativeElseWasm --other-execution=NativeElseWasm ``` 即可和`new-S`一样运行起以Alice为私钥启动的单验证者节点。 这里提一下,在这个版本的substrate里面存在一...

文章 创建一个基于链上实时数据的动态SVG NFT

...ore individual stream addresses so they can be referenced post-mint constructor() ERC721("BuidlGuidl Tabard", "BGT") {} function mintItem(address streamAddress) public { // Minimal check that wallet is the recipient of a Stream // Someone could deploy a decoy stream t...

文章 Substrate 抛硬币游戏(二):编写测试和UI

...nction的第一个参数是`Origin`枚举类型吗?在实现代码中,`construct_runtime!`宏通过调用`impl_outer_origin!`自动为我们添加了Origin的定义。但是在测试代码中,我们需要自己调用`impl_outer_origin!`帮我们生成runtime所依赖的`Origin`类型,宏解...

文章 《智能电网》基于充电桩的分布式能源解决方案

...nd analyzes the specific application of blockchain in electric energy, and constructs a new intelligent product. This paper starts from the perspective of blockchain-based charging piles, and carries out specific development of its product design, power transmission process and value generation meth...

文章 solana序列数据

...operties and imbues them // to the object instance class Assignable { constructor(properties) { Object.keys(properties).map((key) => { return (this[key] = properties[key]); }); } } // Our instruction payload vocabulary class Payload extends Assignable {} // Borsh nee...

文章 In-Depth Analysis of the TON ADNL Protocol: Building Secure and Efficient P2P Communication Network

...novative neighbor table mechanism, enables nodes within the TON network to construct an efficient and resilient network topology. This topology is not static; it is a living, breathing entity that adapts to the ebb and flow of network traffic, node availability, and changes in the network's overall ...

文章 sui-move基础(三):letsmove-task2

...mation about the transaction currently being executed. /// This cannot be constructed by a transaction--it is a privileged object created by /// the VM and passed in to the entrypoint of the transaction as `&mut TxContext`. public struct TxContext has drop { /// The address of the user that ...

文章 Go 语言之在 Gin 框架中使用 Zap 实现高效日志管理

...re := zapcore.NewCore(encoder, writeSyncer, zapcore.DebugLevel) // New constructs a new Logger from the provided zapcore.Core and Options. If // the passed zapcore.Core is nil, it falls back to using a no-op // implementation. // AddCaller configures the Logger to annotate each message w...

文章 TVM Smart Contract Optimization: In-Depth Analysis of Inline and Inline_ref Specifiers

...ressions are pre-evaluated at compile time, and loop unrolling, where loop constructs are expanded to reduce the overhead of loop control. * **Inlining Strategies:** Compilers may use various strategies to decide when to inline a function. These strategies can be based on heuristics, such as the s...

文章 Substrate代码导读:node-template

...类型; * 为runtime的实现各个功能模块的接口,runtime由`construct_runtime`宏生成, ``` impl template::Trait for Runtime { type Event = Event; } ``` * `construct_runtime`宏根据名称(如`TemplateModule`)和所用的模块内的组件(如`templa...

文章 Gnosis的ConditionalTokens解读

... return payoutNumerators[conditionId].length; } /// @dev Constructs a condition ID from an oracle, a question ID, and the outcome slot count for the question. /// @param oracle The account assigned to report the result for the prepared condition. /// @param questionId An ...

文章 深入探讨 Go 语言中的自定义 Zap 日志

...ewDevelopment和NewExample)或Config结构体更方便。 ```go // New constructs a new Logger from the provided zapcore.Core and Options. If // the passed zapcore.Core is nil, it falls back to using a no-op // implementation. // // This is the most flexible way to construct a Logger, but al...