This howto is valid for Betanet on Ubuntu or Debian
You have to install some dependencies. In debian / ubuntu run:
[477234.004522] [Hardware Error]: Corrected error, no action required. | |
[477234.010885] [Hardware Error]: CPU:1 (19:21:0) MC19_STATUS[Over|CE|MiscV|AddrV|-|SyndV|CECC|-|Poison|Scrub]: 0xdc63493576e03944 | |
[477234.022525] [Hardware Error]: Error Addr: 0x0000000000000000 | |
[477234.028351] [Hardware Error]: IPID: 0x0000000000000000, Syndrome: 0x0000000000000000 | |
[477234.036292] [Hardware Error]: Coherent Slave Ext. Error Code: 32 | |
[477234.036294] [Hardware Error]: cache level: RESV, tx: DATA | |
[538346.980302] kernel BUG at net/core/skbuff.c:3013! | |
[538346.985174] invalid opcode: 0000 [#1] SMP NOPTI | |
[538346.989856] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P O 5.15.104-1-pve #1 | |
[538346.998059] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B550D4U-2T, BIOS L0.05E 07/26/2021 |
open Qiskit | |
(* Create the circuit *) | |
let qc = quantum_circuit 2 2 | |
|> h 0 | |
|> id 1 | |
|> barrier | |
|> cx 0 1 | |
|> barrier | |
|> measure 0 0 |
import "Token.yallo"; | |
contract deployAToken { | |
field tokenAddress: address; | |
entry deployToken() { | |
let (a: address, op: operation) = Tezos.createContract (Token(Tezos.selfAddress(), 100, "ourToken"), None, 0); | |
this.tokenAddress = a; | |
[op] | |
} |
import "IToken.yallo"; | |
const tokenContractAddress: address = @KT1ThEdxfUcWUwqsdergy3QnbCWGHSUHeHJq; | |
contract usingAToken { | |
field bal: nat; | |
entry checkBalance(a: address) { | |
[IToken.of(tokenContractAddress).getBalance(a, this.checkBalanceCallback)] | |
} |
contract Token implements IToken { | |
field balances: (address, nat) big_map; | |
field totalSupply: nat; | |
field symbol: string; | |
constructor (owner: address, supply: nat, symbol: string) { | |
this.balances = [ { owner: supply } ]; | |
this.totalSupply = supply; | |
this.symbol = symbol; | |
} |
interface IToken { | |
entry transfer(from: address, to: address, val: nat); | |
view getBalance(ad: address): nat; | |
} |
o you've contributed some code to an open source project, say, Rails. And they'd like you to squash all of the commits in your pull request. But you're not a git wizard; how do you make this happen?
Normally, you'd do something like this. I'm assuming upstream is a git remote that is pointing at the official project repository, and that your changes are in your 'omgpull' branch:
# Install lisk-commander | |
$ sudo npm install --global --production lisk-commander | |
# Transaction creation | |
$ lisk transaction:create -t transfer 100 ADDRESSL | |
? Please enter your secret passphrase: [hidden] | |
? Please re-enter your secret passphrase: [hidden] | |
{"amount":"10000000000","recipientId":"XXXL","senderPublicKey":"XX","timestamp":123,"type":0,"fee":"10000000","asset":{},"signature":"XX","id":"123"} | |
# Broadcast the multisig tx |
// First install bitcoinjs-lib and bip39 in the current working directory | |
// npm install bitcoinjs-lib bip39 | |
const bitcoin = require ('bitcoinjs-lib'); | |
const bip39 = require ('bip39'); | |
/// Generate a random keypair and display private and public key and the address (compressed by default) | |
let keypair = bitcoin.ECPair.makeRandom (); | |
console.log ('Address:', keypair.getAddress()); |