This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| import {UD60x18} from "@prb/math/UD60x18.sol"; | |
| import {SD59x18} from "@prb/math/SD59x18.sol"; | |
| library PRBMathRounding { | |
| SD59x18 constant iONE = SD59x18.wrap(1e18); | |
| SD59x18 constant iTEN = SD59x18.wrap(10e18); | |
| UD60x18 constant ONE_THOUSAND = UD60x18.wrap(1000e18); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { noise } from '@chainsafe/libp2p-noise'; | |
| import { bootstrap } from '@libp2p/bootstrap'; | |
| import { tcp } from '@libp2p/tcp'; | |
| import { webSockets } from '@libp2p/websockets'; | |
| import { createLibp2p } from 'libp2p'; | |
| import { yamux } from '@chainsafe/libp2p-yamux'; | |
| import { floodsub } from '@libp2p/floodsub'; | |
| import { createFromJSON } from '@libp2p/peer-id-factory'; | |
| const node1 = { |
OlderNewer