@marigoldlabs/web3-tester 0.1.2 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +26 -17
- package/LICENSE +21 -0
- package/README.md +480 -48
- package/dist/anvil.d.ts +90 -2
- package/dist/anvil.d.ts.map +1 -1
- package/dist/anvil.js +215 -13
- package/dist/anvil.js.map +1 -1
- package/dist/benchmark.d.ts +55 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmark.js +168 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/contracts/test-erc20.d.ts +227 -0
- package/dist/contracts/test-erc20.d.ts.map +1 -0
- package/dist/contracts/test-erc20.js +8 -0
- package/dist/contracts/test-erc20.js.map +1 -0
- package/dist/erc20.d.ts +38 -0
- package/dist/erc20.d.ts.map +1 -0
- package/dist/erc20.js +229 -0
- package/dist/erc20.js.map +1 -0
- package/dist/fixtures.d.ts +44 -2
- package/dist/fixtures.d.ts.map +1 -1
- package/dist/fixtures.js +162 -17
- package/dist/fixtures.js.map +1 -1
- package/dist/index.d.ts +26 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/injected-provider.d.ts.map +1 -1
- package/dist/injected-provider.js +863 -77
- package/dist/injected-provider.js.map +1 -1
- package/dist/live-fixtures.d.ts +32 -3
- package/dist/live-fixtures.d.ts.map +1 -1
- package/dist/live-fixtures.js +64 -27
- package/dist/live-fixtures.js.map +1 -1
- package/dist/matchers.d.ts +90 -0
- package/dist/matchers.d.ts.map +1 -0
- package/dist/matchers.js +268 -0
- package/dist/matchers.js.map +1 -0
- package/dist/metamask-extension.d.ts +34 -0
- package/dist/metamask-extension.d.ts.map +1 -0
- package/dist/metamask-extension.js +97 -0
- package/dist/metamask-extension.js.map +1 -0
- package/dist/mock-wallet-controller.d.ts +354 -4
- package/dist/mock-wallet-controller.d.ts.map +1 -1
- package/dist/mock-wallet-controller.js +1444 -58
- package/dist/mock-wallet-controller.js.map +1 -1
- package/dist/private-key-rpc-client.d.ts +1744 -2
- package/dist/private-key-rpc-client.d.ts.map +1 -1
- package/dist/private-key-rpc-client.js +245 -30
- package/dist/private-key-rpc-client.js.map +1 -1
- package/dist/real-wallet-cache.d.ts +103 -0
- package/dist/real-wallet-cache.d.ts.map +1 -0
- package/dist/real-wallet-cache.js +331 -0
- package/dist/real-wallet-cache.js.map +1 -0
- package/dist/real-wallet-extension-fixtures.d.ts +35 -0
- package/dist/real-wallet-extension-fixtures.d.ts.map +1 -0
- package/dist/real-wallet-extension-fixtures.js +96 -0
- package/dist/real-wallet-extension-fixtures.js.map +1 -0
- package/dist/real-wallet-extension.d.ts +86 -0
- package/dist/real-wallet-extension.d.ts.map +1 -0
- package/dist/real-wallet-extension.js +245 -0
- package/dist/real-wallet-extension.js.map +1 -0
- package/dist/real-wallet-fixtures.d.ts +52 -0
- package/dist/real-wallet-fixtures.d.ts.map +1 -0
- package/dist/real-wallet-fixtures.js +88 -0
- package/dist/real-wallet-fixtures.js.map +1 -0
- package/dist/real-wallet.d.ts +119 -19
- package/dist/real-wallet.d.ts.map +1 -1
- package/dist/real-wallet.js +1656 -144
- package/dist/real-wallet.js.map +1 -1
- package/dist/safe.d.ts +311 -0
- package/dist/safe.d.ts.map +1 -0
- package/dist/safe.js +743 -0
- package/dist/safe.js.map +1 -0
- package/dist/transactions.d.ts +118 -0
- package/dist/transactions.d.ts.map +1 -0
- package/dist/transactions.js +207 -0
- package/dist/transactions.js.map +1 -0
- package/dist/types.d.ts +36 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/wallet-personas.d.ts +99 -0
- package/dist/wallet-personas.d.ts.map +1 -0
- package/dist/wallet-personas.js +666 -0
- package/dist/wallet-personas.js.map +1 -0
- package/dist/walletconnect.d.ts +373 -0
- package/dist/walletconnect.d.ts.map +1 -0
- package/dist/walletconnect.js +799 -0
- package/dist/walletconnect.js.map +1 -0
- package/examples/live-sepolia.spec.ts +20 -1
- package/examples/playwright.config.ts +8 -0
- package/package.json +90 -8
- package/docs/API.md +0 -223
- package/docs/ARCHITECTURE.md +0 -81
- package/docs/CONSUMING_FROM_FJORD.md +0 -123
- package/docs/FJORD_LIVE_QA.md +0 -87
- package/docs/RELEASE_CHECKLIST.md +0 -55
package/.env.example
CHANGED
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-
#
|
|
2
|
-
DAPP_URL=https://v4.fjordfoundry.com
|
|
3
|
-
|
|
4
|
-
# Local Anvil
|
|
1
|
+
# --- Library: local Anvil (used by `npm test`) ---
|
|
5
2
|
ANVIL_RUNTIME=binary
|
|
6
3
|
ANVIL_EXECUTABLE=anvil
|
|
7
4
|
ANVIL_DOCKER_IMAGE=ghcr.io/foundry-rs/foundry:latest
|
|
8
5
|
ANVIL_HOST=127.0.0.1
|
|
9
|
-
|
|
6
|
+
# Anvil refuses to bind beyond loopback (its admin RPC is unauthenticated)
|
|
7
|
+
# unless this is explicitly set to true.
|
|
8
|
+
ANVIL_ALLOW_NON_LOOPBACK=false
|
|
9
|
+
# Worker base port; worker index is added for isolation. Defaults to 8645 so
|
|
10
|
+
# it never collides with a developer-run node on 8545.
|
|
11
|
+
ANVIL_PORT=8645
|
|
10
12
|
ANVIL_CHAIN_ID=31337
|
|
11
13
|
ANVIL_FORK_URL=
|
|
12
14
|
ANVIL_SILENT=true
|
|
13
15
|
|
|
14
|
-
#
|
|
16
|
+
# --- Library: live-chain fixtures ---
|
|
15
17
|
# Never commit a real value here. Set it only in your shell or CI secret store.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
WEB3_TESTER_PRIVATE_KEY=
|
|
19
|
+
WEB3_TESTER_RPC_URL=
|
|
20
|
+
|
|
21
|
+
# --- Real-wallet (MetaMask extension) mode ---
|
|
22
|
+
WEB3_TESTER_METAMASK_VERSION=
|
|
23
|
+
WEB3_TESTER_REAL_WALLET_EXTENSION_PATH=
|
|
24
|
+
WEB3_TESTER_REAL_WALLET_PROFILE_DIR=
|
|
25
|
+
WEB3_TESTER_REAL_WALLET_PASSWORD=
|
|
26
|
+
WEB3_TESTER_REAL_WALLET_SECRET_RECOVERY_PHRASE=
|
|
27
|
+
# Required choice for real-wallet runs: true or false (no default). Headed
|
|
28
|
+
# (false) is the fully validated mode; headless needs the full Chromium
|
|
29
|
+
# binary (npx playwright install chromium).
|
|
30
|
+
WEB3_TESTER_REAL_WALLET_HEADLESS=
|
|
31
|
+
# Set true to run the opt-in real-MetaMask smoke suite.
|
|
32
|
+
WEB3_TESTER_REAL_WALLET_SMOKE=
|
|
18
33
|
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
FJORD_PUBLISH_SALES=false
|
|
23
|
-
FJORD_ADMIN_MUTATE=false
|
|
24
|
-
FJORD_QA_RUN_ID=
|
|
25
|
-
FJORD_RESUME_DRAFT_NAME=
|
|
26
|
-
FJORD_PROJECT_TOKEN_ADDRESS=
|
|
27
|
-
FJORD_EXPLORE_SALE_CREATE=false
|
|
34
|
+
# --- WalletConnect simulation (opt-in relay suite) ---
|
|
35
|
+
# Reown project id; needed only for the './walletconnect' relay tests.
|
|
36
|
+
WEB3_TESTER_WC_PROJECT_ID=
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Marigold Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|