Skip to content

Instantly share code, notes, and snippets.

View cryptoaaron's full-sized avatar

Aaron Shames cryptoaaron

View GitHub Profile
@cryptoaaron
cryptoaaron / Bridge.sol
Created September 5, 2022 07:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.4+commit.1dca32f3.js&optimize=false&runs=200&gist=
pragma solidity 0.6.4;
pragma experimental ABIEncoderV2;
import "AccessControl.sol";
import "Pausable.sol";
import "SafeMath.sol";
import "IDepositExecute.sol";
import "IBridge.sol";
import "IERCHandler.sol";
import "IGenericHandler.sol";
@cryptoaaron
cryptoaaron / AccessControl.sol
Created September 5, 2022 07:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.4+commit.1dca32f3.js&optimize=false&runs=200&gist=
pragma solidity ^0.6.0;
import "EnumerableSet.sol";
import "Address.sol";
import "Context.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
@cryptoaaron
cryptoaaron / AccessControl.sol
Created September 5, 2022 07:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.4+commit.1dca32f3.js&optimize=false&runs=200&gist=
pragma solidity ^0.6.0;
import "EnumerableSet.sol";
import "Address.sol";
import "Context.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
@cryptoaaron
cryptoaaron / stellar-core.cfg
Created June 4, 2021 20:50
Sample stellar-core config from Stellar Development Foundation
PEER_PORT=11625
LOG_FILE_PATH="/var/log/stellar/stellar-core.log"
BUCKET_DIR_PATH="/var/lib/stellar/buckets"
HTTP_PORT=11626
PUBLIC_HTTP_PORT=false
CATCHUP_COMPLETE=true
COMMANDS=["ll?level=info"]
DATABASE="postgresql://dbname=stellar user=stellar host=/var/run/postgresql/"
@cryptoaaron
cryptoaaron / stellar-horizon
Created June 2, 2021 20:27
/etc/default/stellar-horizon
NETWORK_PASSPHRASE="Public Global Stellar Network ; September 2015"
DATABASE_URL="dbname=horizon user=stellar host=/var/run/postgresql"
STELLAR_CORE_DATABASE_URL="dbname=stellar user=stellar host=/var/run/postgresql"
STELLAR_CORE_URL="http://127.0.0.1:11626"
HISTORY_ARCHIVE_URLS="http://history.stellar.org/prd/core-live/core_live_001/"
PORT=8000
PER_HOUR_RATE_LIMIT=9000
INGEST=true
STELLAR_CORE_BINARY_PATH=/usr/bin/stellar-core
CAPTIVE_CORE_CONFIG_APPEND_PATH=/etc/default/stellar-captive-core-stub.toml
[[HOME_DOMAINS]]
HOME_DOMAIN="stellar.org"
QUALITY="HIGH"
[[HOME_DOMAINS]]
HOME_DOMAIN="1coin.io"
QUALITY="MEDIUM"
[[HOME_DOMAINS]]
HOME_DOMAIN="satoshipay.io"
### Keybase proof
I hereby claim:
* I am cryptoaaron on github.
* I am cryptoaaron (https://keybase.io/cryptoaaron) on keybase.
* I have a public key ASBKdDBFX1_s7nTy0uag8Enmf_slEm7f_Q2J9KYWn47U0Ao
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am cryptoaaron on github.
  • I am 1coin (https://keybase.io/1coin) on keybase.
  • I have a public key ASA6jfaFxki-H-3fqUpJSwdtZWzu7rSPM-NHju298VcqxAo

To claim this, I am signing this object: