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
use std::ops::Deref; | |
use std::path::Path; | |
use std::str::FromStr; | |
use serde::{Deserialize, Serialize}; | |
use tempfile::NamedTempFile; | |
use ckb_fixed_hash::H256; | |
use ckb_hash::new_blake2b; | |
use ckb_jsonrpc_types as rpc_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
#!/usr/bin/env node | |
import { Command } from "commander"; | |
import { HexString } from "@ckb-lumos/base"; | |
import { Indexer } from "@ckb-lumos/indexer"; | |
import { | |
generateAddress, | |
} from "@ckb-lumos/helpers"; | |
import { key } from "@ckb-lumos/hd"; | |
import path from "path"; | |
import { getConfig, initializeConfig } from "@ckb-lumos/config-manager"; |
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
2. http://ec2-54-81-144-33.compute-1.amazonaws.com/0xE94febe98308BD4c72b0D7c7ce3A2261D2AF2703 | |
``` | |
----------------------------------------------------------- | |
info: User Contract Deployed: 0x543dFa0506E727813Bcde7D13DC33963531232A9 | |
info: Asset Contract Deployed: 0xa65e10B0AcFBe57D81b33C84cF1fC08302E2AeD4 | |
info: Origin Contract Deployed: 0xE94febe98308BD4c72b0D7c7ce3A2261D2AF2703 | |
info: Market Contract Deployed: 0xA6d1A3f33166a2f6519A7dBC50787E5A7E12DFD1 | |
----------------------------------------------------------- |
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
[ | |
{ | |
"type": "CREATE_PRODUCING_ASSET", | |
"data": { | |
"smartMeter": "0x6cc53915dbec95a66deb7c709c800cac40ee55f9", | |
"smartMeterPK": "0x191c4b074672d9eda0ce576cfac79e44e320ffef5e3aadd55e000de57341d36c", | |
"owner": "0x5b1b89a48c1fb9b6ef7fb77c453f2aaf4b156d45", | |
"matcher": "0x2bda153cd94a10cc6584115eada312b27d4166d3", | |
"operationalSince": 1480723200, | |
"capacityWh": 5000000, |
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
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_assetId", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_newMeterRead", | |
"type": "uint256" |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNameBindings: ['isSelected:addBorder'], | |
isSelected: Ember.computed('item', 'selectedItemTitle', function () { | |
return this.get('item') === this.get('selectedItemTitle'); | |
}) | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
animals: [ | |
{ | |
name: 'Cat', | |
visible: true | |
}, |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
emailInput(event) { | |
const $input = $(event.target); | |
const value = $input.val(); | |
const withoutSpaces = value.replace(/\s+/g, ''); | |
this.set('email', withoutSpaces); |
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 Ember from 'ember'; | |
export default function () { | |
window.server = this; | |
this.timing = 3000; | |
this.get('/categories'); | |
this.get('/categories/:id'); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
options: ['red', 'green', 'blue'], | |
selectedColor: null | |
}); |