@tatumio/celo 2.0.1-alpha.272 → 2.0.1-alpha.273
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 +7 -7
- package/src/index.d.ts +3 -0
- package/src/index.js +3 -0
- package/src/index.js.map +1 -1
- package/src/lib/celo.sdk.d.ts +48 -32
- package/src/lib/celo.sdk.js +1 -4
- package/src/lib/celo.sdk.js.map +1 -1
- package/src/lib/services/celo.tx.d.ts +60 -32
- package/src/lib/services/celo.tx.js +2 -0
- package/src/lib/services/celo.tx.js.map +1 -1
- package/src/lib/services/celo.web3.d.ts +1 -0
- package/src/lib/services/celo.web3.js +2 -1
- package/src/lib/services/celo.web3.js.map +1 -1
- package/src/lib/transactions/erc20/index.d.ts +66 -0
- package/src/lib/transactions/erc20/index.js +229 -0
- package/src/lib/transactions/erc20/index.js.map +1 -0
- package/src/lib/transactions/index.d.ts +2 -0
- package/src/lib/transactions/index.js +2 -0
- package/src/lib/transactions/index.js.map +1 -1
- package/src/lib/transactions/native/index.d.ts +35 -2
- package/src/lib/transactions/native/index.js +127 -0
- package/src/lib/transactions/native/index.js.map +1 -1
- package/src/lib/transactions/smartContract/index.d.ts +38 -0
- package/src/lib/transactions/smartContract/index.js +97 -0
- package/src/lib/transactions/smartContract/index.js.map +1 -0
- package/src/lib/utils/celo.utils.d.ts +25 -13
- package/src/lib/utils/celo.utils.js +3 -10
- package/src/lib/utils/celo.utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/celo",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.273",
|
|
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.273",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.273",
|
|
10
10
|
"axios": "^0.26.0",
|
|
11
11
|
"form-data": "^4.0.0",
|
|
12
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
13
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
12
|
+
"@tatumio/shared-core": "2.0.1-alpha.273",
|
|
13
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.273",
|
|
14
14
|
"bignumber.js": "^9.0.2",
|
|
15
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.
|
|
16
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
|
15
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.273",
|
|
16
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.273",
|
|
17
17
|
"ethereumjs-wallet": "^1.0.2",
|
|
18
18
|
"bip39": "^3.0.2",
|
|
19
19
|
"web3": "^1.7.4",
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
(0, tslib_1.__exportStar)(require("./lib/celo.sdk"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./lib/services/celo.tx"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./lib/services/celo.web3"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./lib/utils/celo.utils"), exports);
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/celo/src/index.ts"],"names":[],"mappings":";;;AAAA,8DAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/celo/src/index.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAC9B,sEAAsC;AACtC,wEAAwC;AACxC,sEAAsC"}
|
package/src/lib/celo.sdk.d.ts
CHANGED
|
@@ -11,15 +11,31 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
11
11
|
};
|
|
12
12
|
transaction: {
|
|
13
13
|
prepare: {
|
|
14
|
-
transferSignedTransaction: (body: import("
|
|
14
|
+
transferSignedTransaction: (body: import("..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<string>;
|
|
15
|
+
storeDataTransaction: (body: import("..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
16
|
+
celoOrCUsdSignedTransaction: (body: import("..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<string>;
|
|
15
17
|
};
|
|
16
18
|
send: {
|
|
17
|
-
transferSignedTransaction: (body: import("
|
|
19
|
+
transferSignedTransaction: (body: import("..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
20
|
+
storeDataTransaction: (body: import("..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
21
|
+
celoOrCUsdSignedTransaction: (body: import("..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
18
22
|
};
|
|
19
23
|
};
|
|
20
24
|
erc20: {
|
|
21
25
|
getErc20TransactionByAddress: typeof FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress;
|
|
22
26
|
getErc20AccountBalance: typeof FungibleTokensErc20OrCompatibleService.erc20GetBalance;
|
|
27
|
+
prepare: {
|
|
28
|
+
deploySignedTransaction: (body: import("..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
29
|
+
mintSignedTransaction: (body: import("..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
30
|
+
transferSignedTransaction: (body: import("..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
31
|
+
burnSignedTransaction: (body: import("..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
32
|
+
};
|
|
33
|
+
send: {
|
|
34
|
+
deploySignedTransaction: (body: import("..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
35
|
+
mintSignedTransaction: (body: import("..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
36
|
+
transferSignedTransaction: (body: import("..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
37
|
+
burnSignedTransaction: (body: import("..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
38
|
+
};
|
|
23
39
|
};
|
|
24
40
|
nft: {
|
|
25
41
|
deployNFTSmartContract: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftDeployErc721;
|
|
@@ -47,14 +63,14 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
47
63
|
signatureId?: string;
|
|
48
64
|
chain: "CELO";
|
|
49
65
|
}, provider?: string, testnet?: boolean) => Promise<string>;
|
|
50
|
-
mintCashbackSignedTransaction: (body: import("
|
|
51
|
-
mintMultipleCashbackSignedTransaction: (body: import("
|
|
52
|
-
mintMultipleSignedTransaction: (body: import("
|
|
53
|
-
burnSignedTransaction: (body: import("
|
|
54
|
-
transferSignedTransaction: (body: import("
|
|
55
|
-
updateCashbackForAuthorSignedTransaction: (body: import("
|
|
56
|
-
deploySignedTransaction: (body: import("
|
|
57
|
-
mintProvenanceSignedTransaction: (body: import("
|
|
66
|
+
mintCashbackSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
67
|
+
mintMultipleCashbackSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
68
|
+
mintMultipleSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
69
|
+
burnSignedTransaction: (body: import("..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
70
|
+
transferSignedTransaction: (body: import("..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
71
|
+
updateCashbackForAuthorSignedTransaction: (body: import("..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
72
|
+
deploySignedTransaction: (body: import("..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
73
|
+
mintProvenanceSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
58
74
|
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
59
75
|
erc20?: string;
|
|
60
76
|
} & {
|
|
@@ -66,14 +82,14 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
66
82
|
signatureId?: string;
|
|
67
83
|
chain: "CELO";
|
|
68
84
|
}, provider?: string, testnet?: boolean) => Promise<void>;
|
|
69
|
-
mintCashbackSignedTransaction: (body: import("
|
|
70
|
-
mintMultipleCashbackSignedTransaction: (body: import("
|
|
71
|
-
mintMultipleSignedTransaction: (body: import("
|
|
72
|
-
burnSignedTransaction: (body: import("
|
|
73
|
-
transferSignedTransaction: (body: import("
|
|
74
|
-
updateCashbackForAuthorSignedTransaction: (body: import("
|
|
75
|
-
deploySignedTransaction: (body: import("
|
|
76
|
-
mintProvenanceSignedTransaction: (body: import("
|
|
85
|
+
mintCashbackSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
86
|
+
mintMultipleCashbackSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
87
|
+
mintMultipleSignedTransaction: (body: import("..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
88
|
+
burnSignedTransaction: (body: import("..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
89
|
+
transferSignedTransaction: (body: import("..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
90
|
+
updateCashbackForAuthorSignedTransaction: (body: import("..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
91
|
+
deploySignedTransaction: (body: import("..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
92
|
+
mintProvenanceSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
77
93
|
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
78
94
|
erc20?: string;
|
|
79
95
|
} & {
|
|
@@ -83,22 +99,22 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
83
99
|
};
|
|
84
100
|
multiToken: {
|
|
85
101
|
prepare: {
|
|
86
|
-
mintMultiTokenTransaction: (body: import("
|
|
87
|
-
mintMultiTokenBatchTransaction: (body: import("
|
|
88
|
-
transferMultiTokenTransaction: (body: import("
|
|
89
|
-
transferMultiTokenBatchTransaction: (body: import("
|
|
90
|
-
burnMultiTokenTransaction: (body: import("
|
|
91
|
-
burnMultiTokenBatchTransaction: (body: import("
|
|
92
|
-
deployMultiTokenTransaction: (body: import("
|
|
102
|
+
mintMultiTokenTransaction: (body: import("..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
103
|
+
mintMultiTokenBatchTransaction: (body: import("..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
104
|
+
transferMultiTokenTransaction: (body: import("..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
105
|
+
transferMultiTokenBatchTransaction: (body: import("..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
106
|
+
burnMultiTokenTransaction: (body: import("..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
107
|
+
burnMultiTokenBatchTransaction: (body: import("..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
108
|
+
deployMultiTokenTransaction: (body: import("..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
93
109
|
};
|
|
94
110
|
send: {
|
|
95
|
-
mintMultiTokenTransaction: (body: import("
|
|
96
|
-
mintMultiTokenBatchTransaction: (body: import("
|
|
97
|
-
transferMultiTokenTransaction: (body: import("
|
|
98
|
-
transferMultiTokenBatchTransaction: (body: import("
|
|
99
|
-
burnMultiTokenTransaction: (body: import("
|
|
100
|
-
burnMultiTokenBatchTransaction: (body: import("
|
|
101
|
-
deployMultiTokenTransaction: (body: import("
|
|
111
|
+
mintMultiTokenTransaction: (body: import("..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
112
|
+
mintMultiTokenBatchTransaction: (body: import("..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
113
|
+
transferMultiTokenTransaction: (body: import("..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
114
|
+
transferMultiTokenBatchTransaction: (body: import("..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
115
|
+
burnMultiTokenTransaction: (body: import("..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
116
|
+
burnMultiTokenBatchTransaction: (body: import("..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
117
|
+
deployMultiTokenTransaction: (body: import("..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
102
118
|
};
|
|
103
119
|
};
|
|
104
120
|
custodial: {
|
package/src/lib/celo.sdk.js
CHANGED
|
@@ -15,10 +15,7 @@ const TatumCeloSDK = (args) => {
|
|
|
15
15
|
const api = api_client_1.CeloService;
|
|
16
16
|
const txService = (0, celo_tx_1.celoTxService)({ blockchain, web3 });
|
|
17
17
|
const _a = (0, shared_blockchain_evm_based_1.evmBasedSdk)(Object.assign(Object.assign({}, args), { blockchain, web3 })), { nft } = _a, evmSdk = (0, tslib_1.__rest)(_a, ["nft"]);
|
|
18
|
-
return Object.assign(Object.assign({}, evmSdk), { api, kms: (0, celo_kms_1.celoKmsService)({ blockchain, web3 }), transaction: txService.native, erc20: {
|
|
19
|
-
getErc20TransactionByAddress: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress,
|
|
20
|
-
getErc20AccountBalance: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalance,
|
|
21
|
-
}, nft: Object.assign(Object.assign({}, txService.erc721), nft), multiToken: txService.multiToken, custodial: txService.custodial, marketplace: {
|
|
18
|
+
return Object.assign(Object.assign({}, evmSdk), { api, kms: (0, celo_kms_1.celoKmsService)({ blockchain, web3 }), transaction: txService.native, erc20: Object.assign(Object.assign({}, txService.erc20), { getErc20TransactionByAddress: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress, getErc20AccountBalance: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalance }), nft: Object.assign(Object.assign({}, txService.erc721), nft), multiToken: txService.multiToken, custodial: txService.custodial, marketplace: {
|
|
22
19
|
auction: (0, celo_auction_1.celoAuctionService)({ blockchain, web3 }),
|
|
23
20
|
}, httpDriver: (request) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
24
21
|
return api.celoWeb3Driver(args.apiKey, Object.assign(Object.assign({}, request), { jsonrpc: '2.0' }));
|
package/src/lib/celo.sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"celo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/celo/src/lib/celo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAA4E;AAE5E,oDAAyF;AACzF,oDAA+C;AAC/C,sFAAkE;AAClE,kDAAoD;AACpD,gDAAkD;AAClD,0DAA4D;AAE5D,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,wBAAW,CAAA;IACvB,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;IACrD,MAAM,KAAqB,IAAA,yCAAW,kCAAM,IAAI,KAAE,UAAU,EAAE,IAAI,IAAG,EAA/D,EAAE,GAAG,OAA0D,EAArD,MAAM,2BAAhB,OAAkB,CAA6C,CAAA;IAErE,uCACK,MAAM,KACT,GAAG,EACH,GAAG,EAAE,IAAA,yBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACzC,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,KAAK,
|
|
1
|
+
{"version":3,"file":"celo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/celo/src/lib/celo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAA4E;AAE5E,oDAAyF;AACzF,oDAA+C;AAC/C,sFAAkE;AAClE,kDAAoD;AACpD,gDAAkD;AAClD,0DAA4D;AAE5D,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,wBAAW,CAAA;IACvB,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;IACrD,MAAM,KAAqB,IAAA,yCAAW,kCAAM,IAAI,KAAE,UAAU,EAAE,IAAI,IAAG,EAA/D,EAAE,GAAG,OAA0D,EAArD,MAAM,2BAAhB,OAAkB,CAA6C,CAAA;IAErE,uCACK,MAAM,KACT,GAAG,EACH,GAAG,EAAE,IAAA,yBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACzC,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,KAAK,kCACA,SAAS,CAAC,KAAK,KAClB,4BAA4B,EAAE,mDAAsC,CAAC,4BAA4B,EACjG,sBAAsB,EAAE,mDAAsC,CAAC,eAAe,KAEhF,GAAG,kCACE,SAAS,CAAC,MAAM,GAChB,GAAG,GAER,UAAU,EAAE,SAAS,CAAC,UAAU,EAChC,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,WAAW,EAAE;YACX,OAAO,EAAE,IAAA,iCAAkB,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;SAClD,EACD,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,wBAAW,CAAC,aAAa;YACpC,oBAAoB,EAAE,wBAAW,CAAC,uBAAuB;YACzD,eAAe,EAAE,wBAAW,CAAC,mBAAmB;YAChD,QAAQ,EAAE,wBAAW,CAAC,YAAY;YAClC,2BAA2B,EAAE,wBAAW,CAAC,cAAc;YACvD,GAAG,EAAE,wBAAW,CAAC,kBAAkB;YACnC,sBAAsB,EAAE,wBAAW,CAAC,2BAA2B;SAChE,IACF;AACH,CAAC,CAAA;AAtCY,QAAA,YAAY,gBAsCxB"}
|
|
@@ -6,10 +6,14 @@ export declare const celoTxService: (args: {
|
|
|
6
6
|
}) => {
|
|
7
7
|
native: {
|
|
8
8
|
prepare: {
|
|
9
|
-
transferSignedTransaction: (body: import("
|
|
9
|
+
transferSignedTransaction: (body: import("../..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<string>;
|
|
10
|
+
storeDataTransaction: (body: import("../..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
11
|
+
celoOrCUsdSignedTransaction: (body: import("../..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<string>;
|
|
10
12
|
};
|
|
11
13
|
send: {
|
|
12
|
-
transferSignedTransaction: (body: import("
|
|
14
|
+
transferSignedTransaction: (body: import("../..").ChainTransferCeloBlockchain, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
15
|
+
storeDataTransaction: (body: import("../..").ChainStoreDataCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
16
|
+
celoOrCUsdSignedTransaction: (body: import("../..").ChainTransferCeloOrCUsd, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
13
17
|
};
|
|
14
18
|
};
|
|
15
19
|
erc721: {
|
|
@@ -18,14 +22,14 @@ export declare const celoTxService: (args: {
|
|
|
18
22
|
signatureId?: string;
|
|
19
23
|
chain: "CELO";
|
|
20
24
|
}, provider?: string, testnet?: boolean) => Promise<string>;
|
|
21
|
-
mintCashbackSignedTransaction: (body: import("
|
|
22
|
-
mintMultipleCashbackSignedTransaction: (body: import("
|
|
23
|
-
mintMultipleSignedTransaction: (body: import("
|
|
24
|
-
burnSignedTransaction: (body: import("
|
|
25
|
-
transferSignedTransaction: (body: import("
|
|
26
|
-
updateCashbackForAuthorSignedTransaction: (body: import("
|
|
27
|
-
deploySignedTransaction: (body: import("
|
|
28
|
-
mintProvenanceSignedTransaction: (body: import("
|
|
25
|
+
mintCashbackSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
26
|
+
mintMultipleCashbackSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
27
|
+
mintMultipleSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
28
|
+
burnSignedTransaction: (body: import("../..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
29
|
+
transferSignedTransaction: (body: import("../..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
30
|
+
updateCashbackForAuthorSignedTransaction: (body: import("../..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
31
|
+
deploySignedTransaction: (body: import("../..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
32
|
+
mintProvenanceSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
29
33
|
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
30
34
|
erc20?: string;
|
|
31
35
|
} & {
|
|
@@ -37,14 +41,14 @@ export declare const celoTxService: (args: {
|
|
|
37
41
|
signatureId?: string;
|
|
38
42
|
chain: "CELO";
|
|
39
43
|
}, provider?: string, testnet?: boolean) => Promise<void>;
|
|
40
|
-
mintCashbackSignedTransaction: (body: import("
|
|
41
|
-
mintMultipleCashbackSignedTransaction: (body: import("
|
|
42
|
-
mintMultipleSignedTransaction: (body: import("
|
|
43
|
-
burnSignedTransaction: (body: import("
|
|
44
|
-
transferSignedTransaction: (body: import("
|
|
45
|
-
updateCashbackForAuthorSignedTransaction: (body: import("
|
|
46
|
-
deploySignedTransaction: (body: import("
|
|
47
|
-
mintProvenanceSignedTransaction: (body: import("
|
|
44
|
+
mintCashbackSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
45
|
+
mintMultipleCashbackSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
46
|
+
mintMultipleSignedTransaction: (body: import("../..").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
47
|
+
burnSignedTransaction: (body: import("../..").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
48
|
+
transferSignedTransaction: (body: import("../..").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
49
|
+
updateCashbackForAuthorSignedTransaction: (body: import("../..").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
50
|
+
deploySignedTransaction: (body: import("../..").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
51
|
+
mintProvenanceSignedTransaction: (body: import("../..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
48
52
|
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
49
53
|
erc20?: string;
|
|
50
54
|
} & {
|
|
@@ -54,22 +58,22 @@ export declare const celoTxService: (args: {
|
|
|
54
58
|
};
|
|
55
59
|
multiToken: {
|
|
56
60
|
prepare: {
|
|
57
|
-
mintMultiTokenTransaction: (body: import("
|
|
58
|
-
mintMultiTokenBatchTransaction: (body: import("
|
|
59
|
-
transferMultiTokenTransaction: (body: import("
|
|
60
|
-
transferMultiTokenBatchTransaction: (body: import("
|
|
61
|
-
burnMultiTokenTransaction: (body: import("
|
|
62
|
-
burnMultiTokenBatchTransaction: (body: import("
|
|
63
|
-
deployMultiTokenTransaction: (body: import("
|
|
61
|
+
mintMultiTokenTransaction: (body: import("../..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
62
|
+
mintMultiTokenBatchTransaction: (body: import("../..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
63
|
+
transferMultiTokenTransaction: (body: import("../..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
64
|
+
transferMultiTokenBatchTransaction: (body: import("../..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
65
|
+
burnMultiTokenTransaction: (body: import("../..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
66
|
+
burnMultiTokenBatchTransaction: (body: import("../..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
67
|
+
deployMultiTokenTransaction: (body: import("../..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
64
68
|
};
|
|
65
69
|
send: {
|
|
66
|
-
mintMultiTokenTransaction: (body: import("
|
|
67
|
-
mintMultiTokenBatchTransaction: (body: import("
|
|
68
|
-
transferMultiTokenTransaction: (body: import("
|
|
69
|
-
transferMultiTokenBatchTransaction: (body: import("
|
|
70
|
-
burnMultiTokenTransaction: (body: import("
|
|
71
|
-
burnMultiTokenBatchTransaction: (body: import("
|
|
72
|
-
deployMultiTokenTransaction: (body: import("
|
|
70
|
+
mintMultiTokenTransaction: (body: import("../..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
71
|
+
mintMultiTokenBatchTransaction: (body: import("../..").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
72
|
+
transferMultiTokenTransaction: (body: import("../..").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
73
|
+
transferMultiTokenBatchTransaction: (body: import("../..").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
74
|
+
burnMultiTokenTransaction: (body: import("../..").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
75
|
+
burnMultiTokenBatchTransaction: (body: import("../..").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
76
|
+
deployMultiTokenTransaction: (body: import("../..").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
73
77
|
};
|
|
74
78
|
};
|
|
75
79
|
custodial: {
|
|
@@ -86,4 +90,28 @@ export declare const celoTxService: (args: {
|
|
|
86
90
|
custodialWalletBatch: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainGenerateCustodialWalletBatch, testnet?: boolean, provider?: string) => Promise<string | import("@tatumio/api-client").TransactionHashKMS>;
|
|
87
91
|
};
|
|
88
92
|
};
|
|
93
|
+
erc20: {
|
|
94
|
+
prepare: {
|
|
95
|
+
deploySignedTransaction: (body: import("../..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
96
|
+
mintSignedTransaction: (body: import("../..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
97
|
+
transferSignedTransaction: (body: import("../..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
98
|
+
burnSignedTransaction: (body: import("../..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
99
|
+
};
|
|
100
|
+
send: {
|
|
101
|
+
deploySignedTransaction: (body: import("../..").ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
102
|
+
mintSignedTransaction: (body: import("../..").ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
103
|
+
transferSignedTransaction: (body: import("../..").ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
104
|
+
burnSignedTransaction: (body: import("../..").ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
smartContract: {
|
|
108
|
+
prepare: {
|
|
109
|
+
smartContractWriteMethodInvocation: (body: import("../..").SmartContractWriteMethodInvocationCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
110
|
+
smartContractReadMethodInvocation: (body: import("../..").SmartContractWriteMethodInvocationCelo, provider?: string) => Promise<string>;
|
|
111
|
+
};
|
|
112
|
+
send: {
|
|
113
|
+
smartContractWriteMethodInvocation: (body: import("../..").SmartContractWriteMethodInvocationCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
114
|
+
smartContractReadMethodInvocation: (body: import("../..").SmartContractWriteMethodInvocationCelo, provider?: string) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
89
117
|
};
|
|
@@ -10,6 +10,8 @@ const celoTxService = (args) => {
|
|
|
10
10
|
erc721: Object.assign({}, (0, transactions_1.erc721)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.CeloService.celoBroadcast }))),
|
|
11
11
|
multiToken: Object.assign({}, (0, transactions_1.multiToken)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.CeloService.celoBroadcast }))),
|
|
12
12
|
custodial: Object.assign({}, (0, shared_blockchain_evm_based_1.custodial)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.CeloService.celoBroadcast }))),
|
|
13
|
+
erc20: Object.assign({}, (0, transactions_1.erc20)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.CeloService.celoBroadcast }))),
|
|
14
|
+
smartContract: Object.assign({}, (0, transactions_1.smartContract)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.CeloService.celoBroadcast }))),
|
|
13
15
|
};
|
|
14
16
|
};
|
|
15
17
|
exports.celoTxService = celoTxService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"celo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.tx.ts"],"names":[],"mappings":";;;AAAA,oDAAiD;AAEjD,sFAAmG;AACnG,
|
|
1
|
+
{"version":3,"file":"celo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.tx.ts"],"names":[],"mappings":";;;AAAA,oDAAiD;AAEjD,sFAAmG;AACnG,kDAAkF;AAE3E,MAAM,aAAa,GAAG,CAAC,IAA4D,EAAE,EAAE;IAC5F,OAAO;QACL,MAAM,oBACD,IAAA,qBAAM,kCACJ,IAAI,KACP,iBAAiB,EAAE,wBAAW,CAAC,aAAa,IAC5C,CACH;QACD,MAAM,oBACD,IAAA,qBAAM,kCACJ,IAAI,KACP,iBAAiB,EAAE,wBAAW,CAAC,aAAa,IAC5C,CACH;QACD,UAAU,oBACL,IAAA,yBAAU,kCACR,IAAI,KACP,iBAAiB,EAAE,wBAAW,CAAC,aAAa,IAC5C,CACH;QACD,SAAS,oBACJ,IAAA,uCAAiB,kCACf,IAAI,KACP,iBAAiB,EAAE,wBAAW,CAAC,aAAa,IAC5C,CACH;QACD,KAAK,oBACA,IAAA,oBAAK,kCACH,IAAI,KACP,iBAAiB,EAAE,wBAAW,CAAC,aAAa,IAC5C,CACH;QACD,aAAa,oBACR,IAAA,4BAAa,kCACX,IAAI,KACP,iBAAiB,EAAE,wBAAW,CAAC,aAAa,IAC5C,CACH;KACF,CAAA;AACH,CAAC,CAAA;AAvCY,QAAA,aAAa,iBAuCzB"}
|
|
@@ -2,6 +2,7 @@ import Web3 from 'web3';
|
|
|
2
2
|
import { EvmBasedBlockchain } from '@tatumio/shared-core';
|
|
3
3
|
export declare const celoWeb3: (args: {
|
|
4
4
|
blockchain: EvmBasedBlockchain;
|
|
5
|
+
client?: Web3;
|
|
5
6
|
}) => {
|
|
6
7
|
getClient(provider?: string, fromPrivateKey?: string): Web3;
|
|
7
8
|
getGasPriceInWei(): Promise<string>;
|
|
@@ -8,7 +8,8 @@ const shared_core_1 = require("@tatumio/shared-core");
|
|
|
8
8
|
const celoWeb3 = (args) => {
|
|
9
9
|
const evmBasedWeb3Result = (0, shared_blockchain_evm_based_1.evmBasedWeb3)(args);
|
|
10
10
|
return Object.assign(Object.assign({}, evmBasedWeb3Result), { getClient(provider, fromPrivateKey) {
|
|
11
|
-
|
|
11
|
+
var _a;
|
|
12
|
+
const web3 = (_a = args.client) !== null && _a !== void 0 ? _a : evmBasedWeb3Result.getClient(provider);
|
|
12
13
|
if (fromPrivateKey) {
|
|
13
14
|
web3.eth.accounts.wallet.add(fromPrivateKey);
|
|
14
15
|
web3.eth.defaultAccount = web3.eth.accounts.wallet[0].address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"celo.web3.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.web3.ts"],"names":[],"mappings":";;;;AAAA,sFAAmE;AACnE,6DAAuB;AACvB,sDAAsF;AAE/E,MAAM,QAAQ,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"celo.web3.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.web3.ts"],"names":[],"mappings":";;;;AAAA,sFAAmE;AACnE,6DAAuB;AACvB,sDAAsF;AAE/E,MAAM,QAAQ,GAAG,CAAC,IAAuD,EAAE,EAAE;IAClF,MAAM,kBAAkB,GAAG,IAAA,0CAAY,EAAC,IAAI,CAAC,CAAA;IAE7C,uCACK,kBAAkB,KACrB,SAAS,CAAC,QAAiB,EAAE,cAAuB;;YAClD,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,kBAAkB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;YAElE,IAAI,cAAc,EAAE;gBAClB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;gBAC5C,IAAI,CAAC,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;aAC9D;YAED,OAAO,IAAI,CAAA;QACb,CAAC;QACK,gBAAgB;;;gBACpB,IAAI,aAAa,GAAG,6BAAe,CAAC,eAAe,CAAA;gBACnD,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA,CAAC,QAAQ;gBAC1E,IAAI,gBAAgB,EAAE;oBACpB,aAAa,GAAG,GAAG,aAAa,WAAW,gBAAgB,EAAE,CAAA;iBAC9D;gBAED,MAAM,IAAI,GAAG,CAAC,MAAM,wBAAU,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAA;gBACvD,MAAM,QAAQ,GAAG,MAAA,IAAI,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAA;gBAEnC,OAAO,cAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAA;;SAC5D,IACF;AACH,CAAC,CAAA;AA5BY,QAAA,QAAQ,YA4BpB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BroadcastFunction } from '@tatumio/shared-blockchain-abstract';
|
|
2
|
+
import { ChainBurnErc20Celo, ChainDeployErc20Celo, ChainMintErc20Celo, ChainTransferErc20Celo } from '../../utils/celo.utils';
|
|
3
|
+
export declare const erc20: (args: {
|
|
4
|
+
broadcastFunction: BroadcastFunction;
|
|
5
|
+
}) => {
|
|
6
|
+
prepare: {
|
|
7
|
+
/**
|
|
8
|
+
* Prepare a signed Celo deploy erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
9
|
+
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
10
|
+
*/
|
|
11
|
+
deploySignedTransaction: (body: ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Prepare a signed Celo mint erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
14
|
+
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
15
|
+
*/
|
|
16
|
+
mintSignedTransaction: (body: ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Prepare a signed Celo transfer erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
19
|
+
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
20
|
+
*/
|
|
21
|
+
transferSignedTransaction: (body: ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Prepare a signed Celo burn erc20 transaction with the private key locally. Nothing is broadcasted to the blockchain.
|
|
24
|
+
* @returns raw transaction data in hex, to be broadcasted to blockchain.
|
|
25
|
+
*/
|
|
26
|
+
burnSignedTransaction: (body: ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
27
|
+
};
|
|
28
|
+
send: {
|
|
29
|
+
/**
|
|
30
|
+
* Send Celo or cUsd transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
|
|
31
|
+
* This operation is irreversible.
|
|
32
|
+
* @param testnet mainnet or testnet version
|
|
33
|
+
* @param body content of the transaction to broadcast
|
|
34
|
+
* @param provider url of the Celo Server to connect to. If not set, default public server will be used.
|
|
35
|
+
* @returns transaction id of the transaction in the blockchain
|
|
36
|
+
*/
|
|
37
|
+
deploySignedTransaction: (body: ChainDeployErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
38
|
+
/**
|
|
39
|
+
* Send Mint Celo or cUsd transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
|
|
40
|
+
* This operation is irreversible.
|
|
41
|
+
* @param testnet mainnet or testnet version
|
|
42
|
+
* @param body content of the transaction to broadcast
|
|
43
|
+
* @param provider url of the Celo Server to connect to. If not set, default public server will be used.
|
|
44
|
+
* @returns transaction id of the transaction in the blockchain
|
|
45
|
+
*/
|
|
46
|
+
mintSignedTransaction: (body: ChainMintErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
47
|
+
/**
|
|
48
|
+
* Send Celo or cUsd transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
|
|
49
|
+
* This operation is irreversible.
|
|
50
|
+
* @param testnet mainnet or testnet version
|
|
51
|
+
* @param body content of the transaction to broadcast
|
|
52
|
+
* @param provider url of the Celo Server to connect to. If not set, default public server will be used.
|
|
53
|
+
* @returns transaction id of the transaction in the blockchain
|
|
54
|
+
*/
|
|
55
|
+
transferSignedTransaction: (body: ChainTransferErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
56
|
+
/**
|
|
57
|
+
* Send Burn Celo or cUsd transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
|
|
58
|
+
* This operation is irreversible.
|
|
59
|
+
* @param testnet mainnet or testnet version
|
|
60
|
+
* @param body content of the transaction to broadcast
|
|
61
|
+
* @param provider url of the Celo Server to connect to. If not set, default public server will be used.
|
|
62
|
+
* @returns transaction id of the transaction in the blockchain
|
|
63
|
+
*/
|
|
64
|
+
burnSignedTransaction: (body: ChainBurnErc20Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
65
|
+
};
|
|
66
|
+
};
|