From 77fcc7fdab9a7123f67bbc8c4d1c013ee2f6edca Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Tue, 12 Sep 2023 03:27:29 -0400 Subject: [PATCH] docs: added some cookbook recipes --- docs.wrm/cookbook/ens.wrm | 66 +++++++ docs.wrm/cookbook/index.wrm | 7 + docs.wrm/cookbook/react-native.wrm | 36 ++++ docs.wrm/cookbook/signing.wrm | 273 +++++++++++++++++++++++++++++ docs.wrm/links/npm.txt | 1 + docs.wrm/links/projects.txt | 2 + 6 files changed, 385 insertions(+) create mode 100644 docs.wrm/cookbook/ens.wrm create mode 100644 docs.wrm/cookbook/index.wrm create mode 100644 docs.wrm/cookbook/react-native.wrm create mode 100644 docs.wrm/cookbook/signing.wrm diff --git a/docs.wrm/cookbook/ens.wrm b/docs.wrm/cookbook/ens.wrm new file mode 100644 index 0000000000..c0ac3896ea --- /dev/null +++ b/docs.wrm/cookbook/ens.wrm @@ -0,0 +1,66 @@ +_section: Cookbook: ENS Recipes @ + +Here is a collection of short, but useful examples of working with +ENS entries. + + +_subsection: Get all Text rectods @ + +Here is a short recipe to get all the text records set for an ENS +name. + +It first queries all ``TextChanged`` events on the resovler, and +uses a MulticallProvider to batch all the ``eth_call`` queries +for each key into a single ``eth_call``. As such, you will need +to install: + +``/home/ricmoo> npm install @ethers-ext/provider-multicall`` + + +_code: Fetching all ENS text records. @lang