找到约 15 条结果

文章 入门 Sui Move 开发:8. PTB 以及 Sui TS SDK 的使用

...l. --make-move-vec Given n-values of the same type, it constructs a vector. For non objects or an empty vector, the type tag must be specified. --merge-coins Merge N coins into the provided coin. --move-call Make a move call to a function....

文章 用Substrate框架实现一个简单的游戏应用

... 最后,我们需要在运行时构造函数中包含demo模块: ``` construct_runtime!( pub enum Runtime with Log(InternalLog: DigestItem) where Block = Block, NodeBlock = opaque::Block, UncheckedExtrinsic = UncheckedExtrinsic { System: system::{default, Log(ChangesT...

文章 Sui Move 学习:Object & 四种能力

...ate an instance of the `IgnoreMe` struct and ignore it. // Even though we constructed the instance, we don't need to unpack it. fun test_ignore() { let no_drop = NoDrop {}; let _ = IgnoreMe { a: 1, b: 2 }; // no need to unpack // The value must be unpacked for the code to compile....

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

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

文章 二层网络 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, ...

文章 2021.02 - Substrate 技术更新速递

...e Chain)的一个重要功能。 * [在Substrate的单元测试中使用construct_runtime!宏](https://link.zhihu.com/?target=https%3A//g%3Ccode%3Eithub.com/parityte%3C/code%3Ech/substrate/pull/8059) - `construct_runtime!`生成的`PalletInfo`实现能够返回唯一的模块名作为存储项的...

问题 我设置两个营销钱包,代币从lp地址进入子合约,不知道是不是没有自动卖出(没有我设置的分发usdt),返回营销钱包失败。帮我看下哪里错误

...t is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decr...

文章 sui-move基础(四):letsmove-task3

...e attribute can be a field on the object that defines the NFT itself. This construct provides a much more straightforward process for accessing metadata for the NFT as the smart contract that wants the information can just return the name from the object itself. 翻译一下(来自gpt): ...

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

文章 【zkMIPS系列】Poseidon hash设计流程 & 代码

... # 1. 海绵结构 Poseidon哈希函数采用下面的海绵结构(Sponge Construction)来进行设计,其中P是Posedion每轮的置换函数,$I$是初始状态。假设初始状为$I$为全$0$向量,有一个消息$m=m_1||m_2||m_3||m_4$,输出为$h=h_1||h_2$,且每个$m_i$和$h_i$都...

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

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

文章 move基本数据类型(二)

...an instance of the `IgnoreMe` struct and ignore it. // Even though we constructed the instance, we don't need to unpack it. fun test_vec() { //声明一个具有三个元素的向量 let mut v = vector[10, 20, 30]; //通过push_back方法,添加值为5的元素...

文章 为以太坊构建实用的zkSNARKs,使用Rust与Alex Vlasov

...referrer=https%3A%2F%2Fblog.matter-labs.io%2Fedcon-hack-practical-zksnarks-constructing-for-ethereum-afe6fa008166&embeds_referring_euri=https%3A%2F%2Fcdn.embedly.com%2F&embeds_referring_origin=https%3A%2F%2Fcdn.embedly.com) 0:00 0:00 / 1:08:07•直播 • [在 YouTube 上观看](https://www.you...

文章 Poseidon哈希作为EVM预编译合约的计算成本分析

...添加。 Poseidon 是一种相对较新的哈希函数,基于 [sponge construction](https://keccak.team/files/CSF-0.1.pdf),它使用遵循 [Hades strategy](https://eprint.iacr.org/2019/1107) 构建的置换。 先前的研究 ([Grassi et al. 2021](https://eprint.iacr.org/2019/458.pdf)) 表明...

文章 ERC20相关业务的合约开发与合约安全

...t is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decr...