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
#!/bin/bash | |
# Run waffle, but only if any contracts were changed -- to save time on hot reloading. | |
CONTRACTS_BUILD_DIR="set path to your contract ABI jsons directory here (or read from script args)" | |
CONTRACTS_SOURCES_DIR="set path to your solidity files directory here" | |
found_updates=false | |
for contract_file in $(find "$CONTRACTS_SOURCES_DIR" -name '*.sol'); do | |
# grep on alpine images doesn't support PCRE (grep -P switch), use awk instead | |
# for contract_name in $(grep -Poh '(?<=^contract )\w+' "$contract_file"); do |
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
// How to use cls-hooked, for example to tag logs with some useful request context. | |
// (https://github.com/Jeff-Lewis/cls-hooked) | |
// Confirmed to work correctly in production using Node 12.4. | |
// | |
// Author: github.com/quezak/, cheers from Ramp Network 💚💙 | |
// ----------------------------------- | |
// context-handler.ts | |
// ----------------------------------- |
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
{ | |
"swagger": "2.0", | |
"host": "test.test", | |
"schemes": ["https"], | |
"info": { "version": "1.0", "title": "Test" }, | |
"paths": { | |
"/test": { | |
"get": { | |
"summary": "Test", | |
"description": "Test", |