- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #188 from palladians/feat/implement-web-connector-…
…events feat(web connector): add events emitting
Showing
43 changed files
with
657 additions
and
713 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version = 1 | ||
|
||
[[analyzers]] | ||
name = "javascript" | ||
|
||
[analyzers.meta] | ||
plugins = ["react"] | ||
environment = [ | ||
"browser", | ||
"vitest" | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/public/rpc.js | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { OnMessageCallback } from "webext-bridge" | ||
|
||
export type Handler = OnMessageCallback<any, any> | ||
export * from "./web-provider" | ||
export * from "./wallet" | ||
|
||
export const opts = { | ||
projectId: "test", | ||
chains: ["Mainnet"], | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { useVault } from "@palladxyz/vault" | ||
import type { NetworkName } from "@palladxyz/vault" | ||
import { MinaProvider } from "@palladxyz/web-provider" | ||
import { serializeError } from "serialize-error" | ||
import type { Handler } from "./" | ||
|
||
export const palladSidePanel: Handler = async ({ sender }) => { | ||
await chrome.sidePanel.open({ | ||
tabId: sender.tabId, | ||
}) | ||
} | ||
|
||
export const palladSwitchNetwork: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
await useVault.persist.rehydrate() | ||
const { switchNetwork, getChainId } = useVault.getState() | ||
const network = data.network as NetworkName | ||
await switchNetwork(network) | ||
await useVault.persist.rehydrate() | ||
const chainId = await getChainId() | ||
provider.emit("pallad_event", { | ||
data: { | ||
chainId: chainId, | ||
}, | ||
type: "chainChanged", | ||
}) | ||
} catch (error) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const palladConnected: Handler = async () => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
await useVault.persist.rehydrate() | ||
const { getChainId } = useVault.getState() | ||
const chainId = await getChainId() | ||
provider.emit("pallad_event", { | ||
data: { | ||
chainId: chainId, | ||
}, | ||
type: "connect", | ||
}) | ||
} catch (error) { | ||
return { error: serializeError(error) } | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
import { serializeError } from "serialize-error" | ||
import type { Handler } from "." | ||
import { | ||
MinaProvider, | ||
Validation, | ||
} from "../../../../../packages/web-provider/src" | ||
|
||
export const minaSetState: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.setStateRequestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_setState", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaAddChain = async () => { | ||
return { error: serializeError(new Error("4200 - Unsupported Method")) } | ||
} | ||
|
||
export const minaRequestNetwork: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.requestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_requestNetwork", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaSwitchChain = async () => { | ||
return { error: serializeError(new Error("4200 - Unsupported Method")) } | ||
} | ||
|
||
export const minaGetState: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.getStateRequestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_getState", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaChainId: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.requestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_chainId", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaAccounts: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.requestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_accounts", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaRequestAccounts: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.requestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_accounts", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaSign: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.signMessageRequestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_sign", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaSignFields: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.signFieldsRequestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_signFields", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaSignTransaction: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.signTransactionRequestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_signTransaction", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaGetBalance: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.requestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_getBalance", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaCreateNullifier: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.createNullifierRequestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_createNullifier", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const minaSendTransaction: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const params = Validation.sendTransactionRequestSchema.parse(data) | ||
return await provider.request({ | ||
method: "mina_sendTransaction", | ||
params, | ||
}) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} | ||
|
||
export const palladIsConnected: Handler = async ({ data }) => { | ||
try { | ||
const provider = await MinaProvider.getInstance() | ||
const { origin } = Validation.requestSchema.parse(data) | ||
return await provider.isConnected({ origin }) | ||
} catch (error: unknown) { | ||
return { error: serializeError(error) } | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { info, provider } from "./rpc/provider" | ||
|
||
const init = () => { | ||
;(window as any).mina = provider | ||
const announceProvider = () => { | ||
window.dispatchEvent( | ||
new CustomEvent("mina:announceProvider", { | ||
detail: Object.freeze({ info, provider }), | ||
}), | ||
) | ||
} | ||
window.addEventListener("mina:requestProvider", () => { | ||
announceProvider() | ||
}) | ||
announceProvider() | ||
console.info("[Pallad] RPC has been initialized.") | ||
} | ||
|
||
init() |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import mitt from "mitt" | ||
import { debouncedCall } from "./utils" | ||
|
||
type EmitterEvents = { | ||
connect: { chainId: string } | ||
chainChanged: { chainId: string } | ||
} | ||
|
||
const _events = mitt<EmitterEvents>() | ||
|
||
window.addEventListener("pallad_event", (event) => { | ||
event.stopImmediatePropagation() | ||
const { detail } = event as CustomEvent | ||
_events.emit(detail.type, detail.data) | ||
}) | ||
|
||
export const info = { | ||
slug: "pallad", | ||
name: "Pallad", | ||
icon: "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzAwIDMwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2Ns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i8+CjxwYXRoIGQ9Ik0yMTAgOTBMMjEwIDc1QzIxMCA3NSAyMTAgODEgMjA1LjUgODUuNUMyMDEgOTAgMTk1IDkwIDE5NSA5MEwyMTAgOTBaIiBmaWxsPSIjMjUyMzNBIi8+CjxwYXRoIGQ9Ik0yMTAgOTBMMjEwIDEwNUMyMTAgMTA1IDIxMCA5OSAyMTQuNSA5NC41QzIxOSA5MCAyMjUgOTAgMjI1IDkwTDIxMCA5MFoiIGZpbGw9IiMyNTIzM0EiLz4KPHBhdGggZD0iTTkwIDIxMEwxMDUgMjEwQzEwNSAyMTAgOTkgMjEwIDk0LjUgMjA1LjVDOTAgMjAxIDkwIDE5NSA5MCAxOTVMOTAgMjEwWiIgZmlsbD0iIzI1MjMzQSIvPgo8cGF0aCBkPSJNOTAgMjEwTDkwIDE5NUM5MCAxOTUgOTAgMjAxIDg1LjUgMjA1LjVDODEgMjEwIDc1IDIxMCA3NSAyMTBMOTAgMjEwWiIgZmlsbD0iIzI1MjMzQSIvPgo8cGF0aCBkPSJNOTAgMjEwTDkwIDIyNUM5MCAyMjUgOTAgMjE5IDk0LjUgMjE0LjVDOTkgMjEwIDEwNSAyMTAgMTA1IDIxMEw5MCAyMTBaIiBmaWxsPSIjMjUyMzNBIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTk4XzI0Njk1Ij4KPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIHJ4PSI0MCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K", | ||
rdns: "co.pallad", | ||
} | ||
|
||
export const provider = { | ||
_events, | ||
request: async ({ method, params }: { method: string; params: any }) => | ||
await debouncedCall({ | ||
method, | ||
payload: { ...params, origin: window.location.origin }, | ||
}), | ||
isPallad: true, | ||
on: _events.on, | ||
off: _events.off, | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import debounce from "p-debounce" | ||
|
||
const BROADCAST_CHANNEL_ID = "pallad" | ||
|
||
const callPalladAsync = ({ | ||
method, | ||
payload, | ||
}: { method: string; payload: any }) => { | ||
return new Promise((resolve, reject) => { | ||
const privateChannelId = `private-${Math.random()}` | ||
const channel = new BroadcastChannel(BROADCAST_CHANNEL_ID) | ||
const responseChannel = new BroadcastChannel(privateChannelId) | ||
const messageListener = ({ data }: any) => { | ||
channel.close() | ||
const error = data.response?.error | ||
if (error) { | ||
try { | ||
console.table(JSON.parse(error.message)) | ||
} catch { | ||
console.info(error.message) | ||
} | ||
return reject(error) | ||
} | ||
return resolve(data.response) | ||
} | ||
responseChannel.addEventListener("message", messageListener) | ||
channel.postMessage({ | ||
method, | ||
payload, | ||
isPallad: true, | ||
respondAt: privateChannelId, | ||
}) | ||
return channel.close() | ||
}) | ||
} | ||
|
||
export const debouncedCall = debounce(callPalladAsync, 300) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from "tsup" | ||
|
||
export default defineConfig({ | ||
entry: ["./src/inject/rpc.ts"], | ||
outDir: "public", | ||
format: "esm", | ||
noExternal: [/(.*)/], | ||
splitting: false, | ||
bundle: true, | ||
}) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
328 changes: 89 additions & 239 deletions
328
packages/web-provider/src/mina-network/mina-provider.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.