@chipi-stack/types 3.0.0 → 4.0.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/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -33,6 +33,7 @@ declare const STARKNET_CONTRACTS: Record<ChainToken, {
|
|
|
33
33
|
interface WalletData {
|
|
34
34
|
publicKey: string;
|
|
35
35
|
encryptedPrivateKey: string;
|
|
36
|
+
decyptedWallet?: string;
|
|
36
37
|
}
|
|
37
38
|
interface CreateWalletParams {
|
|
38
39
|
encryptKey: string;
|
|
@@ -48,8 +49,9 @@ interface CreateWalletResponse {
|
|
|
48
49
|
interface GetWalletParams {
|
|
49
50
|
externalUserId: string;
|
|
50
51
|
bearerToken: string;
|
|
51
|
-
apiPublicKey?: string;
|
|
52
52
|
encryptKey: string;
|
|
53
|
+
apiPublicKey?: string;
|
|
54
|
+
backendUrl?: string;
|
|
53
55
|
nodeUrl?: string;
|
|
54
56
|
}
|
|
55
57
|
interface GetWalletResponse {
|
|
@@ -97,14 +99,14 @@ interface ExecuteTransactionParams {
|
|
|
97
99
|
}
|
|
98
100
|
interface Transaction {
|
|
99
101
|
id: string;
|
|
100
|
-
chain:
|
|
102
|
+
chain: "STARKNET" | "BASE" | "ARBITRUM" | "OPTIMISM" | "ROOTSTOCK" | "SCROLL" | "WORLDCHAIN";
|
|
101
103
|
apiPublicKey: string;
|
|
102
104
|
transactionHash: string;
|
|
103
105
|
blockNumber: number;
|
|
104
106
|
senderAddress: string;
|
|
105
107
|
destinationAddress: string;
|
|
106
108
|
amount: string;
|
|
107
|
-
token:
|
|
109
|
+
token: "USDC" | "USDT" | "DAI" | "ETH" | "STRK" | "SLINK" | "ALF" | "BROTHER" | "ARB" | "DOC" | "MXNB" | "WLD";
|
|
108
110
|
calledFunction?: string;
|
|
109
111
|
amountInUSD: number;
|
|
110
112
|
status: string;
|
|
@@ -143,8 +145,7 @@ interface TransferParams {
|
|
|
143
145
|
decimals: number;
|
|
144
146
|
};
|
|
145
147
|
recipient: string;
|
|
146
|
-
amount: string
|
|
147
|
-
decimals?: number;
|
|
148
|
+
amount: string;
|
|
148
149
|
}
|
|
149
150
|
interface ApproveParams {
|
|
150
151
|
encryptKey: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ declare const STARKNET_CONTRACTS: Record<ChainToken, {
|
|
|
33
33
|
interface WalletData {
|
|
34
34
|
publicKey: string;
|
|
35
35
|
encryptedPrivateKey: string;
|
|
36
|
+
decyptedWallet?: string;
|
|
36
37
|
}
|
|
37
38
|
interface CreateWalletParams {
|
|
38
39
|
encryptKey: string;
|
|
@@ -48,8 +49,9 @@ interface CreateWalletResponse {
|
|
|
48
49
|
interface GetWalletParams {
|
|
49
50
|
externalUserId: string;
|
|
50
51
|
bearerToken: string;
|
|
51
|
-
apiPublicKey?: string;
|
|
52
52
|
encryptKey: string;
|
|
53
|
+
apiPublicKey?: string;
|
|
54
|
+
backendUrl?: string;
|
|
53
55
|
nodeUrl?: string;
|
|
54
56
|
}
|
|
55
57
|
interface GetWalletResponse {
|
|
@@ -97,14 +99,14 @@ interface ExecuteTransactionParams {
|
|
|
97
99
|
}
|
|
98
100
|
interface Transaction {
|
|
99
101
|
id: string;
|
|
100
|
-
chain:
|
|
102
|
+
chain: "STARKNET" | "BASE" | "ARBITRUM" | "OPTIMISM" | "ROOTSTOCK" | "SCROLL" | "WORLDCHAIN";
|
|
101
103
|
apiPublicKey: string;
|
|
102
104
|
transactionHash: string;
|
|
103
105
|
blockNumber: number;
|
|
104
106
|
senderAddress: string;
|
|
105
107
|
destinationAddress: string;
|
|
106
108
|
amount: string;
|
|
107
|
-
token:
|
|
109
|
+
token: "USDC" | "USDT" | "DAI" | "ETH" | "STRK" | "SLINK" | "ALF" | "BROTHER" | "ARB" | "DOC" | "MXNB" | "WLD";
|
|
108
110
|
calledFunction?: string;
|
|
109
111
|
amountInUSD: number;
|
|
110
112
|
status: string;
|
|
@@ -143,8 +145,7 @@ interface TransferParams {
|
|
|
143
145
|
decimals: number;
|
|
144
146
|
};
|
|
145
147
|
recipient: string;
|
|
146
|
-
amount: string
|
|
147
|
-
decimals?: number;
|
|
148
|
+
amount: string;
|
|
148
149
|
}
|
|
149
150
|
interface ApproveParams {
|
|
150
151
|
encryptKey: string;
|