Skip to content

Instantly share code, notes, and snippets.

View jim-toth's full-sized avatar
🚀

Jim Toth jim-toth

🚀
View GitHub Profile
@jim-toth
jim-toth / sws-5-following.md
Last active January 23, 2024 00:33
SWS-5: Following Interface

GroupId: "SWS-5" Title: "Following Interface" Description: "This document describes the standard interface for SmartWeave Contracts that represent a list for the tracking of unique blockchain addresses (i.e. "following")." Topics:

  • "specs"
  • "standard"
  • "sws"
  • "smartweave"
  • "following"
@jim-toth
jim-toth / sws-4-multi-token.md
Last active October 17, 2023 14:47
SWS-4 Multi-Token Standard Interface

SWS-4: Multi-Token Standard Interface

Status: Draft

Version: 1.0.0

Author: Jim Toth (jim@artby.city)

Abstract

This document describes the standard interface for SmartWeave Contracts that represent multitple tokenized assets simultaneously.

@jim-toth
jim-toth / sws-2-smartweave-token.md
Last active October 2, 2023 20:14
SWS-2 SmartWeave Token

SWS-2: SmartWeave Token

Status: Published

Version: 1.1.0

Abstract

This document describes the standard interface for tokenized asset SmartWeave Contracts. The SmartWeave Token Spec refers to a SmartWeave Contract that can grant ownership properties to any arweave asset when it is deployed, effectively

@jim-toth
jim-toth / sws-3-multi-token.md
Last active July 18, 2023 14:42
SWS-3 Multi-Token Standard

SWS-3 Multi-Token Standard

Token Interface

totalSupply() => { totalSupply: number }

balanceOf(address: string) => { address: string, balance: number }

transfer(to: string, amount: number) => void
@jim-toth
jim-toth / 101-relay-operator-alternate-identity.md
Last active July 18, 2023 16:48
Broadcasting Relay Operator Alternate Identities
Filename: 101-relay-operator-alternate-identity.md
Title: Broadcasting Relay Operator Alternate Identities
Author: Jim Toth - jim@memeticblock.io, Slava Mushyaokv - slava@memeticblock.io, & ATOR Labs LLC
Created: 2023-07-18
Status: Draft

Overview

@jim-toth
jim-toth / related-assets-spec.md
Last active June 13, 2023 15:07
Related Assets Spec
@jim-toth
jim-toth / arweave-related-asset-spec.md
Last active July 29, 2023 04:12
Arweave Related Assets (Preview / Thumbnail) Spec
@jim-toth
jim-toth / evm-typescript.ts
Last active April 21, 2023 01:30
EVM Address TypeScript
type LengthOfString<
S extends string,
Acc extends 0[] = []
> = S extends `${string}${infer Rest}`
? LengthOfString<Rest, [...Acc, 0]>
: Acc['length']
export type HexNumbers =
| '0'
| '1'
@jim-toth
jim-toth / artbycity-protocol-ans110.md
Created December 8, 2022 22:30
Arweaver's Art By City Protocol Summary & ANS-110 Discussion

Arweaver's Art By City Protocol Summary & ANS-110 Discussion

History

Art By City started primarily as an artist-focused DApp (https://artby.city) during the Open Web Foundry in Q4 2021. As our focus is on utilizing a decentralized web to empower creators through discoverability and curation, we quickly realized the need to categorize different types of creative asset publications, their intended rendering containers, metadata, licensing, and associated meta-actions such as liking, tipping, or sharing. We began outlining a specification to be implemented as tags on Arweave transactions so that our own dapp could discover these assets, know how to render them properly, display the associated creator metadata (e.g. title, description, license), and begin building a curation graph we could crawl later through likes and tips. This work was designed while the DApp was being developed by necessity and through code.

We continued to refine the spec, through code and many conversations - we've spoken to dozen

Keybase proof

I hereby claim:

  • I am jim-toth on github.
  • I am jimtoth (https://keybase.io/jimtoth) on keybase.
  • I have a public key ASA-y8vlOw2yuczxegCGepIQU6ZrhQTSMPfPg2v8gjXflAo

To claim this, I am signing this object: