This is how to set up and use OpenZeppelin's Payment Splitter.
Make a folder / repo.
Add forge.
forge init --no-commit
import { ethers } from "ethers" | |
const providerUrl = '' //FIXME | |
const deployerPk = '' // FIXME | |
const deployTo = '0x8a5bc19e22d6ad55a2c763b93a75d09f321fe764' // Universal deployer addr | |
const deployData = '0x9c4ae2d0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d8360c06040523480156200001157600080fd5b5060405162002d6338038062002d638339810160408190526200003491620000e2565b80600060405180606001604052806028815260200162002d3b60289139306001600160a01b03166040516020018083805190602001908083835b602083106200008f5780518252601f1990920191602091820191016200006e565b51815160209384036101000a60001901801990921691161790529201938452506040805180850381529382019052825192019190912060805250505060601b6001600160601b03191660a0525062000112565b600060208284031215620000f4578081fd5b81516001600160a01b03811681146200010b578182fd5b9392505050565b60805160a05160601c612bf862000143600039806106d55280611baa5250806106b |
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.""" |