LOADING...
LOADING...
LOADING...
当前位置:主页 > 知识列表 >

main

1. 快讯| 美信(Main)与梧桐社区达成战略合作

据官方消息,美信(Main)与梧桐社区达成战略合作,双方将在项目发展,技术创新,链上生态建设等方面深度合作。 美信(Mation Chain简称Main)是下一代Web3.0生态的是区块链分布式社交应用,致力于打造一个完全去中心化的加密通信公链,提供社交游戏,发放红包奖励,直播,打赏等一站式...

知识:区块,项目,梧桐,美信

2. 【Substrate开发教程】04 - Rust编程语言基础入门

...调安全性,默认变量是不可变的,即不可重新赋值,如下面的代码会报错fn main(){ let a = "rust"; a = "c++"; println!("{}", a); } //报错提示不能给不可变的变量赋值两次,这就是Rust确保安全性的设定之一:变量绑定。println!这种名字以感叹号结尾,可以像函数一样被调用的语句,在rust中叫做宏。使用mut...

知识:类型,变量,函数,定义

3. # Wasm介绍之6:间接函数调用

...说明call_indirect指令。请读者创建一个Cargo项目,把下面的Rust代码复制到src/main.rs文件里:#![no_std] #![no_main] #[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } type Binop = fn(f32, f32) -> f32; fn add(a: f32, b: f32) -> f32 { a + b } fn sub(a: f32, b: f32) -> f32 { a - b } fn mul(a: f32, b: f32) -> f32 { a * b } fn div(a: ...

知识:指令,WASM

4. Main Idea

Main IdeaBuy stock in companies that you believe will generate wealth over time through their ongoing business operations. Never buy shares in anticipation of being able to sell them for more at a later stage-that's just attempting to make money off other stockholders.Supporting IdeasInvestors and speculators differ in their goals and approach to stock market investment in this way:■Investors ...

知识:differ,speculators,approach,go

5. DFNITY SDK 教程:包含前后端实现的 “hello world”

...dk.dfinity.org/manifest.jsonCreating new project "hello_world"...CREATE hello_world/src/hello_world/main.mo (107B)...CREATE hello_world/dfx.json (320B)...CREATE hello_world/.gitignore (189B)...CREATE hello_world/README.md (1.01KB)...CREATE hello_world/src/hello_world/public/index.js (155B)...CREATE hello_world/package.json (263B)...CREATE hello_world/webpack.config.js (1.76KB)...4. 查看默认目...

知识:项目,有中心化,互联网,文件

6. WD世库官宣:主网上线公告和空投奖励

...tabase 主网上线工作,预计计划公布如下:1. 主网启动软启动1.1 主网(https://main.worlddb.io)将于特拉维夫时间 2021 年 6 月 21 日 22:30 (GMT+3)上线主网软件。整个软启动期为 6 月 21 日至 6 月 30 日。1.2 主网软启动和体验结束后,节点实验室将为在主网上建立的矿工提供空投奖励。奖励方案为:每日矿工创...

知识:矿工,主网上线,代币,挖矿

7. go语言面向对象编程之类型系统(添加方法)

一.提前感受go语言的面向对象1.入门案例:求两点间距离main ( ???) Point?{ ???X,?Y?float64 } Distance(q,?p?Point)?float64?{ ???math.Hypot(q.X?-?p.X,?q.Y?-?p.Y) } (this?Point)?Distance??(another?Point)?float64?{ ???math.Hypot(this.X?-?another.X,?this.Y?-?another.Y) } main()?{ ???point1?:=?Point{,?} ???point2?:=?Point{,?} ???fmt.Println(Distance(point1,?point2)) ???fmt.Println(poi...

知识:类型,系统,语言,对象

8. CKB脚本编程简介之编程语言选择

... = 6; ?int ret = as<int>ckb::ckb_load_cell_data(buffer, &l, 0, index, 2); ?return ret;}export fn main () -> int { ?u64 index = 0; ?while true { ? ?u8 buffer[6]; ? ?int ret = load_data(index, buffer); ? ?if ret == 1 { ? ? ?break; ? ?} ? ?if memcmp(buffer, "carrot", 6) == 0 { ? ? ?return -1; ? ?} ? ?index++; ?} ?return 0;}你不需要理解这里的任何东西。但如果你了解一些 C,那...

知识:智能合约,在区块链,合约,语言

9. CKB 脚本编程简介之编程语言选择

...int ret = as<int>ckb::ckb_load_cell_data(buffer, &l, 0, index, 2); return ret;}export fn main () -> int { u64 index = 0; while true { u8 buffer[6]; int ret = load_data(index, buffer); if ret == 1 { break; } if memcmp(buffer, "carrot", 6) == 0 { return -1; } index++; } return 0;}你不需要理解这里的任何东西。但如果你了解一些 C,...

知识:DAPP,nervos,智能合约,CKB,密码学

10. 如何使用状态通道在以太坊创建可扩展的dApp和智能合约

...title>Dice ethereum game</title> </head> <body> <div class="main-content"> <button>Start new game</button> <button>Join existing game</button> </div> </body> </html> 在这段代码中,我刚创建了一个基本的HTML结构,其中包含一个包含按钮和标题的div。...

知识:合约,区块链,以太坊

11. 比特币价格上涨,但比特大陆失去了头把交椅

...的辉煌,每天和每周都大大减少了比特币区块奖励的份额。由比特大陆(Bitmain)领导的BTC矿池仍然是前四名矿机之一,但已将他们的领导权移交给了F2Pool和Poolin。 比特大陆三个月失去了比特币挖矿领导地位 在过去的三个月中,尽管比特币网络的总体哈希率不断创造一系列挖矿记录,但比特大陆的资金...

知识:挖矿,大陆,区块,可能会

12. Proof of Capacity

Announcement on Mainnet UpgradeDear users,We will start the Mainnet upgrade from 10:00 to 20:00 on January 10, 2020. During this time, Wallets, transactions, DAPP, etc. will be upgraded synchronously and not function.Important Notices for After the Upgrade:? Wallets, transactions, DAPP, etc. will connected to the main network only which will cause the Ethereum contract to be invalid, and Ethereum ...

知识:钱包,公链,节点挖矿,共识算法

13. Avalanche开发教程大赛获奖名单发布

....io/liquid-avax/ (1,000美元奖金)- https://github.com/ofemeteng/pangolin-token-subgraph/blob/main/README.md (2,000美元奖金)其他- https://github.com/realnimish/avax-chat-dapp/ (1,000美元奖金)- https://github.com/rajranjan0608/blogs/blob/main/blockchain/avalanche/drizzle-auction-manager.md (1,000美元奖金)- https://github.com/rajranjan0608/blogs/blob/main/blockchain/a...

知识:链上,代币化,智能合约,智能合约的应用

14. 【Substrate开发教程】24 - substrate-node-template项目结构详解

...可执行程序(binary)。这个[workspace]的成员有:node:可执行程序,在node/src/main.rs中有可执行的main函数入口;pallets/template:模块代码,在pallets/template/src/lib.rs中定义了可被外部调用的函数和数据结构;runtime:组件库,在runtime/src/lib.rs中定义了运行时逻辑;[profile.release]配置的panic='unwind'表示和catch_unwind...

知识:链上,区块,模块,全节点

15. 韭菜收割机策略剖析(1)

...简,并且对于原版的策略还原度很高,基本上是一样的。策略代码运行时从main()函数开始执行,通篇策略代码,除了main(),就是一个名为LeeksReaper()的函数了,LeeksReaper()函数也很好理解,该函数可以理解为韭菜收割机策略逻辑模块(一个对象)的构造函数,简单说LeeksReaper()就是负责构造一个韭菜收割机...

知识:函数,策略,机器人交易,收割机