dao-realtor

所属分类:NFT
开发工具:JavaScript
文件大小:72628KB
下载次数:0
上传日期:2022-05-01 00:48:09
上 传 者sh-1993
说明:  房地产投资去中心化自治组织。
(Decentralize Autonomous Organisation for Real estate investment.)

文件列表:
.vscode (0, 2022-05-01)
.vscode\settings.json (2, 2022-05-01)
blockchain (0, 2022-05-01)
blockchain\.deps (0, 2022-05-01)
blockchain\.deps\npm (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\access (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\access\Ownable.sol (2460, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\token (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\token\ERC20 (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\token\ERC20\ERC20.sol (12627, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\token\ERC20\IERC20.sol (2767, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\token\ERC20\extensions (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\token\ERC20\extensions\IERC20Metadata.sol (683, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\utils (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\utils\Context.sol (844, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\utils\math (0, 2022-05-01)
blockchain\.deps\npm\@openzeppelin\contracts\utils\math\SafeMath.sol (6769, 2022-05-01)
blockchain\.env.example (200, 2022-05-01)
blockchain\.eslintignore (38, 2022-05-01)
blockchain\.eslintrc.js (352, 2022-05-01)
blockchain\.npmignore (31, 2022-05-01)
blockchain\.prettierignore (62, 2022-05-01)
blockchain\.prettierrc (3, 2022-05-01)
blockchain\.solhint.json (166, 2022-05-01)
blockchain\.solhintignore (13, 2022-05-01)
blockchain\contracts (0, 2022-05-01)
blockchain\contracts\.deps (0, 2022-05-01)
blockchain\contracts\.deps\npm (0, 2022-05-01)
blockchain\contracts\.deps\npm\@chainlink (0, 2022-05-01)
blockchain\contracts\.deps\npm\@chainlink\contracts (0, 2022-05-01)
blockchain\contracts\.deps\npm\@chainlink\contracts\src (0, 2022-05-01)
blockchain\contracts\.deps\npm\@chainlink\contracts\src\v0.8 (0, 2022-05-01)
blockchain\contracts\.deps\npm\@chainlink\contracts\src\v0.8\interfaces (0, 2022-05-01)
blockchain\contracts\.deps\npm\@chainlink\contracts\src\v0.8\interfaces\AggregatorV3Interface.sol (879, 2022-05-01)
... ...

[![Build Status](https://secure.travis-ci.org/kriskowal/q.svg?branch=master)](http://travis-ci.org/kriskowal/q) [![CDNJS](https://img.shields.io/cdnjs/v/q.js.svg)](https://cdnjs.com/libraries/q.js) Q logo If a function cannot return a value or throw an exception without blocking, it can return a promise instead. A promise is an object that represents the return value or the thrown exception that the function may eventually provide. A promise can also be used as a proxy for a [remote object][Q-Connection] to overcome latency. [Q-Connection]: https://github.com/kriskowal/q-connection On the first pass, promises can mitigate the “[Pyramid of Doom][POD]”: the situation where code marches to the right faster than it marches forward. [POD]: http://calculist.org/blog/2011/12/14/why-coroutines-wont-work-on-the-web/ ```javascript step1(function (value1) { step2(value1, function(value2) { step3(value2, function(value3) { step4(value3, function(value4) { // Do something with value4 }); }); }); }); ``` With a promise library, you can flatten the pyramid. ```javascript Q.fcall(promisedStep1) .then(promisedStep2) .then(promisedStep3) .then(promisedStep4) .then(function (value4) { // Do something with value4 }) .catch(function (error) { // Handle any error from all above steps }) .done(); ``` With this approach, you also get implicit error propagation, just like `try`, `catch`, and `finally`. An error in `promisedStep1` will flow all the way to the `catch` function, where it’s caught and handled. (Here `promisedStepN` is a version of `stepN` that returns a promise.) The callback approach is called an “inversion of control”. A function that accepts a callback instead of a return value is saying, “Don’t call me, I’ll call you.”. Promises [un-invert][IOC] the inversion, cleanly separating the input arguments from control flow arguments. This simplifies the use and creation of API’s, particularly variadic, rest and spread arguments. [IOC]: http://www.slideshare.net/domenicdenicola/callbacks-promises-and-coroutines-oh-my-the-evolution-of-asynchronicity-in-javascript ## Getting Started The Q module can be loaded as: - A ``