From c0c07f697a83c7802cb275f06ade168a0e5222d2 Mon Sep 17 00:00:00 2001 From: Jordan Messina Date: Thu, 30 Nov 2023 14:42:29 -0500 Subject: [PATCH 1/3] Added support for CryptoPunks, Leeroy, and Fren.pet context actions --- package-lock.json | 4 ++-- src/types/transaction.ts | 44 +++++++++++++++++++++++++++++++++++----- 2 files changed, 41 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 194702ed..c3a559eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@once-upon/evm-context", - "version": "0.0.8", + "version": "0.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@once-upon/evm-context", - "version": "0.0.8", + "version": "0.0.12", "license": "UNLICENSED", "dependencies": { "commander": "^11.1.0", diff --git a/src/types/transaction.ts b/src/types/transaction.ts index 8c035ffc..58f7c773 100644 --- a/src/types/transaction.ts +++ b/src/types/transaction.ts @@ -110,18 +110,52 @@ export type ContextAction = | 'deployed' | 'minted' | 'swapped' - | 'wrapped' | 'sent' | 'received' - | 'unwrapped' - | 'registered' - | 'renewed' | 'committed to' | 'received airdrop' | 'gave access to' | 'interacted with' | 'sent message' - | 'set reverse ens to'; + // WETH + | 'wrapped' + | 'unwrapped' + // ENS + | 'registered' + | 'renewed' + | 'set reverse ens to' + // CryptoPunks + | 'minted punk' + | 'listed punk' + | 'withdrew bid for' + | 'bid on punk' + | 'withdrew from contract' + | 'bought punk' + | 'transffered punk' + | 'unlisted punk' + // Leeroy + | 'tipped' + | 'updated user details' + | 'replied to' + | 'reposted' + | 'registered username' + | 'followed' + | 'unfollowed' + | 'posted' + // fren.pet + | 'set pet name' + | 'bought accessory' + | 'attacked' + | 'redeemed' + | 'bonk revealed' + | 'wheel revealed' + | 'wheel commit' + | 'killed' + | 'minted' + | 'redeemed' + | 'sold item' + | 'joined dice game' + | 'dice game settled'; export type ContextSummaryVariableType = | string From 129264fc22fb3fbac1bfbe9b79c3e814fda38f86 Mon Sep 17 00:00:00 2001 From: Paul Cowgill Date: Thu, 30 Nov 2023 13:46:05 -0600 Subject: [PATCH 2/3] Typo fix --- src/types/transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/transaction.ts b/src/types/transaction.ts index 58f7c773..14729be6 100644 --- a/src/types/transaction.ts +++ b/src/types/transaction.ts @@ -131,7 +131,7 @@ export type ContextAction = | 'bid on punk' | 'withdrew from contract' | 'bought punk' - | 'transffered punk' + | 'transferred punk' | 'unlisted punk' // Leeroy | 'tipped' From b060cc1832974e2050a6a7671425416bbba195e6 Mon Sep 17 00:00:00 2001 From: Jordan Messina Date: Thu, 30 Nov 2023 14:47:46 -0500 Subject: [PATCH 3/3] Update src/types/transaction.ts Co-authored-by: Paul Cowgill --- src/types/transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/transaction.ts b/src/types/transaction.ts index 14729be6..7e14e3a0 100644 --- a/src/types/transaction.ts +++ b/src/types/transaction.ts @@ -149,7 +149,7 @@ export type ContextAction = | 'redeemed' | 'bonk revealed' | 'wheel revealed' - | 'wheel commit' + | 'wheel committed' | 'killed' | 'minted' | 'redeemed'