@oracle-agent/oracle 0.1.0 → 0.2.0
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/README.md +37 -10
- package/SECURITY.md +11 -11
- package/SETUP.md +63 -16
- package/bin/desk-server.mjs +3 -1
- package/docs/architecture.md +10 -9
- package/package.json +5 -7
- package/src/data/desk-data.mjs +16 -0
- package/src/data/providers/bitcoin-esplora.mjs +2 -16
- package/src/data/providers/cowswap.mjs +9 -96
- package/src/data/providers/evm-rpc.mjs +19 -0
- package/src/data/providers/hl-assets.mjs +165 -0
- package/src/data/providers/hl-info.mjs +7 -1
- package/src/data/providers/hl-outcome.mjs +61 -0
- package/src/data/providers/hl-perps.mjs +40 -35
- package/src/data/providers/magiceden-sol.mjs +7 -6
- package/src/data/providers/poly-clob.mjs +460 -0
- package/src/data/providers/satflow.mjs +5 -4
- package/src/data/providers/solana-rpc.mjs +9 -0
- package/src/data/providers/uniswap-v3.mjs +3 -2
- package/src/index.mjs +1 -0
- package/src/onboarding/agent-keys.mjs +4 -0
- package/src/prepare-envelope.mjs +108 -0
- package/src/public-control/bundler-client.mjs +3 -18
|
@@ -211,26 +211,11 @@ function toHexIfBigIntLike(value) {
|
|
|
211
211
|
* if it does not resolve to ENTRYPOINT_V07
|
|
212
212
|
* @returns {Promise<string>} userOpHash returned by the bundler client
|
|
213
213
|
*/
|
|
214
|
-
export async function submitUserOperation(
|
|
215
|
-
|
|
216
|
-
requireSignedUserOp(userOp);
|
|
217
|
-
const resolvedEntryPoint = resolveEntryPoint(entryPoint);
|
|
218
|
-
requireClientMethod(bundlerClient, "sendUserOperation", "bundlerClient");
|
|
219
|
-
|
|
220
|
-
const payload = canonicalizeUserOpForSubmit(userOp);
|
|
221
|
-
assertNoSecretPayload(payload);
|
|
222
|
-
|
|
223
|
-
const userOpHash = await bundlerClient.sendUserOperation({
|
|
224
|
-
userOperation: payload,
|
|
225
|
-
entryPoint: resolvedEntryPoint,
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
if (typeof userOpHash !== "string" || !isHex(userOpHash)) {
|
|
229
|
-
fail("bundlerClient.sendUserOperation must resolve to a 0x-hex userOpHash");
|
|
230
|
-
}
|
|
231
|
-
return userOpHash;
|
|
214
|
+
export async function submitUserOperation(_params = {}) {
|
|
215
|
+
throw new Error("bundler-client.submitUserOperation refused: @oracle-agent/oracle is prepare-only. Submit UserOps from the user wallet or local operator.");
|
|
232
216
|
}
|
|
233
217
|
|
|
218
|
+
|
|
234
219
|
/**
|
|
235
220
|
* Fill gas fields on an UNSIGNED (pre-signature) UserOperation via an
|
|
236
221
|
* injected bundler client's estimateUserOperationGas. Never submits
|