@tatumio/algo 2.0.1-alpha.236 → 2.0.1-alpha.239
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +8 -8
- package/src/lib/algo.sdk.d.ts +1 -76
- package/src/lib/algo.sdk.js +3 -1
- package/src/lib/algo.sdk.js.map +1 -1
package/package.json
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/algo",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.239",
|
4
4
|
"type": "commonjs",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "./src/index.js",
|
7
7
|
"typings": "./src/index.d.ts",
|
8
8
|
"dependencies": {
|
9
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
10
|
-
"@tatumio/
|
11
|
-
"
|
12
|
-
"axios": "^0.24.0",
|
9
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.239",
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.239",
|
11
|
+
"axios": "^0.26.0",
|
13
12
|
"form-data": "^4.0.0",
|
14
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
15
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
13
|
+
"@tatumio/shared-core": "2.0.1-alpha.239",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.239",
|
16
15
|
"bignumber.js": "^9.0.2",
|
16
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.239",
|
17
17
|
"algosdk": "^1.13.1",
|
18
18
|
"base32.js": "^0.1.0",
|
19
|
-
"url-parse": "^1.5.
|
19
|
+
"url-parse": "^1.5.9"
|
20
20
|
},
|
21
21
|
"peerDependencies": {}
|
22
22
|
}
|
package/src/lib/algo.sdk.d.ts
CHANGED
@@ -34,26 +34,8 @@ export declare const TatumAlgoSDK: (args: SDKArguments) => {
|
|
34
34
|
};
|
35
35
|
};
|
36
36
|
nft: {
|
37
|
-
deployNFTSmartContract: typeof import("@tatumio/api-client").BlockchainNftService.nftDeployErc721;
|
38
|
-
addNFTMinter: typeof import("@tatumio/api-client").BlockchainNftService.nftAddMinter;
|
39
|
-
mintNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftMintErc721;
|
40
|
-
mintMultipleNFTs: typeof import("@tatumio/api-client").BlockchainNftService.nftMintMultipleErc721;
|
41
|
-
burnNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftBurnErc721;
|
42
37
|
transferNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftTransferErc721;
|
43
|
-
|
44
|
-
getNFTTransaction: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactErc721;
|
45
|
-
getNFTTransactionsByToken: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByToken;
|
46
|
-
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByAddress;
|
47
|
-
getNFTsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721;
|
48
|
-
getNFTProvenanceData: typeof import("@tatumio/api-client").BlockchainNftService.nftGetProvenanceDataErc721;
|
49
|
-
getNFTMetadataURI: typeof import("@tatumio/api-client").BlockchainNftService.nftGetMetadataErc721;
|
50
|
-
getNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftGetRoyaltyErc721;
|
51
|
-
getNFTAccountBalance: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721;
|
52
|
-
getNFTImage: (chain: "ETH" | "MATIC" | "KCS" | "ONE" | "KLAY" | "BSC" | "CELO" | "FLOW" | "TRON" | "SOL", contractAddress: string, tokenId: string, account?: string) => Promise<{
|
53
|
-
originalUrl: string;
|
54
|
-
publicUrl: string;
|
55
|
-
}>;
|
56
|
-
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => Promise<string[]>;
|
38
|
+
burnNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftBurnErc721;
|
57
39
|
prepare: {
|
58
40
|
createNFTSignedTransaction: (body: import("./services/algo.tx").DeployNftKMS | import("./services/algo.tx").DeployNft, testnet?: boolean, provider?: string) => Promise<string>;
|
59
41
|
transferNFTSignedTransaction: (body: import("./services/algo.tx").TransferNftKMS | import("./services/algo.tx").TransferNft, testnet?: boolean, provider?: string) => Promise<string>;
|
@@ -107,63 +89,6 @@ export declare const TatumAlgoSDK: (args: SDKArguments) => {
|
|
107
89
|
get: typeof import("@tatumio/api-client").StorageIpfsService.getIpfsData;
|
108
90
|
};
|
109
91
|
subscriptions: typeof import("@tatumio/api-client").LedgerSubscriptionService;
|
110
|
-
ledger: {
|
111
|
-
customer: {
|
112
|
-
get: typeof import("@tatumio/api-client").LedgerCustomerService.getCustomerByExternalOrInternalId;
|
113
|
-
getAll: typeof import("@tatumio/api-client").LedgerCustomerService.findAllCustomers;
|
114
|
-
update: typeof import("@tatumio/api-client").LedgerCustomerService.updateCustomer;
|
115
|
-
activate: typeof import("@tatumio/api-client").LedgerCustomerService.activateCustomer;
|
116
|
-
deactivate: typeof import("@tatumio/api-client").LedgerCustomerService.deactivateCustomer;
|
117
|
-
enable: typeof import("@tatumio/api-client").LedgerCustomerService.enableCustomer;
|
118
|
-
disable: typeof import("@tatumio/api-client").LedgerCustomerService.disableCustomer;
|
119
|
-
};
|
120
|
-
orderBook: {
|
121
|
-
getHistorical: typeof import("@tatumio/api-client").LedgerOrderBookService.getHistoricalTradesBody;
|
122
|
-
getActiveBuyTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody;
|
123
|
-
getActiveSellTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody;
|
124
|
-
newTrade: typeof import("@tatumio/api-client").LedgerOrderBookService.storeTrade;
|
125
|
-
get: typeof import("@tatumio/api-client").LedgerOrderBookService.getTradeById;
|
126
|
-
cancel: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteTrade;
|
127
|
-
cancelByAccount: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteAccountTrades;
|
128
|
-
};
|
129
|
-
transaction: {
|
130
|
-
send: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransaction;
|
131
|
-
sendMultiple: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransactionBatch;
|
132
|
-
getAll: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactions;
|
133
|
-
getAllByAccount: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByAccountId;
|
134
|
-
getAllByCustomer: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByCustomerId;
|
135
|
-
getAllByReference: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByReference;
|
136
|
-
countByAccount: (filter: import("@tatumio/api-client").TransactionFilter) => any;
|
137
|
-
countByCustomer: (filter: import("@tatumio/api-client").TransactionFilterCustomer) => any;
|
138
|
-
};
|
139
|
-
virtualCurrency: {
|
140
|
-
create: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.createCurrency;
|
141
|
-
mint: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.mintCurrency;
|
142
|
-
revoke: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.revokeCurrency;
|
143
|
-
getByName: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.getCurrency;
|
144
|
-
update: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.updateCurrency;
|
145
|
-
};
|
146
|
-
blockAmount: {
|
147
|
-
block: typeof import("@tatumio/api-client").LedgerAccountService.blockAmount;
|
148
|
-
unblock: typeof import("@tatumio/api-client").LedgerAccountService.deleteBlockAmount;
|
149
|
-
unblockWithTransaction: typeof import("@tatumio/api-client").LedgerAccountService.unblockAmountWithTransaction;
|
150
|
-
};
|
151
|
-
account: {
|
152
|
-
get: typeof import("@tatumio/api-client").LedgerAccountService.getAccountByAccountId;
|
153
|
-
getAll: typeof import("@tatumio/api-client").LedgerAccountService.getAllAccounts;
|
154
|
-
getByCustomerId: typeof import("@tatumio/api-client").LedgerAccountService.getAccountsByCustomerId;
|
155
|
-
getBalance: typeof import("@tatumio/api-client").LedgerAccountService.getAccountBalance;
|
156
|
-
create: typeof import("@tatumio/api-client").LedgerAccountService.createAccount;
|
157
|
-
createMultiple: typeof import("@tatumio/api-client").LedgerAccountService.createAccountBatch;
|
158
|
-
update: typeof import("@tatumio/api-client").LedgerAccountService.updateAccountByAccountId;
|
159
|
-
getBlockedAmountsByAccountId: typeof import("@tatumio/api-client").LedgerAccountService.getBlockAmountById;
|
160
|
-
activate: typeof import("@tatumio/api-client").LedgerAccountService.activateAccount;
|
161
|
-
deactivate: typeof import("@tatumio/api-client").LedgerAccountService.deactivateAccount;
|
162
|
-
freeze: typeof import("@tatumio/api-client").LedgerAccountService.freezeAccount;
|
163
|
-
unfreeze: typeof import("@tatumio/api-client").LedgerAccountService.unfreezeAccount;
|
164
|
-
generate: (account: import("@tatumio/api-client").CreateAccount, generateNewWalletFn: any, generateNewWallet?: boolean, testnet?: boolean, webhookUrl?: string) => Promise<any>;
|
165
|
-
};
|
166
|
-
};
|
167
92
|
security: {
|
168
93
|
checkMaliciousAddress: typeof import("@tatumio/api-client").SecurityAddressService.checkMalicousAddress;
|
169
94
|
};
|
package/src/lib/algo.sdk.js
CHANGED
@@ -14,7 +14,9 @@ const TatumAlgoSDK = (args) => {
|
|
14
14
|
const web = (0, algo_web_1.algoWeb)();
|
15
15
|
const txService = (0, algo_tx_1.algoTx)({ algoWeb: web });
|
16
16
|
const _a = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain })), { nft } = _a, abstractSdk = (0, tslib_1.__rest)(_a, ["nft"]);
|
17
|
-
|
17
|
+
const { transferNFT, burnNFT } = nft;
|
18
|
+
return Object.assign(Object.assign({}, abstractSdk), { algoWeb: web, record: (0, algo_record_1.algoRecord)(), wallet: (0, algo_wallet_1.algoWallet)(), transaction: txService.native, erc20: Object.assign(Object.assign({}, txService.erc20), { getErc20TransactionByAddress: api_client_1.BlockchainFungibleTokenService.erc20GetTransactionByAddress, getErc20AccountBalance: api_client_1.BlockchainFungibleTokenService.erc20GetBalance }), nft: Object.assign(Object.assign({}, txService.erc721), { transferNFT,
|
19
|
+
burnNFT }), blockchain: {
|
18
20
|
broadcast: api_client_1.BlockchainAlgorandAlgoService.algoandBroadcast,
|
19
21
|
getBlock: api_client_1.BlockchainAlgorandAlgoService.algorandGetBlock,
|
20
22
|
getCurrentBlock: api_client_1.BlockchainAlgorandAlgoService.algorandGetCurrentBlock,
|
package/src/lib/algo.sdk.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"algo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/algo/src/lib/algo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAAiD;AAEjD,oFAA2E;AAC3E,oDAAmG;AACnG,kDAA6C;AAC7C,wDAAmD;AACnD,wDAAmD;AACnD,gDAA2C;AAE3C,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,IAAA,kBAAO,GAAE,CAAA;IACrB,MAAM,SAAS,GAAG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAA;IAC1C,MAAM,KAA0B,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,IAAG,EAAxE,EAAE,GAAG,OAAmE,EAA9D,WAAW,2BAArB,OAAuB,CAAiD,CAAA;IAE9E,uCACK,WAAW,KACd,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,IAAA,wBAAU,GAAE,EACpB,MAAM,EAAE,IAAA,wBAAU,GAAE,EACpB,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,KAAK,kCACA,SAAS,CAAC,KAAK,KAClB,4BAA4B,EAAE,2CAA8B,CAAC,4BAA4B,EACzF,sBAAsB,EAAE,2CAA8B,CAAC,eAAe,KAExE,GAAG,kCACE,SAAS,CAAC,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