mppx 0.1.1 → 0.2.1
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/dist/Challenge.d.ts +18 -18
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Challenge.js +8 -8
- package/dist/Challenge.js.map +1 -1
- package/dist/Errors.d.ts +58 -8
- package/dist/Errors.d.ts.map +1 -1
- package/dist/Errors.js +51 -9
- package/dist/Errors.js.map +1 -1
- package/dist/Method.d.ts +154 -0
- package/dist/Method.d.ts.map +1 -0
- package/dist/Method.js +81 -0
- package/dist/Method.js.map +1 -0
- package/dist/PaymentRequest.d.ts +5 -5
- package/dist/PaymentRequest.d.ts.map +1 -1
- package/dist/PaymentRequest.js +11 -6
- package/dist/PaymentRequest.js.map +1 -1
- package/dist/cli.js +67 -18
- package/dist/cli.js.map +1 -1
- package/dist/client/Methods.d.ts +2 -2
- package/dist/client/Methods.d.ts.map +1 -1
- package/dist/client/Methods.js +2 -2
- package/dist/client/Methods.js.map +1 -1
- package/dist/client/Mppx.d.ts +7 -7
- package/dist/client/Mppx.d.ts.map +1 -1
- package/dist/client/Mppx.js +3 -3
- package/dist/client/Mppx.js.map +1 -1
- package/dist/client/internal/Fetch.d.ts +10 -10
- package/dist/client/internal/Fetch.d.ts.map +1 -1
- package/dist/client/internal/Fetch.js +2 -2
- package/dist/client/internal/Fetch.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp-sdk/client/McpClient.d.ts +6 -6
- package/dist/mcp-sdk/client/McpClient.d.ts.map +1 -1
- package/dist/mcp-sdk/client/McpClient.js +4 -4
- package/dist/mcp-sdk/client/McpClient.js.map +1 -1
- package/dist/middlewares/elysia.d.ts +1 -1
- package/dist/middlewares/express.d.ts +1 -1
- package/dist/middlewares/hono.d.ts +1 -1
- package/dist/middlewares/internal/mppx.d.ts +7 -7
- package/dist/middlewares/internal/mppx.d.ts.map +1 -1
- package/dist/middlewares/internal/mppx.js +5 -5
- package/dist/middlewares/internal/mppx.js.map +1 -1
- package/dist/middlewares/nextjs.d.ts +1 -1
- package/dist/proxy/Service.js +2 -2
- package/dist/proxy/Service.js.map +1 -1
- package/dist/server/Methods.d.ts +2 -2
- package/dist/server/Methods.d.ts.map +1 -1
- package/dist/server/Methods.js +2 -2
- package/dist/server/Methods.js.map +1 -1
- package/dist/server/Mppx.d.ts +17 -17
- package/dist/server/Mppx.d.ts.map +1 -1
- package/dist/server/Mppx.js +9 -9
- package/dist/server/Mppx.js.map +1 -1
- package/dist/stripe/{Intents.d.ts → Methods.d.ts} +22 -22
- package/dist/stripe/Methods.d.ts.map +1 -0
- package/dist/stripe/Methods.js +42 -0
- package/dist/stripe/Methods.js.map +1 -0
- package/dist/stripe/client/Charge.d.ts +40 -27
- package/dist/stripe/client/Charge.d.ts.map +1 -1
- package/dist/stripe/client/Charge.js +15 -7
- package/dist/stripe/client/Charge.js.map +1 -1
- package/dist/stripe/client/{MethodIntents.d.ts → Methods.d.ts} +24 -23
- package/dist/stripe/client/Methods.d.ts.map +1 -0
- package/dist/stripe/client/{MethodIntents.js → Methods.js} +3 -3
- package/dist/stripe/client/Methods.js.map +1 -0
- package/dist/stripe/client/index.d.ts +1 -1
- package/dist/stripe/client/index.d.ts.map +1 -1
- package/dist/stripe/client/index.js +1 -1
- package/dist/stripe/client/index.js.map +1 -1
- package/dist/stripe/index.d.ts +1 -1
- package/dist/stripe/index.d.ts.map +1 -1
- package/dist/stripe/index.js +1 -1
- package/dist/stripe/index.js.map +1 -1
- package/dist/stripe/internal/types.d.ts +25 -0
- package/dist/stripe/internal/types.d.ts.map +1 -0
- package/dist/stripe/internal/types.js +2 -0
- package/dist/stripe/internal/types.js.map +1 -0
- package/dist/stripe/server/Charge.d.ts +47 -28
- package/dist/stripe/server/Charge.d.ts.map +1 -1
- package/dist/stripe/server/Charge.js +90 -32
- package/dist/stripe/server/Charge.js.map +1 -1
- package/dist/stripe/server/{MethodIntents.d.ts → Methods.d.ts} +24 -23
- package/dist/stripe/server/Methods.d.ts.map +1 -0
- package/dist/stripe/server/{MethodIntents.js → Methods.js} +3 -3
- package/dist/stripe/server/Methods.js.map +1 -0
- package/dist/stripe/server/index.d.ts +1 -1
- package/dist/stripe/server/index.d.ts.map +1 -1
- package/dist/stripe/server/index.js +1 -1
- package/dist/stripe/server/index.js.map +1 -1
- package/dist/tempo/{Intents.d.ts → Methods.d.ts} +72 -69
- package/dist/tempo/Methods.d.ts.map +1 -0
- package/dist/tempo/Methods.js +118 -0
- package/dist/tempo/Methods.js.map +1 -0
- package/dist/tempo/client/ChannelOps.d.ts +1 -1
- package/dist/tempo/client/ChannelOps.js +1 -1
- package/dist/tempo/client/Charge.d.ts +25 -25
- package/dist/tempo/client/Charge.d.ts.map +1 -1
- package/dist/tempo/client/Charge.js +3 -3
- package/dist/tempo/client/Charge.js.map +1 -1
- package/dist/tempo/client/{MethodIntents.d.ts → Methods.d.ts} +74 -70
- package/dist/tempo/client/Methods.d.ts.map +1 -0
- package/dist/tempo/client/{MethodIntents.js → Methods.js} +3 -3
- package/dist/tempo/client/Methods.js.map +1 -0
- package/dist/tempo/client/Session.d.ts +49 -45
- package/dist/tempo/client/Session.d.ts.map +1 -1
- package/dist/tempo/client/Session.js +4 -4
- package/dist/tempo/client/Session.js.map +1 -1
- package/dist/tempo/client/SessionManager.d.ts +1 -1
- package/dist/tempo/client/SessionManager.js +1 -1
- package/dist/tempo/client/index.d.ts +1 -1
- package/dist/tempo/client/index.d.ts.map +1 -1
- package/dist/tempo/client/index.js +1 -1
- package/dist/tempo/client/index.js.map +1 -1
- package/dist/tempo/index.d.ts +1 -1
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +1 -1
- package/dist/tempo/index.js.map +1 -1
- package/dist/tempo/server/Charge.d.ts +27 -27
- package/dist/tempo/server/Charge.d.ts.map +1 -1
- package/dist/tempo/server/Charge.js +3 -3
- package/dist/tempo/server/Charge.js.map +1 -1
- package/dist/tempo/server/{MethodIntents.d.ts → Methods.d.ts} +73 -69
- package/dist/tempo/server/Methods.d.ts.map +1 -0
- package/dist/tempo/server/{MethodIntents.js → Methods.js} +4 -4
- package/dist/tempo/server/Methods.js.map +1 -0
- package/dist/tempo/server/Session.d.ts +51 -47
- package/dist/tempo/server/Session.d.ts.map +1 -1
- package/dist/tempo/server/Session.js +4 -4
- package/dist/tempo/server/Session.js.map +1 -1
- package/dist/tempo/server/index.d.ts +6 -0
- package/dist/tempo/server/index.d.ts.map +1 -0
- package/dist/tempo/server/index.js +6 -0
- package/dist/tempo/server/index.js.map +1 -0
- package/package.json +2 -1
- package/src/Challenge.test-d.ts +3 -3
- package/src/Challenge.test.ts +7 -7
- package/src/Challenge.ts +34 -34
- package/src/Errors.test.ts +75 -21
- package/src/Errors.ts +74 -9
- package/src/Method.test.ts +76 -0
- package/src/Method.ts +228 -0
- package/src/PaymentRequest.test.ts +5 -5
- package/src/PaymentRequest.ts +15 -10
- package/src/cli.test.ts +12 -22
- package/src/cli.ts +74 -21
- package/src/client/Methods.ts +2 -2
- package/src/client/Mppx.test-d.ts +6 -6
- package/src/client/Mppx.test.ts +26 -22
- package/src/client/Mppx.ts +10 -10
- package/src/client/Transport.test.ts +6 -6
- package/src/client/internal/Fetch.ts +21 -24
- package/src/index.ts +1 -2
- package/src/mcp-sdk/client/McpClient.test.ts +1 -1
- package/src/mcp-sdk/client/McpClient.ts +11 -13
- package/src/middlewares/elysia.ts +1 -1
- package/src/middlewares/express.ts +1 -1
- package/src/middlewares/hono.ts +1 -1
- package/src/middlewares/internal/mppx.ts +10 -10
- package/src/middlewares/nextjs.ts +1 -1
- package/src/proxy/Service.ts +2 -2
- package/src/server/Methods.ts +2 -2
- package/src/server/Mppx.test-d.ts +27 -29
- package/src/server/Mppx.test.ts +23 -19
- package/src/server/Mppx.ts +43 -43
- package/src/server/Transport.test.ts +8 -8
- package/src/stripe/{Intents.test.ts → Methods.test.ts} +12 -12
- package/src/stripe/Methods.ts +45 -0
- package/src/stripe/client/Charge.test.ts +189 -0
- package/src/stripe/client/Charge.ts +29 -16
- package/src/stripe/client/{MethodIntents.ts → Methods.ts} +2 -2
- package/src/stripe/client/index.ts +1 -1
- package/src/stripe/index.ts +1 -1
- package/src/stripe/internal/types.ts +22 -0
- package/src/stripe/server/Charge.test.ts +241 -0
- package/src/stripe/server/Charge.ts +124 -38
- package/src/stripe/server/{MethodIntents.ts → Methods.ts} +2 -2
- package/src/stripe/server/index.ts +1 -1
- package/src/tempo/{Intents.test.ts → Methods.test.ts} +15 -15
- package/src/tempo/{Intents.ts → Methods.ts} +77 -22
- package/src/tempo/client/ChannelOps.ts +1 -1
- package/src/tempo/client/Charge.ts +3 -3
- package/src/tempo/client/{MethodIntents.ts → Methods.ts} +2 -2
- package/src/tempo/client/Session.ts +4 -4
- package/src/tempo/client/SessionManager.ts +1 -1
- package/src/tempo/client/index.ts +1 -1
- package/src/tempo/index.ts +1 -1
- package/src/tempo/server/Charge.ts +4 -7
- package/src/tempo/server/{MethodIntents.ts → Methods.ts} +3 -3
- package/src/tempo/server/Session.test.ts +4 -7
- package/src/tempo/server/Session.ts +6 -6
- package/src/tempo/server/index.ts +1 -1
- package/dist/Intent.d.ts +0 -101
- package/dist/Intent.d.ts.map +0 -1
- package/dist/Intent.js +0 -83
- package/dist/Intent.js.map +0 -1
- package/dist/MethodIntent.d.ts +0 -225
- package/dist/MethodIntent.d.ts.map +0 -1
- package/dist/MethodIntent.js +0 -156
- package/dist/MethodIntent.js.map +0 -1
- package/dist/stripe/Intents.d.ts.map +0 -1
- package/dist/stripe/Intents.js +0 -27
- package/dist/stripe/Intents.js.map +0 -1
- package/dist/stripe/client/MethodIntents.d.ts.map +0 -1
- package/dist/stripe/client/MethodIntents.js.map +0 -1
- package/dist/stripe/server/MethodIntents.d.ts.map +0 -1
- package/dist/stripe/server/MethodIntents.js.map +0 -1
- package/dist/tempo/Intents.d.ts.map +0 -1
- package/dist/tempo/Intents.js +0 -81
- package/dist/tempo/Intents.js.map +0 -1
- package/dist/tempo/client/MethodIntents.d.ts.map +0 -1
- package/dist/tempo/client/MethodIntents.js.map +0 -1
- package/dist/tempo/server/MethodIntents.d.ts.map +0 -1
- package/dist/tempo/server/MethodIntents.js.map +0 -1
- package/src/Intent.test.ts +0 -180
- package/src/Intent.ts +0 -109
- package/src/MethodIntent.test.ts +0 -303
- package/src/MethodIntent.ts +0 -388
- package/src/stripe/Intents.ts +0 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tempo/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tempo/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tempo/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tempo/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/tempo/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA"}
|
package/dist/tempo/index.js
CHANGED
package/dist/tempo/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { LooseOmit } from '../../internal/types.js';
|
|
2
|
-
import * as
|
|
2
|
+
import * as Method from '../../Method.js';
|
|
3
3
|
import * as Client from '../../viem/Client.js';
|
|
4
|
-
import * as Intents from '../Intents.js';
|
|
5
4
|
import * as Account from '../internal/account.js';
|
|
6
5
|
import type * as types from '../internal/types.js';
|
|
6
|
+
import * as Methods from '../Methods.js';
|
|
7
7
|
/**
|
|
8
8
|
* Creates a Tempo charge method intent for usage on the server.
|
|
9
9
|
*
|
|
@@ -14,18 +14,36 @@ import type * as types from '../internal/types.js';
|
|
|
14
14
|
* const charge = tempo.charge()
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export declare function charge<const parameters extends charge.Parameters>(parameters?: parameters):
|
|
18
|
-
readonly name: "
|
|
17
|
+
export declare function charge<const parameters extends charge.Parameters>(parameters?: parameters): Method.Server<{
|
|
18
|
+
readonly name: "tempo";
|
|
19
|
+
readonly intent: "charge";
|
|
19
20
|
readonly schema: {
|
|
21
|
+
readonly credential: {
|
|
22
|
+
readonly payload: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
23
|
+
hash: import("zod/mini").ZodMiniString<string>;
|
|
24
|
+
type: import("zod/mini").ZodMiniLiteral<"hash">;
|
|
25
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
26
|
+
signature: import("zod/mini").ZodMiniString<string>;
|
|
27
|
+
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
28
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
29
|
+
};
|
|
20
30
|
readonly request: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniObject<{
|
|
21
31
|
amount: import("zod/mini").ZodMiniString<string>;
|
|
32
|
+
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
22
33
|
currency: import("zod/mini").ZodMiniString<string>;
|
|
23
34
|
decimals: import("zod/mini").ZodMiniNumber<number>;
|
|
24
35
|
description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
25
36
|
expires: import("zod/mini").ZodMiniDefault<import("zod/mini").ZodMiniString<string>>;
|
|
26
37
|
externalId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
38
|
+
feePayer: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniBoolean<boolean>, import("zod/mini").ZodMiniCustom<import("viem").Account, import("viem").Account>]>, import("zod/mini").ZodMiniTransform<boolean, boolean | import("viem").Account>>>;
|
|
39
|
+
memo: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
27
40
|
recipient: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
28
41
|
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniTransform<{
|
|
42
|
+
methodDetails?: {
|
|
43
|
+
memo?: string | undefined;
|
|
44
|
+
feePayer?: boolean | undefined;
|
|
45
|
+
chainId?: number | undefined;
|
|
46
|
+
} | undefined;
|
|
29
47
|
amount: string;
|
|
30
48
|
currency: string;
|
|
31
49
|
expires: string;
|
|
@@ -37,35 +55,17 @@ export declare function charge<const parameters extends charge.Parameters>(param
|
|
|
37
55
|
currency: string;
|
|
38
56
|
decimals: number;
|
|
39
57
|
expires: string;
|
|
58
|
+
chainId?: number | undefined;
|
|
40
59
|
description?: string | undefined;
|
|
41
60
|
externalId?: string | undefined;
|
|
61
|
+
feePayer?: boolean | undefined;
|
|
62
|
+
memo?: string | undefined;
|
|
42
63
|
recipient?: string | undefined;
|
|
43
64
|
}>>;
|
|
44
65
|
};
|
|
45
|
-
},
|
|
46
|
-
readonly method: "tempo";
|
|
47
|
-
readonly schema: {
|
|
48
|
-
readonly credential: {
|
|
49
|
-
readonly payload: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
50
|
-
hash: import("zod/mini").ZodMiniString<string>;
|
|
51
|
-
type: import("zod/mini").ZodMiniLiteral<"hash">;
|
|
52
|
-
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
53
|
-
signature: import("zod/mini").ZodMiniString<string>;
|
|
54
|
-
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
55
|
-
}, import("zod/v4/core").$strip>], "type">;
|
|
56
|
-
};
|
|
57
|
-
readonly request: {
|
|
58
|
-
readonly methodDetails: import("zod/mini").ZodMiniObject<{
|
|
59
|
-
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
60
|
-
feePayer: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniBoolean<boolean>, import("zod/mini").ZodMiniCustom<import("viem").Account, import("viem").Account>]>, import("zod/mini").ZodMiniTransform<boolean, boolean | import("viem").Account>>>;
|
|
61
|
-
memo: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
62
|
-
}, import("zod/v4/core").$strip>;
|
|
63
|
-
readonly requires: readonly ["decimals", "recipient"];
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
}>, charge.DeriveDefaults<parameters>, undefined>;
|
|
66
|
+
}, charge.DeriveDefaults<parameters>, undefined>;
|
|
67
67
|
export declare namespace charge {
|
|
68
|
-
type Defaults = LooseOmit<
|
|
68
|
+
type Defaults = LooseOmit<Method.RequestDefaults<typeof Methods.charge>, 'feePayer' | 'recipient'>;
|
|
69
69
|
type Parameters = {
|
|
70
70
|
/** Testnet mode. */
|
|
71
71
|
testnet?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Charge.d.ts","sourceRoot":"","sources":["../../../src/tempo/server/Charge.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Charge.d.ts","sourceRoot":"","sources":["../../../src/tempo/server/Charge.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAC9C,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AAEjD,OAAO,KAAK,KAAK,KAAK,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,OAAO,MAAM,eAAe,CAAA;AAUxC;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,KAAK,CAAC,UAAU,SAAS,MAAM,CAAC,UAAU,EAC/D,UAAU,GAAE,UAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAkO1C;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,KAAK,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAA;IAElG,KAAK,UAAU,GAAG;QAChB,oBAAoB;QACpB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAC9B,GAAG,MAAM,CAAC,WAAW,CAAC,UAAU,GAC/B,OAAO,CAAC,OAAO,CAAC,UAAU,GAC1B,QAAQ,CAAA;IAEV,KAAK,cAAc,CAAC,UAAU,SAAS,UAAU,IAAI,KAAK,CAAC,cAAc,CACvE,UAAU,EACV,QAAQ,CACT,GAAG;QACF,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF"}
|
|
@@ -3,11 +3,11 @@ import { getTransactionReceipt, sendRawTransactionSync, signTransaction } from '
|
|
|
3
3
|
import { tempo as tempo_chain } from 'viem/chains';
|
|
4
4
|
import { Abis, Transaction } from 'viem/tempo';
|
|
5
5
|
import { PaymentExpiredError } from '../../Errors.js';
|
|
6
|
-
import * as
|
|
6
|
+
import * as Method from '../../Method.js';
|
|
7
7
|
import * as Client from '../../viem/Client.js';
|
|
8
|
-
import * as Intents from '../Intents.js';
|
|
9
8
|
import * as Account from '../internal/account.js';
|
|
10
9
|
import * as defaults from '../internal/defaults.js';
|
|
10
|
+
import * as Methods from '../Methods.js';
|
|
11
11
|
const transferSelector = /*#__PURE__*/ toFunctionSelector('function transfer(address to, uint256 amount)');
|
|
12
12
|
const transferWithMemoSelector = /*#__PURE__*/ toFunctionSelector('function transferWithMemo(address to, uint256 amount, bytes32 memo)');
|
|
13
13
|
/**
|
|
@@ -28,7 +28,7 @@ export function charge(parameters = {}) {
|
|
|
28
28
|
getClient: parameters.getClient,
|
|
29
29
|
rpcUrl: defaults.rpcUrl,
|
|
30
30
|
});
|
|
31
|
-
return
|
|
31
|
+
return Method.toServer(Methods.charge, {
|
|
32
32
|
defaults: {
|
|
33
33
|
amount,
|
|
34
34
|
currency,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Charge.js","sourceRoot":"","sources":["../../../src/tempo/server/Charge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,cAAc,EAEd,kBAAkB,GACnB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC7F,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Charge.js","sourceRoot":"","sources":["../../../src/tempo/server/Charge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,cAAc,EAEd,kBAAkB,GACnB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC7F,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAC9C,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAA;AAEnD,OAAO,KAAK,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,MAAM,IAAI,KAAK,CAAC,gCAAiC,OAA4B,CAAC,IAAI,IAAI,CAAC,CAAA;YAC3F,CAAC;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAoBD,gBAAgB;AAChB,SAAS,SAAS,CAAC,OAA2B;IAC5C,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAA;IAC3C,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,yBAAyB,eAAe,EAAE,CAAC,CAAA;IAC7D,CAAC;IACD,OAAO;QACL,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS,EAAE,eAAe;KAClB,CAAA;AACZ,CAAC;AAED,gBAAgB;AAChB,MAAM,aAAc,SAAQ,KAAK;IAG/B,YAAY,MAAc,EAAE,OAA+B;QACzD,KAAK,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAHxE,SAAI,GAAG,eAAe,CAAA;IAIxC,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { charge as charge_ } from './Charge.js';
|
|
2
2
|
import { session as session_, settle as settle_ } from './Session.js';
|
|
3
3
|
/**
|
|
4
|
-
* Creates both Tempo `charge` and `session`
|
|
4
|
+
* Creates both Tempo `charge` and `session` methods from shared parameters.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```ts
|
|
@@ -12,18 +12,36 @@ import { session as session_, settle as settle_ } from './Session.js';
|
|
|
12
12
|
* })
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export declare function tempo<const parameters extends tempo.Parameters>(parameters?: parameters): readonly [import("../../
|
|
16
|
-
readonly name: "
|
|
15
|
+
export declare function tempo<const parameters extends tempo.Parameters>(parameters?: parameters): readonly [import("../../Method.js").Server<{
|
|
16
|
+
readonly name: "tempo";
|
|
17
|
+
readonly intent: "charge";
|
|
17
18
|
readonly schema: {
|
|
19
|
+
readonly credential: {
|
|
20
|
+
readonly payload: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
21
|
+
hash: import("zod/mini").ZodMiniString<string>;
|
|
22
|
+
type: import("zod/mini").ZodMiniLiteral<"hash">;
|
|
23
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
24
|
+
signature: import("zod/mini").ZodMiniString<string>;
|
|
25
|
+
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
26
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
27
|
+
};
|
|
18
28
|
readonly request: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniObject<{
|
|
19
29
|
amount: import("zod/mini").ZodMiniString<string>;
|
|
30
|
+
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
20
31
|
currency: import("zod/mini").ZodMiniString<string>;
|
|
21
32
|
decimals: import("zod/mini").ZodMiniNumber<number>;
|
|
22
33
|
description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
23
34
|
expires: import("zod/mini").ZodMiniDefault<import("zod/mini").ZodMiniString<string>>;
|
|
24
35
|
externalId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
36
|
+
feePayer: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniBoolean<boolean>, import("zod/mini").ZodMiniCustom<import("viem").Account, import("viem").Account>]>, import("zod/mini").ZodMiniTransform<boolean, boolean | import("viem").Account>>>;
|
|
37
|
+
memo: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
25
38
|
recipient: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
26
39
|
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniTransform<{
|
|
40
|
+
methodDetails?: {
|
|
41
|
+
memo?: string | undefined;
|
|
42
|
+
feePayer?: boolean | undefined;
|
|
43
|
+
chainId?: number | undefined;
|
|
44
|
+
} | undefined;
|
|
27
45
|
amount: string;
|
|
28
46
|
currency: string;
|
|
29
47
|
expires: string;
|
|
@@ -35,106 +53,92 @@ export declare function tempo<const parameters extends tempo.Parameters>(paramet
|
|
|
35
53
|
currency: string;
|
|
36
54
|
decimals: number;
|
|
37
55
|
expires: string;
|
|
56
|
+
chainId?: number | undefined;
|
|
38
57
|
description?: string | undefined;
|
|
39
58
|
externalId?: string | undefined;
|
|
59
|
+
feePayer?: boolean | undefined;
|
|
60
|
+
memo?: string | undefined;
|
|
40
61
|
recipient?: string | undefined;
|
|
41
62
|
}>>;
|
|
42
63
|
};
|
|
43
|
-
}, {
|
|
44
|
-
readonly
|
|
64
|
+
}, charge_.DeriveDefaults<parameters>, undefined>, import("../../Method.js").Server<{
|
|
65
|
+
readonly name: "tempo";
|
|
66
|
+
readonly intent: "session";
|
|
45
67
|
readonly schema: {
|
|
46
68
|
readonly credential: {
|
|
47
69
|
readonly payload: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
70
|
+
action: import("zod/mini").ZodMiniLiteral<"open">;
|
|
71
|
+
authorizedSigner: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
72
|
+
channelId: import("zod/mini").ZodMiniString<string>;
|
|
73
|
+
cumulativeAmount: import("zod/mini").ZodMiniString<string>;
|
|
51
74
|
signature: import("zod/mini").ZodMiniString<string>;
|
|
75
|
+
transaction: import("zod/mini").ZodMiniString<string>;
|
|
52
76
|
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
53
|
-
}, import("zod/v4/core").$strip
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
77
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
78
|
+
action: import("zod/mini").ZodMiniLiteral<"topUp">;
|
|
79
|
+
additionalDeposit: import("zod/mini").ZodMiniString<string>;
|
|
80
|
+
channelId: import("zod/mini").ZodMiniString<string>;
|
|
81
|
+
transaction: import("zod/mini").ZodMiniString<string>;
|
|
82
|
+
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
83
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
84
|
+
action: import("zod/mini").ZodMiniLiteral<"voucher">;
|
|
85
|
+
channelId: import("zod/mini").ZodMiniString<string>;
|
|
86
|
+
cumulativeAmount: import("zod/mini").ZodMiniString<string>;
|
|
87
|
+
signature: import("zod/mini").ZodMiniString<string>;
|
|
88
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
89
|
+
action: import("zod/mini").ZodMiniLiteral<"close">;
|
|
90
|
+
channelId: import("zod/mini").ZodMiniString<string>;
|
|
91
|
+
cumulativeAmount: import("zod/mini").ZodMiniString<string>;
|
|
92
|
+
signature: import("zod/mini").ZodMiniString<string>;
|
|
93
|
+
}, import("zod/v4/core").$strip>], "action">;
|
|
62
94
|
};
|
|
63
|
-
};
|
|
64
|
-
}>, charge_.DeriveDefaults<parameters>, undefined>, import("../../MethodIntent.js").Server<import("../../MethodIntent.js").MethodIntent<{
|
|
65
|
-
readonly name: "session";
|
|
66
|
-
readonly schema: {
|
|
67
95
|
readonly request: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniObject<{
|
|
68
96
|
amount: import("zod/mini").ZodMiniString<string>;
|
|
69
|
-
|
|
97
|
+
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
98
|
+
channelId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
70
99
|
currency: import("zod/mini").ZodMiniString<string>;
|
|
71
100
|
decimals: import("zod/mini").ZodMiniNumber<number>;
|
|
101
|
+
escrowContract: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
102
|
+
feePayer: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniBoolean<boolean>, import("zod/mini").ZodMiniCustom<import("viem").Account, import("viem").Account>]>, import("zod/mini").ZodMiniTransform<boolean, boolean | import("viem").Account>>>;
|
|
103
|
+
minVoucherDelta: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
72
104
|
recipient: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
73
105
|
suggestedDeposit: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
106
|
+
unitType: import("zod/mini").ZodMiniString<string>;
|
|
74
107
|
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniTransform<{
|
|
108
|
+
methodDetails: {
|
|
109
|
+
feePayer?: boolean | undefined;
|
|
110
|
+
chainId?: number | undefined;
|
|
111
|
+
minVoucherDelta?: string | undefined;
|
|
112
|
+
channelId?: string | undefined;
|
|
113
|
+
escrowContract: string | undefined;
|
|
114
|
+
};
|
|
75
115
|
suggestedDeposit?: string | undefined;
|
|
76
116
|
amount: string;
|
|
77
|
-
unitType: string;
|
|
78
117
|
currency: string;
|
|
118
|
+
unitType: string;
|
|
79
119
|
recipient?: string | undefined;
|
|
80
120
|
}, {
|
|
81
121
|
amount: string;
|
|
82
|
-
unitType: string;
|
|
83
122
|
currency: string;
|
|
84
123
|
decimals: number;
|
|
124
|
+
unitType: string;
|
|
125
|
+
chainId?: number | undefined;
|
|
126
|
+
channelId?: string | undefined;
|
|
127
|
+
escrowContract?: string | undefined;
|
|
128
|
+
feePayer?: boolean | undefined;
|
|
129
|
+
minVoucherDelta?: string | undefined;
|
|
85
130
|
recipient?: string | undefined;
|
|
86
131
|
suggestedDeposit?: string | undefined;
|
|
87
132
|
}>>;
|
|
88
133
|
};
|
|
89
|
-
},
|
|
90
|
-
readonly method: "tempo";
|
|
91
|
-
readonly schema: {
|
|
92
|
-
readonly credential: {
|
|
93
|
-
readonly payload: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
94
|
-
action: import("zod/mini").ZodMiniLiteral<"open">;
|
|
95
|
-
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
96
|
-
channelId: import("zod/mini").ZodMiniString<string>;
|
|
97
|
-
transaction: import("zod/mini").ZodMiniString<string>;
|
|
98
|
-
authorizedSigner: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
99
|
-
cumulativeAmount: import("zod/mini").ZodMiniString<string>;
|
|
100
|
-
signature: import("zod/mini").ZodMiniString<string>;
|
|
101
|
-
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
102
|
-
action: import("zod/mini").ZodMiniLiteral<"topUp">;
|
|
103
|
-
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
104
|
-
channelId: import("zod/mini").ZodMiniString<string>;
|
|
105
|
-
transaction: import("zod/mini").ZodMiniString<string>;
|
|
106
|
-
additionalDeposit: import("zod/mini").ZodMiniString<string>;
|
|
107
|
-
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
108
|
-
action: import("zod/mini").ZodMiniLiteral<"voucher">;
|
|
109
|
-
channelId: import("zod/mini").ZodMiniString<string>;
|
|
110
|
-
cumulativeAmount: import("zod/mini").ZodMiniString<string>;
|
|
111
|
-
signature: import("zod/mini").ZodMiniString<string>;
|
|
112
|
-
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
113
|
-
action: import("zod/mini").ZodMiniLiteral<"close">;
|
|
114
|
-
channelId: import("zod/mini").ZodMiniString<string>;
|
|
115
|
-
cumulativeAmount: import("zod/mini").ZodMiniString<string>;
|
|
116
|
-
signature: import("zod/mini").ZodMiniString<string>;
|
|
117
|
-
}, import("zod/v4/core").$strip>], "action">;
|
|
118
|
-
};
|
|
119
|
-
readonly request: {
|
|
120
|
-
readonly methodDetails: import("zod/mini").ZodMiniObject<{
|
|
121
|
-
escrowContract: import("zod/mini").ZodMiniString<string>;
|
|
122
|
-
channelId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
123
|
-
minVoucherDelta: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
124
|
-
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
125
|
-
feePayer: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniBoolean<boolean>, import("zod/mini").ZodMiniCustom<import("viem").Account, import("viem").Account>]>, import("zod/mini").ZodMiniTransform<boolean, boolean | import("viem").Account>>>;
|
|
126
|
-
}, import("zod/v4/core").$strip>;
|
|
127
|
-
readonly requires: readonly ["decimals", "recipient", "currency"];
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
}>, session_.DeriveDefaults<parameters>, parameters["stream"] extends false | undefined ? undefined : import("./internal/transport.js").Sse>];
|
|
134
|
+
}, session_.DeriveDefaults<parameters>, parameters["stream"] extends false | undefined ? undefined : import("./internal/transport.js").Sse>];
|
|
131
135
|
export declare namespace tempo {
|
|
132
136
|
type Parameters = charge_.Parameters & session_.Parameters;
|
|
133
|
-
/** Creates a Tempo `charge` method
|
|
137
|
+
/** Creates a Tempo `charge` method for one-time TIP-20 token transfers. */
|
|
134
138
|
const charge: typeof charge_;
|
|
135
|
-
/** Creates a Tempo `session` method
|
|
139
|
+
/** Creates a Tempo `session` method for session-based TIP-20 token payments. */
|
|
136
140
|
const session: typeof session_;
|
|
137
141
|
/** One-shot settle: reads highest voucher from storage and submits on-chain. */
|
|
138
142
|
const settle: typeof settle_;
|
|
139
143
|
}
|
|
140
|
-
//# sourceMappingURL=
|
|
144
|
+
//# sourceMappingURL=Methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Methods.d.ts","sourceRoot":"","sources":["../../../src/tempo/server/Methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA;AAErE;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CAAC,KAAK,CAAC,UAAU,SAAS,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6IAEvF;AAED,yBAAiB,KAAK,CAAC;IACrB,KAAY,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAA;IAEjE,2EAA2E;IACpE,MAAM,MAAM,gBAAU,CAAA;IAC7B,gFAAgF;IACzE,MAAM,OAAO,iBAAW,CAAA;IAC/B,gFAAgF;IACzE,MAAM,MAAM,gBAAU,CAAA;CAC9B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { charge as charge_ } from './Charge.js';
|
|
2
2
|
import { session as session_, settle as settle_ } from './Session.js';
|
|
3
3
|
/**
|
|
4
|
-
* Creates both Tempo `charge` and `session`
|
|
4
|
+
* Creates both Tempo `charge` and `session` methods from shared parameters.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```ts
|
|
@@ -16,11 +16,11 @@ export function tempo(parameters) {
|
|
|
16
16
|
return [tempo.charge(parameters), tempo.session(parameters)];
|
|
17
17
|
}
|
|
18
18
|
(function (tempo) {
|
|
19
|
-
/** Creates a Tempo `charge` method
|
|
19
|
+
/** Creates a Tempo `charge` method for one-time TIP-20 token transfers. */
|
|
20
20
|
tempo.charge = charge_;
|
|
21
|
-
/** Creates a Tempo `session` method
|
|
21
|
+
/** Creates a Tempo `session` method for session-based TIP-20 token payments. */
|
|
22
22
|
tempo.session = session_;
|
|
23
23
|
/** One-shot settle: reads highest voucher from storage and submits on-chain. */
|
|
24
24
|
tempo.settle = settle_;
|
|
25
25
|
})(tempo || (tempo = {}));
|
|
26
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=Methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Methods.js","sourceRoot":"","sources":["../../../src/tempo/server/Methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA;AAErE;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,KAAK,CAA4C,UAAuB;IACtF,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAU,CAAA;AACvE,CAAC;AAED,WAAiB,KAAK;IAGpB,2EAA2E;IAC9D,YAAM,GAAG,OAAO,CAAA;IAC7B,gFAAgF;IACnE,aAAO,GAAG,QAAQ,CAAA;IAC/B,gFAAgF;IACnE,YAAM,GAAG,OAAO,CAAA;AAC/B,CAAC,EATgB,KAAK,KAAL,KAAK,QASrB"}
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { type Address, type Hex, type Account as viem_Account, type Client as viem_Client } from 'viem';
|
|
14
14
|
import type { LooseOmit } from '../../internal/types.js';
|
|
15
|
-
import * as
|
|
15
|
+
import * as Method from '../../Method.js';
|
|
16
16
|
import * as Store from '../../Store.js';
|
|
17
17
|
import * as Client from '../../viem/Client.js';
|
|
18
|
-
import * as Intents from '../Intents.js';
|
|
19
18
|
import * as Account from '../internal/account.js';
|
|
20
19
|
import type * as types from '../internal/types.js';
|
|
20
|
+
import * as Methods from '../Methods.js';
|
|
21
21
|
import * as ChannelStore from '../stream/ChannelStore.js';
|
|
22
22
|
import * as Transport from './internal/transport.js';
|
|
23
23
|
/**
|
|
24
|
-
* Creates a stream payment server using the
|
|
24
|
+
* Creates a stream payment server using the Method.toServer() pattern.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```ts
|
|
@@ -41,49 +41,25 @@ import * as Transport from './internal/transport.js';
|
|
|
41
41
|
* })
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
export declare function session<const parameters extends session.Parameters>(p?: parameters):
|
|
45
|
-
readonly name: "
|
|
46
|
-
readonly
|
|
47
|
-
readonly request: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniObject<{
|
|
48
|
-
amount: import("zod/mini").ZodMiniString<string>;
|
|
49
|
-
unitType: import("zod/mini").ZodMiniString<string>;
|
|
50
|
-
currency: import("zod/mini").ZodMiniString<string>;
|
|
51
|
-
decimals: import("zod/mini").ZodMiniNumber<number>;
|
|
52
|
-
recipient: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
53
|
-
suggestedDeposit: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
54
|
-
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniTransform<{
|
|
55
|
-
suggestedDeposit?: string | undefined;
|
|
56
|
-
amount: string;
|
|
57
|
-
unitType: string;
|
|
58
|
-
currency: string;
|
|
59
|
-
recipient?: string | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
amount: string;
|
|
62
|
-
unitType: string;
|
|
63
|
-
currency: string;
|
|
64
|
-
decimals: number;
|
|
65
|
-
recipient?: string | undefined;
|
|
66
|
-
suggestedDeposit?: string | undefined;
|
|
67
|
-
}>>;
|
|
68
|
-
};
|
|
69
|
-
}, {
|
|
70
|
-
readonly method: "tempo";
|
|
44
|
+
export declare function session<const parameters extends session.Parameters>(p?: parameters): Method.Server<{
|
|
45
|
+
readonly name: "tempo";
|
|
46
|
+
readonly intent: "session";
|
|
71
47
|
readonly schema: {
|
|
72
48
|
readonly credential: {
|
|
73
49
|
readonly payload: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
74
50
|
action: import("zod/mini").ZodMiniLiteral<"open">;
|
|
75
|
-
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
76
|
-
channelId: import("zod/mini").ZodMiniString<string>;
|
|
77
|
-
transaction: import("zod/mini").ZodMiniString<string>;
|
|
78
51
|
authorizedSigner: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
52
|
+
channelId: import("zod/mini").ZodMiniString<string>;
|
|
79
53
|
cumulativeAmount: import("zod/mini").ZodMiniString<string>;
|
|
80
54
|
signature: import("zod/mini").ZodMiniString<string>;
|
|
55
|
+
transaction: import("zod/mini").ZodMiniString<string>;
|
|
56
|
+
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
81
57
|
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
82
58
|
action: import("zod/mini").ZodMiniLiteral<"topUp">;
|
|
83
|
-
|
|
59
|
+
additionalDeposit: import("zod/mini").ZodMiniString<string>;
|
|
84
60
|
channelId: import("zod/mini").ZodMiniString<string>;
|
|
85
61
|
transaction: import("zod/mini").ZodMiniString<string>;
|
|
86
|
-
|
|
62
|
+
type: import("zod/mini").ZodMiniLiteral<"transaction">;
|
|
87
63
|
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
88
64
|
action: import("zod/mini").ZodMiniLiteral<"voucher">;
|
|
89
65
|
channelId: import("zod/mini").ZodMiniString<string>;
|
|
@@ -96,20 +72,48 @@ export declare function session<const parameters extends session.Parameters>(p?:
|
|
|
96
72
|
signature: import("zod/mini").ZodMiniString<string>;
|
|
97
73
|
}, import("zod/v4/core").$strip>], "action">;
|
|
98
74
|
};
|
|
99
|
-
readonly request: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
75
|
+
readonly request: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniObject<{
|
|
76
|
+
amount: import("zod/mini").ZodMiniString<string>;
|
|
77
|
+
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
78
|
+
channelId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
79
|
+
currency: import("zod/mini").ZodMiniString<string>;
|
|
80
|
+
decimals: import("zod/mini").ZodMiniNumber<number>;
|
|
81
|
+
escrowContract: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
82
|
+
feePayer: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniBoolean<boolean>, import("zod/mini").ZodMiniCustom<viem_Account, viem_Account>]>, import("zod/mini").ZodMiniTransform<boolean, boolean | viem_Account>>>;
|
|
83
|
+
minVoucherDelta: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
84
|
+
recipient: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
85
|
+
suggestedDeposit: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
86
|
+
unitType: import("zod/mini").ZodMiniString<string>;
|
|
87
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniTransform<{
|
|
88
|
+
methodDetails: {
|
|
89
|
+
feePayer?: boolean | undefined;
|
|
90
|
+
chainId?: number | undefined;
|
|
91
|
+
minVoucherDelta?: string | undefined;
|
|
92
|
+
channelId?: string | undefined;
|
|
93
|
+
escrowContract: string | undefined;
|
|
94
|
+
};
|
|
95
|
+
suggestedDeposit?: string | undefined;
|
|
96
|
+
amount: string;
|
|
97
|
+
currency: string;
|
|
98
|
+
unitType: string;
|
|
99
|
+
recipient?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
amount: string;
|
|
102
|
+
currency: string;
|
|
103
|
+
decimals: number;
|
|
104
|
+
unitType: string;
|
|
105
|
+
chainId?: number | undefined;
|
|
106
|
+
channelId?: string | undefined;
|
|
107
|
+
escrowContract?: string | undefined;
|
|
108
|
+
feePayer?: boolean | undefined;
|
|
109
|
+
minVoucherDelta?: string | undefined;
|
|
110
|
+
recipient?: string | undefined;
|
|
111
|
+
suggestedDeposit?: string | undefined;
|
|
112
|
+
}>>;
|
|
109
113
|
};
|
|
110
|
-
}
|
|
114
|
+
}, session.DeriveDefaults<parameters>, parameters["stream"] extends false | undefined ? undefined : Transport.Sse>;
|
|
111
115
|
export declare namespace session {
|
|
112
|
-
type Defaults = LooseOmit<
|
|
116
|
+
type Defaults = LooseOmit<Method.RequestDefaults<typeof Methods.session>, 'feePayer' | 'recipient'>;
|
|
113
117
|
type Parameters = {
|
|
114
118
|
/** Minimum voucher delta to accept (numeric string, default: "0"). */
|
|
115
119
|
minVoucherDelta?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/tempo/server/Session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EAER,KAAK,OAAO,IAAI,YAAY,EAC5B,KAAK,MAAM,IAAI,WAAW,EAC3B,MAA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