@longdotxyz/shared 0.0.62 → 0.0.64

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.
@@ -3712,6 +3712,53 @@ export declare const rootContract: {
3712
3712
  };
3713
3713
  };
3714
3714
  };
3715
+ sponsorships: {
3716
+ broadcastSponsored: {
3717
+ description: "Broadcast a transaction with gas sponsorship using Privy server wallet";
3718
+ method: "POST";
3719
+ body: import("zod").ZodObject<{
3720
+ encoded_payload: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
3721
+ }, "strip", import("zod").ZodTypeAny, {
3722
+ encoded_payload: `0x${string}`;
3723
+ }, {
3724
+ encoded_payload: string;
3725
+ }>;
3726
+ path: "/sponsor";
3727
+ responses: {
3728
+ 200: import("zod").ZodObject<{
3729
+ result: import("zod").ZodObject<{
3730
+ transaction_hash: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
3731
+ }, "strip", import("zod").ZodTypeAny, {
3732
+ transaction_hash: `0x${string}`;
3733
+ }, {
3734
+ transaction_hash: string;
3735
+ }>;
3736
+ }, "strip", import("zod").ZodTypeAny, {
3737
+ result: {
3738
+ transaction_hash: `0x${string}`;
3739
+ };
3740
+ }, {
3741
+ result: {
3742
+ transaction_hash: string;
3743
+ };
3744
+ }>;
3745
+ 400: import("zod").ZodObject<{
3746
+ message: import("zod").ZodString;
3747
+ }, "strip", import("zod").ZodTypeAny, {
3748
+ message: string;
3749
+ }, {
3750
+ message: string;
3751
+ }>;
3752
+ 500: import("zod").ZodObject<{
3753
+ message: import("zod").ZodString;
3754
+ }, "strip", import("zod").ZodTypeAny, {
3755
+ message: string;
3756
+ }, {
3757
+ message: string;
3758
+ }>;
3759
+ };
3760
+ };
3761
+ };
3715
3762
  };
3716
3763
  export * from "./asset.contract";
3717
3764
  export * from "./auction.contract";
@@ -3719,3 +3766,4 @@ export * from "./auction-template.contract";
3719
3766
  export * from "./community.contract";
3720
3767
  export * from "./ipfs.contract";
3721
3768
  export * from "./quote.contract";
3769
+ export * from "./sponsorship.contract";
@@ -22,6 +22,7 @@ const auction_contract_1 = require("./auction.contract");
22
22
  const community_contract_1 = require("./community.contract");
23
23
  const ipfs_contract_1 = require("./ipfs.contract");
24
24
  const quote_contract_1 = require("./quote.contract");
25
+ const sponsorship_contract_1 = require("./sponsorship.contract");
25
26
  const contract = (0, core_1.initContract)();
26
27
  exports.rootContract = contract.router({
27
28
  assets: asset_contract_1.assetContract,
@@ -30,6 +31,7 @@ exports.rootContract = contract.router({
30
31
  communities: community_contract_1.communityContract,
31
32
  ipfs: ipfs_contract_1.ipfsContract,
32
33
  quotes: quote_contract_1.quoteContract,
34
+ sponsorships: sponsorship_contract_1.sponsorshipContract,
33
35
  });
34
36
  __exportStar(require("./asset.contract"), exports);
35
37
  __exportStar(require("./auction.contract"), exports);
@@ -37,4 +39,5 @@ __exportStar(require("./auction-template.contract"), exports);
37
39
  __exportStar(require("./community.contract"), exports);
38
40
  __exportStar(require("./ipfs.contract"), exports);
39
41
  __exportStar(require("./quote.contract"), exports);
42
+ __exportStar(require("./sponsorship.contract"), exports);
40
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,qDAAiD;AACjD,2EAAsE;AACtE,yDAAqD;AACrD,6DAAyD;AACzD,mDAA+C;AAC/C,qDAAiD;AAEjD,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AACnB,QAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,8BAAa;IACrB,QAAQ,EAAE,kCAAe;IACzB,gBAAgB,EAAE,mDAAuB;IACzC,WAAW,EAAE,sCAAiB;IAC9B,IAAI,EAAE,4BAAY;IAClB,MAAM,EAAE,8BAAa;CACxB,CAAC,CAAC;AAEH,mDAAiC;AACjC,qDAAmC;AACnC,8DAA4C;AAC5C,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,qDAAiD;AACjD,2EAAsE;AACtE,yDAAqD;AACrD,6DAAyD;AACzD,mDAA+C;AAC/C,qDAAiD;AACjD,iEAA6D;AAE7D,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AACnB,QAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,8BAAa;IACrB,QAAQ,EAAE,kCAAe;IACzB,gBAAgB,EAAE,mDAAuB;IACzC,WAAW,EAAE,sCAAiB;IAC9B,IAAI,EAAE,4BAAY;IAClB,MAAM,EAAE,8BAAa;IACrB,YAAY,EAAE,0CAAmB;CACpC,CAAC,CAAC;AAEH,mDAAiC;AACjC,qDAAmC;AACnC,8DAA4C;AAC5C,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,yDAAuC"}
@@ -0,0 +1,48 @@
1
+ import z from "zod";
2
+ export declare const sponsorshipContract: {
3
+ broadcastSponsored: {
4
+ description: "Broadcast a transaction with gas sponsorship using Privy server wallet";
5
+ method: "POST";
6
+ body: z.ZodObject<{
7
+ encoded_payload: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ encoded_payload: `0x${string}`;
10
+ }, {
11
+ encoded_payload: string;
12
+ }>;
13
+ path: "/sponsor";
14
+ responses: {
15
+ 200: z.ZodObject<{
16
+ result: z.ZodObject<{
17
+ transaction_hash: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ transaction_hash: `0x${string}`;
20
+ }, {
21
+ transaction_hash: string;
22
+ }>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ result: {
25
+ transaction_hash: `0x${string}`;
26
+ };
27
+ }, {
28
+ result: {
29
+ transaction_hash: string;
30
+ };
31
+ }>;
32
+ 400: z.ZodObject<{
33
+ message: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ message: string;
36
+ }, {
37
+ message: string;
38
+ }>;
39
+ 500: z.ZodObject<{
40
+ message: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ message: string;
43
+ }, {
44
+ message: string;
45
+ }>;
46
+ };
47
+ };
48
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sponsorshipContract = void 0;
4
+ const core_1 = require("@ts-rest/core");
5
+ const zod_1 = require("zod");
6
+ const types_1 = require("../types");
7
+ const contract = (0, core_1.initContract)();
8
+ exports.sponsorshipContract = contract.router({
9
+ broadcastSponsored: {
10
+ method: "POST",
11
+ path: "",
12
+ body: zod_1.default.object({
13
+ encoded_payload: zod_1.default.string().pipe(types_1.hex).describe("The encoded payload from the encode endpoint"),
14
+ }),
15
+ responses: {
16
+ 200: zod_1.default.object({
17
+ result: zod_1.default.object({
18
+ transaction_hash: zod_1.default.string().pipe(types_1.hex).describe("The transaction hash of the broadcasted transaction"),
19
+ }),
20
+ }),
21
+ 400: zod_1.default.object({
22
+ message: zod_1.default.string(),
23
+ }),
24
+ 500: zod_1.default.object({
25
+ message: zod_1.default.string(),
26
+ }),
27
+ },
28
+ description: "Broadcast a transaction with gas sponsorship using Privy server wallet",
29
+ },
30
+ }, {
31
+ pathPrefix: "/sponsor",
32
+ });
33
+ //# sourceMappingURL=sponsorship.contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sponsorship.contract.js","sourceRoot":"","sources":["../../src/contracts/sponsorship.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;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,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC,CAAC,QAAQ,CAAC,8CAA8C,CAAC;SACjG,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;oBACb,gBAAgB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC,CAAC,QAAQ,CAAC,qDAAqD,CAAC;iBACzG,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,UAAU;CACzB,CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longdotxyz/shared",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "description": "Shared types and utilities for Long.xyz API",
5
5
  "files": [
6
6
  "dist"