@tatumio/celo 2.0.1-alpha.284 → 2.0.1-alpha.288
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 -9
- package/src/lib/celo.sdk.d.ts +32 -32
- package/src/lib/services/celo.tx.d.ts +32 -32
- package/src/lib/transactions/erc20/index.d.ts +4 -4
- package/src/lib/transactions/erc20/index.js +12 -4
- package/src/lib/transactions/erc20/index.js.map +1 -1
- package/src/lib/transactions/erc721/index.d.ts +11 -11
- package/src/lib/transactions/erc721/index.js +198 -162
- package/src/lib/transactions/erc721/index.js.map +1 -1
- package/src/lib/transactions/multitoken/index.d.ts +7 -7
- package/src/lib/transactions/multitoken/index.js +152 -122
- package/src/lib/transactions/multitoken/index.js.map +1 -1
- package/src/lib/transactions/native/index.d.ts +3 -3
- package/src/lib/transactions/native/index.js +21 -22
- package/src/lib/transactions/native/index.js.map +1 -1
- package/src/lib/transactions/smartContract/index.d.ts +1 -1
- package/src/lib/transactions/smartContract/index.js +4 -1
- package/src/lib/transactions/smartContract/index.js.map +1 -1
- package/src/lib/utils/celo.utils.d.ts +17 -2
- package/src/lib/utils/celo.utils.js +61 -4
- package/src/lib/utils/celo.utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/celo",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.288",
|
|
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.288",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.288",
|
|
10
10
|
"axios": "^0.26.0",
|
|
11
11
|
"form-data": "^4.0.0",
|
|
12
|
-
"@tatumio/shared-testing-evm-based": "2.0.1-alpha.
|
|
13
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.
|
|
14
|
-
"@tatumio/shared-
|
|
15
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.284",
|
|
16
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.284",
|
|
12
|
+
"@tatumio/shared-testing-evm-based": "2.0.1-alpha.288",
|
|
13
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.288",
|
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.288",
|
|
17
15
|
"bignumber.js": "^9.0.2",
|
|
16
|
+
"@tatumio/shared-core": "2.0.1-alpha.288",
|
|
17
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.288",
|
|
18
18
|
"ethereumjs-wallet": "^1.0.2",
|
|
19
19
|
"bip39": "^3.0.2",
|
|
20
20
|
"web3": "^1.7.4",
|
|
21
21
|
"web3-core": "^1.7.4",
|
|
22
22
|
"web3-utils": "^1.7.4",
|
|
23
|
-
"@celo-tools/celo-ethers-wrapper": "^0.1.0"
|
|
23
|
+
"@celo-tools/celo-ethers-wrapper": "^0.1.0",
|
|
24
|
+
"lodash": "^4.17.21"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {}
|
|
26
27
|
}
|
package/src/lib/celo.sdk.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
11
11
|
};
|
|
12
12
|
transaction: {
|
|
13
13
|
prepare: {
|
|
14
|
-
transferSignedTransaction: (body: import("..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<
|
|
15
|
-
storeDataTransaction: (body: import("..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<
|
|
16
|
-
celoOrCUsdSignedTransaction: (body: import("..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<
|
|
14
|
+
transferSignedTransaction: (body: import("..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<any>;
|
|
15
|
+
storeDataTransaction: (body: import("..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
16
|
+
celoOrCUsdSignedTransaction: (body: import("..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<any>;
|
|
17
17
|
};
|
|
18
18
|
send: {
|
|
19
19
|
transferSignedTransaction: (body: import("..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
@@ -25,10 +25,10 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
25
25
|
getErc20TransactionByAddress: typeof FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress;
|
|
26
26
|
getErc20AccountBalance: typeof FungibleTokensErc20OrCompatibleService.erc20GetBalance;
|
|
27
27
|
prepare: {
|
|
28
|
-
deploySignedTransaction: (body: import("..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
29
|
-
mintSignedTransaction: (body: import("..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
30
|
-
transferSignedTransaction: (body: import("..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
31
|
-
burnSignedTransaction: (body: import("..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
28
|
+
deploySignedTransaction: (body: import("..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
29
|
+
mintSignedTransaction: (body: import("..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
30
|
+
transferSignedTransaction: (body: import("..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
31
|
+
burnSignedTransaction: (body: import("..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
32
32
|
};
|
|
33
33
|
send: {
|
|
34
34
|
deploySignedTransaction: (body: import("..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
@@ -62,20 +62,20 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
62
62
|
mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
|
|
63
63
|
signatureId?: string;
|
|
64
64
|
chain: "CELO";
|
|
65
|
-
}, provider?: string, testnet?: boolean) => Promise<
|
|
66
|
-
mintCashbackSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
67
|
-
mintMultipleCashbackSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
68
|
-
mintMultipleSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
69
|
-
burnSignedTransaction: (body: import("..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
70
|
-
transferSignedTransaction: (body: import("..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
71
|
-
updateCashbackForAuthorSignedTransaction: (body: import("..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
72
|
-
deploySignedTransaction: (body: import("..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
73
|
-
mintProvenanceSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
65
|
+
}, provider?: string, testnet?: boolean) => Promise<any>;
|
|
66
|
+
mintCashbackSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
67
|
+
mintMultipleCashbackSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
68
|
+
mintMultipleSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
69
|
+
burnSignedTransaction: (body: import("..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
70
|
+
transferSignedTransaction: (body: import("..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
71
|
+
updateCashbackForAuthorSignedTransaction: (body: import("..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
72
|
+
deploySignedTransaction: (body: import("..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
73
|
+
mintProvenanceSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
74
74
|
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
75
75
|
erc20?: string;
|
|
76
76
|
} & {
|
|
77
77
|
fixedValues: string[][];
|
|
78
|
-
}, provider?: string, testnet?: boolean) => Promise<
|
|
78
|
+
}, provider?: string, testnet?: boolean) => Promise<any>;
|
|
79
79
|
};
|
|
80
80
|
send: {
|
|
81
81
|
mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
|
|
@@ -99,13 +99,13 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
99
99
|
};
|
|
100
100
|
multiToken: {
|
|
101
101
|
prepare: {
|
|
102
|
-
mintMultiTokenTransaction: (body: import("..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
103
|
-
mintMultiTokenBatchTransaction: (body: import("..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<
|
|
104
|
-
transferMultiTokenTransaction: (body: import("..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
105
|
-
transferMultiTokenBatchTransaction: (body: import("..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<
|
|
106
|
-
burnMultiTokenTransaction: (body: import("..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
107
|
-
burnMultiTokenBatchTransaction: (body: import("..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<
|
|
108
|
-
deployMultiTokenTransaction: (body: import("..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
102
|
+
mintMultiTokenTransaction: (body: import("..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
103
|
+
mintMultiTokenBatchTransaction: (body: import("..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
104
|
+
transferMultiTokenTransaction: (body: import("..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
105
|
+
transferMultiTokenBatchTransaction: (body: import("..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
106
|
+
burnMultiTokenTransaction: (body: import("..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
107
|
+
burnMultiTokenBatchTransaction: (body: import("..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
108
|
+
deployMultiTokenTransaction: (body: import("..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
109
109
|
};
|
|
110
110
|
send: {
|
|
111
111
|
mintMultiTokenTransaction: (body: import("..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
@@ -119,7 +119,7 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
119
119
|
};
|
|
120
120
|
smartContract: {
|
|
121
121
|
prepare: {
|
|
122
|
-
smartContractWriteMethodInvocationTransaction: (body: import("..").SmartContractWriteMethodInvocationCelo, provider?: string, testnet?: boolean) => Promise<
|
|
122
|
+
smartContractWriteMethodInvocationTransaction: (body: import("..").SmartContractWriteMethodInvocationCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
123
123
|
};
|
|
124
124
|
send: {
|
|
125
125
|
smartContractReadMethodInvocationTransaction: (body: import("@tatumio/api-client").CallReadSmartContractMethod, provider?: string) => Promise<{
|
|
@@ -132,16 +132,16 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
132
132
|
};
|
|
133
133
|
custodial: {
|
|
134
134
|
prepare: {
|
|
135
|
-
transferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet,
|
|
136
|
-
batchTransferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet,
|
|
137
|
-
approveFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainApproveCustodialTransfer, provider?: string) => Promise<
|
|
138
|
-
custodialWalletBatch: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch,
|
|
135
|
+
transferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<any>;
|
|
136
|
+
batchTransferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<any>;
|
|
137
|
+
approveFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainApproveCustodialTransfer, provider?: string) => Promise<any>;
|
|
138
|
+
custodialWalletBatch: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch, provider?: string, testnet?: boolean) => Promise<any>;
|
|
139
139
|
};
|
|
140
140
|
send: {
|
|
141
|
-
transferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet,
|
|
142
|
-
batchTransferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet,
|
|
141
|
+
transferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
142
|
+
batchTransferFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
143
143
|
approveFromCustodialWallet: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainApproveCustodialTransfer, provider?: string) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
144
|
-
custodialWalletBatch: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch,
|
|
144
|
+
custodialWalletBatch: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch, provider?: string, testnet?: boolean) => Promise<string | import("@tatumio/api-client").TransactionHashKMS>;
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
147
|
marketplace: {
|
|
@@ -6,9 +6,9 @@ export declare const celoTxService: (args: {
|
|
|
6
6
|
}) => {
|
|
7
7
|
native: {
|
|
8
8
|
prepare: {
|
|
9
|
-
transferSignedTransaction: (body: import("../..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<
|
|
10
|
-
storeDataTransaction: (body: import("../..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<
|
|
11
|
-
celoOrCUsdSignedTransaction: (body: import("../..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<
|
|
9
|
+
transferSignedTransaction: (body: import("../..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<any>;
|
|
10
|
+
storeDataTransaction: (body: import("../..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
11
|
+
celoOrCUsdSignedTransaction: (body: import("../..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<any>;
|
|
12
12
|
};
|
|
13
13
|
send: {
|
|
14
14
|
transferSignedTransaction: (body: import("../..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
@@ -21,20 +21,20 @@ export declare const celoTxService: (args: {
|
|
|
21
21
|
mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
|
|
22
22
|
signatureId?: string;
|
|
23
23
|
chain: "CELO";
|
|
24
|
-
}, provider?: string, testnet?: boolean) => Promise<
|
|
25
|
-
mintCashbackSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
26
|
-
mintMultipleCashbackSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
27
|
-
mintMultipleSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
28
|
-
burnSignedTransaction: (body: import("../..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
29
|
-
transferSignedTransaction: (body: import("../..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
30
|
-
updateCashbackForAuthorSignedTransaction: (body: import("../..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
31
|
-
deploySignedTransaction: (body: import("../..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
32
|
-
mintProvenanceSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
24
|
+
}, provider?: string, testnet?: boolean) => Promise<any>;
|
|
25
|
+
mintCashbackSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
26
|
+
mintMultipleCashbackSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
27
|
+
mintMultipleSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
28
|
+
burnSignedTransaction: (body: import("../..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
29
|
+
transferSignedTransaction: (body: import("../..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
30
|
+
updateCashbackForAuthorSignedTransaction: (body: import("../..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
31
|
+
deploySignedTransaction: (body: import("../..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
32
|
+
mintProvenanceSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
33
33
|
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
34
34
|
erc20?: string;
|
|
35
35
|
} & {
|
|
36
36
|
fixedValues: string[][];
|
|
37
|
-
}, provider?: string, testnet?: boolean) => Promise<
|
|
37
|
+
}, provider?: string, testnet?: boolean) => Promise<any>;
|
|
38
38
|
};
|
|
39
39
|
send: {
|
|
40
40
|
mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
|
|
@@ -58,13 +58,13 @@ export declare const celoTxService: (args: {
|
|
|
58
58
|
};
|
|
59
59
|
multiToken: {
|
|
60
60
|
prepare: {
|
|
61
|
-
mintMultiTokenTransaction: (body: import("../..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
62
|
-
mintMultiTokenBatchTransaction: (body: import("../..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<
|
|
63
|
-
transferMultiTokenTransaction: (body: import("../..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
64
|
-
transferMultiTokenBatchTransaction: (body: import("../..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<
|
|
65
|
-
burnMultiTokenTransaction: (body: import("../..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
66
|
-
burnMultiTokenBatchTransaction: (body: import("../..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<
|
|
67
|
-
deployMultiTokenTransaction: (body: import("../..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<
|
|
61
|
+
mintMultiTokenTransaction: (body: import("../..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
62
|
+
mintMultiTokenBatchTransaction: (body: import("../..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
63
|
+
transferMultiTokenTransaction: (body: import("../..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
64
|
+
transferMultiTokenBatchTransaction: (body: import("../..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
65
|
+
burnMultiTokenTransaction: (body: import("../..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
66
|
+
burnMultiTokenBatchTransaction: (body: import("../..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
67
|
+
deployMultiTokenTransaction: (body: import("../..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
68
68
|
};
|
|
69
69
|
send: {
|
|
70
70
|
mintMultiTokenTransaction: (body: import("../..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
@@ -78,24 +78,24 @@ export declare const celoTxService: (args: {
|
|
|
78
78
|
};
|
|
79
79
|
custodial: {
|
|
80
80
|
prepare: {
|
|
81
|
-
transferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet,
|
|
82
|
-
batchTransferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet,
|
|
83
|
-
approveFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainApproveCustodialTransfer, provider?: string) => Promise<
|
|
84
|
-
custodialWalletBatch: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch,
|
|
81
|
+
transferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<any>;
|
|
82
|
+
batchTransferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<any>;
|
|
83
|
+
approveFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainApproveCustodialTransfer, provider?: string) => Promise<any>;
|
|
84
|
+
custodialWalletBatch: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch, provider?: string, testnet?: boolean) => Promise<any>;
|
|
85
85
|
};
|
|
86
86
|
send: {
|
|
87
|
-
transferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet,
|
|
88
|
-
batchTransferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet,
|
|
87
|
+
transferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
88
|
+
batchTransferFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainBatchTransferCustodialWallet, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
89
89
|
approveFromCustodialWallet: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainApproveCustodialTransfer, provider?: string) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
90
|
-
custodialWalletBatch: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch,
|
|
90
|
+
custodialWalletBatch: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch, provider?: string, testnet?: boolean) => Promise<string | import("@tatumio/api-client").TransactionHashKMS>;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
erc20: {
|
|
94
94
|
prepare: {
|
|
95
|
-
deploySignedTransaction: (body: import("../..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
96
|
-
mintSignedTransaction: (body: import("../..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
97
|
-
transferSignedTransaction: (body: import("../..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
98
|
-
burnSignedTransaction: (body: import("../..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
95
|
+
deploySignedTransaction: (body: import("../..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
96
|
+
mintSignedTransaction: (body: import("../..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
97
|
+
transferSignedTransaction: (body: import("../..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
98
|
+
burnSignedTransaction: (body: import("../..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
99
99
|
};
|
|
100
100
|
send: {
|
|
101
101
|
deploySignedTransaction: (body: import("../..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
@@ -106,7 +106,7 @@ export declare const celoTxService: (args: {
|
|
|
106
106
|
};
|
|
107
107
|
smartContract: {
|
|
108
108
|
prepare: {
|
|
109
|
-
smartContractWriteMethodInvocationTransaction: (body: import("../..").SmartContractWriteMethodInvocationCelo, provider?: string, testnet?: boolean) => Promise<
|
|
109
|
+
smartContractWriteMethodInvocationTransaction: (body: import("../..").SmartContractWriteMethodInvocationCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
110
110
|
};
|
|
111
111
|
send: {
|
|
112
112
|
smartContractReadMethodInvocationTransaction: (body: import("@tatumio/api-client").CallReadSmartContractMethod, provider?: string) => Promise<{
|
|
@@ -8,22 +8,22 @@ export declare const erc20: (args: {
|
|
|
8
8
|
* Prepare a signed Celo deploy erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
9
9
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
10
10
|
*/
|
|
11
|
-
deploySignedTransaction: (body: ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
11
|
+
deploySignedTransaction: (body: ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
12
12
|
/**
|
|
13
13
|
* Prepare a signed Celo mint erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
14
14
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
15
15
|
*/
|
|
16
|
-
mintSignedTransaction: (body: ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
16
|
+
mintSignedTransaction: (body: ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
17
17
|
/**
|
|
18
18
|
* Prepare a signed Celo transfer erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
19
19
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
20
20
|
*/
|
|
21
|
-
transferSignedTransaction: (body: ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
21
|
+
transferSignedTransaction: (body: ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
22
22
|
/**
|
|
23
23
|
* Prepare a signed Celo burn erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
24
24
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
25
25
|
*/
|
|
26
|
-
burnSignedTransaction: (body: ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<
|
|
26
|
+
burnSignedTransaction: (body: ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
27
27
|
};
|
|
28
28
|
send: {
|
|
29
29
|
/**
|
|
@@ -148,22 +148,30 @@ const erc20 = (args) => {
|
|
|
148
148
|
* Prepare a signed Celo deploy erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
149
149
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
150
150
|
*/
|
|
151
|
-
deploySignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
151
|
+
deploySignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
152
|
+
return shared_blockchain_evm_based_1.evmBasedUtils.tryCatch(() => prepareDeploySignedTransaction(body, provider, testnet), shared_abstract_sdk_1.SdkErrorCode.EVM_ERC20_CANNOT_PREPARE_DEPLOY_TX);
|
|
153
|
+
}),
|
|
152
154
|
/**
|
|
153
155
|
* Prepare a signed Celo mint erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
154
156
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
155
157
|
*/
|
|
156
|
-
mintSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
158
|
+
mintSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
159
|
+
return shared_blockchain_evm_based_1.evmBasedUtils.tryCatch(() => prepareMintSignedTransaction(body, provider, testnet), shared_abstract_sdk_1.SdkErrorCode.EVM_ERC20_CANNOT_PREPARE_MINT_TX);
|
|
160
|
+
}),
|
|
157
161
|
/**
|
|
158
162
|
* Prepare a signed Celo transfer erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
159
163
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
160
164
|
*/
|
|
161
|
-
transferSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
165
|
+
transferSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
166
|
+
return shared_blockchain_evm_based_1.evmBasedUtils.tryCatch(() => prepareTransferSignedTransaction(body, provider, testnet), shared_abstract_sdk_1.SdkErrorCode.EVM_ERC20_CANNOT_PREPARE_TRANSFER_TX);
|
|
167
|
+
}),
|
|
162
168
|
/**
|
|
163
169
|
* Prepare a signed Celo burn erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
164
170
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
165
171
|
*/
|
|
166
|
-
burnSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
172
|
+
burnSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
173
|
+
return shared_blockchain_evm_based_1.evmBasedUtils.tryCatch(() => prepareBurnSignedTransaction(body, provider, testnet), shared_abstract_sdk_1.SdkErrorCode.EVM_ERC20_CANNOT_PREPARE_BURN_TX);
|
|
174
|
+
}),
|
|
167
175
|
},
|
|
168
176
|
send: {
|
|
169
177
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/celo/src/lib/transactions/erc20/index.ts"],"names":[],"mappings":";;;;AAAA,yEAA4D;AAC5D,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/celo/src/lib/transactions/erc20/index.ts"],"names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AAC;oBACnE,WAAW,EAAE,IAAI,CAAC,WAAW;iBAC9B,CAAC,CAAA;cAAA;YACJ;;;;;;;eAOG;YACH,yBAAyB,EAAE,CAAO,IAA4B,EAAE,QAAiB,EAAE,OAAiB,EAAE,EAAE;gBACtG,OAAA,IAAI,CAAC,iBAAiB,CAAC;oBACrB,MAAM,EAAE,MAAM,gCAAgC,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;oBACvE,WAAW,EAAE,IAAI,CAAC,WAAW;iBAC9B,CAAC,CAAA;cAAA;YACJ;;;;;;;eAOG;YACH,qBAAqB,EAAE,CAAO,IAAwB,EAAE,QAAiB,EAAE,OAAiB,EAAE,EAAE;gBAC9F,OAAA,IAAI,CAAC,iBAAiB,CAAC;oBACrB,MAAM,EAAE,MAAM,4BAA4B,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;oBACnE,WAAW,EAAE,IAAI,CAAC,WAAW;iBAC9B,CAAC,CAAA;cAAA;SACL;KACF,CAAA;AACH,CAAC,CAAA;AA/FY,QAAA,KAAK,SA+FjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EvmBasedBlockchain } from '@tatumio/shared-core';
|
|
2
2
|
import { BroadcastFunction } from '@tatumio/shared-blockchain-abstract';
|
|
3
3
|
import { ChainBurnErc721Celo, ChainDeployErc721Celo, ChainMintErc721Celo, ChainMintMultipleNftCelo, ChainMintNftCelo, ChainTransferErc721Celo, ChainUpdateCashbackErc721Celo } from '../../utils/celo.utils';
|
|
4
|
-
export declare const mintMultipleCashbackSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
4
|
+
export declare const mintMultipleCashbackSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
5
5
|
export declare const erc721: (args: {
|
|
6
6
|
blockchain: EvmBasedBlockchain;
|
|
7
7
|
broadcastFunction: BroadcastFunction;
|
|
@@ -11,54 +11,54 @@ export declare const erc721: (args: {
|
|
|
11
11
|
* Prepare a signed Celo mint erc732 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
12
12
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
13
13
|
*/
|
|
14
|
-
mintSignedTransaction: (body: ChainMintErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
14
|
+
mintSignedTransaction: (body: ChainMintErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
15
15
|
/**
|
|
16
16
|
* Prepare a signed Celo mint cashback erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
17
17
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
18
18
|
*/
|
|
19
|
-
mintCashbackSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
19
|
+
mintCashbackSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
20
20
|
/**
|
|
21
21
|
* Prepare a signed Celo mint multiple cashback erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
22
22
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
23
23
|
*/
|
|
24
|
-
mintMultipleCashbackSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
24
|
+
mintMultipleCashbackSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
25
25
|
/**
|
|
26
26
|
* Prepare a signed Celo mint multiple erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
27
27
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
28
28
|
*/
|
|
29
|
-
mintMultipleSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
29
|
+
mintMultipleSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
30
30
|
/**
|
|
31
31
|
* Prepare a signed Celo burn erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
32
32
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
33
33
|
*/
|
|
34
|
-
burnSignedTransaction: (body: ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
34
|
+
burnSignedTransaction: (body: ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
35
35
|
/**
|
|
36
36
|
* Prepare a signed Celo transfer erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
37
37
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
38
38
|
*/
|
|
39
|
-
transferSignedTransaction: (body: ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
39
|
+
transferSignedTransaction: (body: ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
40
40
|
/**
|
|
41
41
|
* Prepare a signed Celo update cashback for author erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
42
42
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
43
43
|
*/
|
|
44
|
-
updateCashbackForAuthorSignedTransaction: (body: ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
44
|
+
updateCashbackForAuthorSignedTransaction: (body: ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
45
45
|
/**
|
|
46
46
|
* Prepare a signed Celo deploy erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
47
47
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
48
48
|
*/
|
|
49
|
-
deploySignedTransaction: (body: ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<
|
|
49
|
+
deploySignedTransaction: (body: ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
50
50
|
/**
|
|
51
51
|
* Prepare a signed Celo mint provenance erc732 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
52
52
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
53
53
|
*/
|
|
54
|
-
mintProvenanceSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<
|
|
54
|
+
mintProvenanceSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
55
55
|
/**
|
|
56
56
|
* Prepare a signed Celo mint multiple provenance cashback erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
57
57
|
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
58
58
|
*/
|
|
59
59
|
mintMultipleProvenanceSignedTransaction: (body: ChainMintMultipleNftCelo & {
|
|
60
60
|
fixedValues: string[][];
|
|
61
|
-
}, provider?: string, testnet?: boolean) => Promise<
|
|
61
|
+
}, provider?: string, testnet?: boolean) => Promise<any>;
|
|
62
62
|
};
|
|
63
63
|
send: {
|
|
64
64
|
/**
|