找到约 14 条结果

文章 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...

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

...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...

文章 Substrate代码导读:node-template

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

文章 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 ...

文章 什么是代币化房地产?

...据 [Ernst & Young (EY)](https://www.ey.com/en_ch/real-estate-hospitality-construction/tokenization-from-illiquid-to-liquid-real-estate-ownership) 的说法,“房地产资产的**代币化**可以在房地产行业中发挥重要作用。通过使用**代币化**,公证访问、可观的交易...

文章 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...

文章 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 ...

文章 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...

文章 如何利用限制条款在比特币上实现通用智能合约

... [BIP 0341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#constructing-and-spending-taproot-outputs))。 我们将在下文提出一种潜在解决方案,用来在 UTXO 中表示合约的状态和有效转换规则。 ### 链上计算?! 计算应该在区块链上执行...

文章 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...

文章 《Effective Rust》第 7 条:对于复杂的类型,使用构造器

...名*不*需要消费 `self`,因此必须如下所示: ```rust /// Construct a fully built [`Details`] object. /// 生成一个构造完毕的 [`Details`] 对象。 pub fn build(&self) -> Details { // ... } ``` 这个可重复调用的 `build()` 的实现必须在每次被调用...

文章 如何使用 NFTScan NFT API 在 Starknet 网络上开发 Web3 应用

...ddress = "0x0727a63f78ee3f1bd18f78009067411ab369c31d" token_id = "1" # Construct API request URL url = f"{api_endpoint}/{contract_address}/{token_id}" # Make an HTTP GET request response = requests.get(url) # Check if the request was successful if response.status_code == 200: # Get...

文章 《现代管理》eonDAO:一种基于区块链治理哲学的去中心化组织的自组织治理实验

...a typical blockchain decentralized autonomous organization is designed and constructed. Through the careful design of the core rules design, extension mechanism and consensus mechanism and decision-making mechanism to improve organizational management efficiency, reduce organizational management cos...