@tatumio/flow 2.0.1-alpha.237 → 2.0.1-alpha.238
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/flow",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.238",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./src/index.js",
|
6
6
|
"typings": "./src/index.d.ts",
|
7
7
|
"dependencies": {
|
8
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
9
|
-
"@tatumio/
|
10
|
-
"
|
11
|
-
"axios": "^0.25.0",
|
8
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.238",
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.238",
|
10
|
+
"axios": "^0.26.0",
|
12
11
|
"form-data": "^4.0.0",
|
13
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.237",
|
15
|
-
"bignumber.js": "^9.0.2",
|
12
|
+
"@tatumio/shared-core": "2.0.1-alpha.238",
|
16
13
|
"dedent-js": "^1.0.1",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.238",
|
15
|
+
"bignumber.js": "^9.0.2",
|
16
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.238",
|
17
17
|
"bip32": "^2.0.5",
|
18
18
|
"bip39": "^3.0.2",
|
19
19
|
"hdkey": "^2.0.1",
|
package/src/lib/flow.sdk.d.ts
CHANGED
@@ -14,7 +14,15 @@ export declare const TatumFlowSDK: (args: SDKArguments) => {
|
|
14
14
|
complete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.completePendingSignature;
|
15
15
|
delete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.deletePendingTransactionToSign;
|
16
16
|
};
|
17
|
-
wallet:
|
17
|
+
wallet: {
|
18
|
+
generateAddressFromXPub: (xpub: string, i: number) => string;
|
19
|
+
generateAddressFromPrivateKey: (privateKey: string) => string;
|
20
|
+
generateWallet: (mnemonic?: string) => Promise<{
|
21
|
+
mnemonic: string;
|
22
|
+
xpub: string;
|
23
|
+
}>;
|
24
|
+
generatePrivateKeyFromMnemonic: (mnemonic: string, i: number) => Promise<string>;
|
25
|
+
};
|
18
26
|
transaction: {
|
19
27
|
sign: (pk: string, msg: Buffer) => string;
|
20
28
|
getSigner: (pk: string, address: string, keyId?: number) => {
|
@@ -95,63 +103,6 @@ export declare const TatumFlowSDK: (args: SDKArguments) => {
|
|
95
103
|
get: typeof import("@tatumio/api-client").StorageIpfsService.getIpfsData;
|
96
104
|
};
|
97
105
|
subscriptions: typeof import("@tatumio/api-client").LedgerSubscriptionService;
|
98
|
-
ledger: {
|
99
|
-
customer: {
|
100
|
-
get: typeof import("@tatumio/api-client").LedgerCustomerService.getCustomerByExternalOrInternalId;
|
101
|
-
getAll: typeof import("@tatumio/api-client").LedgerCustomerService.findAllCustomers;
|
102
|
-
update: typeof import("@tatumio/api-client").LedgerCustomerService.updateCustomer;
|
103
|
-
activate: typeof import("@tatumio/api-client").LedgerCustomerService.activateCustomer;
|
104
|
-
deactivate: typeof import("@tatumio/api-client").LedgerCustomerService.deactivateCustomer;
|
105
|
-
enable: typeof import("@tatumio/api-client").LedgerCustomerService.enableCustomer;
|
106
|
-
disable: typeof import("@tatumio/api-client").LedgerCustomerService.disableCustomer;
|
107
|
-
};
|
108
|
-
orderBook: {
|
109
|
-
getHistorical: typeof import("@tatumio/api-client").LedgerOrderBookService.getHistoricalTradesBody;
|
110
|
-
getActiveBuyTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody;
|
111
|
-
getActiveSellTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody;
|
112
|
-
newTrade: typeof import("@tatumio/api-client").LedgerOrderBookService.storeTrade;
|
113
|
-
get: typeof import("@tatumio/api-client").LedgerOrderBookService.getTradeById;
|
114
|
-
cancel: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteTrade;
|
115
|
-
cancelByAccount: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteAccountTrades;
|
116
|
-
};
|
117
|
-
transaction: {
|
118
|
-
send: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransaction;
|
119
|
-
sendMultiple: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransactionBatch;
|
120
|
-
getAll: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactions;
|
121
|
-
getAllByAccount: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByAccountId;
|
122
|
-
getAllByCustomer: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByCustomerId;
|
123
|
-
getAllByReference: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByReference;
|
124
|
-
countByAccount: (filter: import("@tatumio/api-client").TransactionFilter) => any;
|
125
|
-
countByCustomer: (filter: import("@tatumio/api-client").TransactionFilterCustomer) => any;
|
126
|
-
};
|
127
|
-
virtualCurrency: {
|
128
|
-
create: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.createCurrency;
|
129
|
-
mint: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.mintCurrency;
|
130
|
-
revoke: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.revokeCurrency;
|
131
|
-
getByName: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.getCurrency;
|
132
|
-
update: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.updateCurrency;
|
133
|
-
};
|
134
|
-
blockAmount: {
|
135
|
-
block: typeof import("@tatumio/api-client").LedgerAccountService.blockAmount;
|
136
|
-
unblock: typeof import("@tatumio/api-client").LedgerAccountService.deleteBlockAmount;
|
137
|
-
unblockWithTransaction: typeof import("@tatumio/api-client").LedgerAccountService.unblockAmountWithTransaction;
|
138
|
-
};
|
139
|
-
account: {
|
140
|
-
get: typeof import("@tatumio/api-client").LedgerAccountService.getAccountByAccountId;
|
141
|
-
getAll: typeof import("@tatumio/api-client").LedgerAccountService.getAllAccounts;
|
142
|
-
getByCustomerId: typeof import("@tatumio/api-client").LedgerAccountService.getAccountsByCustomerId;
|
143
|
-
getBalance: typeof import("@tatumio/api-client").LedgerAccountService.getAccountBalance;
|
144
|
-
create: typeof import("@tatumio/api-client").LedgerAccountService.createAccount;
|
145
|
-
createMultiple: typeof import("@tatumio/api-client").LedgerAccountService.createAccountBatch;
|
146
|
-
update: typeof import("@tatumio/api-client").LedgerAccountService.updateAccountByAccountId;
|
147
|
-
getBlockedAmountsByAccountId: typeof import("@tatumio/api-client").LedgerAccountService.getBlockAmountById;
|
148
|
-
activate: typeof import("@tatumio/api-client").LedgerAccountService.activateAccount;
|
149
|
-
deactivate: typeof import("@tatumio/api-client").LedgerAccountService.deactivateAccount;
|
150
|
-
freeze: typeof import("@tatumio/api-client").LedgerAccountService.freezeAccount;
|
151
|
-
unfreeze: typeof import("@tatumio/api-client").LedgerAccountService.unfreezeAccount;
|
152
|
-
generate: (account: import("@tatumio/api-client").CreateAccount, generateNewWalletFn: any, generateNewWallet?: boolean, testnet?: boolean, webhookUrl?: string) => Promise<any>;
|
153
|
-
};
|
154
|
-
};
|
155
106
|
security: {
|
156
107
|
checkMaliciousAddress: typeof import("@tatumio/api-client").SecurityAddressService.checkMalicousAddress;
|
157
108
|
};
|
@@ -1,2 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const flowWallet: () => {
|
2
|
+
generateAddressFromXPub: (xpub: string, i: number) => string;
|
3
|
+
generateAddressFromPrivateKey: (privateKey: string) => string;
|
4
|
+
generateWallet: (mnemonic?: string) => Promise<{
|
5
|
+
mnemonic: string;
|
6
|
+
xpub: string;
|
7
|
+
}>;
|
8
|
+
generatePrivateKeyFromMnemonic: (mnemonic: string, i: number) => Promise<string>;
|
9
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flow.sdk.wallet.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/flow/src/lib/services/flow.sdk.wallet.ts"],"names":[],"mappings":";;;;AAAA,sDAAsD;AACtD,gEAAoC;AACpC,iCAA4C;AAC5C,iCAAwD;AACxD,+DAAyB;
|
1
|
+
{"version":3,"file":"flow.sdk.wallet.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/flow/src/lib/services/flow.sdk.wallet.ts"],"names":[],"mappings":";;;;AAAA,sDAAsD;AACtD,gEAAoC;AACpC,iCAA4C;AAC5C,iCAAwD;AACxD,+DAAyB;AAElB,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,OAAO;QACL,uBAAuB,EAAE,CAAC,IAAY,EAAE,CAAS,EAAU,EAAE;YAC3D,MAAM,CAAC,GAAG,IAAA,kBAAU,EAAC,IAAI,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;YAChD,MAAM,CAAC,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;YAClG,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QACnB,CAAC;QACD,6BAA6B,EAAE,CAAC,UAAkB,EAAU,EAAE;YAC5D,MAAM,CAAC,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;YAClG,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QACnB,CAAC;QACD,cAAc,EAAE,CAAO,QAAiB,EAAE,EAAE;YAC1C,QAAQ,KAAR,QAAQ,GAAK,IAAA,wBAAgB,EAAC,GAAG,CAAC,EAAA;YAClC,MAAM,QAAQ,GAAG,eAAK,CAAC,cAAc,CAAC,MAAM,IAAA,sBAAc,EAAC,QAAQ,CAAC,CAAC,CAAA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