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
/** | |
* This hook just accepts any transaction coming through it | |
*/ | |
#include "hookapi.h" | |
#define ttNFTOKEN_MINT 25 | |
#define ttNFTOKEN_OFFER_CREATE 27 | |
#define tfSELLTOKEN 0x00000001UL |
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
``` | |
def get_all_holders(w3, currency, issuer): | |
"""get_all_holders.""" | |
holders = {} | |
marker = None | |
has_marker = True | |
page = 1 | |
logger.info('SNAPSHOT {} FOR {}'.format(currency, issuer)) | |
while has_marker: | |
logger.info('PAGINATION: PAGE: {}'.format(page)) |
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
#define HAS_CALLBACK | |
#include <stdint.h> | |
#include "hookapi.h" | |
#define ttNFTOKEN_MINT 25 | |
#define tfBURNABLE 0x00000001UL | |
#define tfONLYXRP 0x00000002UL | |
#define tfTRUSTLINE 0x00000004UL | |
#define tfTRANSFERABLE 0x00000008UL |
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
#include <stdint.h> | |
#include "hookapi.h" | |
int64_t cbak(uint32_t reserved) | |
{ | |
TRACESTR("Carbon1: callback called."); | |
return 0; | |
} | |
int64_t hook(uint32_t reserved) |
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
*** Cluster Setup for Google Container Engine *** | |
0/ Install and configure local gcloud and kubectl: https://cloud.google.com/sdk/docs/ | |
> gcloud components install kubectl | |
1/ Configure Google Cloud account: | |
> gcloud config set account YOUR_EMAIL_ADDRESS | |
> gcloud config set project YOUR_PROJECT_ID | |
> gcloud config set compute/zone us-west1-a | |
> gcloud config set container/cluster example |
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
# Install some prerequisites. | |
# Assume you have Ubuntu 18.04 x64 installed | |
apt-get update \ | |
&& apt-get install -y gcc g++ wget git cmake protobuf-compiler libprotobuf-dev libssl-dev | |
# Build Boost | |
wget https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz \ | |
&& tar -xzf boost_1_70_0.tar.gz \ | |
&& cd boost_1_70_0 \ | |
&& ./bootstrap.sh \ |
NewerOlder