@taquito/contracts-library 22.0.0-beta.0 → 23.0.0-RC.0
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/dist/lib/rpc-wrapper.js
CHANGED
|
@@ -301,6 +301,11 @@ class RpcWrapperContractsLibrary {
|
|
|
301
301
|
return this.rpc.getProtocols({ block });
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
+
getProtocolActivations() {
|
|
305
|
+
return __awaiter(this, arguments, void 0, function* (protocol = '') {
|
|
306
|
+
return this.rpc.getProtocolActivations(protocol);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
304
309
|
getStorageUsedSpace(contract_1) {
|
|
305
310
|
return __awaiter(this, arguments, void 0, function* (contract, { block } = rpc_1.defaultRPCOptions) {
|
|
306
311
|
return this.rpc.getStorageUsedSpace(contract, { block });
|
|
@@ -66,7 +66,7 @@ class ContractsLibrary {
|
|
|
66
66
|
validateContractAddress(address) {
|
|
67
67
|
const addressValidation = (0, utils_1.validateAddress)(address);
|
|
68
68
|
if (addressValidation !== utils_1.ValidationResult.VALID) {
|
|
69
|
-
throw new core_1.InvalidAddressError(address,
|
|
69
|
+
throw new core_1.InvalidAddressError(address, addressValidation);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
validateContractScriptFormat(script, address) {
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "13639ef56845fbb7e93bcbd37d3f6d0457b0872b",
|
|
7
|
+
"version": "23.0.0-RC.0"
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateAddress, ValidationResult
|
|
1
|
+
import { validateAddress, ValidationResult } from '@taquito/utils';
|
|
2
2
|
import { ParameterValidationError, InvalidAddressError } from '@taquito/core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -191,7 +191,7 @@ class ContractsLibrary {
|
|
|
191
191
|
validateContractAddress(address) {
|
|
192
192
|
const addressValidation = validateAddress(address);
|
|
193
193
|
if (addressValidation !== ValidationResult.VALID) {
|
|
194
|
-
throw new InvalidAddressError(address,
|
|
194
|
+
throw new InvalidAddressError(address, addressValidation);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
validateContractScriptFormat(script, address) {
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
validateContractAddress(address) {
|
|
195
195
|
const addressValidation = utils.validateAddress(address);
|
|
196
196
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
197
|
-
throw new core.InvalidAddressError(address,
|
|
197
|
+
throw new core.InvalidAddressError(address, addressValidation);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
validateContractScriptFormat(script, address) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BigNumber } from 'bignumber.js';
|
|
2
|
-
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, MichelsonV1Expression, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RpcClientInterface, RPCOptions, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances,
|
|
2
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, MichelsonV1Expression, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RpcClientInterface, RPCOptions, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse } from '@taquito/rpc';
|
|
3
3
|
import { ContractsLibrary } from './taquito-contracts-library';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated RpcWrapperContractsLibrary has been deprecated in favor of ReadWrapperContractsLibrary
|
|
@@ -63,10 +63,11 @@ export declare class RpcWrapperContractsLibrary implements RpcClientInterface {
|
|
|
63
63
|
getSaplingDiffById(id: string, { block }?: RPCOptions): Promise<SaplingDiffResponse>;
|
|
64
64
|
getSaplingDiffByContract(contract: string, { block }?: RPCOptions): Promise<SaplingDiffResponse>;
|
|
65
65
|
getProtocols({ block }?: RPCOptions): Promise<ProtocolsResponse>;
|
|
66
|
+
getProtocolActivations(protocol?: string): Promise<ProtocolActivationsResponse>;
|
|
66
67
|
getStorageUsedSpace(contract: string, { block }?: RPCOptions): Promise<string>;
|
|
67
68
|
getStoragePaidSpace(contract: string, { block }?: RPCOptions): Promise<string>;
|
|
68
69
|
getTicketBalance(contract: string, ticket: TicketTokenParams, { block }?: RPCOptions): Promise<string>;
|
|
69
70
|
getAllTicketBalances(contract: string, { block }?: RPCOptions): Promise<AllTicketBalances>;
|
|
70
71
|
getAdaptiveIssuanceLaunchCycle({ block, }?: RPCOptions): Promise<AILaunchCycleResponse>;
|
|
71
|
-
getPendingOperations(args: PendingOperationsQueryArguments): Promise<
|
|
72
|
+
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
72
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/contracts-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-RC.0",
|
|
4
4
|
"description": "Can be used as an extension on the TezosToolkit to provide contracts data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos"
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@taquito/core": "^
|
|
71
|
-
"@taquito/rpc": "^
|
|
72
|
-
"@taquito/taquito": "^
|
|
73
|
-
"@taquito/utils": "^
|
|
70
|
+
"@taquito/core": "^23.0.0-RC.0",
|
|
71
|
+
"@taquito/rpc": "^23.0.0-RC.0",
|
|
72
|
+
"@taquito/taquito": "^23.0.0-RC.0",
|
|
73
|
+
"@taquito/utils": "^23.0.0-RC.0",
|
|
74
74
|
"bignumber.js": "^9.1.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"ts-toolbelt": "^9.6.0",
|
|
102
102
|
"typescript": "~5.5.4"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "3bdb33e97e705d1c7090dd83e1b243e6e2a4d768"
|
|
105
105
|
}
|