@tatumio/doge 2.0.1-alpha.248 → 2.0.1-alpha.251
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/package.json +10 -10
- package/src/lib/doge.sdk.d.ts +44 -44
- package/src/lib/doge.sdk.js +8 -8
- package/src/lib/doge.sdk.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/doge",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.251",
|
|
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/api-client": "2.0.1-alpha.
|
|
8
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.251",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.251",
|
|
10
10
|
"axios": "^0.26.0",
|
|
11
11
|
"form-data": "^4.0.0",
|
|
12
|
-
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.
|
|
13
|
-
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.
|
|
14
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
15
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
|
16
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
12
|
+
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.251",
|
|
13
|
+
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.251",
|
|
14
|
+
"@tatumio/shared-core": "2.0.1-alpha.251",
|
|
15
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.251",
|
|
16
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.251",
|
|
17
17
|
"bignumber.js": "^9.0.2",
|
|
18
18
|
"bip32": "^2.0.5",
|
|
19
19
|
"bip39": "^3.0.2",
|
|
20
20
|
"bitcoinjs-lib": "^5.2.0",
|
|
21
21
|
"hdkey": "^2.0.1",
|
|
22
|
-
"bitcore-lib": "
|
|
23
|
-
"bitcore-lib-doge": "
|
|
22
|
+
"bitcore-lib": "8.25.8",
|
|
23
|
+
"bitcore-lib-doge": "8.25.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {}
|
|
26
26
|
}
|
package/src/lib/doge.sdk.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DogecoinService, TatumUrl } from '@tatumio/api-client';
|
|
2
2
|
export declare const TatumDogeSDK: (args: {
|
|
3
3
|
apiKey: string;
|
|
4
4
|
url?: TatumUrl;
|
|
5
5
|
}) => {
|
|
6
6
|
transaction: import("@tatumio/shared-blockchain-btc-based").BtcBasedTx<import("./doge.sdk.tx").DogeTransaction>;
|
|
7
7
|
blockchain: {
|
|
8
|
-
mempool: typeof
|
|
9
|
-
info: typeof
|
|
10
|
-
broadcast: typeof
|
|
11
|
-
getBlockHash: typeof
|
|
12
|
-
getBlock: typeof
|
|
13
|
-
getUTXO: typeof
|
|
14
|
-
getTransaction: typeof
|
|
15
|
-
sendTransaction: typeof
|
|
8
|
+
mempool: typeof DogecoinService.dogeGetMempool;
|
|
9
|
+
info: typeof DogecoinService.dogeGetBlockChainInfo;
|
|
10
|
+
broadcast: typeof DogecoinService.dogeBroadcast;
|
|
11
|
+
getBlockHash: typeof DogecoinService.dogeGetBlockHash;
|
|
12
|
+
getBlock: typeof DogecoinService.dogeGetBlock;
|
|
13
|
+
getUTXO: typeof DogecoinService.dogeGetUtxo;
|
|
14
|
+
getTransaction: typeof DogecoinService.dogeGetRawTransaction;
|
|
15
|
+
sendTransaction: typeof DogecoinService.dogeTransferBlockchain;
|
|
16
16
|
};
|
|
17
17
|
kms: {
|
|
18
18
|
sign(tx: import("@tatumio/shared-core").ChainTransactionKMS, privateKeys: string[]): Promise<string>;
|
|
19
19
|
getAllPending(signatures?: string): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").PendingTransaction[]>;
|
|
20
|
-
get: typeof import("@tatumio/api-client").
|
|
21
|
-
complete: typeof import("@tatumio/api-client").
|
|
22
|
-
delete: typeof import("@tatumio/api-client").
|
|
20
|
+
get: typeof import("@tatumio/api-client").KeyManagementSystemService.getPendingTransactionToSign;
|
|
21
|
+
complete: typeof import("@tatumio/api-client").KeyManagementSystemService.completePendingSignature;
|
|
22
|
+
delete: typeof import("@tatumio/api-client").KeyManagementSystemService.deletePendingTransactionToSign;
|
|
23
23
|
};
|
|
24
24
|
wallet: {
|
|
25
25
|
generateAddressFromXPub(xpub: string, i: number, options?: {
|
|
@@ -38,51 +38,51 @@ export declare const TatumDogeSDK: (args: {
|
|
|
38
38
|
offchain: {
|
|
39
39
|
depositAddress: {
|
|
40
40
|
checkExists: (address: string, index?: number) => Promise<import("@tatumio/api-client").Account>;
|
|
41
|
-
create: typeof import("@tatumio/api-client").
|
|
42
|
-
createMultiple: typeof import("@tatumio/api-client").
|
|
43
|
-
assign: typeof import("@tatumio/api-client").
|
|
44
|
-
remove: typeof import("@tatumio/api-client").
|
|
45
|
-
getByAccount: typeof import("@tatumio/api-client").
|
|
41
|
+
create: typeof import("@tatumio/api-client").BlockchainAddressesService.generateDepositAddress;
|
|
42
|
+
createMultiple: typeof import("@tatumio/api-client").BlockchainAddressesService.generateDepositAddressesBatch;
|
|
43
|
+
assign: typeof import("@tatumio/api-client").BlockchainAddressesService.assignAddress;
|
|
44
|
+
remove: typeof import("@tatumio/api-client").BlockchainAddressesService.removeAddress;
|
|
45
|
+
getByAccount: typeof import("@tatumio/api-client").BlockchainAddressesService.getAllDepositAddresses;
|
|
46
46
|
};
|
|
47
47
|
withdrawal: {
|
|
48
48
|
getAll: (status?: "InProgress" | "Done" | "Cancelled", pageSize?: number, offset?: number) => Promise<import("@tatumio/api-client").WithdrawalObject[]>;
|
|
49
|
-
broadcast: typeof import("@tatumio/api-client").
|
|
50
|
-
create: typeof import("@tatumio/api-client").
|
|
51
|
-
complete: typeof import("@tatumio/api-client").
|
|
49
|
+
broadcast: typeof import("@tatumio/api-client").WithdrawalService.broadcastBlockchainTransaction;
|
|
50
|
+
create: typeof import("@tatumio/api-client").WithdrawalService.storeWithdrawal;
|
|
51
|
+
complete: typeof import("@tatumio/api-client").WithdrawalService.completeWithdrawal;
|
|
52
52
|
};
|
|
53
|
-
storeTokenAddress: typeof import("@tatumio/api-client").
|
|
53
|
+
storeTokenAddress: typeof import("@tatumio/api-client").BlockchainOperationsService.storeTokenAddress;
|
|
54
54
|
};
|
|
55
55
|
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
|
56
56
|
storage: {
|
|
57
|
-
upload: typeof import("@tatumio/api-client").
|
|
58
|
-
get: typeof import("@tatumio/api-client").
|
|
57
|
+
upload: typeof import("@tatumio/api-client").IpfsService.storeIpfs;
|
|
58
|
+
get: typeof import("@tatumio/api-client").IpfsService.getIpfsData;
|
|
59
59
|
};
|
|
60
|
-
subscriptions: typeof import("@tatumio/api-client").
|
|
60
|
+
subscriptions: typeof import("@tatumio/api-client").NotificationSubscriptionsService;
|
|
61
61
|
security: {
|
|
62
|
-
checkMaliciousAddress: typeof import("@tatumio/api-client").
|
|
62
|
+
checkMaliciousAddress: typeof import("@tatumio/api-client").MaliciousAddressService.checkMalicousAddress;
|
|
63
63
|
};
|
|
64
64
|
tatum: {
|
|
65
|
-
getCredits: typeof import("@tatumio/api-client").
|
|
66
|
-
getVersion: typeof import("@tatumio/api-client").
|
|
67
|
-
freezeApiKey: typeof import("@tatumio/api-client").
|
|
68
|
-
unfreezeApiKey: typeof import("@tatumio/api-client").
|
|
65
|
+
getCredits: typeof import("@tatumio/api-client").ServiceUtilsService.getCredits;
|
|
66
|
+
getVersion: typeof import("@tatumio/api-client").ServiceUtilsService.getVersion;
|
|
67
|
+
freezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.freezeApiKey;
|
|
68
|
+
unfreezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.unfreezeApiKey;
|
|
69
69
|
};
|
|
70
70
|
nft: {
|
|
71
|
-
deployNFTSmartContract: typeof import("@tatumio/api-client").
|
|
72
|
-
addNFTMinter: typeof import("@tatumio/api-client").
|
|
73
|
-
mintNFT: typeof import("@tatumio/api-client").
|
|
74
|
-
mintMultipleNFTs: typeof import("@tatumio/api-client").
|
|
75
|
-
burnNFT: typeof import("@tatumio/api-client").
|
|
76
|
-
transferNFT: typeof import("@tatumio/api-client").
|
|
77
|
-
updateNFTRoyalty: typeof import("@tatumio/api-client").
|
|
78
|
-
getNFTTransaction: typeof import("@tatumio/api-client").
|
|
79
|
-
getNFTTransactionsByToken: typeof import("@tatumio/api-client").
|
|
80
|
-
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").
|
|
81
|
-
getNFTsByAddress: typeof import("@tatumio/api-client").
|
|
82
|
-
getNFTProvenanceData: typeof import("@tatumio/api-client").
|
|
83
|
-
getNFTMetadataURI: typeof import("@tatumio/api-client").
|
|
84
|
-
getNFTRoyalty: typeof import("@tatumio/api-client").
|
|
85
|
-
getNFTAccountBalance: typeof import("@tatumio/api-client").
|
|
71
|
+
deployNFTSmartContract: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftDeployErc721;
|
|
72
|
+
addNFTMinter: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftAddMinter;
|
|
73
|
+
mintNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintErc721;
|
|
74
|
+
mintMultipleNFTs: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintMultipleErc721;
|
|
75
|
+
burnNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftBurnErc721;
|
|
76
|
+
transferNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftTransferErc721;
|
|
77
|
+
updateNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftUpdateCashbackErc721;
|
|
78
|
+
getNFTTransaction: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactErc721;
|
|
79
|
+
getNFTTransactionsByToken: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByToken;
|
|
80
|
+
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByAddress;
|
|
81
|
+
getNFTsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTokensByAddressErc721;
|
|
82
|
+
getNFTProvenanceData: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetProvenanceDataErc721;
|
|
83
|
+
getNFTMetadataURI: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetMetadataErc721;
|
|
84
|
+
getNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetRoyaltyErc721;
|
|
85
|
+
getNFTAccountBalance: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetBalanceErc721;
|
|
86
86
|
getNFTImage: (chain: "ETH" | "BSC" | "MATIC" | "CELO" | "FLOW" | "TRON" | "ONE" | "KLAY" | "SOL" | "KCS", contractAddress: string, tokenId: string, account?: string) => Promise<{
|
|
87
87
|
originalUrl: string;
|
|
88
88
|
publicUrl: string;
|
package/src/lib/doge.sdk.js
CHANGED
|
@@ -8,14 +8,14 @@ const doge_sdk_tx_1 = require("./doge.sdk.tx");
|
|
|
8
8
|
const blockchain = shared_core_1.Blockchain.DOGE;
|
|
9
9
|
const TatumDogeSDK = (args) => {
|
|
10
10
|
return Object.assign(Object.assign({}, (0, shared_blockchain_btc_based_1.btcBasedSdk)(Object.assign(Object.assign({}, args), { blockchain }))), { transaction: (0, doge_sdk_tx_1.dogeTransactions)(), blockchain: {
|
|
11
|
-
mempool: api_client_1.
|
|
12
|
-
info: api_client_1.
|
|
13
|
-
broadcast: api_client_1.
|
|
14
|
-
getBlockHash: api_client_1.
|
|
15
|
-
getBlock: api_client_1.
|
|
16
|
-
getUTXO: api_client_1.
|
|
17
|
-
getTransaction: api_client_1.
|
|
18
|
-
sendTransaction: api_client_1.
|
|
11
|
+
mempool: api_client_1.DogecoinService.dogeGetMempool,
|
|
12
|
+
info: api_client_1.DogecoinService.dogeGetBlockChainInfo,
|
|
13
|
+
broadcast: api_client_1.DogecoinService.dogeBroadcast,
|
|
14
|
+
getBlockHash: api_client_1.DogecoinService.dogeGetBlockHash,
|
|
15
|
+
getBlock: api_client_1.DogecoinService.dogeGetBlock,
|
|
16
|
+
getUTXO: api_client_1.DogecoinService.dogeGetUtxo,
|
|
17
|
+
getTransaction: api_client_1.DogecoinService.dogeGetRawTransaction,
|
|
18
|
+
sendTransaction: api_client_1.DogecoinService.dogeTransferBlockchain,
|
|
19
19
|
} });
|
|
20
20
|
};
|
|
21
21
|
exports.TatumDogeSDK = TatumDogeSDK;
|
package/src/lib/doge.sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doge.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AACjD,sFAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"doge.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AACjD,sFAAkE;AAClE,oDAA+D;AAC/D,+CAAgD;AAEhD,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAwC,EAAE,EAAE;IACvE,uCACK,IAAA,yCAAW,kCAAM,IAAI,KAAE,UAAU,IAAG,KACvC,WAAW,EAAE,IAAA,8BAAgB,GAAE,EAC/B,UAAU,EAAE;YACV,OAAO,EAAE,4BAAe,CAAC,cAAc;YACvC,IAAI,EAAE,4BAAe,CAAC,qBAAqB;YAC3C,SAAS,EAAE,4BAAe,CAAC,aAAa;YACxC,YAAY,EAAE,4BAAe,CAAC,gBAAgB;YAC9C,QAAQ,EAAE,4BAAe,CAAC,YAAY;YACtC,OAAO,EAAE,4BAAe,CAAC,WAAW;YACpC,cAAc,EAAE,4BAAe,CAAC,qBAAqB;YACrD,eAAe,EAAE,4BAAe,CAAC,sBAAsB;SACxD,IACF;AACH,CAAC,CAAA;AAfY,QAAA,YAAY,gBAexB"}
|