@bluxcc/core 0.2.0 → 0.2.2
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/enums.d.ts +1 -0
- package/dist/exports/blux.d.ts +6 -0
- package/dist/exports/core/readContracts.d.ts +1 -0
- package/dist/exports/core/writeContracts.d.ts +1 -0
- package/dist/exports/utils.d.ts +9 -0
- package/dist/index.cjs.js +14 -14
- package/dist/index.esm.js +14 -14
- package/dist/stellar/handleTransactionSigning.d.ts +1 -1
- package/dist/store.d.ts +2 -0
- package/dist/types.d.ts +2 -1
- package/dist/utils/api.d.ts +2 -1
- package/dist/wallets/api.d.ts +2 -0
- package/package.json +3 -3
- package/dist/index.iife.js +0 -42
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ITransports, IWallet } from '../types';
|
|
2
|
-
declare const handleTransactionSigning: (wallet: IWallet, xdr: string, userAddress: string, network: string, transports: ITransports) => Promise<import("@stellar/stellar-sdk/lib/horizon").HorizonApi.SubmitTransactionResponse>;
|
|
2
|
+
declare const handleTransactionSigning: (wallet: IWallet, xdr: string, userAddress: string, network: string, transports: ITransports, shouldSubmit: boolean) => Promise<string | import("@stellar/stellar-sdk/lib/horizon").HorizonApi.SubmitTransactionResponse>;
|
|
3
3
|
export default handleTransactionSigning;
|
package/dist/store.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type WaitingStatus = 'login' | 'sendTransaction' | 'signMessage';
|
|
|
8
8
|
export type AlertType = 'error' | 'success' | 'warn' | 'none' | 'copy';
|
|
9
9
|
export interface IUser {
|
|
10
10
|
address: string;
|
|
11
|
+
identifier?: string;
|
|
11
12
|
walletPassphrase: string;
|
|
12
13
|
authValue: string;
|
|
13
14
|
authMethod: string;
|
|
@@ -88,6 +89,7 @@ export interface IStoreMethods {
|
|
|
88
89
|
setAppearance: (newAppearance: Partial<IAppearance>) => void;
|
|
89
90
|
setApiResponse: (res: AuthenticateApiResponse) => void;
|
|
90
91
|
setAuth: (a: IAuth) => void;
|
|
92
|
+
setIsAuthenticated: (isAuthenticated: boolean) => void;
|
|
91
93
|
}
|
|
92
94
|
export interface IStore extends IStoreProperties, IStoreMethods {
|
|
93
95
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -101,9 +101,10 @@ export interface IAsset {
|
|
|
101
101
|
export interface ISignOptions {
|
|
102
102
|
network: string;
|
|
103
103
|
}
|
|
104
|
-
export type SendTransactionResult = Horizon.HorizonApi.SubmitTransactionResponse;
|
|
104
|
+
export type SendTransactionResult = Horizon.HorizonApi.SubmitTransactionResponse | string;
|
|
105
105
|
export interface ISendTransaction {
|
|
106
106
|
xdr: string;
|
|
107
|
+
shouldSubmit: boolean;
|
|
107
108
|
options: ISignOptions;
|
|
108
109
|
result?: SendTransactionResult;
|
|
109
110
|
rejecter: (reason: any) => void;
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -4,10 +4,11 @@ export declare const authenticateAppId: (appId: string) => Promise<AuthenticateA
|
|
|
4
4
|
export declare const apiSendOtp: (appId: string, authValue: string) => Promise<boolean>;
|
|
5
5
|
export declare const apiVerifyOtp: (appId: string, user: IUser, otp: string) => Promise<string>;
|
|
6
6
|
type ApiGetUserResponse = {
|
|
7
|
-
status: number;
|
|
8
7
|
auth_method: string;
|
|
9
8
|
auth_value: string;
|
|
10
9
|
public_key: string;
|
|
11
10
|
};
|
|
12
11
|
export declare const apiGetUser: (JWT: string) => Promise<ApiGetUserResponse>;
|
|
12
|
+
export declare const apiSignMessage: (JWT: string, message: string) => Promise<string>;
|
|
13
|
+
export declare const apiSignTransaction: (JWT: string, xdr: string, network: string) => Promise<string>;
|
|
13
14
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluxcc/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"homepage": "https://blux.cc",
|
|
5
5
|
"description": "Blux is a wallet infra for the Stellar network",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@ledgerhq/hw-app-str": "^7.2.8",
|
|
43
43
|
"@lobstrco/signer-extension-api": "^1.0.0-beta.0",
|
|
44
44
|
"@stellar/freighter-api": "^5.0.0",
|
|
45
|
-
"@stellar/stellar-sdk": "
|
|
45
|
+
"@stellar/stellar-sdk": "^14.5.0",
|
|
46
46
|
"@walletconnect/core": "^2.21.9",
|
|
47
47
|
"@walletconnect/sign-client": "^2.21.9",
|
|
48
48
|
"qrcode.react": "^4.2.0",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@rollup/plugin-json": "^6.1.0",
|
|
57
57
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
58
58
|
"@rollup/plugin-replace": "^6.0.3",
|
|
59
|
-
"@rollup/plugin-typescript": "^12.1.4",
|
|
60
59
|
"@rollup/plugin-terser": "^0.4.4",
|
|
60
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
61
61
|
"@tailwindcss/postcss": "^4.1.13",
|
|
62
62
|
"@types/react": "^19.1.12",
|
|
63
63
|
"@types/react-dom": "^19.1.9",
|