@otoplo/wallet-common 0.1.13 → 0.1.15
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.js +315 -300
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/persistence/datastore/db.d.ts +39 -0
- package/dist/types/persistence/datastore/db.d.ts.map +1 -0
- package/dist/types/persistence/datastore/index.d.ts +3 -0
- package/dist/types/persistence/datastore/index.d.ts.map +1 -0
- package/dist/types/persistence/datastore/kv.d.ts +34 -0
- package/dist/types/persistence/datastore/kv.d.ts.map +1 -0
- package/dist/types/persistence/index.d.ts +3 -0
- package/dist/types/persistence/index.d.ts.map +1 -0
- package/dist/types/persistence/wallet-db.d.ts +61 -0
- package/dist/types/persistence/wallet-db.d.ts.map +1 -0
- package/dist/types/services/asset.d.ts +19 -0
- package/dist/types/services/asset.d.ts.map +1 -0
- package/dist/types/services/cache.d.ts +14 -0
- package/dist/types/services/cache.d.ts.map +1 -0
- package/dist/types/services/discovery.d.ts +14 -0
- package/dist/types/services/discovery.d.ts.map +1 -0
- package/dist/types/services/index.d.ts +9 -0
- package/dist/types/services/index.d.ts.map +1 -0
- package/dist/types/services/key.d.ts +13 -0
- package/dist/types/services/key.d.ts.map +1 -0
- package/dist/types/services/rostrum.d.ts +32 -0
- package/dist/types/services/rostrum.d.ts.map +1 -0
- package/dist/types/services/session.d.ts +48 -0
- package/dist/types/services/session.d.ts.map +1 -0
- package/dist/types/services/transaction.d.ts +41 -0
- package/dist/types/services/transaction.d.ts.map +1 -0
- package/dist/types/services/tx-transformer.d.ts +22 -0
- package/dist/types/services/tx-transformer.d.ts.map +1 -0
- package/dist/types/services/wallet.d.ts +101 -0
- package/dist/types/services/wallet.d.ts.map +1 -0
- package/dist/types/state/hooks.d.ts +16 -0
- package/dist/types/state/hooks.d.ts.map +1 -0
- package/dist/types/state/index.d.ts +4 -0
- package/dist/types/state/index.d.ts.map +1 -0
- package/dist/types/state/slices/auth.d.ts +17 -0
- package/dist/types/state/slices/auth.d.ts.map +1 -0
- package/dist/types/state/slices/dapp.d.ts +29 -0
- package/dist/types/state/slices/dapp.d.ts.map +1 -0
- package/dist/types/state/slices/index.d.ts +7 -0
- package/dist/types/state/slices/index.d.ts.map +1 -0
- package/dist/types/state/slices/loader.d.ts +15 -0
- package/dist/types/state/slices/loader.d.ts.map +1 -0
- package/dist/types/state/slices/notifications.d.ts +142 -0
- package/dist/types/state/slices/notifications.d.ts.map +1 -0
- package/dist/types/state/slices/status.d.ts +62 -0
- package/dist/types/state/slices/status.d.ts.map +1 -0
- package/dist/types/state/slices/wallet.d.ts +1032 -0
- package/dist/types/state/slices/wallet.d.ts.map +1 -0
- package/dist/types/state/store.d.ts +23 -0
- package/dist/types/state/store.d.ts.map +1 -0
- package/dist/types/types/dapp.types.d.ts +19 -0
- package/dist/types/types/dapp.types.d.ts.map +1 -0
- package/dist/types/types/db.types.d.ts +128 -0
- package/dist/types/types/db.types.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/notification.types.d.ts +21 -0
- package/dist/types/types/notification.types.d.ts.map +1 -0
- package/dist/types/types/rostrum.types.d.ts +145 -0
- package/dist/types/types/rostrum.types.d.ts.map +1 -0
- package/dist/types/types/wallet.types.d.ts +54 -0
- package/dist/types/types/wallet.types.d.ts.map +1 -0
- package/dist/types/utils/asset.d.ts +9 -0
- package/dist/types/utils/asset.d.ts.map +1 -0
- package/dist/types/utils/common.d.ts +27 -0
- package/dist/types/utils/common.d.ts.map +1 -0
- package/dist/types/utils/enums.d.ts +20 -0
- package/dist/types/utils/enums.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/keypath.d.ts +5 -0
- package/dist/types/utils/keypath.d.ts.map +1 -0
- package/dist/types/utils/price.d.ts +42 -0
- package/dist/types/utils/price.d.ts.map +1 -0
- package/dist/types/utils/seed.d.ts +5 -0
- package/dist/types/utils/seed.d.ts.map +1 -0
- package/dist/types/utils/vault.d.ts +8 -0
- package/dist/types/utils/vault.d.ts.map +1 -0
- package/package.json +7 -6
- package/src/index.ts +1 -1
- package/src/utils/common.ts +20 -1
- package/dist/index.d.ts +0 -2305
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../../src/state/slices/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGzF,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAsFD,eAAO,MAAM,aAAa;;sBA9FV,OAAO;yBACJ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGjB,OAAO;kBACH,OAAO;yBACA,MAAM;2BACJ,MAAM;eA4BM,aAAa,CAAC,OAAO,CAAC;;sBAnCvC,OAAO;yBACJ,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGjB,OAAO;kBACH,OAAO;yBACA,MAAM;2BACJ,MAAM;;;sBAPX,OAAO;yBACJ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGjB,OAAO;kBACH,OAAO;yBACA,MAAM;2BACJ,MAAM;eAuEG,aAAa,CAAC,iBAAiB,CAAC;;sBA9E9C,OAAO;yBACJ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGjB,OAAO;kBACH,OAAO;yBACA,MAAM;2BACJ,MAAM;eA2EM,aAAa,CAAC,oBAAoB,CAAC;;sBAlFpD,OAAO;yBACJ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGjB,OAAO;kBACH,OAAO;yBACA,MAAM;2BACJ,MAAM;eAiFM,aAAa,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;YAMrB,CAAC;AACjD,eAAO,MAAM,aAAa,sCAAsB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { authReducer } from './slices/auth';
|
|
2
|
+
import { dappModalReducer } from './slices/dapp';
|
|
3
|
+
import { loaderReducer } from './slices/loader';
|
|
4
|
+
import { notificationsReducer } from './slices/notifications';
|
|
5
|
+
import { statusReducer } from './slices/status';
|
|
6
|
+
import { walletReducer } from './slices/wallet';
|
|
7
|
+
export declare const sharedReducers: {
|
|
8
|
+
loader: import('redux').Reducer<import('./slices').LoaderState>;
|
|
9
|
+
dapp: import('redux').Reducer<import('./slices').DappModalState>;
|
|
10
|
+
status: import('redux').Reducer<import('./slices').StatusState>;
|
|
11
|
+
wallet: import('redux').Reducer<import('./slices').WalletState>;
|
|
12
|
+
auth: import('redux').Reducer<import('./slices').AuthState>;
|
|
13
|
+
notifications: import('redux').Reducer<import('./slices').NotificationsState>;
|
|
14
|
+
};
|
|
15
|
+
export type SharedState = {
|
|
16
|
+
loader: ReturnType<typeof loaderReducer>;
|
|
17
|
+
dapp: ReturnType<typeof dappModalReducer>;
|
|
18
|
+
status: ReturnType<typeof statusReducer>;
|
|
19
|
+
wallet: ReturnType<typeof walletReducer>;
|
|
20
|
+
auth: ReturnType<typeof authReducer>;
|
|
21
|
+
notifications: ReturnType<typeof notificationsReducer>;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/state/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,cAAc;;;;;;;CAO1B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IACzC,IAAI,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAC1C,MAAM,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IACzC,MAAM,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IACzC,IAAI,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACrC,aAAa,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACxD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Transaction } from 'libnexa-ts';
|
|
2
|
+
import { AssetInfo } from './wallet.types';
|
|
3
|
+
import { SessionRequestType } from '../utils/enums';
|
|
4
|
+
export interface DappRpcRequest {
|
|
5
|
+
type: SessionRequestType;
|
|
6
|
+
accountId: number;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
request: any;
|
|
9
|
+
}
|
|
10
|
+
export interface TransactionDetails {
|
|
11
|
+
tx: Transaction;
|
|
12
|
+
send: MovementDetails[];
|
|
13
|
+
receive: MovementDetails[];
|
|
14
|
+
}
|
|
15
|
+
export interface MovementDetails {
|
|
16
|
+
asset?: AssetInfo;
|
|
17
|
+
amount: bigint;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=dapp.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dapp.types.d.ts","sourceRoot":"","sources":["../../../src/types/dapp.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,GAAG,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,WAAW,CAAC;IAChB,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { AccountType, AssetType } from '../utils/enums';
|
|
2
|
+
import { Balance } from './wallet.types';
|
|
3
|
+
export interface AssetMovement {
|
|
4
|
+
address: string;
|
|
5
|
+
nexaAmount: string;
|
|
6
|
+
assetId: string;
|
|
7
|
+
assetAmount: string;
|
|
8
|
+
}
|
|
9
|
+
export type TransactionType = 'receive' | 'send' | 'swap' | 'self';
|
|
10
|
+
export interface TransactionDTO {
|
|
11
|
+
accountId: number;
|
|
12
|
+
txIdem: string;
|
|
13
|
+
txId: string;
|
|
14
|
+
time: number;
|
|
15
|
+
height: number;
|
|
16
|
+
type: TransactionType;
|
|
17
|
+
fee: string;
|
|
18
|
+
othersOutputs: AssetMovement[];
|
|
19
|
+
myOutputs: AssetMovement[];
|
|
20
|
+
myInputs: AssetMovement[];
|
|
21
|
+
}
|
|
22
|
+
export interface TransactionEntity {
|
|
23
|
+
accountId: number;
|
|
24
|
+
txIdem: string;
|
|
25
|
+
txId: string;
|
|
26
|
+
time: number;
|
|
27
|
+
height: number;
|
|
28
|
+
type: TransactionType;
|
|
29
|
+
fee: string;
|
|
30
|
+
othersOutputs: string;
|
|
31
|
+
myOutputs: string;
|
|
32
|
+
myInputs: string;
|
|
33
|
+
}
|
|
34
|
+
export interface AssetTransactionEntity {
|
|
35
|
+
accountId: number;
|
|
36
|
+
assetId: string;
|
|
37
|
+
txIdem: string;
|
|
38
|
+
time: number;
|
|
39
|
+
}
|
|
40
|
+
export interface TokenEntity {
|
|
41
|
+
token: string;
|
|
42
|
+
tokenIdHex: string;
|
|
43
|
+
name: string;
|
|
44
|
+
ticker: string;
|
|
45
|
+
iconUrl: string;
|
|
46
|
+
decimals: number;
|
|
47
|
+
parentGroup: string;
|
|
48
|
+
}
|
|
49
|
+
export interface NftEntity {
|
|
50
|
+
token: string;
|
|
51
|
+
tokenIdHex: string;
|
|
52
|
+
parentGroup: string;
|
|
53
|
+
source: string;
|
|
54
|
+
collection: string;
|
|
55
|
+
}
|
|
56
|
+
export interface SessionEntity {
|
|
57
|
+
sessionId: string;
|
|
58
|
+
accountId: number;
|
|
59
|
+
uri: string;
|
|
60
|
+
}
|
|
61
|
+
export interface AccountDTO {
|
|
62
|
+
id: number;
|
|
63
|
+
name: string;
|
|
64
|
+
address: string;
|
|
65
|
+
height: number;
|
|
66
|
+
hidden: number;
|
|
67
|
+
statusHash: string;
|
|
68
|
+
balance: Balance;
|
|
69
|
+
tokensBalance: Record<string, Balance>;
|
|
70
|
+
type: AccountType;
|
|
71
|
+
}
|
|
72
|
+
export interface AccountEntity {
|
|
73
|
+
id: number;
|
|
74
|
+
name: string;
|
|
75
|
+
address: string;
|
|
76
|
+
height: number;
|
|
77
|
+
hidden: number;
|
|
78
|
+
statusHash: string;
|
|
79
|
+
balance: string;
|
|
80
|
+
tokensBalance: string;
|
|
81
|
+
}
|
|
82
|
+
export interface AssetEntity {
|
|
83
|
+
accountId: number;
|
|
84
|
+
tokenIdHex: string;
|
|
85
|
+
type: AssetType;
|
|
86
|
+
addedTime: number;
|
|
87
|
+
}
|
|
88
|
+
export interface AddressDTO {
|
|
89
|
+
address: string;
|
|
90
|
+
space: number;
|
|
91
|
+
idx: number;
|
|
92
|
+
used: boolean;
|
|
93
|
+
height: number;
|
|
94
|
+
statusHash: string;
|
|
95
|
+
balance: Balance;
|
|
96
|
+
tokensBalance: Record<string, Balance>;
|
|
97
|
+
type: AccountType;
|
|
98
|
+
}
|
|
99
|
+
export interface AddressEntity {
|
|
100
|
+
address: string;
|
|
101
|
+
space: number;
|
|
102
|
+
idx: number;
|
|
103
|
+
used: boolean;
|
|
104
|
+
height: number;
|
|
105
|
+
statusHash: string;
|
|
106
|
+
balance: string;
|
|
107
|
+
tokensBalance: string;
|
|
108
|
+
}
|
|
109
|
+
export interface VaultDTO {
|
|
110
|
+
address: string;
|
|
111
|
+
idx: number;
|
|
112
|
+
block: number;
|
|
113
|
+
height: number;
|
|
114
|
+
statusHash: string;
|
|
115
|
+
balance: Balance;
|
|
116
|
+
tokensBalance: Record<string, Balance>;
|
|
117
|
+
type: AccountType;
|
|
118
|
+
}
|
|
119
|
+
export interface VaultEntity {
|
|
120
|
+
address: string;
|
|
121
|
+
idx: number;
|
|
122
|
+
block: number;
|
|
123
|
+
height: number;
|
|
124
|
+
statusHash: string;
|
|
125
|
+
balance: string;
|
|
126
|
+
tokensBalance: string;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=db.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.types.d.ts","sourceRoot":"","sources":["../../../src/types/db.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnE,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,aAAa,EAAE,CAAC;IAC/B,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,SAA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KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type NotificationAction = {
|
|
2
|
+
type: 'DAPP_REQUEST';
|
|
3
|
+
account: number;
|
|
4
|
+
sessionId: string;
|
|
5
|
+
payload: string;
|
|
6
|
+
} | {
|
|
7
|
+
type: 'DISPATCH';
|
|
8
|
+
actionType: string;
|
|
9
|
+
payload?: any;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'NONE';
|
|
12
|
+
};
|
|
13
|
+
export interface AppNotification {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'wallet' | 'web3';
|
|
16
|
+
title: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
createdAt: number;
|
|
19
|
+
action?: NotificationAction;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=notification.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.types.d.ts","sourceRoot":"","sources":["../../../src/types/notification.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;CAAE,GAC9E;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,CAAA;CAAE,GACvD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { TransportScheme } from '@otoplo/electrum-client';
|
|
2
|
+
export interface RostrumParams {
|
|
3
|
+
scheme: TransportScheme;
|
|
4
|
+
host: string;
|
|
5
|
+
port: number;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ServerFeatures {
|
|
9
|
+
genesis_hash: string;
|
|
10
|
+
server_version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface BlockTip {
|
|
13
|
+
height: number;
|
|
14
|
+
hex: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IFirstUse {
|
|
17
|
+
block_hash: string;
|
|
18
|
+
block_height: number;
|
|
19
|
+
height: number;
|
|
20
|
+
tx_hash: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ITokenGenesis {
|
|
23
|
+
decimal_places?: number;
|
|
24
|
+
document_hash?: string;
|
|
25
|
+
document_url?: string;
|
|
26
|
+
group: string;
|
|
27
|
+
height: number;
|
|
28
|
+
name?: string;
|
|
29
|
+
op_return?: string;
|
|
30
|
+
ticker?: string;
|
|
31
|
+
token_id_hex: string;
|
|
32
|
+
txid: string;
|
|
33
|
+
txidem: string;
|
|
34
|
+
op_return_id: number;
|
|
35
|
+
}
|
|
36
|
+
export interface ITokensBalance {
|
|
37
|
+
cursor?: any;
|
|
38
|
+
confirmed: Record<string, string | number>;
|
|
39
|
+
unconfirmed: Record<string, string | number>;
|
|
40
|
+
}
|
|
41
|
+
export interface ITokenListUnspent {
|
|
42
|
+
cursor?: any;
|
|
43
|
+
unspent: ITokenUtxo[];
|
|
44
|
+
}
|
|
45
|
+
export interface ITokenUtxo {
|
|
46
|
+
group: string;
|
|
47
|
+
height: number;
|
|
48
|
+
outpoint_hash: string;
|
|
49
|
+
token_amount: number | string;
|
|
50
|
+
token_id_hex: string;
|
|
51
|
+
tx_hash: string;
|
|
52
|
+
tx_pos: number;
|
|
53
|
+
value: number;
|
|
54
|
+
}
|
|
55
|
+
export interface IListUnspentRecord {
|
|
56
|
+
has_token: boolean;
|
|
57
|
+
height: number;
|
|
58
|
+
outpoint_hash: string;
|
|
59
|
+
tx_hash: string;
|
|
60
|
+
tx_pos: number;
|
|
61
|
+
value: number;
|
|
62
|
+
}
|
|
63
|
+
export interface IUtxo {
|
|
64
|
+
addresses: string[];
|
|
65
|
+
amount: number;
|
|
66
|
+
group: string;
|
|
67
|
+
group_authority: string | number;
|
|
68
|
+
group_quantity: string | number;
|
|
69
|
+
height: number;
|
|
70
|
+
scripthash: string;
|
|
71
|
+
scriptpubkey: string;
|
|
72
|
+
spent: ISpent;
|
|
73
|
+
status: string;
|
|
74
|
+
template_argumenthash: string;
|
|
75
|
+
template_scripthash: string;
|
|
76
|
+
token_id_hex: string;
|
|
77
|
+
tx_hash: string;
|
|
78
|
+
tx_idem: string;
|
|
79
|
+
tx_pos: number;
|
|
80
|
+
}
|
|
81
|
+
export interface ISpent {
|
|
82
|
+
height: number;
|
|
83
|
+
tx_hash: string;
|
|
84
|
+
tx_pos: number;
|
|
85
|
+
}
|
|
86
|
+
export interface ITransaction {
|
|
87
|
+
blockhash: string;
|
|
88
|
+
blocktime: number;
|
|
89
|
+
confirmations: number;
|
|
90
|
+
fee: number;
|
|
91
|
+
fee_satoshi: number;
|
|
92
|
+
hash: string;
|
|
93
|
+
height: number;
|
|
94
|
+
hex: string;
|
|
95
|
+
locktime: number;
|
|
96
|
+
size: number;
|
|
97
|
+
time: number;
|
|
98
|
+
txid: string;
|
|
99
|
+
txidem: string;
|
|
100
|
+
version: number;
|
|
101
|
+
vin: ITXInput[];
|
|
102
|
+
vout: ITXOutput[];
|
|
103
|
+
}
|
|
104
|
+
export interface ITXInput {
|
|
105
|
+
outpoint: string;
|
|
106
|
+
scriptSig: IScriptSig;
|
|
107
|
+
sequence: number;
|
|
108
|
+
value: number;
|
|
109
|
+
value_satoshi: string | number;
|
|
110
|
+
addresses: string[];
|
|
111
|
+
group: string;
|
|
112
|
+
groupAuthority: string | number;
|
|
113
|
+
groupQuantity: string | number;
|
|
114
|
+
token_id_hex?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface ITXOutput {
|
|
117
|
+
n: number;
|
|
118
|
+
outpoint_hash: string;
|
|
119
|
+
scriptPubKey: IScriptPubKey;
|
|
120
|
+
type: number;
|
|
121
|
+
value: number;
|
|
122
|
+
value_satoshi: string | number;
|
|
123
|
+
}
|
|
124
|
+
export interface IScriptSig {
|
|
125
|
+
asm: string;
|
|
126
|
+
hex: string;
|
|
127
|
+
}
|
|
128
|
+
export interface IScriptPubKey {
|
|
129
|
+
addresses: string[];
|
|
130
|
+
argHash: string;
|
|
131
|
+
asm: string;
|
|
132
|
+
group: string;
|
|
133
|
+
groupAuthority: string | number;
|
|
134
|
+
groupQuantity: string | number;
|
|
135
|
+
hex: string;
|
|
136
|
+
scriptHash: string;
|
|
137
|
+
token_id_hex?: string;
|
|
138
|
+
type: string;
|
|
139
|
+
}
|
|
140
|
+
export interface ITXHistory {
|
|
141
|
+
fee?: number;
|
|
142
|
+
height: number;
|
|
143
|
+
tx_hash: string;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=rostrum.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rostrum.types.d.ts","sourceRoot":"","sources":["../../../src/types/rostrum.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,WAAW,aAAa;IAC5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AE,MAAM,GAAG,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DAppInfo, SessionDetails } from 'wallet-comms-sdk';
|
|
2
|
+
import { AssetEntity } from './db.types';
|
|
3
|
+
import { AccountType, KeySpace } from '../utils/enums';
|
|
4
|
+
export interface KeyPath {
|
|
5
|
+
account: AccountType;
|
|
6
|
+
type: KeySpace;
|
|
7
|
+
index: number;
|
|
8
|
+
}
|
|
9
|
+
export interface AddressKey {
|
|
10
|
+
keyPath: string;
|
|
11
|
+
address: string;
|
|
12
|
+
balance: Balance;
|
|
13
|
+
tokensBalance: Record<string, Balance>;
|
|
14
|
+
}
|
|
15
|
+
export interface Balance {
|
|
16
|
+
confirmed: string | number;
|
|
17
|
+
unconfirmed: string | number;
|
|
18
|
+
}
|
|
19
|
+
export interface Price {
|
|
20
|
+
value: number;
|
|
21
|
+
change: number;
|
|
22
|
+
}
|
|
23
|
+
export interface Account {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
address: string;
|
|
27
|
+
balance: Balance;
|
|
28
|
+
tokensBalance: Record<string, Balance>;
|
|
29
|
+
tokens: AssetEntity[];
|
|
30
|
+
sessions: Record<string, SessionInfo>;
|
|
31
|
+
}
|
|
32
|
+
export interface VaultInfo {
|
|
33
|
+
address: string;
|
|
34
|
+
balance: Balance;
|
|
35
|
+
block: number;
|
|
36
|
+
index: number;
|
|
37
|
+
}
|
|
38
|
+
export interface NftPreview {
|
|
39
|
+
infoJson: string;
|
|
40
|
+
image: string;
|
|
41
|
+
}
|
|
42
|
+
export interface SessionInfo {
|
|
43
|
+
details: SessionDetails;
|
|
44
|
+
appInfo: DAppInfo;
|
|
45
|
+
}
|
|
46
|
+
export interface AssetInfo {
|
|
47
|
+
token: string;
|
|
48
|
+
tokenIdHex: string;
|
|
49
|
+
decimals: number;
|
|
50
|
+
name?: string;
|
|
51
|
+
ticker?: string;
|
|
52
|
+
iconUrl?: string;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=wallet.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet.types.d.ts","sourceRoot":"","sources":["../../../src/types/wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE5D,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;CACtC;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TokenEntity } from '../types/db.types';
|
|
2
|
+
export declare function getNiftyToken(): TokenEntity;
|
|
3
|
+
export declare function fetchNiftyNFT(id: string): Promise<Uint8Array>;
|
|
4
|
+
export declare function isNiftySubgroup(group: string): boolean;
|
|
5
|
+
export declare function fetchAssetDoc(url: string): Promise<any>;
|
|
6
|
+
export declare function fetchAssetBlob(url: string): Promise<Uint8Array>;
|
|
7
|
+
export declare function transformTokenIconUrl(icon: string, documentUrl: string): string;
|
|
8
|
+
export declare function parseTokenDataUrl(data?: string): string | null;
|
|
9
|
+
//# sourceMappingURL=asset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/utils/asset.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,wBAAgB,aAAa,IAAI,WAAW,CAc3C;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAE7D;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAWtD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAKvD;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAK/D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAY/E;AAED,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK9D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AddressType } from 'libnexa-ts';
|
|
2
|
+
import { Balance } from '../types/wallet.types';
|
|
3
|
+
export declare const MAIN_WALLET_ID = -1;
|
|
4
|
+
export declare const MAX_INT64 = 9223372036854775807n;
|
|
5
|
+
export declare const VAULT_FIRST_BLOCK = 274710;
|
|
6
|
+
export declare const VAULT_SCRIPT_PREFIX = "0014461ad25081cb0119d034385ff154c8d3ad6bdd76";
|
|
7
|
+
export declare function isTestnet(): boolean;
|
|
8
|
+
export declare function isGenesisHashValid(hash: string): boolean;
|
|
9
|
+
export declare function isValidNexaAddress(address: string, type?: AddressType): boolean;
|
|
10
|
+
export declare function getExplorerUrl(): string;
|
|
11
|
+
export declare function currentTimestamp(): number;
|
|
12
|
+
export declare function estimateDateByFutureBlock(current: number, future: number): string;
|
|
13
|
+
export declare function isNullOrEmpty(arg?: string | any[] | null): arg is undefined | [] | null | '';
|
|
14
|
+
export declare function truncateStringMiddle(str?: string, maxLength?: number): string;
|
|
15
|
+
export declare function capitalizeFirstLetter(str: string): string;
|
|
16
|
+
export declare function getAddressBuffer(address: string): Uint8Array;
|
|
17
|
+
export declare function tokenIdToHex(token: string): string;
|
|
18
|
+
export declare function tokenHexToAddr(token: string): string;
|
|
19
|
+
export declare function tokenAmountToAssetAmount(amount?: string | number | bigint): string;
|
|
20
|
+
export declare function sumBalance(balances: Balance[]): Balance;
|
|
21
|
+
export declare function sumTokensBalance(balances: Record<string, Balance>[]): Record<string, Balance>;
|
|
22
|
+
export declare function getFileMediaType(filename: string): 'video' | 'audio' | 'image' | 'unknown';
|
|
23
|
+
export declare function getFileMimeType(filename: string): string;
|
|
24
|
+
export declare function sleep(ms: number): Promise<void>;
|
|
25
|
+
export declare function prettifyAmount(amount: string | number): string;
|
|
26
|
+
export declare function calcAmountValue(amount: string | number, price: number, prettify?: boolean): string;
|
|
27
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/utils/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,WAAW,EAAsC,MAAM,YAAY,CAAC;AACtF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGrD,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,SAAS,uBAAuB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,SAAS,CAAC;AACxC,eAAO,MAAM,mBAAmB,iDAAkD,CAAC;AAEnF,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKxD;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,cAAkC,GAAG,OAAO,CAEnG;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;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EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAIhG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum AccountType {
|
|
2
|
+
MAIN = 0,
|
|
3
|
+
VAULT = 1,
|
|
4
|
+
DAPP = 2
|
|
5
|
+
}
|
|
6
|
+
export declare enum KeySpace {
|
|
7
|
+
RECEIVE = 0,
|
|
8
|
+
CHANGE = 1
|
|
9
|
+
}
|
|
10
|
+
export declare enum SessionRequestType {
|
|
11
|
+
SignMessage = "signMessage",
|
|
12
|
+
AddToken = "addToken",
|
|
13
|
+
SignTransaction = "signTransaction",
|
|
14
|
+
SendTransaction = "sendTransaction"
|
|
15
|
+
}
|
|
16
|
+
export declare enum AssetType {
|
|
17
|
+
TOKEN = "token",
|
|
18
|
+
NFT = "nft"
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/utils/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,IAAI;CACT;AAED,oBAAY,QAAQ;IAClB,OAAO,IAAI;IACX,MAAM,IAAI;CACX;AAED,oBAAY,kBAAkB;IAC5B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;CACpC;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { KeyPath } from '../types';
|
|
2
|
+
import { AccountType, KeySpace } from './enums';
|
|
3
|
+
export declare function keyPathToString(account: AccountType, type: KeySpace, index: number): string;
|
|
4
|
+
export declare function stringToKeyPath(path: string): KeyPath;
|
|
5
|
+
//# sourceMappingURL=keypath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keypath.d.ts","sourceRoot":"","sources":["../../../src/utils/keypath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3F;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOrD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Price } from '../types/wallet.types';
|
|
2
|
+
export declare const CURRENCIES: readonly [{
|
|
3
|
+
readonly code: "usd";
|
|
4
|
+
readonly symbol: "$";
|
|
5
|
+
readonly name: "US Dollar";
|
|
6
|
+
}, {
|
|
7
|
+
readonly code: "eur";
|
|
8
|
+
readonly symbol: "€";
|
|
9
|
+
readonly name: "Euro";
|
|
10
|
+
}, {
|
|
11
|
+
readonly code: "gbp";
|
|
12
|
+
readonly symbol: "£";
|
|
13
|
+
readonly name: "British Pound";
|
|
14
|
+
}, {
|
|
15
|
+
readonly code: "cny";
|
|
16
|
+
readonly symbol: "¥";
|
|
17
|
+
readonly name: "Chinese Yuan";
|
|
18
|
+
}, {
|
|
19
|
+
readonly code: "jpy";
|
|
20
|
+
readonly symbol: "¥";
|
|
21
|
+
readonly name: "Japanese Yen";
|
|
22
|
+
}, {
|
|
23
|
+
readonly code: "aud";
|
|
24
|
+
readonly symbol: "A$";
|
|
25
|
+
readonly name: "Australian Dollar";
|
|
26
|
+
}, {
|
|
27
|
+
readonly code: "cad";
|
|
28
|
+
readonly symbol: "C$";
|
|
29
|
+
readonly name: "Canadian Dollar";
|
|
30
|
+
}, {
|
|
31
|
+
readonly code: "chf";
|
|
32
|
+
readonly symbol: "Fr";
|
|
33
|
+
readonly name: "Swiss Franc";
|
|
34
|
+
}];
|
|
35
|
+
export type CurrencyCode = typeof CURRENCIES[number]['code'];
|
|
36
|
+
export type CurrencySymbol = typeof CURRENCIES[number]['symbol'];
|
|
37
|
+
export declare const currencySymbols: Record<CurrencyCode, CurrencySymbol>;
|
|
38
|
+
export declare const currencyCodes: ("usd" | "eur" | "gbp" | "cny" | "jpy" | "aud" | "cad" | "chf")[];
|
|
39
|
+
export declare function getNexaPrices(): Promise<Record<string, number>>;
|
|
40
|
+
export declare function getCurrencySymbol(currency: CurrencyCode): string;
|
|
41
|
+
export declare function initializePrices(): Record<string, Price>;
|
|
42
|
+
//# sourceMappingURL=price.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../src/utils/price.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASb,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;AAEjE,eAAO,MAAM,eAAe,EAEvB,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;AAE1C,eAAO,MAAM,aAAa,mEAA8B,CAAC;AAEzD,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAUrE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAEhE;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAMxD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function generateNewMnemonic(size?: 12 | 24): string;
|
|
2
|
+
export declare function isMnemonicValid(mnemonic: string): boolean;
|
|
3
|
+
export declare function encryptMnemonic(phrase: string, password: string): Promise<string>;
|
|
4
|
+
export declare function validateAndDecryptMnemonic(encSeed: string, password: string): Promise<string | false>;
|
|
5
|
+
//# sourceMappingURL=seed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../src/utils/seed.ts"],"names":[],"mappings":"AAIA,wBAAgB,mBAAmB,CAAC,IAAI,GAAE,EAAE,GAAG,EAAO,GAAG,MAAM,CAE9D;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AA4BD,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBvF;AAuBD,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAY3G"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PublicKey, ScriptElement, Script } from 'libnexa-ts';
|
|
2
|
+
export declare function getVaultTemplate(): Script;
|
|
3
|
+
export declare function getVaultTemplateHash(): Uint8Array;
|
|
4
|
+
export declare function generateVaultConstraint(pubKey: PublicKey): Script;
|
|
5
|
+
export declare function getVaultConstraintHash(pubKey: PublicKey): Uint8Array;
|
|
6
|
+
export declare function generateVaultVisibleArgs(args: number[]): ScriptElement[];
|
|
7
|
+
export declare function generateVaultAddress(pubKey: PublicKey, args: number[]): string | undefined;
|
|
8
|
+
//# sourceMappingURL=vault.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../src/utils/vault.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAqC,MAAM,EAAgB,MAAM,YAAY,CAAC;AAErF,wBAAgB,gBAAgB,IAAI,MAAM,CAKzC;AAED,wBAAgB,oBAAoB,IAAI,UAAU,CAGjD;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAEjE;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,CAGpE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAExE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAU1F"}
|