-
sp - Substrate Primitives
-
sc - Substrate Client
-
sp-api - Substrate runtime API
-
sp-consensus - Common utilities for building and using consensus engines in Substrate
-
sp-consensus-aura - Primitives for Aura PoA consensus engine
-
sc-consensus-aura - Client primitives for Aura PoA consensus engine
-
sp-core - Shareable Substrate types
-
sp-finality-grandpa - Primitives for GRANDPA integration, suitable for WASM compilation
-
sp-runtime - Runtime Modules shared primitive types
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
| REMIX EXAMPLE PROJECT | |
| Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer. | |
| It contains 3 directories: | |
| 1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
| 2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
| 3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
| SCRIPTS |
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
| REMIX EXAMPLE PROJECT | |
| Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer. | |
| It contains 3 directories: | |
| 1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
| 2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
| 3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
| SCRIPTS |
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
| REMIX EXAMPLE PROJECT | |
| Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer. | |
| It contains 3 directories: | |
| 1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
| 2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
| 3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
| SCRIPTS |
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
| REMIX EXAMPLE PROJECT | |
| Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer. | |
| It contains 3 directories: | |
| 1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
| 2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
| 3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
| SCRIPTS |
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
| # ----- general ----- | |
| set selection-clipboard clipboard | |
| set page-padding 10 | |
| set statusbar-h-padding 0 | |
| set statusbar-v-padding 0 | |
| set statusbar-home-tilde true | |
| set window-title-basename true | |
| set window-title-page true | |
| set window-height 3000 | |
| set window-width 1000 |
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
| {-# LANGUAGE ScopedTypeVariables #-} | |
| import Foreign.Marshal.Array (newArray) | |
| import Control.Exception (bracket) | |
| import Data.Int (Int8) | |
| import System.IO (IOMode(..), openBinaryFile, hClose, hPutBuf, hFlush) | |
| main :: IO () | |
| main = bracket (openBinaryFile "rom.bin" WriteMode) hClose $ \handle -> do | |
| let bytes = replicate 32768 (0xea :: Int8) |
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
| { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }: | |
| let | |
| inherit (nixpkgs) pkgs; | |
| metapkgs = import (builtins.fetchTarball "https://github.com/matthewbauer/metapkgs/archive/master.tar.gz"); | |
| ghc = metapkgs.${compiler}; | |
| in pkgs.stdenv.mkDerivation { | |
| name = "my-haskell-env-0"; | |
| buildInputs = [ ghc nixpkgs.zlib ]; | |
| shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)"; |
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
| listFields ''MyData | |
| ======> | |
| instance Show MyData where | |
| GHC.Show.show x_agvh | |
| = (intercalate ", ") | |
| ((map ($ x_agvh)) | |
| [\ x_agvi -> ("foo" ++ (" = " ++ GHC.Show.show (foo x_agvi))), | |
| \ x_agvj -> ("bar" ++ (" = " ++ GHC.Show.show (bar x_agvj)))]) | |
PureScript compiler issues: