Skip to content

Instantly share code, notes, and snippets.

View anonymoussprocket's full-sized avatar
🌴
On vacation

anonymoussprocket

🌴
On vacation
View GitHub Profile
@anonymoussprocket
anonymoussprocket / mockContract.ts
Created July 21, 2022 21:35
Mock a mainnet contract dynamically
import fetch from 'node-fetch';
import { smock } from '@defi-wonderland/smock';
async function deployMockContractFromAddress(contractAddress: string, etherscanKey: string) {
const abi = await fetch(`https://api.etherscan.io/api?module=contract&action=getabi&address=${contractAddress}&apikey=${etherscanKey}`)
.then(response => response.json())
.then(data => JSON.parse(data['result']));
return smock.fake(abi, {address: contractAddress});
}
I am attesting that this GitHub handle anonymoussprocket is linked to the Tezos account tz1eU1NCk7U6sNxDKos7CJMM7P97bW3wyGB1 for tzprofiles
sig:edsigtwwTgkiJZuqnGFDgsHsfV1Ejt8K2WXhD6Nei8WKgHr8CnbHrvcqJoUpT1LwRgzHWtPzqxQZ5itS4LHTC3KNX7iyNbhSCq1
@anonymoussprocket
anonymoussprocket / README.md
Last active January 15, 2022 04:35
Querying Tezos historical data with Conseil

Querying Tezos historical data with Conseil

@anonymoussprocket
anonymoussprocket / README.md
Last active June 17, 2021 14:37
Basic smart contract interaction UI example in HTML with ConseilJS

Purpose

This is the full code for an simplistic dApp on Tezos. It is presented as part of the Cryptonomic dApp development curriculum with ConseilJS & SmartPy. The relevant discussion of this code is in Part 6.

Environment

To get access to Tezos & Conseil infrastructure signup for an account at Nautilus Cloud. The missing parameters in the code below will come from there.

Confirmed Environment Configurations

@anonymoussprocket
anonymoussprocket / README.md
Last active May 14, 2021 05:07
Tezos FA1.2 token workflow sample

Tezos FA1.2 token workflow sample

The purpose of this script is to demonstrate common operations on an FA1.2 token on the Tezos platform using the ConseilJS library and Nautilus Cloud infrastructure.

Workflow Outline

Using

<html>
<head>
<style>
#hen-embed {
border: 1px solid black;
height: 800px;
width: 500px;
}
</style>
<script>
@anonymoussprocket
anonymoussprocket / README.md
Last active March 16, 2021 06:31
Tezos User Workflows with ConseilJS

Purpose

Single script to test common Tezos user workflows. Additionally this sample illustrates the use of ConseilJS for interactions with a Tezos blockchain node.

Environment

This tutorial requires nodejs 12.21+ & npm. It's highly recommended to install those via nvm.

Steps

@anonymoussprocket
anonymoussprocket / README.md
Last active November 28, 2020 18:09
Tezos Token Tantrum
@anonymoussprocket
anonymoussprocket / README.md
Last active November 11, 2020 05:10
TZIP-7/FA1.2 token sample #87651

blah

@anonymoussprocket
anonymoussprocket / README.md
Last active June 24, 2020 04:18
Cryptonomic Tezos developer workshop materials

Workshop

These materials are meant to accompany the live workshops by Cryptonomic for blockchain and smart contract development. This version focuses on the Tezos chain and smart contract development with SmartPy.

Content

The code in this workship is written Typescript. We will use the ConseilJS library to interact with the Tezos Alphanet chain. It is possible to use the ConseilJS npm package with nodejs directly with JavaScript. There is also a minified deployment for use on websites. The smart contract section follows the Smart Contract Development Syllabus and uses SmartPy. The contracts covered in the syllabus are also available on Github. While this introduction coveres much of the Tezos user workflows, some things are out of scope. Please refer to the full [ConseilJS Documentation](https://cryptonomic.github.io/