@taquito/taquito
Advanced tools
Comparing version 20.0.0-beta.0 to 20.0.0-beta.1
@@ -21,3 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TezosToolkit = exports.TaquitoLocalForger = exports.RpcReadAdapter = exports.ObservableSubscription = exports.PollingSubscribeProvider = exports.OperationBatch = exports.RpcForger = exports.CompositeForger = exports.UnitValue = exports.MichelsonMap = void 0; | ||
exports.TezosToolkit = exports.TaquitoLocalForger = exports.RpcReadAdapter = exports.ObservableSubscription = exports.PollingSubscribeProvider = exports.OperationBatch = exports.RpcForger = exports.CompositeForger = exports.UnitValue = exports.MichelsonMap = exports.Token = void 0; | ||
const rpc_1 = require("@taquito/rpc"); | ||
@@ -36,5 +36,7 @@ const context_1 = require("./context"); | ||
const rpc_injector_1 = require("./injector/rpc-injector"); | ||
var michelson_encoder_1 = require("@taquito/michelson-encoder"); | ||
Object.defineProperty(exports, "MichelsonMap", { enumerable: true, get: function () { return michelson_encoder_1.MichelsonMap; } }); | ||
Object.defineProperty(exports, "UnitValue", { enumerable: true, get: function () { return michelson_encoder_1.UnitValue; } }); | ||
const michelson_encoder_1 = require("@taquito/michelson-encoder"); | ||
var michelson_encoder_2 = require("@taquito/michelson-encoder"); | ||
Object.defineProperty(exports, "Token", { enumerable: true, get: function () { return michelson_encoder_2.Token; } }); | ||
Object.defineProperty(exports, "MichelsonMap", { enumerable: true, get: function () { return michelson_encoder_2.MichelsonMap; } }); | ||
Object.defineProperty(exports, "UnitValue", { enumerable: true, get: function () { return michelson_encoder_2.UnitValue; } }); | ||
__exportStar(require("./constants"), exports); | ||
@@ -317,2 +319,9 @@ __exportStar(require("./context"), exports); | ||
/** | ||
* @description Sets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects | ||
* @param strategy a value of type FieldNumberingStrategy that controls how field numbers are calculated | ||
*/ | ||
setFieldNumberingStrategy(strategy) { | ||
michelson_encoder_1.Token.fieldNumberingStrategy = strategy; | ||
} | ||
/** | ||
* @description Provide access to tezos account management | ||
@@ -319,0 +328,0 @@ */ |
@@ -6,4 +6,4 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "0ef631853ccfda5c5faed584f16069f34085817e", | ||
"version": "20.0.0-beta.0" | ||
"commitHash": "4c6e079465fdb978c1627dfdcced0435c9ef87fc", | ||
"version": "20.0.0-beta.1" | ||
}; |
@@ -24,5 +24,3 @@ "use strict"; | ||
/** | ||
* | ||
* @description Add a transaction operation to the batch | ||
* | ||
* @param params Transfer operation parameter | ||
@@ -39,5 +37,3 @@ */ | ||
/** | ||
* | ||
* @description Add a contract call to the batch | ||
* | ||
* @param params Call a contract method | ||
@@ -50,5 +46,3 @@ * @param options Generic operation parameters | ||
/** | ||
* | ||
* @description Add a delegation operation to the batch | ||
* | ||
* @param params Delegation operation parameter | ||
@@ -66,5 +60,3 @@ */ | ||
/** | ||
* | ||
* @description Add an origination operation to the batch | ||
* | ||
* @param params Origination operation parameter | ||
@@ -77,5 +69,3 @@ */ | ||
/** | ||
* | ||
* @description Add an IncreasePaidStorage operation to the batch | ||
* | ||
* @param param IncreasePaidStorage operation parameter | ||
@@ -110,5 +100,3 @@ */ | ||
/** | ||
* | ||
* @description Add a group operation to the batch. Operation will be applied in the order they are in the params array | ||
* | ||
* @param params Operations parameter | ||
@@ -139,5 +127,3 @@ * @throws {@link InvalidOperationKindError} | ||
/** | ||
* | ||
* @description Submit batch operation to wallet | ||
* | ||
*/ | ||
@@ -170,3 +156,2 @@ send() { | ||
* @description Retrieve the PKH of the account that is currently in use by the wallet | ||
* | ||
* @param option Option to use while fetching the PKH. | ||
@@ -185,3 +170,2 @@ * If forceRefetch is specified the wallet provider implementation will refetch the PKH from the wallet | ||
* @description Retrieve the PK of the account that is currently in use by the wallet | ||
* | ||
* @param option Option to use while fetching the PK. | ||
@@ -199,7 +183,4 @@ * If forceRefetch is specified the wallet provider implementation will refetch the PK from the wallet | ||
/** | ||
* | ||
* @description Originate a new contract according to the script in parameters. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a OriginationWalletOperation promise object when followed by .send() | ||
* @param originateParams Originate operation parameter | ||
@@ -215,7 +196,4 @@ */ | ||
/** | ||
* | ||
* @description Set the delegate for a contract. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a WalletDelegateParams promise object when followed by .send() | ||
* @param delegateParams operation parameter | ||
@@ -236,7 +214,4 @@ */ | ||
/** | ||
* | ||
* @description failing_noop operation that is guaranteed to fail. DISCLAIMER: Not all wallets support signing failing_noop operations. | ||
* | ||
* @returns Signature for a failing_noop | ||
* | ||
* @param params operation parameter | ||
@@ -272,7 +247,4 @@ */ | ||
/** | ||
* | ||
* @description Register the current address as delegate. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a DelegationWalletOperation promise object when followed by .send() | ||
*/ | ||
@@ -290,7 +262,4 @@ registerDelegate() { | ||
/** | ||
* | ||
* @description Transfer tezos tokens from current address to a specific address or call a smart contract. | ||
* | ||
* @returns A wallet command from which we can send the operation to the wallet | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param params operation parameter | ||
@@ -310,7 +279,4 @@ */ | ||
/** | ||
* | ||
* @description Stake a given amount for the source address | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param Stake pseudo-operation parameter | ||
@@ -336,9 +302,6 @@ */ | ||
/** | ||
* | ||
* @description Unstake the given amount. If "everything" is given as amount, unstakes everything from the staking balance. | ||
* Unstaked tez remains frozen for a set amount of cycles (the slashing period) after the operation. Once this period is over, | ||
* the operation "finalize unstake" must be called for the funds to appear in the liquid balance. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param Unstake pseudo-operation parameter | ||
@@ -364,6 +327,4 @@ */ | ||
/** | ||
* | ||
* @description Transfer all the finalizable unstaked funds of the source to their liquid balance | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param Finalize_unstake pseudo-operation parameter | ||
@@ -395,7 +356,4 @@ */ | ||
/** | ||
* | ||
* @description Increase the paid storage of a smart contract. | ||
* | ||
* @returns A wallet command from which we can send the operation to the wallet | ||
* | ||
* @returns a IncreasePaidStorageWalletOperation promise object when followed by .send() | ||
* @param params operation parameter | ||
@@ -415,7 +373,4 @@ */ | ||
/** | ||
* | ||
* @description Create a batch of operation | ||
* | ||
* @returns A batch object from which we can add more operation or send a command to the wallet to execute the batch | ||
* | ||
* @param params List of operation to initialize the batch with | ||
@@ -431,6 +386,4 @@ */ | ||
/** | ||
* | ||
* @description Create an smart contract abstraction for the address specified. Calling entrypoints with the returned | ||
* smart contract abstraction will leverage the wallet provider to make smart contract calls | ||
* | ||
* @param address Smart contract address | ||
@@ -437,0 +390,0 @@ * @throws {@link InvalidContractAddressError} If the contract address is not valid |
@@ -26,3 +26,3 @@ import { OperationObject, InternalOperationResultKindEnum, OpKind, TransactionOperationParameter, MichelsonV1Expression, BallotVote, PvmKind } from '@taquito/rpc'; | ||
kind: OpKind; | ||
}>(op: T) => op is withKind<T, OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.REVEAL | OpKind.TRANSACTION | OpKind.ATTESTATION | OpKind.ENDORSEMENT | OpKind.PREATTESTATION | OpKind.PREENDORSEMENT | OpKind.SET_DEPOSITS_LIMIT | OpKind.DOUBLE_PREATTESTATION_EVIDENCE | OpKind.DOUBLE_PREENDORSEMENT_EVIDENCE | OpKind.ATTESTATION_WITH_SLOT | OpKind.ENDORSEMENT_WITH_SLOT | OpKind.SEED_NONCE_REVELATION | OpKind.DOUBLE_ATTESTATION_EVIDENCE | OpKind.DOUBLE_ENDORSEMENT_EVIDENCE | OpKind.DOUBLE_BAKING_EVIDENCE | OpKind.PROPOSALS | OpKind.BALLOT | OpKind.REGISTER_GLOBAL_CONSTANT | OpKind.TRANSFER_TICKET | OpKind.INCREASE_PAID_STORAGE | OpKind.UPDATE_CONSENSUS_KEY | OpKind.DRAIN_DELEGATE | OpKind.VDF_REVELATION | OpKind.EVENT | OpKind.TICKET_UPDATES | OpKind.SMART_ROLLUP_ORIGINATE | OpKind.SMART_ROLLUP_ADD_MESSAGES | OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE | OpKind.SMART_ROLLUP_PUBLISH | OpKind.SMART_ROLLUP_CEMENT | OpKind.SMART_ROLLUP_RECOVER_BOND | OpKind.SMART_ROLLUP_REFUTE | OpKind.SMART_ROLLUP_TIMEOUT>; | ||
}>(op: T) => op is withKind<T, OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.REVEAL | OpKind.TRANSACTION | OpKind.ATTESTATION | OpKind.ENDORSEMENT | OpKind.PREATTESTATION | OpKind.PREENDORSEMENT | OpKind.SET_DEPOSITS_LIMIT | OpKind.DOUBLE_PREATTESTATION_EVIDENCE | OpKind.DOUBLE_PREENDORSEMENT_EVIDENCE | OpKind.ATTESTATION_WITH_DAL | OpKind.ENDORSEMENT_WITH_DAL | OpKind.SEED_NONCE_REVELATION | OpKind.DOUBLE_ATTESTATION_EVIDENCE | OpKind.DOUBLE_ENDORSEMENT_EVIDENCE | OpKind.DOUBLE_BAKING_EVIDENCE | OpKind.PROPOSALS | OpKind.BALLOT | OpKind.REGISTER_GLOBAL_CONSTANT | OpKind.TRANSFER_TICKET | OpKind.INCREASE_PAID_STORAGE | OpKind.UPDATE_CONSENSUS_KEY | OpKind.DRAIN_DELEGATE | OpKind.VDF_REVELATION | OpKind.EVENT | OpKind.TICKET_UPDATES | OpKind.SMART_ROLLUP_ORIGINATE | OpKind.SMART_ROLLUP_ADD_MESSAGES | OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE | OpKind.SMART_ROLLUP_PUBLISH | OpKind.SMART_ROLLUP_CEMENT | OpKind.SMART_ROLLUP_RECOVER_BOND | OpKind.SMART_ROLLUP_REFUTE | OpKind.SMART_ROLLUP_TIMEOUT | OpKind.DAL_PUBLISH_COMMITMENT>; | ||
export declare const isOpRequireReveal: <T extends { | ||
@@ -29,0 +29,0 @@ kind: OpKind; |
@@ -25,3 +25,4 @@ /** | ||
import { Injector } from './injector/interface'; | ||
export { MichelsonMap, UnitValue } from '@taquito/michelson-encoder'; | ||
import { FieldNumberingStrategy } from '@taquito/michelson-encoder'; | ||
export { FieldNumberingStrategy, Token, MichelsonMap, UnitValue } from '@taquito/michelson-encoder'; | ||
export { Forger, ForgeParams, ForgeResponse } from '@taquito/local-forging'; | ||
@@ -202,2 +203,7 @@ export * from './constants'; | ||
/** | ||
* @description Sets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects | ||
* @param strategy a value of type FieldNumberingStrategy that controls how field numbers are calculated | ||
*/ | ||
setFieldNumberingStrategy(strategy: FieldNumberingStrategy): void; | ||
/** | ||
* @description Provide access to tezos account management | ||
@@ -204,0 +210,0 @@ */ |
@@ -18,5 +18,3 @@ import { Context } from '../context'; | ||
/** | ||
* | ||
* @description Add a transaction operation to the batch | ||
* | ||
* @param params Transfer operation parameter | ||
@@ -26,5 +24,3 @@ */ | ||
/** | ||
* | ||
* @description Add a contract call to the batch | ||
* | ||
* @param params Call a contract method | ||
@@ -35,5 +31,3 @@ * @param options Generic operation parameters | ||
/** | ||
* | ||
* @description Add a delegation operation to the batch | ||
* | ||
* @param params Delegation operation parameter | ||
@@ -43,5 +37,3 @@ */ | ||
/** | ||
* | ||
* @description Add an origination operation to the batch | ||
* | ||
* @param params Origination operation parameter | ||
@@ -51,5 +43,3 @@ */ | ||
/** | ||
* | ||
* @description Add an IncreasePaidStorage operation to the batch | ||
* | ||
* @param param IncreasePaidStorage operation parameter | ||
@@ -60,5 +50,3 @@ */ | ||
/** | ||
* | ||
* @description Add a group operation to the batch. Operation will be applied in the order they are in the params array | ||
* | ||
* @param params Operations parameter | ||
@@ -69,5 +57,3 @@ * @throws {@link InvalidOperationKindError} | ||
/** | ||
* | ||
* @description Submit batch operation to wallet | ||
* | ||
*/ | ||
@@ -84,3 +70,2 @@ send(): Promise<import("./batch-operation").BatchWalletOperation>; | ||
* @description Retrieve the PKH of the account that is currently in use by the wallet | ||
* | ||
* @param option Option to use while fetching the PKH. | ||
@@ -92,3 +77,2 @@ * If forceRefetch is specified the wallet provider implementation will refetch the PKH from the wallet | ||
* @description Retrieve the PK of the account that is currently in use by the wallet | ||
* | ||
* @param option Option to use while fetching the PK. | ||
@@ -100,7 +84,4 @@ * If forceRefetch is specified the wallet provider implementation will refetch the PK from the wallet | ||
/** | ||
* | ||
* @description Originate a new contract according to the script in parameters. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a OriginationWalletOperation promise object when followed by .send() | ||
* @param originateParams Originate operation parameter | ||
@@ -112,7 +93,4 @@ */ | ||
/** | ||
* | ||
* @description Set the delegate for a contract. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a WalletDelegateParams promise object when followed by .send() | ||
* @param delegateParams operation parameter | ||
@@ -124,7 +102,4 @@ */ | ||
/** | ||
* | ||
* @description failing_noop operation that is guaranteed to fail. DISCLAIMER: Not all wallets support signing failing_noop operations. | ||
* | ||
* @returns Signature for a failing_noop | ||
* | ||
* @param params operation parameter | ||
@@ -144,7 +119,4 @@ */ | ||
/** | ||
* | ||
* @description Register the current address as delegate. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a DelegationWalletOperation promise object when followed by .send() | ||
*/ | ||
@@ -155,7 +127,4 @@ registerDelegate(): { | ||
/** | ||
* | ||
* @description Transfer tezos tokens from current address to a specific address or call a smart contract. | ||
* | ||
* @returns A wallet command from which we can send the operation to the wallet | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param params operation parameter | ||
@@ -167,7 +136,4 @@ */ | ||
/** | ||
* | ||
* @description Stake a given amount for the source address | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param Stake pseudo-operation parameter | ||
@@ -179,9 +145,6 @@ */ | ||
/** | ||
* | ||
* @description Unstake the given amount. If "everything" is given as amount, unstakes everything from the staking balance. | ||
* Unstaked tez remains frozen for a set amount of cycles (the slashing period) after the operation. Once this period is over, | ||
* the operation "finalize unstake" must be called for the funds to appear in the liquid balance. | ||
* | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param Unstake pseudo-operation parameter | ||
@@ -193,6 +156,4 @@ */ | ||
/** | ||
* | ||
* @description Transfer all the finalizable unstaked funds of the source to their liquid balance | ||
* @returns An operation handle with the result from the rpc node | ||
* | ||
* @returns a TransactionWalletOperation promise object when followed by .send() | ||
* @param Finalize_unstake pseudo-operation parameter | ||
@@ -204,7 +165,4 @@ */ | ||
/** | ||
* | ||
* @description Increase the paid storage of a smart contract. | ||
* | ||
* @returns A wallet command from which we can send the operation to the wallet | ||
* | ||
* @returns a IncreasePaidStorageWalletOperation promise object when followed by .send() | ||
* @param params operation parameter | ||
@@ -216,7 +174,4 @@ */ | ||
/** | ||
* | ||
* @description Create a batch of operation | ||
* | ||
* @returns A batch object from which we can add more operation or send a command to the wallet to execute the batch | ||
* | ||
* @param params List of operation to initialize the batch with | ||
@@ -226,6 +181,4 @@ */ | ||
/** | ||
* | ||
* @description Create an smart contract abstraction for the address specified. Calling entrypoints with the returned | ||
* smart contract abstraction will leverage the wallet provider to make smart contract calls | ||
* | ||
* @param address Smart contract address | ||
@@ -232,0 +185,0 @@ * @throws {@link InvalidContractAddressError} If the contract address is not valid |
{ | ||
"name": "@taquito/taquito", | ||
"version": "20.0.0-beta.0", | ||
"version": "20.0.0-beta.1", | ||
"description": "High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.", | ||
@@ -80,9 +80,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@taquito/core": "^20.0.0-beta.0", | ||
"@taquito/http-utils": "^20.0.0-beta.0", | ||
"@taquito/local-forging": "^20.0.0-beta.0", | ||
"@taquito/michel-codec": "^20.0.0-beta.0", | ||
"@taquito/michelson-encoder": "^20.0.0-beta.0", | ||
"@taquito/rpc": "^20.0.0-beta.0", | ||
"@taquito/utils": "^20.0.0-beta.0", | ||
"@taquito/core": "^20.0.0-beta.1", | ||
"@taquito/http-utils": "^20.0.0-beta.1", | ||
"@taquito/local-forging": "^20.0.0-beta.1", | ||
"@taquito/michel-codec": "^20.0.0-beta.1", | ||
"@taquito/michelson-encoder": "^20.0.0-beta.1", | ||
"@taquito/rpc": "^20.0.0-beta.1", | ||
"@taquito/utils": "^20.0.0-beta.1", | ||
"bignumber.js": "^9.1.2", | ||
@@ -129,3 +129,3 @@ "rxjs": "^7.8.1" | ||
}, | ||
"gitHead": "88980709574468fad5e4e7d63d34e1d71accf550" | ||
"gitHead": "55491dbb67866d3196843b167ca9303f803b1a99" | ||
} |
@@ -10,3 +10,3 @@ # Taquito high-level functions | ||
```html | ||
<script src="https://unpkg.com/@taquito/taquito@20.0.0-beta.0/dist/taquito.min.js" | ||
<script src="https://unpkg.com/@taquito/taquito@20.0.0-beta.1/dist/taquito.min.js" | ||
crossorigin="anonymous" integrity="sha384-IxvP0ECHi5oqLyz94wF85pU9+ktcsL1HHtA42MITxZsGbsUMEu/g+0Vkjj5vqiMR"></script> | ||
@@ -13,0 +13,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2125720
28331