@pear-protocol/core-sdk 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.d.ts +38 -1
- package/dist/core/index.js +24 -1
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -187,7 +187,7 @@ declare class Core {
|
|
|
187
187
|
get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
|
|
188
188
|
baseBps: string;
|
|
189
189
|
discounts: {
|
|
190
|
-
scope: "
|
|
190
|
+
scope: "connector" | "all" | "user" | "client_id";
|
|
191
191
|
rate: string;
|
|
192
192
|
}[];
|
|
193
193
|
finalBps: string;
|
|
@@ -5173,6 +5173,43 @@ declare class Core {
|
|
|
5173
5173
|
submitFastWithdraw: (body: HttpTypes.SubmitLighterFastWithdrawParams, headers?: ClientHeaders) => Promise<{
|
|
5174
5174
|
txHash: string;
|
|
5175
5175
|
}>;
|
|
5176
|
+
/** Moves a Lighter account onto the standard, plus, or premium tier. */
|
|
5177
|
+
changeAccountTier: (body: HttpTypes.ChangeLighterAccountTierParams, headers?: ClientHeaders) => Promise<{
|
|
5178
|
+
tier: "standard" | "plus" | "premium";
|
|
5179
|
+
}>;
|
|
5180
|
+
/** Mints the Fun.xyz universal deposit addresses that credit a wallet's Lighter account. */
|
|
5181
|
+
createUda: (body: HttpTypes.CreateLighterUdaParams, headers?: ClientHeaders) => Promise<{
|
|
5182
|
+
uda: {
|
|
5183
|
+
status: "blocked";
|
|
5184
|
+
} | {
|
|
5185
|
+
status: "served";
|
|
5186
|
+
depositAddr: string;
|
|
5187
|
+
resolved: {
|
|
5188
|
+
toChainId: string;
|
|
5189
|
+
toTokenAddress: string;
|
|
5190
|
+
actionType: string;
|
|
5191
|
+
recipientAddr: string;
|
|
5192
|
+
userId: string;
|
|
5193
|
+
};
|
|
5194
|
+
solanaAddr?: string | undefined;
|
|
5195
|
+
tronAddr?: string | undefined;
|
|
5196
|
+
btcAddrSegwit?: string | undefined;
|
|
5197
|
+
};
|
|
5198
|
+
}>;
|
|
5199
|
+
/** Reads the deposits the Fun.xyz bridge has seen for one wallet. */
|
|
5200
|
+
listUdaDeposits: (walletAddress: string, headers?: ClientHeaders) => Promise<{
|
|
5201
|
+
transactions: {
|
|
5202
|
+
fromChainId: string;
|
|
5203
|
+
fromTokenAddress: string;
|
|
5204
|
+
fromAmountBaseUnit: string;
|
|
5205
|
+
toChainId: string;
|
|
5206
|
+
toTokenAddress: string;
|
|
5207
|
+
txHash: string;
|
|
5208
|
+
createdTimeMs: number;
|
|
5209
|
+
status: string;
|
|
5210
|
+
depositAddr: string;
|
|
5211
|
+
}[];
|
|
5212
|
+
}>;
|
|
5176
5213
|
};
|
|
5177
5214
|
};
|
|
5178
5215
|
statistics: {
|
package/dist/core/index.js
CHANGED
|
@@ -702,7 +702,30 @@ class Core {
|
|
|
702
702
|
headers,
|
|
703
703
|
body
|
|
704
704
|
});
|
|
705
|
-
}, "submitFastWithdraw")
|
|
705
|
+
}, "submitFastWithdraw"),
|
|
706
|
+
/** Moves a Lighter account onto the standard, plus, or premium tier. */
|
|
707
|
+
changeAccountTier: /* @__PURE__ */ __name(async (body, headers) => {
|
|
708
|
+
return await this.client.fetch(`/misc/lighter/change-account-tier`, {
|
|
709
|
+
method: "POST",
|
|
710
|
+
headers,
|
|
711
|
+
body
|
|
712
|
+
});
|
|
713
|
+
}, "changeAccountTier"),
|
|
714
|
+
/** Mints the Fun.xyz universal deposit addresses that credit a wallet's Lighter account. */
|
|
715
|
+
createUda: /* @__PURE__ */ __name(async (body, headers) => {
|
|
716
|
+
return await this.client.fetch(`/misc/lighter/uda`, {
|
|
717
|
+
method: "POST",
|
|
718
|
+
headers,
|
|
719
|
+
body
|
|
720
|
+
});
|
|
721
|
+
}, "createUda"),
|
|
722
|
+
/** Reads the deposits the Fun.xyz bridge has seen for one wallet. */
|
|
723
|
+
listUdaDeposits: /* @__PURE__ */ __name(async (walletAddress, headers) => {
|
|
724
|
+
return await this.client.fetch(`/misc/lighter/uda/${encodeURIComponent(walletAddress)}`, {
|
|
725
|
+
method: "GET",
|
|
726
|
+
headers
|
|
727
|
+
});
|
|
728
|
+
}, "listUdaDeposits")
|
|
706
729
|
}
|
|
707
730
|
};
|
|
708
731
|
statistics = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pear-protocol/core-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "Pear Protocol Core SDK",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pear-protocol/types": "^1.
|
|
30
|
-
"@pear-protocol/utils": "^0.5.
|
|
29
|
+
"@pear-protocol/types": "^1.28.0",
|
|
30
|
+
"@pear-protocol/utils": "^0.5.3",
|
|
31
31
|
"qs": "^6.14.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|