This is how to set up and use OpenZeppelin's Payment Splitter.
Make a folder / repo.
Add forge.
forge init --no-commit
import { exec as execNonPromise } from 'child_process' | |
import { copyFile, mkdir, readFile, rm, writeFile } from 'fs/promises' | |
import { join } from 'path' | |
import util from 'util' | |
import { | |
BUILD_DIR, | |
DEPLOYABLE_CONTRACT_NAMES, | |
} from './constants' | |
const exec = util.promisify(execNonPromise) |
This is how to set up and use OpenZeppelin's Payment Splitter.
Make a folder / repo.
Add forge.
forge init --no-commit
I hereby claim:
To claim this, I am signing this object:
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"AdminName": { | |
"NoEcho": "false", | |
"Type": "String", | |
"Description": "New admin account name", | |
"MinLength": "1", | |
"MaxLength": "41", | |
"AllowedPattern": "[a-zA-Z0-9]*", |
function humanifyArray(arr, lastWord){ | |
if (!arr || arr.length === 0){ | |
// Return an empty string for blank arrays | |
return '' | |
} else if (arr.length == 1){ | |
// Return the sole array item if only 1 item | |
return arr[0] | |
} | |
// Duplicate array to prevent modification issues | |
arr = arr.slice(0) |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import sys | |
import json | |
def eexit(message): | |
"""Print a message and exit.""" | |
print(message) | |
exit(1) | |
def convert(inFile, outFile): | |
"""Convert the JSON file to swagger YAML.""" |