Skip to content

Instantly share code, notes, and snippets.

View bthaile's full-sized avatar

Tom Haile bthaile

  • code slinger
View GitHub Profile
{
"type": "Event",
"value":
{
"id": "flow.AccountKeyAdded",
"fields":
[
{
"name": "address",
"value":
@bthaile
bthaile / Old AccountKeyAdded format
Created June 22, 2022 21:26
Old AccountKeyAdded format
{
"type": "Event",
"value":
{
"id": "flow.AccountKeyAdded",
"fields":
[
{
"name": "address",
"value":
@bthaile
bthaile / Account balance failed
Last active October 21, 2022 17:29
can't get Flow account balances
"0x2aef436ae96cec3"
Trying to get account informatio fails
https://flow-view-source.com/mainnet/account/0x2aef436ae96cec3/keys
```
import FungibleToken from 0xFungibleToken
pub fun main(addr: Address): UFix64 {
let cap = getAccount(addr)
.getCapability<&{FungibleToken.Balance}>(${PATH})
tx hash: 139074ec867a823619968a53b241335de29b82d6d93dc4ca78454cb28bdd1d13
Error:
Error: [Error Code: 1101] error caused by: 1 error occurred: * transaction invocation failed when executing transaction: [Error Code: 1101] cadence runtime error: Execution failed: error: invalid argument at index 6: failed to load type: I.Crypto.KeyListEntry --> 819a5ac87b94ad1ffd419ed11e2f62b6d4919d0fc65600952a268438ba43a5a8
[
{
"type": "String",
"value": "39fa54984b8eaa463e129919464f61c8cec3a4389478df79c44eb9bfbf30799a"
@bthaile
bthaile / gist:e74f21a801a0a0a2c261f1200b168297
Created November 30, 2022 19:50
content checker request
{
"action": "completed",
"check_run": {
"id": 9805376052,
"name": "Developer Portal Content Check",
"node_id": "CR_kwDOD0vWrM8AAAACSHIqNA",
"head_sha": "a1e7f3fb1a46557a84fa6c3423db551994a1e93d",
"external_id": "",
"url": "https://api.github.com/repos/onflow/cadence/check-runs/9805376052",
"html_url": "https://github.com/onflow/cadence/runs/9805376052",

Primer

Introduction


Flow, the blockchain for open worlds

Flow is a fast, decentralized, and developer-friendly blockchain, designed as the foundation for a new generation of games, apps, and the digital assets that power them. It is based on a unique, multi-role architecture, and designed to scale without sharding, allowing for massive improvements in speed and throughput while preserving a developer-friendly, ACID-compliant environment.

Flow empowers developers to build thriving crypto- and crypto-enabled businesses. Applications on Flow can keep consumers in control of their own data; create new kinds of digital assets tradable on open markets accessible from anywhere in the world; and build open economies owned by the users that help make them valuable. 

@bthaile
bthaile / agreement
Created June 13, 2023 04:40
doc agreement
Effective Date: September 23, 2022
Arbitration Clause in Section 12
These Membership Terms of Service ("Terms"), which includes an agreement to arbitrate and consent to electronic communications, govern your access to and use of services provided by 1Life Healthcare, Inc. ("1Life", "we", "us", or "our"), including the One Medical website located at www.onemedical.com, the One Medical mobile application, membership services that include personal healthcare navigation services, wellness services, communication services, facilitation of access to telehealth services, including certain on-demand app and video-based telehealth services, and other technology-enabled or personal services provided by 1Life or its affiliate (collectively, the "Services"). Please read these Terms carefully before using the Services. By accessing or using the Services you agree to be bound by these Terms. If you are accepting these Terms for another person ("Family Member") as such Family Member’s parent, guardian, conservator, or cus
@bthaile
bthaile / med agreement
Created June 13, 2023 04:46
med agreement
Last Updated: June 5, 2023
For Regional Partners, see Section 11
These Medical Terms of Service ("Medical Services Terms") govern your use of the medical services, including the Telehealth Services described in more detail in Section 12 below ("Medical Services") provided by One Medical professional corporations and our affiliated medical services providers ("One Medical", "we", "us", or "our"). In some regions, Medical Services, with the exception of TeleHealth services, are provided by One Medical jointly with, and/or as subcontractors for, other health provider entities, health systems or academic medical center partners ("Partners"). These Partner relationships are described in more detail in Section 11 below. If you are using Medical Services in a region identified in Section 11, the applicable Partner is also a party to these Medical Services Terms, and "One Medical", "we", "us" or "our" means One Medical professional corporations (and our affiliated medical services providers) and the applicable Part
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
@bthaile
bthaile / ReadGreeting.template.json
Created November 7, 2023 20:43
ReadGreeting.template.json
{
"f_type": "InteractionTemplate",
"f_version": "1.0.0",
"id": "ba1fdd454259db9920a8d067e3c22135155365f507ed8b2c4fcf6cbdc4fddbd5",
"data": {
"type": "script",
"interface": "",
"messages": {
"title": {
"i18n": {