@longdotxyz/shared 0.0.115 → 0.0.117

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.
@@ -6043,6 +6043,44 @@ export declare const rootContract: {
6043
6043
  }>;
6044
6044
  };
6045
6045
  };
6046
+ getOrCreateXWallet: {
6047
+ description: "Get or create a smart wallet for an X (Twitter) user";
6048
+ method: "POST";
6049
+ body: import("zod").ZodObject<{
6050
+ x_user_id: import("zod").ZodString;
6051
+ x_username: import("zod").ZodString;
6052
+ }, "strip", import("zod").ZodTypeAny, {
6053
+ x_user_id: string;
6054
+ x_username: string;
6055
+ }, {
6056
+ x_user_id: string;
6057
+ x_username: string;
6058
+ }>;
6059
+ path: "/sponsorship/x-wallet";
6060
+ responses: {
6061
+ 200: import("zod").ZodObject<{
6062
+ wallet_address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
6063
+ }, "strip", import("zod").ZodTypeAny, {
6064
+ wallet_address: `0x${string}`;
6065
+ }, {
6066
+ wallet_address: string;
6067
+ }>;
6068
+ 400: import("zod").ZodObject<{
6069
+ message: import("zod").ZodString;
6070
+ }, "strip", import("zod").ZodTypeAny, {
6071
+ message: string;
6072
+ }, {
6073
+ message: string;
6074
+ }>;
6075
+ 500: import("zod").ZodObject<{
6076
+ message: import("zod").ZodString;
6077
+ }, "strip", import("zod").ZodTypeAny, {
6078
+ message: string;
6079
+ }, {
6080
+ message: string;
6081
+ }>;
6082
+ };
6083
+ };
6046
6084
  };
6047
6085
  };
6048
6086
  export * from "./asset.contract";
@@ -45,4 +45,42 @@ export declare const sponsorshipContract: {
45
45
  }>;
46
46
  };
47
47
  };
48
+ getOrCreateXWallet: {
49
+ description: "Get or create a smart wallet for an X (Twitter) user";
50
+ method: "POST";
51
+ body: z.ZodObject<{
52
+ x_user_id: z.ZodString;
53
+ x_username: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ x_user_id: string;
56
+ x_username: string;
57
+ }, {
58
+ x_user_id: string;
59
+ x_username: string;
60
+ }>;
61
+ path: "/sponsorship/x-wallet";
62
+ responses: {
63
+ 200: z.ZodObject<{
64
+ wallet_address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ wallet_address: `0x${string}`;
67
+ }, {
68
+ wallet_address: string;
69
+ }>;
70
+ 400: z.ZodObject<{
71
+ message: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ message: string;
74
+ }, {
75
+ message: string;
76
+ }>;
77
+ 500: z.ZodObject<{
78
+ message: z.ZodString;
79
+ }, "strip", z.ZodTypeAny, {
80
+ message: string;
81
+ }, {
82
+ message: string;
83
+ }>;
84
+ };
85
+ };
48
86
  };
@@ -30,6 +30,26 @@ exports.sponsorshipContract = contract.router({
30
30
  },
31
31
  description: "Broadcast a transaction with gas sponsorship using Privy server wallet",
32
32
  },
33
+ getOrCreateXWallet: {
34
+ method: "POST",
35
+ path: "/x-wallet",
36
+ body: zod_1.default.object({
37
+ x_user_id: zod_1.default.string().describe("The X (Twitter) user ID"),
38
+ x_username: zod_1.default.string().describe("The X (Twitter) username"),
39
+ }),
40
+ responses: {
41
+ 200: zod_1.default.object({
42
+ wallet_address: types_1.hex.describe("The smart wallet address"),
43
+ }),
44
+ 400: zod_1.default.object({
45
+ message: zod_1.default.string(),
46
+ }),
47
+ 500: zod_1.default.object({
48
+ message: zod_1.default.string(),
49
+ }),
50
+ },
51
+ description: "Get or create a smart wallet for an X (Twitter) user",
52
+ },
33
53
  }, {
34
54
  pathPrefix: "/sponsorship",
35
55
  });
@@ -1 +1 @@
1
- {"version":3,"file":"sponsorship.contract.js","sourceRoot":"","sources":["../../src/contracts/sponsorship.contract.ts"],"names":[],"mappings":";;;;;;AAAA,wCAA6C;AAC7C,8CAAoB;AAEpB,oCAA+B;AAE/B,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEnB,QAAA,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAC9C;IACI,kBAAkB,EAAE;QAChB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,eAAe,EAAE,WAAG,CAAC,QAAQ,CAAC,8DAA8D,CAAC;SAChG,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;oBACb,gBAAgB,EAAE,WAAG,CAAC,QAAQ,CAAC,qDAAqD,CAAC;iBACxF,CAAC;aACL,CAAC;YACF,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;aACtB,CAAC;YACF,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;aACtB,CAAC;SACL;QACD,WAAW,EAAE,wEAAwE;KACxF;CACJ,EACD;IACI,UAAU,EAAE,cAAc;CAC7B,CACJ,CAAC"}
1
+ {"version":3,"file":"sponsorship.contract.js","sourceRoot":"","sources":["../../src/contracts/sponsorship.contract.ts"],"names":[],"mappings":";;;;;;AAAA,wCAA6C;AAC7C,8CAAoB;AAEpB,oCAA+B;AAE/B,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEnB,QAAA,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAC9C;IACI,kBAAkB,EAAE;QAChB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,eAAe,EAAE,WAAG,CAAC,QAAQ,CAAC,8DAA8D,CAAC;SAChG,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;oBACb,gBAAgB,EAAE,WAAG,CAAC,QAAQ,CAAC,qDAAqD,CAAC;iBACxF,CAAC;aACL,CAAC;YACF,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;aACtB,CAAC;YACF,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;aACtB,CAAC;SACL;QACD,WAAW,EAAE,wEAAwE;KACxF;IACD,kBAAkB,EAAE;QAChB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;YACzD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;SAC9D,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,cAAc,EAAE,WAAG,CAAC,QAAQ,CAAC,0BAA0B,CAAC;aAC3D,CAAC;YACF,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;aACtB,CAAC;YACF,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;aACtB,CAAC;SACL;QACD,WAAW,EAAE,sDAAsD;KACtE;CACJ,EACD;IACI,UAAU,EAAE,cAAc;CAC7B,CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longdotxyz/shared",
3
- "version": "0.0.115",
3
+ "version": "0.0.117",
4
4
  "description": "Shared types and utilities for Long.xyz API",
5
5
  "files": [
6
6
  "dist"
@@ -15,7 +15,7 @@
15
15
  "graphql": "^16.12.0",
16
16
  "graphql-request": "6.1.0",
17
17
  "graphql-tag": "^2.12.6",
18
- "viem": "^2.43.5"
18
+ "viem": "^2.44.4"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "zod": "^3.25.0"
@@ -25,17 +25,17 @@
25
25
  "@graphql-codegen/cli": "6.0.0",
26
26
  "@graphql-codegen/introspection": "5.0.0",
27
27
  "@graphql-codegen/typescript": "5.0.0",
28
- "@graphql-codegen/typescript-generic-sdk": "^4.0.2",
28
+ "@graphql-codegen/typescript-generic-sdk": "^4.1.0",
29
29
  "@types/jest": "^29.5.14",
30
30
  "eslint": "^9.39.2",
31
31
  "eslint-config-prettier": "^10.0.1",
32
- "eslint-plugin-prettier": "^5.2.2",
32
+ "eslint-plugin-prettier": "^5.5.5",
33
33
  "globals": "^16.5.0",
34
34
  "jest": "^29.7.0",
35
35
  "ts-jest": "^29.4.6",
36
36
  "tsx": "^4.21.0",
37
37
  "typescript": "^5.7.3",
38
- "typescript-eslint": "^8.51.0"
38
+ "typescript-eslint": "^8.53.0"
39
39
  },
40
40
  "jest": {
41
41
  "moduleFileExtensions": [