sequenceDiagram
actor A as Aruun
box White Mainnet
participant E as ENS Registry
participant V as L1 Reverse Registrar
end參考: Universal Resolver https://docs.ens.domains/resolvers/universal/
Offchain / L2 Resolvers https://docs.ens.domains/resolvers/ccip-read#offchain-vs-l2-resolvers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ... | |
| function UserOperationConfirmation(props: { userOpLog: UserOperationLog }) { | |
| // ... | |
| // TODO: Put it into a dedicated module | |
| const estimateGasFee = async () => { | |
| const fee = await provider.getFeeData() | |
| const gasPriceWithBuffer = (fee.gasPrice * 120n) / 100n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fetchData = async () => { | |
| const fetchUserOpsSent = async () => { | |
| const s = storage.get() | |
| const nm = new NetworkStorageManager(storage) | |
| const bundler = nm.getActive().bundler | |
| const bundlerProvider = new JsonRpcProvider(bundler.url) | |
| console.log( | |
| `[ttt] storage userOp: ${json.stringify(s.userOpPool, null, 2)}` | |
| ) | |
| const userOps = Object.values(s.userOpPool) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ... | |
| import { type State } from "~background/storage" | |
| import { | |
| AccountType, | |
| getStorage, | |
| setStorageTest, | |
| type Account |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { AbiCoder } from "ethers"; | |
| import { readFileSync } from "fs"; | |
| import { p1363ToDer } from "./ecdsa-utils"; | |
| const userOpHash = process.argv[2]; | |
| const ethersAbi = AbiCoder.defaultAbiCoder(); | |
| const fido2Credential = JSON.parse( | |
| readFileSync("test/ffi/bitwarden_export_20231219124736.json", "utf-8"), |
Here is a simple flow chart:
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // 同步更新至:https://gist.github.com/oneleo/780d90384b6444e504b8a7b2fc49f9e5 | |
| // ----------------------------- | |
| // ----------- VSCode ----------- | |
| // ----------------------------- | |
| // 滑鼠點選其他分頁時,舊分頁自動存檔 | |
| "files.autoSave": "onFocusChange", | |
| // 調整字體大小 | |
| "editor.fontSize": 15, | |
| // 文字超過螢幕自動挪到下一行 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "title": "LR_Shift to Ctrl+Space", | |
| "rules": [ | |
| { | |
| "description": "Change L_Shift to switch EN/ZH condition", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "title": "LR_Shift to Ctrl+Space", | |
| "rules": [ | |
| { | |
| "description": "Change L_Shift to switch EN/ZH condition", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "conditions": [ | |
| { |
NewerOlder