@absol-labs/agent 0.11.0 → 0.12.0-rc.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/README.md +43 -51
- package/dist/capability/invocation-capability.d.ts +2 -2
- package/dist/capability/probe-capability.d.ts +225 -0
- package/dist/capability/probe-capability.d.ts.map +1 -0
- package/dist/capability/probe-capability.js +248 -0
- package/dist/capability/probe-capability.js.map +1 -0
- package/dist/cli/args.d.ts +11 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +23 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/claim.d.ts +32 -0
- package/dist/cli/commands/claim.d.ts.map +1 -1
- package/dist/cli/commands/claim.js +116 -28
- package/dist/cli/commands/claim.js.map +1 -1
- package/dist/cli/commands/close.d.ts.map +1 -1
- package/dist/cli/commands/close.js +35 -3
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/invoke.d.ts +2 -0
- package/dist/cli/commands/invoke.d.ts.map +1 -1
- package/dist/cli/commands/invoke.js +2 -2
- package/dist/cli/commands/invoke.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +15 -2
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/open.d.ts.map +1 -1
- package/dist/cli/commands/open.js +58 -4
- package/dist/cli/commands/open.js.map +1 -1
- package/dist/cli/commands/pay.d.ts +34 -0
- package/dist/cli/commands/pay.d.ts.map +1 -0
- package/dist/cli/commands/pay.js +479 -0
- package/dist/cli/commands/pay.js.map +1 -0
- package/dist/cli/commands/reclaim-unverified.d.ts.map +1 -1
- package/dist/cli/commands/reclaim-unverified.js +3 -2
- package/dist/cli/commands/reclaim-unverified.js.map +1 -1
- package/dist/cli/commands/reclaim.d.ts +23 -2
- package/dist/cli/commands/reclaim.d.ts.map +1 -1
- package/dist/cli/commands/reclaim.js +204 -20
- package/dist/cli/commands/reclaim.js.map +1 -1
- package/dist/cli/commands/refund.d.ts +31 -0
- package/dist/cli/commands/refund.d.ts.map +1 -0
- package/dist/cli/commands/refund.js +397 -0
- package/dist/cli/commands/refund.js.map +1 -0
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +21 -2
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/streams.js +8 -12
- package/dist/cli/commands/streams.js.map +1 -1
- package/dist/cli/commands/watch.d.ts.map +1 -1
- package/dist/cli/commands/watch.js +4 -1
- package/dist/cli/commands/watch.js.map +1 -1
- package/dist/cli/config.d.ts +44 -26
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +88 -38
- package/dist/cli/config.js.map +1 -1
- package/dist/cli/context.d.ts +19 -0
- package/dist/cli/context.d.ts.map +1 -1
- package/dist/cli/deps.d.ts +53 -0
- package/dist/cli/deps.d.ts.map +1 -1
- package/dist/cli/deps.js +51 -1
- package/dist/cli/deps.js.map +1 -1
- package/dist/cli/errors.d.ts.map +1 -1
- package/dist/cli/errors.js +21 -1
- package/dist/cli/errors.js.map +1 -1
- package/dist/cli/escape-hatch.d.ts +6 -4
- package/dist/cli/escape-hatch.d.ts.map +1 -1
- package/dist/cli/escape-hatch.js +6 -2
- package/dist/cli/escape-hatch.js.map +1 -1
- package/dist/cli/listings.d.ts +18 -0
- package/dist/cli/listings.d.ts.map +1 -1
- package/dist/cli/listings.js +22 -12
- package/dist/cli/listings.js.map +1 -1
- package/dist/cli/preflight.d.ts +20 -14
- package/dist/cli/preflight.d.ts.map +1 -1
- package/dist/cli/preflight.js +34 -20
- package/dist/cli/preflight.js.map +1 -1
- package/dist/cli/privy.d.ts.map +1 -1
- package/dist/cli/privy.js +4 -2
- package/dist/cli/privy.js.map +1 -1
- package/dist/cli/progress.d.ts +13 -1
- package/dist/cli/progress.d.ts.map +1 -1
- package/dist/cli/progress.js +7 -1
- package/dist/cli/progress.js.map +1 -1
- package/dist/cli/reclaimability.d.ts +82 -0
- package/dist/cli/reclaimability.d.ts.map +1 -0
- package/dist/cli/reclaimability.js +80 -0
- package/dist/cli/reclaimability.js.map +1 -0
- package/dist/cli/run.d.ts +2 -1
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +62 -21
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/scan-range.d.ts +2 -2
- package/dist/cli/scan-range.js +2 -2
- package/dist/cli/status.d.ts +106 -1
- package/dist/cli/status.d.ts.map +1 -1
- package/dist/cli/status.js +325 -44
- package/dist/cli/status.js.map +1 -1
- package/dist/cli/wallet.d.ts +2 -2
- package/dist/cli/wallet.d.ts.map +1 -1
- package/dist/cli/wallet.js +29 -5
- package/dist/cli/wallet.js.map +1 -1
- package/dist/discovery/rate-band.d.ts +74 -0
- package/dist/discovery/rate-band.d.ts.map +1 -0
- package/dist/discovery/rate-band.js +114 -0
- package/dist/discovery/rate-band.js.map +1 -0
- package/dist/escrow-generation.d.ts +81 -0
- package/dist/escrow-generation.d.ts.map +1 -0
- package/dist/escrow-generation.js +76 -0
- package/dist/escrow-generation.js.map +1 -0
- package/dist/frameworks/agentkit.d.ts +8 -4
- package/dist/frameworks/agentkit.d.ts.map +1 -1
- package/dist/frameworks/agentkit.js +27 -10
- package/dist/frameworks/agentkit.js.map +1 -1
- package/dist/frameworks/eliza.d.ts +3 -3
- package/dist/frameworks/eliza.d.ts.map +1 -1
- package/dist/frameworks/eliza.js +15 -6
- package/dist/frameworks/eliza.js.map +1 -1
- package/dist/frameworks/langchain.d.ts.map +1 -1
- package/dist/frameworks/langchain.js +8 -0
- package/dist/frameworks/langchain.js.map +1 -1
- package/dist/gateway/caller-auth-gateway.d.ts +83 -31
- package/dist/gateway/caller-auth-gateway.d.ts.map +1 -1
- package/dist/gateway/caller-auth-gateway.js +180 -27
- package/dist/gateway/caller-auth-gateway.js.map +1 -1
- package/dist/gateway/http-server.d.ts +128 -44
- package/dist/gateway/http-server.d.ts.map +1 -1
- package/dist/gateway/http-server.js +506 -155
- package/dist/gateway/http-server.js.map +1 -1
- package/dist/gateway/probe-auth.d.ts +112 -0
- package/dist/gateway/probe-auth.d.ts.map +1 -0
- package/dist/gateway/probe-auth.js +127 -0
- package/dist/gateway/probe-auth.js.map +1 -0
- package/dist/gateway/signed-rate-bounds.d.ts +51 -0
- package/dist/gateway/signed-rate-bounds.d.ts.map +1 -0
- package/dist/gateway/signed-rate-bounds.js +94 -0
- package/dist/gateway/signed-rate-bounds.js.map +1 -0
- package/dist/gateway/x402-opener-mode.d.ts +252 -0
- package/dist/gateway/x402-opener-mode.d.ts.map +1 -0
- package/dist/gateway/x402-opener-mode.js +772 -0
- package/dist/gateway/x402-opener-mode.js.map +1 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.d.ts +64 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +247 -37
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/x402-tools.d.ts +109 -0
- package/dist/mcp/x402-tools.d.ts.map +1 -0
- package/dist/mcp/x402-tools.js +554 -0
- package/dist/mcp/x402-tools.js.map +1 -0
- package/dist/network.d.ts +119 -0
- package/dist/network.d.ts.map +1 -0
- package/dist/network.js +199 -0
- package/dist/network.js.map +1 -0
- package/dist/sdk/client.d.ts +13 -0
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/client.js +15 -0
- package/dist/sdk/client.js.map +1 -1
- package/dist/sdk/invoke.d.ts +4 -0
- package/dist/sdk/invoke.d.ts.map +1 -1
- package/dist/sdk/invoke.js +2 -5
- package/dist/sdk/invoke.js.map +1 -1
- package/dist/wallet/autonomous-wallet-broker.d.ts +3 -0
- package/dist/wallet/autonomous-wallet-broker.d.ts.map +1 -1
- package/dist/wallet/autonomous-wallet-broker.js +27 -23
- package/dist/wallet/autonomous-wallet-broker.js.map +1 -1
- package/dist/wallet/autonomous-wallet-protocol.d.ts +8 -2
- package/dist/wallet/autonomous-wallet-protocol.d.ts.map +1 -1
- package/dist/wallet/autonomous-wallet-protocol.js +9 -2
- package/dist/wallet/autonomous-wallet-protocol.js.map +1 -1
- package/dist/wallet/autonomous-wallet.d.ts.map +1 -1
- package/dist/wallet/autonomous-wallet.js +3 -2
- package/dist/wallet/autonomous-wallet.js.map +1 -1
- package/dist/wallet/broker-escrows.d.ts +222 -0
- package/dist/wallet/broker-escrows.d.ts.map +1 -0
- package/dist/wallet/broker-escrows.js +36 -0
- package/dist/wallet/broker-escrows.js.map +1 -0
- package/dist/wallet/lifecycle.d.ts +21 -5
- package/dist/wallet/lifecycle.d.ts.map +1 -1
- package/dist/wallet/lifecycle.js +32 -12
- package/dist/wallet/lifecycle.js.map +1 -1
- package/dist/wallet/privy-broker-server.d.ts.map +1 -1
- package/dist/wallet/privy-broker-server.js +31 -26
- package/dist/wallet/privy-broker-server.js.map +1 -1
- package/dist/wallet/privy-session-broker.d.ts +14 -5
- package/dist/wallet/privy-session-broker.d.ts.map +1 -1
- package/dist/wallet/privy-session-broker.js +29 -17
- package/dist/wallet/privy-session-broker.js.map +1 -1
- package/dist/wallet/privy-session-provider.d.ts +3 -1
- package/dist/wallet/privy-session-provider.d.ts.map +1 -1
- package/dist/wallet/privy-session-provider.js +5 -3
- package/dist/wallet/privy-session-provider.js.map +1 -1
- package/dist/wallet/provider.d.ts.map +1 -1
- package/dist/wallet/provider.js +15 -8
- package/dist/wallet/provider.js.map +1 -1
- package/dist/x402/facilitator.d.ts +3 -30
- package/dist/x402/facilitator.d.ts.map +1 -1
- package/dist/x402/facilitator.js +0 -27
- package/dist/x402/facilitator.js.map +1 -1
- package/dist/x402-buyer/guarded-fetch.d.ts +51 -0
- package/dist/x402-buyer/guarded-fetch.d.ts.map +1 -0
- package/dist/x402-buyer/guarded-fetch.js +147 -0
- package/dist/x402-buyer/guarded-fetch.js.map +1 -0
- package/dist/x402-buyer/index.d.ts +10 -0
- package/dist/x402-buyer/index.d.ts.map +1 -0
- package/dist/x402-buyer/index.js +10 -0
- package/dist/x402-buyer/index.js.map +1 -0
- package/dist/x402-buyer/pay.d.ts +157 -0
- package/dist/x402-buyer/pay.d.ts.map +1 -0
- package/dist/x402-buyer/pay.js +366 -0
- package/dist/x402-buyer/pay.js.map +1 -0
- package/dist/x402-opener/abi.d.ts +684 -0
- package/dist/x402-opener/abi.d.ts.map +1 -0
- package/dist/x402-opener/abi.js +880 -0
- package/dist/x402-opener/abi.js.map +1 -0
- package/dist/x402-opener/facilitator-entry.d.ts +3 -0
- package/dist/x402-opener/facilitator-entry.d.ts.map +1 -0
- package/dist/x402-opener/facilitator-entry.js +40 -0
- package/dist/x402-opener/facilitator-entry.js.map +1 -0
- package/dist/x402-opener/facilitator-server.d.ts +209 -0
- package/dist/x402-opener/facilitator-server.d.ts.map +1 -0
- package/dist/x402-opener/facilitator-server.js +762 -0
- package/dist/x402-opener/facilitator-server.js.map +1 -0
- package/dist/x402-opener/index.d.ts +14 -0
- package/dist/x402-opener/index.d.ts.map +1 -0
- package/dist/x402-opener/index.js +14 -0
- package/dist/x402-opener/index.js.map +1 -0
- package/dist/x402-opener/listing-resolver.d.ts +55 -0
- package/dist/x402-opener/listing-resolver.d.ts.map +1 -0
- package/dist/x402-opener/listing-resolver.js +125 -0
- package/dist/x402-opener/listing-resolver.js.map +1 -0
- package/dist/x402-opener/refund-relay.d.ts +266 -0
- package/dist/x402-opener/refund-relay.d.ts.map +1 -0
- package/dist/x402-opener/refund-relay.js +1341 -0
- package/dist/x402-opener/refund-relay.js.map +1 -0
- package/dist/x402-opener/relayer-queue.d.ts +14 -0
- package/dist/x402-opener/relayer-queue.d.ts.map +1 -0
- package/dist/x402-opener/relayer-queue.js +18 -0
- package/dist/x402-opener/relayer-queue.js.map +1 -0
- package/dist/x402-opener/scheme.d.ts +296 -0
- package/dist/x402-opener/scheme.d.ts.map +1 -0
- package/dist/x402-opener/scheme.js +1035 -0
- package/dist/x402-opener/scheme.js.map +1 -0
- package/dist/x402-opener/terms.d.ts +165 -0
- package/dist/x402-opener/terms.d.ts.map +1 -0
- package/dist/x402-opener/terms.js +304 -0
- package/dist/x402-opener/terms.js.map +1 -0
- package/dist/zktls/reclaim.d.ts +2 -2
- package/dist/zktls/t2-delivery-proof.d.ts +6 -6
- package/docs/agent-layer.md +3 -2
- package/docs/autonomous-privy-wallet.md +188 -0
- package/docs/cli.md +265 -34
- package/docs/langchain.md +5 -0
- package/docs/mcp-reference.md +91 -5
- package/docs/probe-capability.md +191 -0
- package/docs/quickstart.md +39 -4
- package/docs/threat-model.md +20 -0
- package/docs/x402.md +766 -593
- package/package.json +19 -17
- package/src/capability/probe-capability.ts +355 -0
- package/src/cli/args.ts +29 -0
- package/src/cli/commands/claim.ts +168 -33
- package/src/cli/commands/close.ts +36 -3
- package/src/cli/commands/invoke.ts +5 -2
- package/src/cli/commands/mcp.ts +18 -2
- package/src/cli/commands/open.ts +75 -4
- package/src/cli/commands/pay.ts +584 -0
- package/src/cli/commands/reclaim-unverified.ts +8 -2
- package/src/cli/commands/reclaim.ts +277 -19
- package/src/cli/commands/refund.ts +475 -0
- package/src/cli/commands/status.ts +28 -2
- package/src/cli/commands/streams.ts +10 -14
- package/src/cli/commands/watch.ts +11 -1
- package/src/cli/config.ts +139 -52
- package/src/cli/context.ts +16 -0
- package/src/cli/deps.ts +111 -1
- package/src/cli/errors.ts +24 -1
- package/src/cli/escape-hatch.ts +19 -5
- package/src/cli/listings.ts +43 -10
- package/src/cli/preflight.ts +36 -21
- package/src/cli/privy.ts +4 -2
- package/src/cli/progress.ts +21 -2
- package/src/cli/reclaimability.ts +154 -0
- package/src/cli/run.ts +77 -21
- package/src/cli/scan-range.ts +2 -2
- package/src/cli/status.ts +454 -44
- package/src/cli/wallet.ts +45 -8
- package/src/discovery/rate-band.ts +172 -0
- package/src/escrow-generation.ts +135 -0
- package/src/frameworks/agentkit.ts +45 -11
- package/src/frameworks/eliza.ts +27 -5
- package/src/frameworks/langchain.ts +14 -0
- package/src/gateway/caller-auth-gateway.ts +320 -68
- package/src/gateway/http-server.ts +717 -220
- package/src/gateway/probe-auth.ts +191 -0
- package/src/gateway/signed-rate-bounds.ts +164 -0
- package/src/gateway/x402-opener-mode.ts +1171 -0
- package/src/index.ts +82 -19
- package/src/mcp/server.ts +351 -42
- package/src/mcp/x402-tools.ts +785 -0
- package/src/network.ts +302 -0
- package/src/sdk/client.ts +25 -0
- package/src/sdk/invoke.ts +6 -5
- package/src/wallet/autonomous-wallet-broker.ts +46 -20
- package/src/wallet/autonomous-wallet-protocol.ts +11 -2
- package/src/wallet/autonomous-wallet.ts +4 -2
- package/src/wallet/broker-escrows.ts +66 -0
- package/src/wallet/lifecycle.ts +53 -18
- package/src/wallet/privy-broker-server.ts +35 -25
- package/src/wallet/privy-session-broker.ts +58 -25
- package/src/wallet/privy-session-provider.ts +7 -3
- package/src/wallet/provider.ts +20 -15
- package/src/x402/facilitator.ts +3 -43
- package/src/x402-buyer/guarded-fetch.ts +213 -0
- package/src/x402-buyer/index.ts +9 -0
- package/src/x402-buyer/pay.ts +555 -0
- package/src/x402-opener/abi.ts +881 -0
- package/src/x402-opener/facilitator-entry.ts +48 -0
- package/src/x402-opener/facilitator-server.ts +1114 -0
- package/src/x402-opener/index.ts +13 -0
- package/src/x402-opener/listing-resolver.ts +202 -0
- package/src/x402-opener/refund-relay.ts +1873 -0
- package/src/x402-opener/relayer-queue.ts +18 -0
- package/src/x402-opener/scheme.ts +1551 -0
- package/src/x402-opener/terms.ts +453 -0
- package/dist/gateway/x402-mode.d.ts +0 -123
- package/dist/gateway/x402-mode.d.ts.map +0 -1
- package/dist/gateway/x402-mode.js +0 -212
- package/dist/gateway/x402-mode.js.map +0 -1
- package/dist/x402/delivery-oracle.d.ts +0 -108
- package/dist/x402/delivery-oracle.d.ts.map +0 -1
- package/dist/x402/delivery-oracle.js +0 -174
- package/dist/x402/delivery-oracle.js.map +0 -1
- package/dist/x402/facilitator-server-entry.d.ts +0 -3
- package/dist/x402/facilitator-server-entry.d.ts.map +0 -1
- package/dist/x402/facilitator-server-entry.js +0 -27
- package/dist/x402/facilitator-server-entry.js.map +0 -1
- package/dist/x402/facilitator-server.d.ts +0 -73
- package/dist/x402/facilitator-server.d.ts.map +0 -1
- package/dist/x402/facilitator-server.js +0 -305
- package/dist/x402/facilitator-server.js.map +0 -1
- package/dist/x402/payment-requirements.d.ts +0 -106
- package/dist/x402/payment-requirements.d.ts.map +0 -1
- package/dist/x402/payment-requirements.js +0 -138
- package/dist/x402/payment-requirements.js.map +0 -1
- package/dist/x402/relayer.d.ts +0 -41
- package/dist/x402/relayer.d.ts.map +0 -1
- package/dist/x402/relayer.js +0 -64
- package/dist/x402/relayer.js.map +0 -1
- package/dist/x402/resource-index.d.ts +0 -75
- package/dist/x402/resource-index.d.ts.map +0 -1
- package/dist/x402/resource-index.js +0 -126
- package/dist/x402/resource-index.js.map +0 -1
- package/dist/x402/verified-delivery-facilitator.d.ts +0 -285
- package/dist/x402/verified-delivery-facilitator.d.ts.map +0 -1
- package/dist/x402/verified-delivery-facilitator.js +0 -423
- package/dist/x402/verified-delivery-facilitator.js.map +0 -1
- package/src/gateway/x402-mode.ts +0 -350
- package/src/x402/delivery-oracle.ts +0 -285
- package/src/x402/facilitator-server-entry.ts +0 -35
- package/src/x402/facilitator-server.ts +0 -445
- package/src/x402/payment-requirements.ts +0 -231
- package/src/x402/relayer.ts +0 -122
- package/src/x402/resource-index.ts +0 -228
- package/src/x402/verified-delivery-facilitator.ts +0 -744
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored ABIs of the ownerless x402 stream opener (metrik-contracts#48).
|
|
3
|
+
*
|
|
4
|
+
* Source: Absol-Labs/metrik-contracts PR #49, commit
|
|
5
|
+
* f9e68bc7a273a26a3ab901c1858484b4ef0b9d91 (`evm/src/X402StreamOpenerFactory.sol`,
|
|
6
|
+
* `evm/src/X402StreamOpener.sol`); the deployed contracts were built from
|
|
7
|
+
* metrik-contracts `main` 1d5dbe5, identical apart from docs. Copied verbatim
|
|
8
|
+
* from the build artifacts; do not edit by hand. Regenerate from the contracts
|
|
9
|
+
* repo when the contract changes, and bump the commit above.
|
|
10
|
+
*
|
|
11
|
+
* Where the factory is deployed is registry data, not part of this module: read
|
|
12
|
+
* it from the `@absol-labs/sdk` network registry (`network.openerFactory`).
|
|
13
|
+
*/
|
|
14
|
+
export declare const x402StreamOpenerFactoryAbi: readonly [{
|
|
15
|
+
readonly type: "constructor";
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly name: "escrow_";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "usdc_";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
}];
|
|
25
|
+
readonly stateMutability: "nonpayable";
|
|
26
|
+
}, {
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
readonly name: "deploy";
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly name: "terms";
|
|
31
|
+
readonly type: "tuple";
|
|
32
|
+
readonly internalType: "struct IX402StreamOpener.Terms";
|
|
33
|
+
readonly components: readonly [{
|
|
34
|
+
readonly name: "operator";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "serviceRef";
|
|
39
|
+
readonly type: "bytes32";
|
|
40
|
+
readonly internalType: "bytes32";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "ratePerSecond";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
readonly internalType: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "maxDuration";
|
|
47
|
+
readonly type: "uint64";
|
|
48
|
+
readonly internalType: "uint64";
|
|
49
|
+
}];
|
|
50
|
+
}];
|
|
51
|
+
readonly outputs: readonly [{
|
|
52
|
+
readonly name: "opener";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
}];
|
|
56
|
+
readonly stateMutability: "nonpayable";
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "function";
|
|
59
|
+
readonly name: "deployAndSettle";
|
|
60
|
+
readonly inputs: readonly [{
|
|
61
|
+
readonly name: "terms";
|
|
62
|
+
readonly type: "tuple";
|
|
63
|
+
readonly internalType: "struct IX402StreamOpener.Terms";
|
|
64
|
+
readonly components: readonly [{
|
|
65
|
+
readonly name: "operator";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "serviceRef";
|
|
70
|
+
readonly type: "bytes32";
|
|
71
|
+
readonly internalType: "bytes32";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "ratePerSecond";
|
|
74
|
+
readonly type: "uint256";
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "maxDuration";
|
|
78
|
+
readonly type: "uint64";
|
|
79
|
+
readonly internalType: "uint64";
|
|
80
|
+
}];
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "auth";
|
|
83
|
+
readonly type: "tuple";
|
|
84
|
+
readonly internalType: "struct IX402StreamOpenerFactory.Authorization";
|
|
85
|
+
readonly components: readonly [{
|
|
86
|
+
readonly name: "from";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "value";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
readonly internalType: "uint256";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "validAfter";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
readonly internalType: "uint256";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "validBefore";
|
|
99
|
+
readonly type: "uint256";
|
|
100
|
+
readonly internalType: "uint256";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "nonce";
|
|
103
|
+
readonly type: "bytes32";
|
|
104
|
+
readonly internalType: "bytes32";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "signature";
|
|
107
|
+
readonly type: "bytes";
|
|
108
|
+
readonly internalType: "bytes";
|
|
109
|
+
}];
|
|
110
|
+
}];
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly name: "opener";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
readonly internalType: "address";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "streamId";
|
|
117
|
+
readonly type: "bytes32";
|
|
118
|
+
readonly internalType: "bytes32";
|
|
119
|
+
}];
|
|
120
|
+
readonly stateMutability: "nonpayable";
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly name: "escrow";
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly name: "";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
readonly internalType: "address";
|
|
129
|
+
}];
|
|
130
|
+
readonly stateMutability: "view";
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
readonly name: "implementation";
|
|
134
|
+
readonly inputs: readonly [];
|
|
135
|
+
readonly outputs: readonly [{
|
|
136
|
+
readonly name: "";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
}];
|
|
140
|
+
readonly stateMutability: "view";
|
|
141
|
+
}, {
|
|
142
|
+
readonly type: "function";
|
|
143
|
+
readonly name: "isOpener";
|
|
144
|
+
readonly inputs: readonly [{
|
|
145
|
+
readonly name: "opener";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
readonly internalType: "address";
|
|
148
|
+
}];
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly name: "deployed";
|
|
151
|
+
readonly type: "bool";
|
|
152
|
+
readonly internalType: "bool";
|
|
153
|
+
}];
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
readonly name: "predict";
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly name: "terms";
|
|
160
|
+
readonly type: "tuple";
|
|
161
|
+
readonly internalType: "struct IX402StreamOpener.Terms";
|
|
162
|
+
readonly components: readonly [{
|
|
163
|
+
readonly name: "operator";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "serviceRef";
|
|
168
|
+
readonly type: "bytes32";
|
|
169
|
+
readonly internalType: "bytes32";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "ratePerSecond";
|
|
172
|
+
readonly type: "uint256";
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "maxDuration";
|
|
176
|
+
readonly type: "uint64";
|
|
177
|
+
readonly internalType: "uint64";
|
|
178
|
+
}];
|
|
179
|
+
}];
|
|
180
|
+
readonly outputs: readonly [{
|
|
181
|
+
readonly name: "";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
readonly internalType: "address";
|
|
184
|
+
}];
|
|
185
|
+
readonly stateMutability: "view";
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "function";
|
|
188
|
+
readonly name: "usdc";
|
|
189
|
+
readonly inputs: readonly [];
|
|
190
|
+
readonly outputs: readonly [{
|
|
191
|
+
readonly name: "";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
}];
|
|
195
|
+
readonly stateMutability: "view";
|
|
196
|
+
}, {
|
|
197
|
+
readonly type: "event";
|
|
198
|
+
readonly name: "OpenerDeployed";
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly name: "opener";
|
|
201
|
+
readonly type: "address";
|
|
202
|
+
readonly indexed: true;
|
|
203
|
+
readonly internalType: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "operator";
|
|
206
|
+
readonly type: "address";
|
|
207
|
+
readonly indexed: true;
|
|
208
|
+
readonly internalType: "address";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "serviceRef";
|
|
211
|
+
readonly type: "bytes32";
|
|
212
|
+
readonly indexed: true;
|
|
213
|
+
readonly internalType: "bytes32";
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "ratePerSecond";
|
|
216
|
+
readonly type: "uint256";
|
|
217
|
+
readonly indexed: false;
|
|
218
|
+
readonly internalType: "uint256";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "maxDuration";
|
|
221
|
+
readonly type: "uint64";
|
|
222
|
+
readonly indexed: false;
|
|
223
|
+
readonly internalType: "uint64";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "termsHash";
|
|
226
|
+
readonly type: "bytes32";
|
|
227
|
+
readonly indexed: false;
|
|
228
|
+
readonly internalType: "bytes32";
|
|
229
|
+
}];
|
|
230
|
+
readonly anonymous: false;
|
|
231
|
+
}, {
|
|
232
|
+
readonly type: "error";
|
|
233
|
+
readonly name: "CloneArgumentsTooLong";
|
|
234
|
+
readonly inputs: readonly [];
|
|
235
|
+
}, {
|
|
236
|
+
readonly type: "error";
|
|
237
|
+
readonly name: "Create2EmptyBytecode";
|
|
238
|
+
readonly inputs: readonly [];
|
|
239
|
+
}, {
|
|
240
|
+
readonly type: "error";
|
|
241
|
+
readonly name: "EscrowTokenMismatch";
|
|
242
|
+
readonly inputs: readonly [];
|
|
243
|
+
}, {
|
|
244
|
+
readonly type: "error";
|
|
245
|
+
readonly name: "FailedDeployment";
|
|
246
|
+
readonly inputs: readonly [];
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "error";
|
|
249
|
+
readonly name: "InsufficientBalance";
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly name: "balance";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "needed";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
readonly internalType: "uint256";
|
|
258
|
+
}];
|
|
259
|
+
}, {
|
|
260
|
+
readonly type: "error";
|
|
261
|
+
readonly name: "InvalidAddress";
|
|
262
|
+
readonly inputs: readonly [];
|
|
263
|
+
}, {
|
|
264
|
+
readonly type: "error";
|
|
265
|
+
readonly name: "InvalidTerms";
|
|
266
|
+
readonly inputs: readonly [];
|
|
267
|
+
}];
|
|
268
|
+
export declare const x402StreamOpenerAbi: readonly [{
|
|
269
|
+
readonly type: "constructor";
|
|
270
|
+
readonly inputs: readonly [{
|
|
271
|
+
readonly name: "escrow_";
|
|
272
|
+
readonly type: "address";
|
|
273
|
+
readonly internalType: "address";
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "usdc_";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
readonly internalType: "address";
|
|
278
|
+
}];
|
|
279
|
+
readonly stateMutability: "nonpayable";
|
|
280
|
+
}, {
|
|
281
|
+
readonly type: "function";
|
|
282
|
+
readonly name: "CLOSE_TYPEHASH";
|
|
283
|
+
readonly inputs: readonly [];
|
|
284
|
+
readonly outputs: readonly [{
|
|
285
|
+
readonly name: "";
|
|
286
|
+
readonly type: "bytes32";
|
|
287
|
+
readonly internalType: "bytes32";
|
|
288
|
+
}];
|
|
289
|
+
readonly stateMutability: "view";
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
293
|
+
readonly inputs: readonly [];
|
|
294
|
+
readonly outputs: readonly [{
|
|
295
|
+
readonly name: "";
|
|
296
|
+
readonly type: "bytes32";
|
|
297
|
+
readonly internalType: "bytes32";
|
|
298
|
+
}];
|
|
299
|
+
readonly stateMutability: "view";
|
|
300
|
+
}, {
|
|
301
|
+
readonly type: "function";
|
|
302
|
+
readonly name: "RECLAIM_UNVERIFIED_TYPEHASH";
|
|
303
|
+
readonly inputs: readonly [];
|
|
304
|
+
readonly outputs: readonly [{
|
|
305
|
+
readonly name: "";
|
|
306
|
+
readonly type: "bytes32";
|
|
307
|
+
readonly internalType: "bytes32";
|
|
308
|
+
}];
|
|
309
|
+
readonly stateMutability: "view";
|
|
310
|
+
}, {
|
|
311
|
+
readonly type: "function";
|
|
312
|
+
readonly name: "close";
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly name: "streamId";
|
|
315
|
+
readonly type: "bytes32";
|
|
316
|
+
readonly internalType: "bytes32";
|
|
317
|
+
}];
|
|
318
|
+
readonly outputs: readonly [];
|
|
319
|
+
readonly stateMutability: "nonpayable";
|
|
320
|
+
}, {
|
|
321
|
+
readonly type: "function";
|
|
322
|
+
readonly name: "closeWithSig";
|
|
323
|
+
readonly inputs: readonly [{
|
|
324
|
+
readonly name: "streamId";
|
|
325
|
+
readonly type: "bytes32";
|
|
326
|
+
readonly internalType: "bytes32";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "deadline";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
readonly internalType: "uint256";
|
|
331
|
+
}, {
|
|
332
|
+
readonly name: "signature";
|
|
333
|
+
readonly type: "bytes";
|
|
334
|
+
readonly internalType: "bytes";
|
|
335
|
+
}];
|
|
336
|
+
readonly outputs: readonly [];
|
|
337
|
+
readonly stateMutability: "nonpayable";
|
|
338
|
+
}, {
|
|
339
|
+
readonly type: "function";
|
|
340
|
+
readonly name: "eip712Domain";
|
|
341
|
+
readonly inputs: readonly [];
|
|
342
|
+
readonly outputs: readonly [{
|
|
343
|
+
readonly name: "fields";
|
|
344
|
+
readonly type: "bytes1";
|
|
345
|
+
readonly internalType: "bytes1";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "name";
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly internalType: "string";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "version";
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly internalType: "string";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "chainId";
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
readonly internalType: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "verifyingContract";
|
|
360
|
+
readonly type: "address";
|
|
361
|
+
readonly internalType: "address";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "salt";
|
|
364
|
+
readonly type: "bytes32";
|
|
365
|
+
readonly internalType: "bytes32";
|
|
366
|
+
}, {
|
|
367
|
+
readonly name: "extensions";
|
|
368
|
+
readonly type: "uint256[]";
|
|
369
|
+
readonly internalType: "uint256[]";
|
|
370
|
+
}];
|
|
371
|
+
readonly stateMutability: "view";
|
|
372
|
+
}, {
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
readonly name: "escrow";
|
|
375
|
+
readonly inputs: readonly [];
|
|
376
|
+
readonly outputs: readonly [{
|
|
377
|
+
readonly name: "";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
readonly internalType: "address";
|
|
380
|
+
}];
|
|
381
|
+
readonly stateMutability: "view";
|
|
382
|
+
}, {
|
|
383
|
+
readonly type: "function";
|
|
384
|
+
readonly name: "nonces";
|
|
385
|
+
readonly inputs: readonly [{
|
|
386
|
+
readonly name: "payer";
|
|
387
|
+
readonly type: "address";
|
|
388
|
+
readonly internalType: "address";
|
|
389
|
+
}];
|
|
390
|
+
readonly outputs: readonly [{
|
|
391
|
+
readonly name: "nonce";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
}];
|
|
395
|
+
readonly stateMutability: "view";
|
|
396
|
+
}, {
|
|
397
|
+
readonly type: "function";
|
|
398
|
+
readonly name: "payerOf";
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly name: "streamId";
|
|
401
|
+
readonly type: "bytes32";
|
|
402
|
+
readonly internalType: "bytes32";
|
|
403
|
+
}];
|
|
404
|
+
readonly outputs: readonly [{
|
|
405
|
+
readonly name: "payer";
|
|
406
|
+
readonly type: "address";
|
|
407
|
+
readonly internalType: "address";
|
|
408
|
+
}];
|
|
409
|
+
readonly stateMutability: "view";
|
|
410
|
+
}, {
|
|
411
|
+
readonly type: "function";
|
|
412
|
+
readonly name: "reclaim";
|
|
413
|
+
readonly inputs: readonly [{
|
|
414
|
+
readonly name: "streamId";
|
|
415
|
+
readonly type: "bytes32";
|
|
416
|
+
readonly internalType: "bytes32";
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "cumulativeAmount";
|
|
419
|
+
readonly type: "uint256";
|
|
420
|
+
readonly internalType: "uint256";
|
|
421
|
+
}, {
|
|
422
|
+
readonly name: "proof";
|
|
423
|
+
readonly type: "bytes32[]";
|
|
424
|
+
readonly internalType: "bytes32[]";
|
|
425
|
+
}];
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly name: "amount";
|
|
428
|
+
readonly type: "uint256";
|
|
429
|
+
readonly internalType: "uint256";
|
|
430
|
+
}];
|
|
431
|
+
readonly stateMutability: "nonpayable";
|
|
432
|
+
}, {
|
|
433
|
+
readonly type: "function";
|
|
434
|
+
readonly name: "reclaimUnverified";
|
|
435
|
+
readonly inputs: readonly [{
|
|
436
|
+
readonly name: "streamId";
|
|
437
|
+
readonly type: "bytes32";
|
|
438
|
+
readonly internalType: "bytes32";
|
|
439
|
+
}];
|
|
440
|
+
readonly outputs: readonly [{
|
|
441
|
+
readonly name: "amount";
|
|
442
|
+
readonly type: "uint256";
|
|
443
|
+
readonly internalType: "uint256";
|
|
444
|
+
}];
|
|
445
|
+
readonly stateMutability: "nonpayable";
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
readonly name: "reclaimUnverifiedWithSig";
|
|
449
|
+
readonly inputs: readonly [{
|
|
450
|
+
readonly name: "streamId";
|
|
451
|
+
readonly type: "bytes32";
|
|
452
|
+
readonly internalType: "bytes32";
|
|
453
|
+
}, {
|
|
454
|
+
readonly name: "deadline";
|
|
455
|
+
readonly type: "uint256";
|
|
456
|
+
readonly internalType: "uint256";
|
|
457
|
+
}, {
|
|
458
|
+
readonly name: "signature";
|
|
459
|
+
readonly type: "bytes";
|
|
460
|
+
readonly internalType: "bytes";
|
|
461
|
+
}];
|
|
462
|
+
readonly outputs: readonly [{
|
|
463
|
+
readonly name: "amount";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
readonly internalType: "uint256";
|
|
466
|
+
}];
|
|
467
|
+
readonly stateMutability: "nonpayable";
|
|
468
|
+
}, {
|
|
469
|
+
readonly type: "function";
|
|
470
|
+
readonly name: "settleAndOpen";
|
|
471
|
+
readonly inputs: readonly [{
|
|
472
|
+
readonly name: "from";
|
|
473
|
+
readonly type: "address";
|
|
474
|
+
readonly internalType: "address";
|
|
475
|
+
}, {
|
|
476
|
+
readonly name: "value";
|
|
477
|
+
readonly type: "uint256";
|
|
478
|
+
readonly internalType: "uint256";
|
|
479
|
+
}, {
|
|
480
|
+
readonly name: "validAfter";
|
|
481
|
+
readonly type: "uint256";
|
|
482
|
+
readonly internalType: "uint256";
|
|
483
|
+
}, {
|
|
484
|
+
readonly name: "validBefore";
|
|
485
|
+
readonly type: "uint256";
|
|
486
|
+
readonly internalType: "uint256";
|
|
487
|
+
}, {
|
|
488
|
+
readonly name: "nonce";
|
|
489
|
+
readonly type: "bytes32";
|
|
490
|
+
readonly internalType: "bytes32";
|
|
491
|
+
}, {
|
|
492
|
+
readonly name: "signature";
|
|
493
|
+
readonly type: "bytes";
|
|
494
|
+
readonly internalType: "bytes";
|
|
495
|
+
}];
|
|
496
|
+
readonly outputs: readonly [{
|
|
497
|
+
readonly name: "streamId";
|
|
498
|
+
readonly type: "bytes32";
|
|
499
|
+
readonly internalType: "bytes32";
|
|
500
|
+
}];
|
|
501
|
+
readonly stateMutability: "nonpayable";
|
|
502
|
+
}, {
|
|
503
|
+
readonly type: "function";
|
|
504
|
+
readonly name: "terms";
|
|
505
|
+
readonly inputs: readonly [];
|
|
506
|
+
readonly outputs: readonly [{
|
|
507
|
+
readonly name: "";
|
|
508
|
+
readonly type: "tuple";
|
|
509
|
+
readonly internalType: "struct IX402StreamOpener.Terms";
|
|
510
|
+
readonly components: readonly [{
|
|
511
|
+
readonly name: "operator";
|
|
512
|
+
readonly type: "address";
|
|
513
|
+
readonly internalType: "address";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "serviceRef";
|
|
516
|
+
readonly type: "bytes32";
|
|
517
|
+
readonly internalType: "bytes32";
|
|
518
|
+
}, {
|
|
519
|
+
readonly name: "ratePerSecond";
|
|
520
|
+
readonly type: "uint256";
|
|
521
|
+
readonly internalType: "uint256";
|
|
522
|
+
}, {
|
|
523
|
+
readonly name: "maxDuration";
|
|
524
|
+
readonly type: "uint64";
|
|
525
|
+
readonly internalType: "uint64";
|
|
526
|
+
}];
|
|
527
|
+
}];
|
|
528
|
+
readonly stateMutability: "view";
|
|
529
|
+
}, {
|
|
530
|
+
readonly type: "function";
|
|
531
|
+
readonly name: "usdc";
|
|
532
|
+
readonly inputs: readonly [];
|
|
533
|
+
readonly outputs: readonly [{
|
|
534
|
+
readonly name: "";
|
|
535
|
+
readonly type: "address";
|
|
536
|
+
readonly internalType: "address";
|
|
537
|
+
}];
|
|
538
|
+
readonly stateMutability: "view";
|
|
539
|
+
}, {
|
|
540
|
+
readonly type: "event";
|
|
541
|
+
readonly name: "EIP712DomainChanged";
|
|
542
|
+
readonly inputs: readonly [];
|
|
543
|
+
readonly anonymous: false;
|
|
544
|
+
}, {
|
|
545
|
+
readonly type: "event";
|
|
546
|
+
readonly name: "ReclaimForwarded";
|
|
547
|
+
readonly inputs: readonly [{
|
|
548
|
+
readonly name: "streamId";
|
|
549
|
+
readonly type: "bytes32";
|
|
550
|
+
readonly indexed: true;
|
|
551
|
+
readonly internalType: "bytes32";
|
|
552
|
+
}, {
|
|
553
|
+
readonly name: "payer";
|
|
554
|
+
readonly type: "address";
|
|
555
|
+
readonly indexed: true;
|
|
556
|
+
readonly internalType: "address";
|
|
557
|
+
}, {
|
|
558
|
+
readonly name: "amount";
|
|
559
|
+
readonly type: "uint256";
|
|
560
|
+
readonly indexed: false;
|
|
561
|
+
readonly internalType: "uint256";
|
|
562
|
+
}, {
|
|
563
|
+
readonly name: "viaEscapeHatch";
|
|
564
|
+
readonly type: "bool";
|
|
565
|
+
readonly indexed: false;
|
|
566
|
+
readonly internalType: "bool";
|
|
567
|
+
}];
|
|
568
|
+
readonly anonymous: false;
|
|
569
|
+
}, {
|
|
570
|
+
readonly type: "event";
|
|
571
|
+
readonly name: "StreamCloseRequested";
|
|
572
|
+
readonly inputs: readonly [{
|
|
573
|
+
readonly name: "streamId";
|
|
574
|
+
readonly type: "bytes32";
|
|
575
|
+
readonly indexed: true;
|
|
576
|
+
readonly internalType: "bytes32";
|
|
577
|
+
}, {
|
|
578
|
+
readonly name: "payer";
|
|
579
|
+
readonly type: "address";
|
|
580
|
+
readonly indexed: true;
|
|
581
|
+
readonly internalType: "address";
|
|
582
|
+
}, {
|
|
583
|
+
readonly name: "relayer";
|
|
584
|
+
readonly type: "address";
|
|
585
|
+
readonly indexed: false;
|
|
586
|
+
readonly internalType: "address";
|
|
587
|
+
}];
|
|
588
|
+
readonly anonymous: false;
|
|
589
|
+
}, {
|
|
590
|
+
readonly type: "event";
|
|
591
|
+
readonly name: "StreamOpenedFor";
|
|
592
|
+
readonly inputs: readonly [{
|
|
593
|
+
readonly name: "streamId";
|
|
594
|
+
readonly type: "bytes32";
|
|
595
|
+
readonly indexed: true;
|
|
596
|
+
readonly internalType: "bytes32";
|
|
597
|
+
}, {
|
|
598
|
+
readonly name: "payer";
|
|
599
|
+
readonly type: "address";
|
|
600
|
+
readonly indexed: true;
|
|
601
|
+
readonly internalType: "address";
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "authorizationNonce";
|
|
604
|
+
readonly type: "bytes32";
|
|
605
|
+
readonly indexed: true;
|
|
606
|
+
readonly internalType: "bytes32";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "deposit";
|
|
609
|
+
readonly type: "uint256";
|
|
610
|
+
readonly indexed: false;
|
|
611
|
+
readonly internalType: "uint256";
|
|
612
|
+
}, {
|
|
613
|
+
readonly name: "relayer";
|
|
614
|
+
readonly type: "address";
|
|
615
|
+
readonly indexed: false;
|
|
616
|
+
readonly internalType: "address";
|
|
617
|
+
}];
|
|
618
|
+
readonly anonymous: false;
|
|
619
|
+
}, {
|
|
620
|
+
readonly type: "error";
|
|
621
|
+
readonly name: "ApproveFailed";
|
|
622
|
+
readonly inputs: readonly [];
|
|
623
|
+
}, {
|
|
624
|
+
readonly type: "error";
|
|
625
|
+
readonly name: "InvalidAddress";
|
|
626
|
+
readonly inputs: readonly [];
|
|
627
|
+
}, {
|
|
628
|
+
readonly type: "error";
|
|
629
|
+
readonly name: "InvalidAmount";
|
|
630
|
+
readonly inputs: readonly [];
|
|
631
|
+
}, {
|
|
632
|
+
readonly type: "error";
|
|
633
|
+
readonly name: "InvalidShortString";
|
|
634
|
+
readonly inputs: readonly [];
|
|
635
|
+
}, {
|
|
636
|
+
readonly type: "error";
|
|
637
|
+
readonly name: "InvalidSignature";
|
|
638
|
+
readonly inputs: readonly [];
|
|
639
|
+
}, {
|
|
640
|
+
readonly type: "error";
|
|
641
|
+
readonly name: "NotClone";
|
|
642
|
+
readonly inputs: readonly [];
|
|
643
|
+
}, {
|
|
644
|
+
readonly type: "error";
|
|
645
|
+
readonly name: "NotPayer";
|
|
646
|
+
readonly inputs: readonly [];
|
|
647
|
+
}, {
|
|
648
|
+
readonly type: "error";
|
|
649
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
650
|
+
readonly inputs: readonly [];
|
|
651
|
+
}, {
|
|
652
|
+
readonly type: "error";
|
|
653
|
+
readonly name: "ResidualAllowance";
|
|
654
|
+
readonly inputs: readonly [];
|
|
655
|
+
}, {
|
|
656
|
+
readonly type: "error";
|
|
657
|
+
readonly name: "ResidualBalance";
|
|
658
|
+
readonly inputs: readonly [];
|
|
659
|
+
}, {
|
|
660
|
+
readonly type: "error";
|
|
661
|
+
readonly name: "SignatureExpired";
|
|
662
|
+
readonly inputs: readonly [];
|
|
663
|
+
}, {
|
|
664
|
+
readonly type: "error";
|
|
665
|
+
readonly name: "StringTooLong";
|
|
666
|
+
readonly inputs: readonly [{
|
|
667
|
+
readonly name: "str";
|
|
668
|
+
readonly type: "string";
|
|
669
|
+
readonly internalType: "string";
|
|
670
|
+
}];
|
|
671
|
+
}, {
|
|
672
|
+
readonly type: "error";
|
|
673
|
+
readonly name: "TransferFailed";
|
|
674
|
+
readonly inputs: readonly [];
|
|
675
|
+
}, {
|
|
676
|
+
readonly type: "error";
|
|
677
|
+
readonly name: "UnexpectedBalanceDelta";
|
|
678
|
+
readonly inputs: readonly [];
|
|
679
|
+
}, {
|
|
680
|
+
readonly type: "error";
|
|
681
|
+
readonly name: "UnknownStream";
|
|
682
|
+
readonly inputs: readonly [];
|
|
683
|
+
}];
|
|
684
|
+
//# sourceMappingURL=abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/x402-opener/abi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyU7B,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuhBtB,CAAC"}
|