@iotexproject/kit 0.1.78 → 0.1.80
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/index.d.ts +46 -1
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -8572,6 +8572,7 @@ declare class LiquidityMiningV3 {
|
|
|
8572
8572
|
key: MimoV3MiningPoolKey;
|
|
8573
8573
|
v3PositionIds: number[];
|
|
8574
8574
|
account: `0x${string}`;
|
|
8575
|
+
needStakeToken: boolean;
|
|
8575
8576
|
}, ctx?: ConfigContext): Promise<{
|
|
8576
8577
|
data: any;
|
|
8577
8578
|
address: string;
|
|
@@ -8997,12 +8998,56 @@ declare class Apis extends BaseDBModule {
|
|
|
8997
8998
|
id: string;
|
|
8998
8999
|
name: string;
|
|
8999
9000
|
}[]>;
|
|
9000
|
-
createApi({ apiId }: {
|
|
9001
|
+
createApi({ apiId, message, signature }: {
|
|
9001
9002
|
apiId: string;
|
|
9003
|
+
message: string;
|
|
9004
|
+
signature: string;
|
|
9002
9005
|
}): Promise<{
|
|
9003
9006
|
keyId: string;
|
|
9004
9007
|
key: string;
|
|
9005
9008
|
}>;
|
|
9009
|
+
getApiKeysByExternalId({ apiId, externalId }: {
|
|
9010
|
+
apiId: string;
|
|
9011
|
+
externalId: string;
|
|
9012
|
+
}): Promise<{
|
|
9013
|
+
keys: {
|
|
9014
|
+
"id": string;
|
|
9015
|
+
"start": string;
|
|
9016
|
+
"workspaceId": string;
|
|
9017
|
+
"apiId": string;
|
|
9018
|
+
"name": string;
|
|
9019
|
+
"ownerId": string;
|
|
9020
|
+
"meta": {
|
|
9021
|
+
"roles": string[];
|
|
9022
|
+
"stripeCustomerId": string;
|
|
9023
|
+
};
|
|
9024
|
+
"createdAt": number;
|
|
9025
|
+
"updatedAt": number;
|
|
9026
|
+
"expires": number;
|
|
9027
|
+
"remaining": 1000;
|
|
9028
|
+
"refill": {
|
|
9029
|
+
"interval": string;
|
|
9030
|
+
"amount": number;
|
|
9031
|
+
"refillDay": number;
|
|
9032
|
+
};
|
|
9033
|
+
"ratelimit": {
|
|
9034
|
+
"async": boolean;
|
|
9035
|
+
"limit": number;
|
|
9036
|
+
"duration": number;
|
|
9037
|
+
};
|
|
9038
|
+
"roles": string[];
|
|
9039
|
+
"permissions": string[];
|
|
9040
|
+
"enabled": boolean;
|
|
9041
|
+
"plaintext": string;
|
|
9042
|
+
"identity": {
|
|
9043
|
+
"id": string;
|
|
9044
|
+
"externalId": string;
|
|
9045
|
+
"meta": {};
|
|
9046
|
+
};
|
|
9047
|
+
}[];
|
|
9048
|
+
cursor: string;
|
|
9049
|
+
total: number;
|
|
9050
|
+
}>;
|
|
9006
9051
|
}
|
|
9007
9052
|
declare const modules$1: {
|
|
9008
9053
|
account: Account;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var U=({url:j="http://localhost:9527",ctx:z}={})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{for(let K in b){if(typeof b[K]==="object")b[K]=JSON.stringify(b[K],(Q,N)=>typeof N==="bigint"?N.toString():N);if(b[K]==null)delete b[K]}
|
|
1
|
+
var U=({url:j="http://localhost:9527",ctx:z}={})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{for(let K in b){if(typeof b[K]==="object")b[K]=JSON.stringify(b[K],(Q,N)=>typeof N==="bigint"?N.toString():N);if(b[K]==null)delete b[K]}const H=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;let D;if(z)D=await fetch(H,{headers:{...z}});else D=await fetch(H);return D.json()}}})}}),S=async({args:j={},prop:z,method:L,url:B,fetchRequestInit:G})=>{if(!G?.method||G?.method==="GET"){for(let b in j){if(typeof j[b]==="object")j[b]=JSON.stringify(j[b],(H,D)=>typeof D==="bigint"?D.toString():D);if(j[b]==null)delete j[b]}const J=`${B}/${String(z)}/${String(L)}?${new URLSearchParams(j).toString()}`;return(await fetch(J,{...G})).json()}if(G?.method==="POST"){const J=`${B}/${String(z)}/${String(L)}`;return(await fetch(J,{...G,body:JSON.stringify(j)})).json()}},V=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{return S({args:b,prop:B,method:C,url:j,fetchRequestInit:z})}}})}}),W=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{return S({args:b,prop:B,method:C,url:j,fetchRequestInit:z})}}})}}),X=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{const H=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;return(await fetch(H,{method:"GET",...z})).json()}}})}}),Y=({url:j="http://localhost:9527",ctx:z}={})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{let H=!1;for(let N in b){if(typeof b[N]==="object")H=!0;if(b[N]==null)delete b[N]}let D,K,Q={};if(H)D=`${j}/${String(B)}/${String(C)}`;else D=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;if(z)Q.headers={...z};if(H)Q.method="POST",Q.body=JSON.stringify(b);return K=await fetch(D,Q),K.json()}}})}});export{X as createIotexscanClient,Y as createIoidClient,W as createClientWithIoPayServer,V as createClientWithDBServer,U as createClient};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iotexproject/kit",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.80",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"pg-format": "^1.0.4",
|
|
62
62
|
"postgres": "^3.4.4",
|
|
63
63
|
"reflect-metadata": "^0.2.2",
|
|
64
|
+
"siwe": "^3.0.0",
|
|
64
65
|
"strip-ansi-cjs": "^8.0.0",
|
|
65
66
|
"underscore": "^1.13.7",
|
|
66
67
|
"utf8": "^3.0.0",
|