@tatumio/celo 2.0.1-alpha.228 → 2.0.1-alpha.232

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 CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "@tatumio/celo",
3
- "version": "2.0.1-alpha.228",
3
+ "version": "2.0.1-alpha.232",
4
4
  "license": "MIT",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@tatumio/shared-testing": "2.0.1-alpha.227",
9
- "@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.227",
10
- "@tatumio/shared-core": "2.0.1-alpha.227",
8
+ "@tatumio/shared-testing-common": "2.0.1-alpha.232",
9
+ "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.232",
10
+ "@tatumio/api-client": "2.0.1-alpha.232",
11
11
  "axios": "^0.24.0",
12
- "@tatumio/api-client": "2.0.1-alpha.227",
13
12
  "form-data": "^4.0.0",
14
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.227",
15
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.227",
13
+ "@tatumio/shared-core": "2.0.1-alpha.232",
14
+ "@tatumio/shared-abstract-sdk": "2.0.1-alpha.232",
16
15
  "bignumber.js": "^9.0.2",
17
- "bip32": "^2.0.5",
18
- "bip39": "^3.0.2",
19
- "bitcoinjs-lib": "^5.2.0",
20
- "hdkey": "^2.0.1",
21
- "bitcore-lib": "^8.25.25",
22
- "@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.227",
16
+ "@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.232",
23
17
  "ethereumjs-wallet": "^1.0.2",
24
- "web3": "^1.7.0"
18
+ "bip39": "^3.0.2",
19
+ "web3": "^1.7.0",
20
+ "web3-core": "^1.7.0",
21
+ "@harmony-js/crypto": "^0.1.56",
22
+ "web3-utils": "^1.7.0",
23
+ "@celo-tools/celo-ethers-wrapper": "^0.1.0"
25
24
  },
26
25
  "peerDependencies": {}
27
26
  }
@@ -4,12 +4,87 @@ import { BlockchainCeloService } from '@tatumio/api-client';
4
4
  export declare const TatumCeloSDK: (args: SDKArguments) => {
5
5
  api: typeof BlockchainCeloService;
6
6
  kms: {
7
- getAllPending(signatures?: string): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").PendingTransaction>;
7
+ getAllPending(signatures?: string): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").PendingTransaction[]>;
8
8
  get: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.getPendingTransactionToSign;
9
9
  complete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.completePendingSignature;
10
10
  delete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.deletePendingTransactionToSign;
11
11
  };
12
- transaction: {};
12
+ transaction: {
13
+ prepare: {
14
+ transferSignedTransaction: (body: import("./utils/celo.utils").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<string>;
15
+ };
16
+ send: {
17
+ transferSignedTransaction: (body: import("./utils/celo.utils").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
18
+ };
19
+ };
20
+ erc721: {
21
+ prepare: {
22
+ mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
23
+ signatureId?: string;
24
+ chain: "CELO";
25
+ }, provider?: string, testnet?: boolean) => Promise<string>;
26
+ mintCashbackSignedTransaction: (body: import("./utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
27
+ mintMultipleCashbackSignedTransaction: (body: import("./utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
28
+ mintMultipleSignedTransaction: (body: import("./utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
29
+ burnSignedTransaction: (body: import("./utils/celo.utils").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
30
+ transferSignedTransaction: (body: import("./utils/celo.utils").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
31
+ updateCashbackForAuthorSignedTransaction: (body: import("./utils/celo.utils").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
32
+ deploySignedTransaction: (body: import("./utils/celo.utils").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
33
+ mintProvenanceSignedTransaction: (body: import("./utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
34
+ mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
35
+ erc20?: string;
36
+ } & {
37
+ fixedValues: string[][];
38
+ }, provider?: string, testnet?: boolean) => Promise<string>;
39
+ };
40
+ send: {
41
+ mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
42
+ signatureId?: string;
43
+ chain: "CELO";
44
+ }, provider?: string, testnet?: boolean) => Promise<void>;
45
+ mintCashbackSignedTransaction: (body: import("./utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
46
+ mintMultipleCashbackSignedTransaction: (body: import("./utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
47
+ mintMultipleSignedTransaction: (body: import("./utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
48
+ burnSignedTransaction: (body: import("./utils/celo.utils").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
49
+ transferSignedTransaction: (body: import("./utils/celo.utils").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
50
+ updateCashbackForAuthorSignedTransaction: (body: import("./utils/celo.utils").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
51
+ deploySignedTransaction: (body: import("./utils/celo.utils").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
52
+ mintProvenanceSignedTransaction: (body: import("./utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
53
+ mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
54
+ erc20?: string;
55
+ } & {
56
+ fixedValues: string[][];
57
+ }, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
58
+ };
59
+ };
60
+ multiToken: {
61
+ prepare: {
62
+ mintMultiTokenTransaction: (body: import("./utils/celo.utils").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
63
+ mintMultiTokenBatchTransaction: (body: import("./utils/celo.utils").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
64
+ transferMultiTokenTransaction: (body: import("./utils/celo.utils").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
65
+ transferMultiTokenBatchTransaction: (body: import("./utils/celo.utils").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
66
+ burnMultiTokenTransaction: (body: import("./utils/celo.utils").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
67
+ burnMultiTokenBatchTransaction: (body: import("./utils/celo.utils").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
68
+ deployMultiTokenTransaction: (body: import("./utils/celo.utils").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
69
+ };
70
+ send: {
71
+ mintMultiTokenTransaction: (body: import("./utils/celo.utils").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
72
+ mintMultiTokenBatchTransaction: (body: import("./utils/celo.utils").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
73
+ transferMultiTokenTransaction: (body: import("./utils/celo.utils").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
74
+ transferMultiTokenBatchTransaction: (body: import("./utils/celo.utils").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
75
+ burnMultiTokenTransaction: (body: import("./utils/celo.utils").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
76
+ burnMultiTokenBatchTransaction: (body: import("./utils/celo.utils").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
77
+ deployMultiTokenTransaction: (body: import("./utils/celo.utils").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
78
+ };
79
+ };
80
+ custodial: {
81
+ prepare: {
82
+ generateCustodialWalletSignedTransaction: (body: import("./utils/celo.utils").ChainGenerateCustodialAddressCelo, provider?: string, testnet?: boolean) => Promise<string>;
83
+ };
84
+ send: {
85
+ generateCustodialWalletSignedTransaction: (body: import("./utils/celo.utils").ChainGenerateCustodialAddressCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
86
+ };
87
+ };
13
88
  httpDriver: (request: Web3Request) => Promise<Web3Response>;
14
89
  blockchain: {
15
90
  broadcast: typeof BlockchainCeloService.celoBroadcast;
@@ -20,7 +95,7 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
20
95
  get: typeof BlockchainCeloService.celoGetTransaction;
21
96
  getAccountTransactions: typeof BlockchainCeloService.celoGetTransactionByAddress;
22
97
  };
23
- web3Client: (provider?: string) => import("web3").default;
98
+ web3Client: (provider?: string, fromPrivateKey?: string) => import("web3").default;
24
99
  record: {
25
100
  getLog(id: string): import("@tatumio/api-client").CancelablePromise<{
26
101
  data: string;
@@ -49,10 +124,13 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
49
124
  };
50
125
  withdrawal: {
51
126
  getAll: (status?: "InProgress" | "Done" | "Cancelled", pageSize?: number, offset?: number) => Promise<import("@tatumio/api-client").WithdrawalObject[]>;
127
+ broadcast: typeof import("@tatumio/api-client").OffChainWithdrawalService.broadcastBlockchainTransaction;
128
+ create: typeof import("@tatumio/api-client").OffChainWithdrawalService.storeWithdrawal;
129
+ complete: typeof import("@tatumio/api-client").OffChainWithdrawalService.completeWithdrawal;
52
130
  };
53
131
  storeTokenAddress: typeof import("@tatumio/api-client").OffChainBlockchainService.storeTokenAddress;
54
132
  };
55
- getExchangeRate(basePair?: import("@tatumio/shared-core").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
133
+ getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
56
134
  storage: {
57
135
  upload: typeof import("@tatumio/api-client").StorageIpfsService.storeIpfs;
58
136
  get: typeof import("@tatumio/api-client").StorageIpfsService.getIpfsData;
@@ -125,7 +203,13 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
125
203
  unfreezeApiKey: typeof import("@tatumio/api-client").TatumServiceService.unfreezeApiKey;
126
204
  };
127
205
  nft: {
206
+ deployNFTSmartContract: typeof import("@tatumio/api-client").BlockchainNftService.nftDeployErc721;
207
+ addNFTMinter: typeof import("@tatumio/api-client").BlockchainNftService.nftAddMinter;
128
208
  mintNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftMintErc721;
209
+ mintMultipleNFTs: typeof import("@tatumio/api-client").BlockchainNftService.nftMintMultipleErc721;
210
+ burnNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftBurnErc721;
211
+ transferNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftTransferErc721;
212
+ updateNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftUpdateCashbackErc721;
129
213
  getNFTTransaction: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactErc721;
130
214
  getNFTTransactionsByToken: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByToken;
131
215
  getNFTTransactionsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByAddress;
@@ -133,6 +217,11 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
133
217
  getNFTProvenanceData: typeof import("@tatumio/api-client").BlockchainNftService.nftGetProvenanceDataErc721;
134
218
  getNFTMetadataURI: typeof import("@tatumio/api-client").BlockchainNftService.nftGetMetadataErc721;
135
219
  getNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftGetRoyaltyErc721;
136
- prepareAddNFTMinterAbstraction: typeof import("@tatumio/api-client").BlockchainNftService.nftGetRoyaltyErc721;
220
+ getNFTAccountBalance: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721;
221
+ getNFTImage: (chain: "CELO" | "ETH" | "ONE" | "BSC" | "MATIC" | "TRON" | "FLOW" | "KLAY" | "SOL" | "KCS", contractAddress: string, tokenId: string, account?: string) => Promise<{
222
+ originalUrl: string;
223
+ publicUrl: string;
224
+ }>;
225
+ prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => Promise<string[]>;
137
226
  };
138
227
  };
@@ -12,7 +12,8 @@ const blockchain = shared_core_1.Blockchain.CELO;
12
12
  const TatumCeloSDK = (args) => {
13
13
  const web3 = (0, celo_web3_1.celoWeb3)({ blockchain });
14
14
  const api = api_client_1.BlockchainCeloService;
15
- return Object.assign(Object.assign({}, (0, shared_blockchain_evm_based_1.evmBasedSdk)(Object.assign(Object.assign({}, args), { blockchain, web3 }))), { api, kms: (0, celo_kms_1.celoKmsService)({ blockchain, web3 }), transaction: (0, celo_tx_1.celoTxService)({ blockchain, web3 }), httpDriver: (request) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
15
+ const txService = (0, celo_tx_1.celoTxService)({ blockchain });
16
+ return Object.assign(Object.assign({}, (0, shared_blockchain_evm_based_1.evmBasedSdk)(Object.assign(Object.assign({}, args), { blockchain, web3 }))), { api, kms: (0, celo_kms_1.celoKmsService)({ blockchain, web3 }), transaction: txService.native, erc721: txService.erc721, multiToken: txService.multiToken, custodial: txService.custodial, httpDriver: (request) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
16
17
  return api.celoWeb3Driver(args.apiKey, Object.assign(Object.assign({}, request), { jsonrpc: '2.0' }));
17
18
  }), blockchain: {
18
19
  broadcast: api_client_1.BlockchainCeloService.celoBroadcast,
@@ -1 +1 @@
1
- {"version":3,"file":"celo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/celo/src/lib/celo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAA4E;AAE5E,oDAA2D;AAC3D,oDAA+C;AAC/C,sFAAkE;AAClE,kDAAoD;AACpD,gDAAkD;AAElD,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,IAAI,GAAG,IAAA,oBAAQ,EAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IACrC,MAAM,GAAG,GAAG,kCAAqB,CAAA;IAEjC,uCACK,IAAA,yCAAW,kCAAM,IAAI,KAAE,UAAU,EAAE,IAAI,IAAG,KAC7C,GAAG,EACH,GAAG,EAAE,IAAA,yBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACzC,WAAW,EAAE,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAChD,UAAU,EAAE,CAAO,OAAoB,EAAyB,EAAE;YAChE,OAAO,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,kCAAO,OAAO,KAAE,OAAO,EAAE,KAAK,IAAG,CAAA;QACxE,CAAC,CAAA,EACD,UAAU,EAAE;YACV,SAAS,EAAE,kCAAqB,CAAC,aAAa;YAC9C,oBAAoB,EAAE,kCAAqB,CAAC,uBAAuB;YACnE,eAAe,EAAE,kCAAqB,CAAC,mBAAmB;YAC1D,QAAQ,EAAE,kCAAqB,CAAC,YAAY;YAC5C,2BAA2B,EAAE,kCAAqB,CAAC,cAAc;YACjE,GAAG,EAAE,kCAAqB,CAAC,kBAAkB;YAC7C,sBAAsB,EAAE,kCAAqB,CAAC,2BAA2B;SAC1E,IACF;AACH,CAAC,CAAA;AAtBY,QAAA,YAAY,gBAsBxB"}
1
+ {"version":3,"file":"celo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/celo/src/lib/celo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAA4E;AAE5E,oDAA2D;AAC3D,oDAA+C;AAC/C,sFAAkE;AAClE,kDAAoD;AACpD,gDAAkD;AAElD,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,IAAI,GAAG,IAAA,oBAAQ,EAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IACrC,MAAM,GAAG,GAAG,kCAAqB,CAAA;IACjC,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IAE/C,uCACK,IAAA,yCAAW,kCAAM,IAAI,KAAE,UAAU,EAAE,IAAI,IAAG,KAC7C,GAAG,EACH,GAAG,EAAE,IAAA,yBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACzC,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,MAAM,EAAE,SAAS,CAAC,MAAM,EACxB,UAAU,EAAE,SAAS,CAAC,UAAU,EAChC,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,UAAU,EAAE,CAAO,OAAoB,EAAyB,EAAE;YAChE,OAAO,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,kCAAO,OAAO,KAAE,OAAO,EAAE,KAAK,IAAG,CAAA;QACxE,CAAC,CAAA,EACD,UAAU,EAAE;YACV,SAAS,EAAE,kCAAqB,CAAC,aAAa;YAC9C,oBAAoB,EAAE,kCAAqB,CAAC,uBAAuB;YACnE,eAAe,EAAE,kCAAqB,CAAC,mBAAmB;YAC1D,QAAQ,EAAE,kCAAqB,CAAC,YAAY;YAC5C,2BAA2B,EAAE,kCAAqB,CAAC,cAAc;YACjE,GAAG,EAAE,kCAAqB,CAAC,kBAAkB;YAC7C,sBAAsB,EAAE,kCAAqB,CAAC,2BAA2B;SAC1E,IACF;AACH,CAAC,CAAA;AA1BY,QAAA,YAAY,gBA0BxB"}
@@ -1,12 +1,11 @@
1
1
  import { EvmBasedWeb3 } from '@tatumio/shared-blockchain-evm-based';
2
2
  import { EvmBasedBlockchain } from '@tatumio/shared-core';
3
- import { PendingTransaction } from '@tatumio/api-client';
4
3
  export declare const celoKmsService: (args: {
5
4
  blockchain: EvmBasedBlockchain;
6
5
  web3: EvmBasedWeb3;
7
6
  }) => {
8
- getAllPending(signatures?: string): import("@tatumio/api-client").CancelablePromise<PendingTransaction>;
9
- get: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.getPendingTransactionToSign;
10
- complete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.completePendingSignature;
11
- delete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.deletePendingTransactionToSign;
7
+ getAllPending(signatures?: string): import("../../../../../../dist/packages/api-client/src").CancelablePromise<import("../../../../../../dist/packages/api-client/src").PendingTransaction[]>;
8
+ get: typeof import("../../../../../../dist/packages/api-client/src").SecurityKeyManagementSystemService.getPendingTransactionToSign;
9
+ complete: typeof import("../../../../../../dist/packages/api-client/src").SecurityKeyManagementSystemService.completePendingSignature;
10
+ delete: typeof import("../../../../../../dist/packages/api-client/src").SecurityKeyManagementSystemService.deletePendingTransactionToSign;
12
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"celo.kms.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.kms.ts"],"names":[],"mappings":";;;AAGA,oFAA2E;AAEpE,MAAM,cAAc,GAAG,CAAC,IAA4D,EAAE,EAAE;IAC7F,yBACK,IAAA,kDAAqB,EAAC,IAAI,CAAC,EAyC/B;AACH,CAAC,CAAA;AA5CY,QAAA,cAAc,kBA4C1B"}
1
+ {"version":3,"file":"celo.kms.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.kms.ts"],"names":[],"mappings":";;;AAEA,oFAA2E;AAEpE,MAAM,cAAc,GAAG,CAAC,IAA4D,EAAE,EAAE;IAC7F,yBACK,IAAA,kDAAqB,EAAC,IAAI,CAAC,EAyC/B;AACH,CAAC,CAAA;AA5CY,QAAA,cAAc,kBA4C1B"}
@@ -1,6 +1,81 @@
1
- import { EvmBasedWeb3 } from '@tatumio/shared-blockchain-evm-based';
2
1
  import { EvmBasedBlockchain } from '@tatumio/shared-core';
3
2
  export declare const celoTxService: (args: {
4
3
  blockchain: EvmBasedBlockchain;
5
- web3: EvmBasedWeb3;
6
- }) => {};
4
+ }) => {
5
+ native: {
6
+ prepare: {
7
+ transferSignedTransaction: (body: import("../utils/celo.utils").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<string>;
8
+ };
9
+ send: {
10
+ transferSignedTransaction: (body: import("../utils/celo.utils").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
11
+ };
12
+ };
13
+ erc721: {
14
+ prepare: {
15
+ mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
16
+ signatureId?: string;
17
+ chain: "CELO";
18
+ }, provider?: string, testnet?: boolean) => Promise<string>;
19
+ mintCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
20
+ mintMultipleCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
21
+ mintMultipleSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
22
+ burnSignedTransaction: (body: import("../utils/celo.utils").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
23
+ transferSignedTransaction: (body: import("../utils/celo.utils").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
24
+ updateCashbackForAuthorSignedTransaction: (body: import("../utils/celo.utils").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
25
+ deploySignedTransaction: (body: import("../utils/celo.utils").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
26
+ mintProvenanceSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
27
+ mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
28
+ erc20?: string;
29
+ } & {
30
+ fixedValues: string[][];
31
+ }, provider?: string, testnet?: boolean) => Promise<string>;
32
+ };
33
+ send: {
34
+ mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
35
+ signatureId?: string;
36
+ chain: "CELO";
37
+ }, provider?: string, testnet?: boolean) => Promise<void>;
38
+ mintCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
39
+ mintMultipleCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
40
+ mintMultipleSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
41
+ burnSignedTransaction: (body: import("../utils/celo.utils").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
42
+ transferSignedTransaction: (body: import("../utils/celo.utils").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
43
+ updateCashbackForAuthorSignedTransaction: (body: import("../utils/celo.utils").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
44
+ deploySignedTransaction: (body: import("../utils/celo.utils").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
45
+ mintProvenanceSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
46
+ mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
47
+ erc20?: string;
48
+ } & {
49
+ fixedValues: string[][];
50
+ }, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
51
+ };
52
+ };
53
+ multiToken: {
54
+ prepare: {
55
+ mintMultiTokenTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
56
+ mintMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
57
+ transferMultiTokenTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
58
+ transferMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
59
+ burnMultiTokenTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
60
+ burnMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
61
+ deployMultiTokenTransaction: (body: import("../utils/celo.utils").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
62
+ };
63
+ send: {
64
+ mintMultiTokenTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
65
+ mintMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
66
+ transferMultiTokenTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
67
+ transferMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
68
+ burnMultiTokenTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
69
+ burnMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
70
+ deployMultiTokenTransaction: (body: import("../utils/celo.utils").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
71
+ };
72
+ };
73
+ custodial: {
74
+ prepare: {
75
+ generateCustodialWalletSignedTransaction: (body: import("../utils/celo.utils").ChainGenerateCustodialAddressCelo, provider?: string, testnet?: boolean) => Promise<string>;
76
+ };
77
+ send: {
78
+ generateCustodialWalletSignedTransaction: (body: import("../utils/celo.utils").ChainGenerateCustodialAddressCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
79
+ };
80
+ };
81
+ };
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.celoTxService = void 0;
4
+ const api_client_1 = require("@tatumio/api-client");
5
+ const transactions_1 = require("../transactions");
6
+ const custodial_1 = require("../transactions/custodial");
4
7
  const celoTxService = (args) => {
5
- return {};
8
+ return {
9
+ native: Object.assign({}, (0, transactions_1.native)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.BlockchainCeloService.celoBroadcast }))),
10
+ erc721: Object.assign({}, (0, transactions_1.erc721)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.BlockchainCeloService.celoBroadcast }))),
11
+ multiToken: Object.assign({}, (0, transactions_1.multiToken)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.BlockchainCeloService.celoBroadcast }))),
12
+ custodial: Object.assign({}, (0, custodial_1.custodial)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.BlockchainCeloService.celoBroadcast }))),
13
+ };
6
14
  };
7
15
  exports.celoTxService = celoTxService;
8
16
  //# sourceMappingURL=celo.tx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"celo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.tx.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,IAA4D,EAAE,EAAE;IAC5F,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAFY,QAAA,aAAa,iBAEzB"}
1
+ {"version":3,"file":"celo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.tx.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAE3D,kDAA4D;AAC5D,yDAAqD;AAE9C,MAAM,aAAa,GAAG,CAAC,IAAwC,EAAE,EAAE;IACxE,OAAO;QACL,MAAM,oBACD,IAAA,qBAAM,kCACJ,IAAI,KACP,iBAAiB,EAAE,kCAAqB,CAAC,aAAa,IACtD,CACH;QACD,MAAM,oBACD,IAAA,qBAAM,kCACJ,IAAI,KACP,iBAAiB,EAAE,kCAAqB,CAAC,aAAa,IACtD,CACH;QACD,UAAU,oBACL,IAAA,yBAAU,kCACR,IAAI,KACP,iBAAiB,EAAE,kCAAqB,CAAC,aAAa,IACtD,CACH;QACD,SAAS,oBACJ,IAAA,qBAAS,kCACP,IAAI,KACP,iBAAiB,EAAE,kCAAqB,CAAC,aAAa,IACtD,CACH;KACF,CAAA;AACH,CAAC,CAAA;AA3BY,QAAA,aAAa,iBA2BzB"}
@@ -0,0 +1,27 @@
1
+ import { BroadcastFunction } from '@tatumio/shared-blockchain-abstract';
2
+ import { EvmBasedBlockchain } from '@tatumio/shared-core';
3
+ import { ChainGenerateCustodialAddressCelo } from '../../utils/celo.utils';
4
+ export declare const custodial: (args: {
5
+ blockchain: EvmBasedBlockchain;
6
+ broadcastFunction: BroadcastFunction;
7
+ }) => {
8
+ prepare: {
9
+ /**
10
+ * Sign generate custodial wallet address transaction with private keys locally. Nothing is broadcast to the blockchain.
11
+ * @param body content of the transaction to broadcast
12
+ * @param provider url of the Server to connect to. If not set, default public server will be used.
13
+ * @returns transaction data to be broadcast to blockchain.
14
+ */
15
+ generateCustodialWalletSignedTransaction: (body: ChainGenerateCustodialAddressCelo, provider?: string, testnet?: boolean) => Promise<string>;
16
+ };
17
+ send: {
18
+ /**
19
+ * Send generate custodial wallet address transaction with private keys to the blockchain. This method broadcasts signed transaction to the blockchain.
20
+ * This operation is irreversible.
21
+ * @param body content of the transaction to broadcast
22
+ * @param provider url of the Bsc Server to connect to. If not set, default public server will be used.
23
+ * @returns transaction data to be broadcast to blockchain.
24
+ */
25
+ generateCustodialWalletSignedTransaction: (body: ChainGenerateCustodialAddressCelo, provider?: string, testnet?: boolean) => Promise<import("../../../../../../../dist/packages/api-client/src").TransactionHashKMS>;
26
+ };
27
+ };
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.custodial = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const celo_ethers_wrapper_1 = require("@celo-tools/celo-ethers-wrapper");
6
+ const shared_blockchain_evm_based_1 = require("@tatumio/shared-blockchain-evm-based");
7
+ const celo_utils_1 = require("../../utils/celo.utils");
8
+ const web3_1 = (0, tslib_1.__importDefault)(require("web3"));
9
+ const generateCustodialWallet = (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
10
+ const celoProvider = celo_utils_1.celoUtils.getProvider(provider);
11
+ const network = yield celoProvider.ready;
12
+ const feeCurrency = body.feeCurrency || 'CELO';
13
+ const feeCurrencyContractAddress = celo_utils_1.celoUtils.getFeeCurrency(feeCurrency, testnet);
14
+ const custodialService = (0, shared_blockchain_evm_based_1.evmBasedCustodial)();
15
+ const { abi, bytecode } = custodialService.obtainCustodialAddressType(body);
16
+ // @ts-ignore
17
+ const contract = new new web3_1.default().eth.Contract(abi);
18
+ const deploy = contract.deploy({
19
+ data: bytecode,
20
+ });
21
+ if ('signatureId' in body) {
22
+ return JSON.stringify({
23
+ chainId: network.chainId,
24
+ feeCurrency: feeCurrencyContractAddress,
25
+ nonce: body.nonce,
26
+ gasLimit: '0',
27
+ data: deploy.encodeABI(),
28
+ });
29
+ }
30
+ const wallet = new celo_ethers_wrapper_1.CeloWallet(body.fromPrivateKey, celoProvider);
31
+ const { txCount, gasPrice, from } = yield celo_utils_1.celoUtils.obtainWalletInformation(wallet, feeCurrencyContractAddress);
32
+ const tx = {
33
+ chainId: network.chainId,
34
+ feeCurrency: feeCurrencyContractAddress,
35
+ gasLimit: '0',
36
+ gasPrice,
37
+ data: deploy.encodeABI(),
38
+ nonce: body.nonce || txCount,
39
+ from,
40
+ };
41
+ return yield celo_utils_1.celoUtils.prepareSignedTransactionAbstraction(wallet, tx);
42
+ });
43
+ const custodial = (args) => {
44
+ return {
45
+ prepare: {
46
+ /**
47
+ * Sign generate custodial wallet address transaction with private keys locally. Nothing is broadcast to the blockchain.
48
+ * @param body content of the transaction to broadcast
49
+ * @param provider url of the Server to connect to. If not set, default public server will be used.
50
+ * @returns transaction data to be broadcast to blockchain.
51
+ */
52
+ generateCustodialWalletSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () { return generateCustodialWallet(body, provider, testnet); }),
53
+ },
54
+ send: {
55
+ /**
56
+ * Send generate custodial wallet address transaction with private keys to the blockchain. This method broadcasts signed transaction to the blockchain.
57
+ * This operation is irreversible.
58
+ * @param body content of the transaction to broadcast
59
+ * @param provider url of the Bsc Server to connect to. If not set, default public server will be used.
60
+ * @returns transaction data to be broadcast to blockchain.
61
+ */
62
+ generateCustodialWalletSignedTransaction: (body, provider, testnet) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
63
+ return args.broadcastFunction({
64
+ txData: yield generateCustodialWallet(body, provider, testnet),
65
+ signatureId: 'signatureId' in body ? body.signatureId : undefined,
66
+ });
67
+ }),
68
+ },
69
+ };
70
+ };
71
+ exports.custodial = custodial;
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/celo/src/lib/transactions/custodial/index.ts"],"names":[],"mappings":";;;;AAAA,yEAA4D;AAG5D,sFAAwE;AAExE,uDAA4G;AAC5G,6DAAuB;AAEvB,MAAM,uBAAuB,GAAG,CAC9B,IAAuC,EACvC,QAAiB,EACjB,OAAiB,EACjB,EAAE;IACF,MAAM,YAAY,GAAG,sBAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IACpD,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,KAAK,CAAA;IACxC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,MAAM,CAAA;IAC9C,MAAM,0BAA0B,GAAG,sBAAS,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;IAEjF,MAAM,gBAAgB,GAAG,IAAA,+CAAiB,GAAE,CAAA;IAE5C,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAA;IAC3E,aAAa;IACb,MAAM,QAAQ,GAAG,IAAI,IAAI,cAAI,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;IACjD,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC7B,IAAI,EAAE,QAAQ;KACf,CAAC,CAAA;IAEF,IAAI,aAAa,IAAI,IAAI,EAAE;QACzB,OAAO,IAAI,CAAC,SAAS,CAAC;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,WAAW,EAAE,0BAA0B;YACvC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,GAAG;YACb,IAAI,EAAE,MAAM,CAAC,SAAS,EAAE;SACzB,CAAC,CAAA;KACH;IAED,MAAM,MAAM,GAAG,IAAI,gCAAU,CAAC,IAAI,CAAC,cAAwB,EAAE,YAAY,CAAC,CAAA;IAC1E,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,sBAAS,CAAC,uBAAuB,CACzE,MAAM,EACN,0BAA0B,CAC3B,CAAA;IACD,MAAM,EAAE,GAA0B;QAChC,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,GAAG;QACb,QAAQ;QACR,IAAI,EAAE,MAAM,CAAC,SAAS,EAAE;QACxB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,OAAO;QAC5B,IAAI;KACL,CAAA;IAED,OAAO,MAAM,sBAAS,CAAC,mCAAmC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AACxE,CAAC,CAAA,CAAA;AAEM,MAAM,SAAS,GAAG,CAAC,IAA8E,EAAE,EAAE;IAC1G,OAAO;QACL,OAAO,EAAE;YACP;;;;;eAKG;YACH,wCAAwC,EAAE,CACxC,IAAuC,EACvC,QAAiB,EACjB,OAAiB,EACjB,EAAE,+DAAC,OAAA,uBAAuB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA,GAAA;SACtD;QACD,IAAI,EAAE;YACJ;;;;;;eAMG;YACH,wCAAwC,EAAE,CACxC,IAAuC,EACvC,QAAiB,EACjB,OAAiB,EACjB,EAAE;gBACF,OAAA,IAAI,CAAC,iBAAiB,CAAC;oBACrB,MAAM,EAAE,MAAM,uBAAuB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;oBAC9D,WAAW,EAAE,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;iBAClE,CAAC,CAAA;cAAA;SACL;KACF,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,SAAS,aAkCrB"}
@@ -0,0 +1,157 @@
1
+ import { EvmBasedBlockchain } from '@tatumio/shared-core';
2
+ import { BroadcastFunction } from '@tatumio/shared-blockchain-abstract';
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<string>;
5
+ export declare const erc721: (args: {
6
+ blockchain: EvmBasedBlockchain;
7
+ broadcastFunction: BroadcastFunction;
8
+ }) => {
9
+ prepare: {
10
+ /**
11
+ * Prepare a signed Celo mint erc732 transaction with the private key locally. Nothing is broadcasted to the blockchain.
12
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
13
+ */
14
+ mintSignedTransaction: (body: ChainMintErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
15
+ /**
16
+ * Prepare a signed Celo mint cashback erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
17
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
18
+ */
19
+ mintCashbackSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
20
+ /**
21
+ * Prepare a signed Celo mint multiple cashback erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
22
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
23
+ */
24
+ mintMultipleCashbackSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
25
+ /**
26
+ * Prepare a signed Celo mint multiple erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
27
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
28
+ */
29
+ mintMultipleSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
30
+ /**
31
+ * Prepare a signed Celo burn erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
32
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
33
+ */
34
+ burnSignedTransaction: (body: ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
35
+ /**
36
+ * Prepare a signed Celo transfer erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
37
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
38
+ */
39
+ transferSignedTransaction: (body: ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
40
+ /**
41
+ * Prepare a signed Celo update cashback for author erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
42
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
43
+ */
44
+ updateCashbackForAuthorSignedTransaction: (body: ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
45
+ /**
46
+ * Prepare a signed Celo deploy erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
47
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
48
+ */
49
+ deploySignedTransaction: (body: ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
50
+ /**
51
+ * Prepare a signed Celo mint provenance erc732 transaction with the private key locally. Nothing is broadcasted to the blockchain.
52
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
53
+ */
54
+ mintProvenanceSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
55
+ /**
56
+ * Prepare a signed Celo mint multiple provenance cashback erc721 transaction with the private key locally. Nothing is broadcasted to the blockchain.
57
+ * @returns raw transaction data in hex, to be broadcasted to blockchain.
58
+ */
59
+ mintMultipleProvenanceSignedTransaction: (body: ChainMintMultipleNftCelo & {
60
+ fixedValues: string[][];
61
+ }, provider?: string, testnet?: boolean) => Promise<string>;
62
+ };
63
+ send: {
64
+ /**
65
+ * Send Celo mint erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
66
+ * This operation is irreversible.
67
+ * @param testnet mainnet or testnet version
68
+ * @param body content of the transaction to broadcast
69
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
70
+ * @returns transaction id of the transaction in the blockchain
71
+ */
72
+ mintSignedTransaction: (body: ChainMintErc721Celo, provider?: string, testnet?: boolean) => Promise<void>;
73
+ /**
74
+ * Send Celo mint cashback erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
75
+ * This operation is irreversible.
76
+ * @param testnet mainnet or testnet version
77
+ * @param body content of the transaction to broadcast
78
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
79
+ * @returns transaction id of the transaction in the blockchain
80
+ */
81
+ mintCashbackSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
82
+ /**
83
+ * Send Celo mint multiple cashback erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
84
+ * This operation is irreversible.
85
+ * @param testnet mainnet or testnet version
86
+ * @param body content of the transaction to broadcast
87
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
88
+ * @returns transaction id of the transaction in the blockchain
89
+ */
90
+ mintMultipleCashbackSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
91
+ /**
92
+ * Send Celo mint multiple erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
93
+ * This operation is irreversible.
94
+ * @param testnet mainnet or testnet version
95
+ * @param body content of the transaction to broadcast
96
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
97
+ * @returns transaction id of the transaction in the blockchain
98
+ */
99
+ mintMultipleSignedTransaction: (body: ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
100
+ /**
101
+ * Send Celo burn erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
102
+ * This operation is irreversible.
103
+ * @param testnet mainnet or testnet version
104
+ * @param body content of the transaction to broadcast
105
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
106
+ * @returns transaction id of the transaction in the blockchain
107
+ */
108
+ burnSignedTransaction: (body: ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
109
+ /**
110
+ * Send Celo transfer nft transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
111
+ * This operation is irreversible.
112
+ * @param testnet mainnet or testnet version
113
+ * @param body content of the transaction to broadcast
114
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
115
+ * @returns transaction id of the transaction in the blockchain
116
+ */
117
+ transferSignedTransaction: (body: ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
118
+ /**
119
+ * Send Celo update cashback for author erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
120
+ * This operation is irreversible.
121
+ * @param testnet mainnet or testnet version
122
+ * @param body content of the transaction to broadcast
123
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
124
+ * @returns transaction id of the transaction in the blockchain
125
+ */
126
+ updateCashbackForAuthorSignedTransaction: (body: ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
127
+ /**
128
+ * Send Celo deploy erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
129
+ * This operation is irreversible.
130
+ * @param testnet mainnet or testnet version
131
+ * @param body content of the transaction to broadcast
132
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
133
+ * @returns transaction id of the transaction in the blockchain
134
+ */
135
+ deploySignedTransaction: (body: ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
136
+ /**
137
+ * Send Celo mint provenance cashback erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
138
+ * This operation is irreversible.
139
+ * @param testnet mainnet or testnet version
140
+ * @param body content of the transaction to broadcast
141
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
142
+ * @returns transaction id of the transaction in the blockchain
143
+ */
144
+ mintProvenanceSignedTransaction: (body: ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
145
+ /**
146
+ * Send Celo mint multiple provenance erc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
147
+ * This operation is irreversible.
148
+ * @param testnet mainnet or testnet version
149
+ * @param body content of the transaction to broadcast
150
+ * @param provider url of the Celo Server to connect to. If not set, default public server will be used.
151
+ * @returns transaction id of the transaction in the blockchain
152
+ */
153
+ mintMultipleProvenanceSignedTransaction: (body: ChainMintMultipleNftCelo & {
154
+ fixedValues: string[][];
155
+ }, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
156
+ };
157
+ };