This file contains 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
class TransactionInput { | |
public: | |
uint256 HashKey; | |
uint32_t IndexNumber; | |
uint32_t SignatureScriptLength; | |
uint256 ResponseScript; | |
uint32_t InputSequenceNumber; | |
}; |
This file contains 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
class Transaction { | |
public: | |
const int32_t Version; | |
const uint32_t NumberOfInputs; | |
const vector<TransactionInput> CollectionOfInputs; | |
const uint32_t NumberOfOutputs; | |
const vector<TransactionOutput> CollectionOfOutputs; | |
const uint32_t LockTimestamp; | |
}; |
This file contains 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
class BlockHeader { | |
public: | |
int32_t Version; | |
uint256 PreviousBlockHash; | |
uint256 MerkleRootHash; | |
uint32_t Timestamp; | |
uint32_t TargetToBeSolved; | |
uint32_t NonceForProofOfWork; | |
}; |
This file contains 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
class Block { | |
public: | |
BlockHeader Header; | |
vector Transactions; | |
}; |
This file contains 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
(function () { | |
/* converted by @brakmic */ | |
/* original code: https://github.com/isaacs/json-stringify-safe */ | |
/* usage example: | |
* | |
*angular.module("myModule", ['jsonStringify']) | |
* .controller("MainCtrl", ['StringifyJsonService', MainCtrl]); | |
* |
This file contains 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
0x094f3723c13E9ee24de4AEb5b358FdD94D34315C |
This file contains 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
# open powershell and execute this file | |
# let the window open | |
# if the script won't start because of local execution policy restrictions you can use "Set-Execution-Policy Bypass" | |
$createdNew = $False; | |
$mutex = New-Object -TypeName System.Threading.Mutex($true, "MsWinZonesCacheCounterMutexA", [ref]$createdNew); |
This file contains 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
this.store.select(appState => appState.customerState).subscribe(subState => { | |
const customerInstance = subState.customer; // not an observable but a concrete instance | |
}); |
This file contains 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
private getCustomerObservable() { | |
this.customer = getCustomer(this.store); | |
} |
This file contains 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
this.customerTable.on('select', (e: Event, dt: DataTables.DataTable, | |
type: string, indexes: number[]) => { | |
let row: INWCustomer = dt.rows(indexes[0]).data()['0']; | |
const customer = this.toLocalCustomer(row); | |
this.store.dispatch(this.customerActions.customerSelected(customer)); | |
}); |