@tatumio/celo 2.0.1-alpha.230 → 2.0.1-alpha.231
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 -8
- package/src/lib/celo.sdk.d.ts +63 -2
- package/src/lib/celo.sdk.js +1 -1
- package/src/lib/celo.sdk.js.map +1 -1
- package/src/lib/services/celo.tx.d.ts +62 -3
- package/src/lib/services/celo.tx.js +6 -1
- package/src/lib/services/celo.tx.js.map +1 -1
- package/src/lib/transactions/erc721/index.d.ts +157 -0
- package/src/lib/transactions/erc721/index.js +600 -0
- package/src/lib/transactions/erc721/index.js.map +1 -0
- package/src/lib/transactions/index.d.ts +2 -0
- package/src/lib/transactions/index.js +6 -0
- package/src/lib/transactions/index.js.map +1 -0
- package/src/lib/transactions/multitoken/index.d.ts +110 -0
- package/src/lib/transactions/multitoken/index.js +387 -0
- package/src/lib/transactions/multitoken/index.js.map +1 -0
- package/src/lib/utils/celo.utils.d.ts +52 -0
- package/src/lib/utils/celo.utils.js +49 -0
- package/src/lib/utils/celo.utils.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/celo",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.231",
|
|
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/shared-blockchain-abstract": "2.0.1-alpha.
|
|
10
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
|
8
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.231",
|
|
9
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.231",
|
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.231",
|
|
11
11
|
"axios": "^0.24.0",
|
|
12
12
|
"form-data": "^4.0.0",
|
|
13
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
13
|
+
"@tatumio/shared-core": "2.0.1-alpha.231",
|
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.231",
|
|
15
15
|
"bignumber.js": "^9.0.2",
|
|
16
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.
|
|
16
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.231",
|
|
17
17
|
"ethereumjs-wallet": "^1.0.2",
|
|
18
18
|
"bip39": "^3.0.2",
|
|
19
19
|
"web3": "^1.7.0",
|
|
20
|
-
"web3-core": "^1.7.0"
|
|
20
|
+
"web3-core": "^1.7.0",
|
|
21
|
+
"@harmony-js/crypto": "^0.1.56",
|
|
22
|
+
"@celo-tools/celo-ethers-wrapper": "^0.1.0"
|
|
21
23
|
},
|
|
22
24
|
"peerDependencies": {}
|
|
23
25
|
}
|
package/src/lib/celo.sdk.d.ts
CHANGED
|
@@ -9,7 +9,68 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
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
|
+
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
|
+
};
|
|
13
74
|
httpDriver: (request: Web3Request) => Promise<Web3Response>;
|
|
14
75
|
blockchain: {
|
|
15
76
|
broadcast: typeof BlockchainCeloService.celoBroadcast;
|
|
@@ -55,7 +116,7 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
55
116
|
};
|
|
56
117
|
storeTokenAddress: typeof import("@tatumio/api-client").OffChainBlockchainService.storeTokenAddress;
|
|
57
118
|
};
|
|
58
|
-
getExchangeRate(basePair?: import("@tatumio/
|
|
119
|
+
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
|
59
120
|
storage: {
|
|
60
121
|
upload: typeof import("@tatumio/api-client").StorageIpfsService.storeIpfs;
|
|
61
122
|
get: typeof import("@tatumio/api-client").StorageIpfsService.getIpfsData;
|
package/src/lib/celo.sdk.js
CHANGED
|
@@ -12,7 +12,7 @@ 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
|
|
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 }), httpDriver: (request) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
16
16
|
return api.celoWeb3Driver(args.apiKey, Object.assign(Object.assign({}, request), { jsonrpc: '2.0' }));
|
|
17
17
|
}), blockchain: {
|
|
18
18
|
broadcast: api_client_1.BlockchainCeloService.celoBroadcast,
|
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,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,
|
|
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,CAAC,EAC1C,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,6 +1,65 @@
|
|
|
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
|
-
|
|
6
|
-
|
|
4
|
+
}) => {
|
|
5
|
+
erc721: {
|
|
6
|
+
prepare: {
|
|
7
|
+
mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
|
|
8
|
+
signatureId?: string;
|
|
9
|
+
chain: "CELO";
|
|
10
|
+
}, provider?: string, testnet?: boolean) => Promise<string>;
|
|
11
|
+
mintCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
12
|
+
mintMultipleCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
13
|
+
mintMultipleSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
14
|
+
burnSignedTransaction: (body: import("../utils/celo.utils").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
15
|
+
transferSignedTransaction: (body: import("../utils/celo.utils").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
16
|
+
updateCashbackForAuthorSignedTransaction: (body: import("../utils/celo.utils").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
17
|
+
deploySignedTransaction: (body: import("../utils/celo.utils").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
18
|
+
mintProvenanceSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
19
|
+
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
20
|
+
erc20?: string;
|
|
21
|
+
} & {
|
|
22
|
+
fixedValues: string[][];
|
|
23
|
+
}, provider?: string, testnet?: boolean) => Promise<string>;
|
|
24
|
+
};
|
|
25
|
+
send: {
|
|
26
|
+
mintSignedTransaction: (body: import("@tatumio/api-client").MintNftCelo & {
|
|
27
|
+
signatureId?: string;
|
|
28
|
+
chain: "CELO";
|
|
29
|
+
}, provider?: string, testnet?: boolean) => Promise<void>;
|
|
30
|
+
mintCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
31
|
+
mintMultipleCashbackSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
32
|
+
mintMultipleSignedTransaction: (body: import("../utils/celo.utils").ChainMintMultipleNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
33
|
+
burnSignedTransaction: (body: import("../utils/celo.utils").ChainBurnErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
34
|
+
transferSignedTransaction: (body: import("../utils/celo.utils").ChainTransferErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
35
|
+
updateCashbackForAuthorSignedTransaction: (body: import("../utils/celo.utils").ChainUpdateCashbackErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
36
|
+
deploySignedTransaction: (body: import("../utils/celo.utils").ChainDeployErc721Celo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
37
|
+
mintProvenanceSignedTransaction: (body: import("../utils/celo.utils").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
38
|
+
mintMultipleProvenanceSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftCelo, "fromPrivateKey">> & {
|
|
39
|
+
erc20?: string;
|
|
40
|
+
} & {
|
|
41
|
+
fixedValues: string[][];
|
|
42
|
+
}, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
multiToken: {
|
|
46
|
+
prepare: {
|
|
47
|
+
mintMultiTokenTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
48
|
+
mintMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
49
|
+
transferMultiTokenTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
50
|
+
transferMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
51
|
+
burnMultiTokenTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
52
|
+
burnMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
53
|
+
deployMultiTokenTransaction: (body: import("../utils/celo.utils").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<string>;
|
|
54
|
+
};
|
|
55
|
+
send: {
|
|
56
|
+
mintMultiTokenTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
57
|
+
mintMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainMintMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
58
|
+
transferMultiTokenTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
59
|
+
transferMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainTransferMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
60
|
+
burnMultiTokenTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
61
|
+
burnMultiTokenBatchTransaction: (body: import("../utils/celo.utils").ChainBurnMultiTokenBatchCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
62
|
+
deployMultiTokenTransaction: (body: import("../utils/celo.utils").ChainDeployMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHashKMS>;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -1,8 +1,13 @@
|
|
|
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");
|
|
4
6
|
const celoTxService = (args) => {
|
|
5
|
-
return {
|
|
7
|
+
return {
|
|
8
|
+
erc721: Object.assign({}, (0, transactions_1.erc721)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.BlockchainCeloService.celoBroadcast }))),
|
|
9
|
+
multiToken: Object.assign({}, (0, transactions_1.multiToken)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.BlockchainCeloService.celoBroadcast }))),
|
|
10
|
+
};
|
|
6
11
|
};
|
|
7
12
|
exports.celoTxService = celoTxService;
|
|
8
13
|
//# 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":";;;
|
|
1
|
+
{"version":3,"file":"celo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.tx.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAE3D,kDAAoD;AAE7C,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,UAAU,oBACL,IAAA,yBAAU,kCACR,IAAI,KACP,iBAAiB,EAAE,kCAAqB,CAAC,aAAa,IACtD,CACH;KACF,CAAA;AACH,CAAC,CAAA;AAfY,QAAA,aAAa,iBAezB"}
|
|
@@ -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
|
+
};
|