Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am dashameter on github.
  • I am dashameter (https://keybase.io/dashameter) on keybase.
  • I have a public key whose fingerprint is FDCE 9848 575C 61DE 6A12 0988 E2AF 6D99 C6FE 5FD7

To claim this, I am signing this object:

View evofaucet-firebase-cloudfunctions.js
const functions = require('firebase-functions');
const express = require('express');
const Dash = require('dash');
const cors = require('cors');
const app = express();
View sendFunds_accountSign.js
const Dash = require('dash');
const clientOpts = {
network: 'testnet',
wallet: {
mnemonic: 'mnemonic with funds',
}
};
const client = new Dash.Client(clientOpts);
View apps.json
{
"Users": { "contractId": "3bhAjxGB5rZ8sTB1nEj1fC6SCZV6c3XEbX8Lm2arVbjA" },
"primitives": {
"contractId": "FtNpnUh4tdUmH6gpusHEToczNMwmf37h79pWkdwXgh6h"
},
"jembe": { "contractId": "4gzbZindZD91ehrTRRYVrXJAKq5wLPVtJiSLP71JAgeG" }
}
View primivites.json
{
"Signup": {
"indices": [
{
"unique": false,
"properties": [
{
"accountDocId": "asc"
}
]
@dashameter
dashameter / jembe.json
Last active Jun 11, 2020
jembe contract [wip]
View jembe.json
{
"jams": {
"indices": [
{
"properties": [
{
"userId": "asc"
}
]
},
@dashameter
dashameter / dash-platform.md
Created Jun 6, 2020
Dash Platform Documentation
View dash-platform.md
View registerContractWithDefinitions.js
const Dash = require('dash')
const clientOpts = {
network: 'testnet',
mnemonic: 'a Dash wallet mnemonic with evonet funds goes here'
}
const client = new Dash.Client(clientOpts)
const registerContract = async function() {
try {
View identities.js
async synchronizeIdentities() {
const transactionsMap = await this.account.getTransactions();
const transactions = Object.keys(transactionsMap).map((txid) => {
return transactionsMap[txid];
});
const outputs = transactions.reduce((outputs, transaction) => {
const preparedOutputs = transaction.outputs.map((output, index) => {
let isBurnOutput;