@taquito/taquito 24.3.0-beta.2 → 24.3.0-beta.4

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.
Files changed (49) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/contract/big-map.js +6 -3
  3. package/dist/lib/contract/contract.js +8 -3
  4. package/dist/lib/contract/not-found-retry.js +29 -0
  5. package/dist/lib/contract/rpc-contract-provider.js +28 -18
  6. package/dist/lib/contract/sapling-state-abstraction.js +5 -2
  7. package/dist/lib/contract/semantic.js +4 -4
  8. package/dist/lib/estimate/rpc-estimate-provider.js +2 -0
  9. package/dist/lib/operations/batch-operation.js +3 -2
  10. package/dist/lib/operations/delegate-operation.js +3 -2
  11. package/dist/lib/operations/operations.js +12 -2
  12. package/dist/lib/operations/origination-operation.js +9 -3
  13. package/dist/lib/operations/register-global-constant-operation.js +3 -2
  14. package/dist/lib/operations/reveal-operation.js +3 -2
  15. package/dist/lib/operations/transaction-operation.js +4 -3
  16. package/dist/lib/operations/transfer-ticket-operation.js +3 -2
  17. package/dist/lib/prepare/prepare-provider.js +6 -5
  18. package/dist/lib/provider.js +82 -10
  19. package/dist/lib/read-provider/interface.js +8 -0
  20. package/dist/lib/read-provider/rpc-read-adapter.js +2 -0
  21. package/dist/lib/tz/interface.js +2 -0
  22. package/dist/lib/tz/rpc-tz-provider.js +2 -0
  23. package/dist/lib/version.js +2 -2
  24. package/dist/lib/wallet/origination-operation.js +5 -1
  25. package/dist/lib/wallet/receipt.js +9 -8
  26. package/dist/lib/wallet/wallet.js +18 -7
  27. package/dist/taquito.es6.js +333 -181
  28. package/dist/taquito.es6.js.map +1 -1
  29. package/dist/taquito.min.js +1 -1
  30. package/dist/taquito.umd.js +332 -180
  31. package/dist/taquito.umd.js.map +1 -1
  32. package/dist/types/contract/big-map.d.ts +10 -5
  33. package/dist/types/contract/contract.d.ts +3 -2
  34. package/dist/types/contract/interface.d.ts +5 -4
  35. package/dist/types/contract/not-found-retry.d.ts +3 -0
  36. package/dist/types/contract/rpc-contract-provider.d.ts +5 -4
  37. package/dist/types/contract/sapling-state-abstraction.d.ts +9 -4
  38. package/dist/types/contract/semantic.d.ts +4 -3
  39. package/dist/types/operations/operations.d.ts +4 -1
  40. package/dist/types/operations/transaction-operation.d.ts +2 -2
  41. package/dist/types/provider.d.ts +4 -1
  42. package/dist/types/read-provider/interface.d.ts +5 -1
  43. package/dist/types/read-provider/rpc-read-adapter.d.ts +4 -1
  44. package/dist/types/tz/interface.d.ts +4 -1
  45. package/dist/types/tz/rpc-tz-provider.d.ts +4 -1
  46. package/dist/types/wallet/receipt.d.ts +4 -1
  47. package/dist/types/wallet/wallet.d.ts +1 -0
  48. package/package.json +15 -17
  49. package/signature.json +0 -866
@@ -1 +1 @@
1
- {"version":3,"file":"taquito.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,11 +1,15 @@
1
1
  import { Schema, BigMapKeyType } from '@taquito/michelson-encoder';
2
- import BigNumber from 'bignumber.js';
3
- import { ContractProvider } from './interface';
2
+ import BigNumberJs from 'bignumber.js';
3
+ type BigNumber = InstanceType<typeof BigNumberJs>;
4
+ declare const BigNumber: typeof BigNumberJs;
5
+ import { StorageProvider } from './interface';
6
+ import { BlockIdentifier } from '../read-provider/interface';
4
7
  export declare class BigMapAbstraction {
5
8
  private id;
6
9
  private schema;
7
10
  private provider;
8
- constructor(id: BigNumber, schema: Schema, provider: ContractProvider);
11
+ private defaultBlock?;
12
+ constructor(id: BigNumber, schema: Schema, provider: StorageProvider, defaultBlock?: BlockIdentifier | undefined);
9
13
  /**
10
14
  *
11
15
  * Fetch one value in a big map
@@ -15,7 +19,7 @@ export declare class BigMapAbstraction {
15
19
  * @returns Return a well formatted json object of a big map value or undefined if the key is not found in the big map
16
20
  *
17
21
  */
18
- get<T>(keyToEncode: BigMapKeyType, block?: number): Promise<T | undefined>;
22
+ get<T>(keyToEncode: BigMapKeyType, block?: BlockIdentifier): Promise<T | undefined>;
19
23
  /**
20
24
  *
21
25
  * Fetch multiple values in a big map
@@ -29,7 +33,8 @@ export declare class BigMapAbstraction {
29
33
  * @returns A MichelsonMap containing the keys queried in the big map and their value in a well-formatted JSON object format
30
34
  *
31
35
  */
32
- getMultipleValues<T>(keysToEncode: Array<BigMapKeyType>, block?: number, batchSize?: number): Promise<import("@taquito/michelson-encoder").MichelsonMap<import("@taquito/michelson-encoder").MichelsonMapKey, T | undefined>>;
36
+ getMultipleValues<T>(keysToEncode: Array<BigMapKeyType>, block?: BlockIdentifier, batchSize?: number): Promise<import("@taquito/michelson-encoder").MichelsonMap<import("@taquito/michelson-encoder").MichelsonMapKey, T | undefined>>;
33
37
  toJSON(): string;
34
38
  toString(): string;
35
39
  }
40
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { ParameterSchema, Schema, ViewSchema, EventSchema } from '@taquito/michelson-encoder';
2
2
  import { EntrypointsResponse, RpcClientInterface, ScriptResponse } from '@taquito/rpc';
3
3
  import { ChainIds } from '../constants';
4
- import { TzReadProvider } from '../read-provider/interface';
4
+ import { BlockIdentifier, TzReadProvider } from '../read-provider/interface';
5
5
  import type { Wallet } from '../wallet/wallet';
6
6
  import { ContractMethodObject } from './contract-methods/contract-method-object-param';
7
7
  import { OnChainView } from './contract-methods/contract-on-chain-view';
@@ -42,6 +42,7 @@ export declare class ContractAbstraction<T extends ContractProvider | Wallet, TM
42
42
  readonly entrypoints: EntrypointsResponse;
43
43
  private rpc;
44
44
  private readProvider;
45
+ readonly readBlock: BlockIdentifier;
45
46
  private contractMethodFactory;
46
47
  /**
47
48
  * Contains methods that are implemented by the target Tezos Smart Contract, and offers the user to call the Smart Contract methods as if they were native TS/JS methods.
@@ -65,7 +66,7 @@ export declare class ContractAbstraction<T extends ContractProvider | Wallet, TM
65
66
  readonly parameterSchema: ParameterSchema;
66
67
  readonly viewSchema: ViewSchema[];
67
68
  readonly eventSchema: EventSchema[];
68
- constructor(address: string, script: ScriptResponse, provider: T, storageProvider: StorageProvider, entrypoints: EntrypointsResponse, rpc: RpcClientInterface, readProvider: TzReadProvider);
69
+ constructor(address: string, script: ScriptResponse, provider: T, storageProvider: StorageProvider, entrypoints: EntrypointsResponse, rpc: RpcClientInterface, readProvider: TzReadProvider, readBlock?: BlockIdentifier);
69
70
  private _initializeMethods;
70
71
  private _initializeOnChainViews;
71
72
  /**
@@ -20,6 +20,7 @@ import { SmartRollupAddMessagesOperation } from '../operations/smart-rollup-add-
20
20
  import { SmartRollupOriginateOperation } from '../operations/smart-rollup-originate-operation';
21
21
  import { SmartRollupExecuteOutboxMessageOperation } from '../operations/smart-rollup-execute-outbox-message-operation';
22
22
  import { FailingNoopOperation } from '../operations/failing-noop-operation';
23
+ import type { BlockIdentifier } from '../read-provider/interface';
23
24
  export type ContractSchema = Schema | unknown;
24
25
  export interface StorageProvider {
25
26
  /**
@@ -31,7 +32,7 @@ export interface StorageProvider {
31
32
  *
32
33
  * @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script
33
34
  */
34
- getStorage<T>(contract: string, schema?: ContractSchema): Promise<T>;
35
+ getStorage<T>(contract: string, schema?: ContractSchema, block?: BlockIdentifier): Promise<T>;
35
36
  /**
36
37
  *
37
38
  * Return a well formatted json object of a big map value
@@ -43,7 +44,7 @@ export interface StorageProvider {
43
44
  *
44
45
  * @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr
45
46
  */
46
- getBigMapKeyByID<T>(id: string, keyToEncode: BigMapKeyType, schema: Schema, block?: number): Promise<T>;
47
+ getBigMapKeyByID<T>(id: string, keyToEncode: BigMapKeyType, schema: Schema, block?: BlockIdentifier): Promise<T>;
47
48
  /**
48
49
  *
49
50
  * Fetch multiple values in a big map
@@ -56,7 +57,7 @@ export interface StorageProvider {
56
57
  * @returns An object containing the keys queried in the big map and their value in a well-formatted JSON object format
57
58
  *
58
59
  */
59
- getBigMapKeysByID<T>(id: string, keysToEncode: Array<BigMapKeyType>, schema: Schema, block?: number, batchSize?: number): Promise<MichelsonMap<MichelsonMapKey, T | undefined>>;
60
+ getBigMapKeysByID<T>(id: string, keysToEncode: Array<BigMapKeyType>, schema: Schema, block?: BlockIdentifier, batchSize?: number): Promise<MichelsonMap<MichelsonMapKey, T | undefined>>;
60
61
  /**
61
62
  *
62
63
  * Return a well formatted json object of a sapling state
@@ -65,7 +66,7 @@ export interface StorageProvider {
65
66
  * @param block optional block level to fetch the value from
66
67
  *
67
68
  */
68
- getSaplingDiffByID(id: string, block?: number): Promise<SaplingDiffResponse>;
69
+ getSaplingDiffByID(id: string, block?: BlockIdentifier): Promise<SaplingDiffResponse>;
69
70
  }
70
71
  export interface ContractProvider extends StorageProvider {
71
72
  /**
@@ -0,0 +1,3 @@
1
+ import { HttpResponseError } from '@taquito/http-utils';
2
+ export declare const isNotFoundError: (error: unknown) => error is HttpResponseError;
3
+ export declare const retryOnNotFound: <T>(read: () => Promise<T>, retryDelaysMs?: number[]) => Promise<T>;
@@ -37,7 +37,7 @@ export declare class RpcContractProvider extends Provider implements ContractPro
37
37
  * @throws {@link InvalidContractAddressError}
38
38
  * @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script
39
39
  */
40
- getStorage<T>(contract: string, schema?: ContractSchema): Promise<T>;
40
+ getStorage<T>(contract: string, schema?: ContractSchema, block?: BlockIdentifier): Promise<T>;
41
41
  /**
42
42
  *
43
43
  * Return a well formatted json object of a big map value
@@ -49,7 +49,7 @@ export declare class RpcContractProvider extends Provider implements ContractPro
49
49
  *
50
50
  * @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr
51
51
  */
52
- getBigMapKeyByID<T>(id: string, keyToEncode: BigMapKeyType, schema: Schema, block?: number): Promise<T>;
52
+ getBigMapKeyByID<T>(id: string, keyToEncode: BigMapKeyType, schema: Schema, block?: BlockIdentifier): Promise<T>;
53
53
  /**
54
54
  *
55
55
  * Fetch multiple values in a big map
@@ -65,7 +65,7 @@ export declare class RpcContractProvider extends Provider implements ContractPro
65
65
  * @returns A MichelsonMap containing the keys queried in the big map and their value in a well-formatted JSON object format
66
66
  *
67
67
  */
68
- getBigMapKeysByID<T>(id: string, keys: Array<BigMapKeyType>, schema: Schema, block?: number, batchSize?: number): Promise<MichelsonMap<MichelsonMapKey, T | undefined>>;
68
+ getBigMapKeysByID<T>(id: string, keys: Array<BigMapKeyType>, schema: Schema, block?: BlockIdentifier, batchSize?: number): Promise<MichelsonMap<MichelsonMapKey, T | undefined>>;
69
69
  private getBlockForRequest;
70
70
  private getBigMapValueOrUndefined;
71
71
  /**
@@ -76,7 +76,7 @@ export declare class RpcContractProvider extends Provider implements ContractPro
76
76
  * @param block optional block level to fetch the value from
77
77
  *
78
78
  */
79
- getSaplingDiffByID(id: string, block?: number): Promise<import("@taquito/rpc").SaplingDiffResponse>;
79
+ getSaplingDiffByID(id: string, block?: BlockIdentifier): Promise<import("@taquito/rpc").SaplingDiffResponse>;
80
80
  /**
81
81
  *
82
82
  * Originate a new contract according to the script in parameters. Will sign and inject an operation using the current context
@@ -256,6 +256,7 @@ export declare class RpcContractProvider extends Provider implements ContractPro
256
256
  * @throws {@link InvalidContractAddressError}
257
257
  */
258
258
  at<T extends DefaultContractType = DefaultContractType>(address: string, contractAbstractionComposer?: ContractAbstractionComposer<T>, block?: BlockIdentifier): Promise<T>;
259
+ atExactBlock<T extends DefaultContractType = DefaultContractType>(address: string, contractAbstractionComposer: ContractAbstractionComposer<T> | undefined, block: BlockIdentifier): Promise<T>;
259
260
  /**
260
261
  *
261
262
  * Batch a group of operation together. Operations will be applied in the order in which they are added to the batch
@@ -1,9 +1,13 @@
1
- import BigNumber from 'bignumber.js';
2
- import { ContractProvider } from './interface';
1
+ import BigNumberJs from 'bignumber.js';
2
+ type BigNumber = InstanceType<typeof BigNumberJs>;
3
+ declare const BigNumber: typeof BigNumberJs;
4
+ import { StorageProvider } from './interface';
5
+ import { BlockIdentifier } from '../read-provider/interface';
3
6
  export declare class SaplingStateAbstraction {
4
7
  private id;
5
8
  private provider;
6
- constructor(id: BigNumber, provider: ContractProvider);
9
+ private defaultBlock?;
10
+ constructor(id: BigNumber, provider: StorageProvider, defaultBlock?: BlockIdentifier | undefined);
7
11
  /**
8
12
  *
9
13
  * Fetch the sapling state
@@ -12,6 +16,7 @@ export declare class SaplingStateAbstraction {
12
16
  * @returns Return a json object of the sapling_state
13
17
  *
14
18
  */
15
- getSaplingDiff(block?: number): Promise<import("@taquito/rpc").SaplingDiffResponse>;
19
+ getSaplingDiff(block?: BlockIdentifier): Promise<import("@taquito/rpc").SaplingDiffResponse>;
16
20
  getId(): string;
17
21
  }
22
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { Semantic } from '@taquito/michelson-encoder';
2
- import { ContractProvider } from './interface';
2
+ import { StorageProvider } from './interface';
3
+ import { BlockIdentifier } from '../read-provider/interface';
3
4
  /**
4
5
  * Override the default michelson encoder semantic to provide richer abstraction over storage properties
5
- * @param p ContractProvider (contract API)
6
+ * @param p StorageProvider (contract API)
6
7
  */
7
- export declare const smartContractAbstractionSemantic: (p: ContractProvider) => Semantic;
8
+ export declare const smartContractAbstractionSemantic: (p: StorageProvider, block?: BlockIdentifier) => Semantic;
@@ -1,4 +1,5 @@
1
- import { OperationContentsAndResult, OperationContentsAndResultReveal } from '@taquito/rpc';
1
+ import { BlockResponse, OperationContentsAndResult, OperationContentsAndResultReveal } from '@taquito/rpc';
2
+ import { ReplaySubject } from 'rxjs';
2
3
  import { Context } from '../context';
3
4
  import { ForgedBytes } from './types';
4
5
  /**
@@ -11,10 +12,12 @@ export declare class Operation {
11
12
  protected readonly context: Context;
12
13
  private _pollingConfig$;
13
14
  private lastHead;
15
+ protected _includedInBlock: ReplaySubject<BlockResponse>;
14
16
  private currentHead$;
15
17
  private confirmed$;
16
18
  protected _foundAt: number;
17
19
  get includedInBlock(): number;
20
+ protected getInclusionBlock(): Promise<BlockResponse>;
18
21
  /**
19
22
  *
20
23
  * @param hash Operation hash
@@ -1,5 +1,5 @@
1
1
  import { OperationContentsAndResult, OperationContentsAndResultTransaction, OperationContentsTransaction } from '@taquito/rpc';
2
- import BigNumber from 'bignumber.js';
2
+ import BigNumberJs from 'bignumber.js';
3
3
  import { Context } from '../context';
4
4
  import { Operation } from './operations';
5
5
  import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
@@ -14,7 +14,7 @@ export declare class TransactionOperation extends Operation implements GasConsum
14
14
  constructor(hash: string, params: OperationContentsTransaction, source: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
15
15
  get operationResults(): OperationContentsAndResultTransaction[];
16
16
  get status(): import("@taquito/rpc").OperationResultStatusEnum | "unknown";
17
- get amount(): BigNumber;
17
+ get amount(): BigNumberJs;
18
18
  get destination(): string;
19
19
  get fee(): number;
20
20
  get gasLimit(): number;
@@ -5,9 +5,10 @@ import { PreparedOperation } from './prepare';
5
5
  import { Estimate } from './estimate';
6
6
  export declare abstract class Provider {
7
7
  protected context: Context;
8
+ private clearRpcCache;
8
9
  private parseRpcErrors;
9
10
  private toBigInt;
10
- private parseCounterInThePastAdjustments;
11
+ private parseCounterAdjustments;
11
12
  private hasGasLimitTooHighAndBlockExhausted;
12
13
  private patchSimulationGasLimits;
13
14
  private patchSimulationCounters;
@@ -47,4 +48,6 @@ export declare abstract class Provider {
47
48
  opResponse: OperationContentsAndResult[];
48
49
  context: Context;
49
50
  }>;
51
+ private signForgedBytes;
52
+ private patchForgedBytesCounters;
50
53
  }
@@ -1,5 +1,7 @@
1
1
  import { BlockResponse, EntrypointsResponse, MichelsonV1Expression, SaplingDiffResponse, ScriptedContracts, AILaunchCycleResponse } from '@taquito/rpc';
2
- import BigNumber from 'bignumber.js';
2
+ import BigNumberJs from 'bignumber.js';
3
+ type BigNumber = InstanceType<typeof BigNumberJs>;
4
+ declare const BigNumber: typeof BigNumberJs;
3
5
  export type BigMapQuery = {
4
6
  id: string;
5
7
  expr: string;
@@ -8,6 +10,7 @@ export type SaplingStateQuery = {
8
10
  id: string;
9
11
  };
10
12
  export type BlockIdentifier = 'head' | `head~${number}` | `B${string}` | number;
13
+ export declare const isBlockHashIdentifier: (block: string) => block is `B${string}`;
11
14
  export interface TzReadProvider {
12
15
  /**
13
16
  * The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'spendable' RPC.
@@ -130,3 +133,4 @@ export interface TzReadProvider {
130
133
  */
131
134
  getAdaptiveIssuanceLaunchCycle(block: BlockIdentifier): Promise<AILaunchCycleResponse>;
132
135
  }
136
+ export {};
@@ -1,5 +1,7 @@
1
1
  import { BlockResponse, EntrypointsResponse, MichelsonV1Expression, RpcClientInterface, SaplingDiffResponse, ScriptedContracts, AILaunchCycleResponse } from '@taquito/rpc';
2
- import BigNumber from 'bignumber.js';
2
+ import BigNumberJs from 'bignumber.js';
3
+ type BigNumber = InstanceType<typeof BigNumberJs>;
4
+ declare const BigNumber: typeof BigNumberJs;
3
5
  import { BigMapQuery, BlockIdentifier, SaplingStateQuery, TzReadProvider } from './interface';
4
6
  /**
5
7
  * Converts calls from TzReadProvider into calls to the wrapped RpcClient in a format it can understand.
@@ -128,3 +130,4 @@ export declare class RpcReadAdapter implements TzReadProvider {
128
130
  */
129
131
  getAdaptiveIssuanceLaunchCycle(block: BlockIdentifier): Promise<AILaunchCycleResponse>;
130
132
  }
133
+ export {};
@@ -1,4 +1,6 @@
1
- import BigNumber from 'bignumber.js';
1
+ import BigNumberJs from 'bignumber.js';
2
+ type BigNumber = InstanceType<typeof BigNumberJs>;
3
+ declare const BigNumber: typeof BigNumberJs;
2
4
  import { Operation } from '../operations/operations';
3
5
  export interface TzProvider {
4
6
  /**
@@ -18,3 +20,4 @@ export interface TzProvider {
18
20
  getDelegate(address: string): Promise<string | null>;
19
21
  activate(pkh: string, secret: string): Promise<Operation>;
20
22
  }
23
+ export {};
@@ -1,4 +1,6 @@
1
- import BigNumber from 'bignumber.js';
1
+ import BigNumberJs from 'bignumber.js';
2
+ type BigNumber = InstanceType<typeof BigNumberJs>;
3
+ declare const BigNumber: typeof BigNumberJs;
2
4
  import { Context } from '../context';
3
5
  import { Operation } from '../operations/operations';
4
6
  import { TzProvider } from './interface';
@@ -11,3 +13,4 @@ export declare class RpcTzProvider extends Provider implements TzProvider {
11
13
  getDelegate(address: string): Promise<string | null>;
12
14
  activate(pkh: string, secret: string): Promise<Operation>;
13
15
  }
16
+ export {};
@@ -1,5 +1,7 @@
1
1
  import { OperationContentsAndResult } from '@taquito/rpc';
2
- import BigNumber from 'bignumber.js';
2
+ import BigNumberJs from 'bignumber.js';
3
+ type BigNumber = InstanceType<typeof BigNumberJs>;
4
+ declare const BigNumber: typeof BigNumberJs;
3
5
  export interface Receipt {
4
6
  totalFee: BigNumber;
5
7
  totalGas: BigNumber;
@@ -14,3 +16,4 @@ export declare const receiptFromOperation: (op: OperationContentsAndResult[], {
14
16
  ALLOCATION_BURN: number;
15
17
  ORIGINATION_BURN: number;
16
18
  }) => Receipt;
19
+ export {};
@@ -193,4 +193,5 @@ export declare class Wallet {
193
193
  * @throws InvalidContractAddressError If the contract address is not valid
194
194
  */
195
195
  at<T extends ContractAbstraction<Wallet>>(address: string, contractAbstractionComposer?: (abs: ContractAbstraction<Wallet>, context: Context) => T, block?: BlockIdentifier): Promise<T>;
196
+ atExactBlock<T extends ContractAbstraction<Wallet>>(address: string, contractAbstractionComposer: ((abs: ContractAbstraction<Wallet>, context: Context) => T) | undefined, block: BlockIdentifier): Promise<T>;
196
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/taquito",
3
- "version": "24.3.0-beta.2",
3
+ "version": "24.3.0-beta.4",
4
4
  "description": "TypeScript SDK for building wallets, dapps, and tooling on Tezos.",
5
5
  "keywords": [
6
6
  "taquito",
@@ -16,7 +16,6 @@
16
16
  "module": "dist/taquito.es6.js",
17
17
  "typings": "dist/types/taquito.d.ts",
18
18
  "files": [
19
- "signature.json",
20
19
  "dist"
21
20
  ],
22
21
  "publishConfig": {
@@ -61,19 +60,19 @@
61
60
  ]
62
61
  },
63
62
  "dependencies": {
64
- "@taquito/core": "^24.3.0-beta.2",
65
- "@taquito/http-utils": "^24.3.0-beta.2",
66
- "@taquito/local-forging": "^24.3.0-beta.2",
67
- "@taquito/michel-codec": "^24.3.0-beta.2",
68
- "@taquito/michelson-encoder": "^24.3.0-beta.2",
69
- "@taquito/rpc": "^24.3.0-beta.2",
70
- "@taquito/signer": "^24.3.0-beta.2",
71
- "@taquito/utils": "^24.3.0-beta.2",
72
- "bignumber.js": "^9.1.2",
63
+ "@taquito/core": "^24.3.0-beta.4",
64
+ "@taquito/http-utils": "^24.3.0-beta.4",
65
+ "@taquito/local-forging": "^24.3.0-beta.4",
66
+ "@taquito/michel-codec": "^24.3.0-beta.4",
67
+ "@taquito/michelson-encoder": "^24.3.0-beta.4",
68
+ "@taquito/rpc": "^24.3.0-beta.4",
69
+ "@taquito/signer": "^24.3.0-beta.4",
70
+ "@taquito/utils": "^24.3.0-beta.4",
71
+ "bignumber.js": "^10.0.2",
73
72
  "rxjs": "^7.8.2"
74
73
  },
75
74
  "devDependencies": {
76
- "@babel/types": "7.25.2",
75
+ "@babel/types": "7.29.0",
77
76
  "@types/bluebird": "^3.5.42",
78
77
  "@types/estree": "^1.0.5",
79
78
  "@types/node": "^22.0.0",
@@ -81,7 +80,6 @@
81
80
  "@typescript-eslint/parser": "^6.21.0",
82
81
  "buffer": "^6.0.3",
83
82
  "colors": "^1.4.0",
84
- "coveralls": "^3.1.1",
85
83
  "cross-env": "^7.0.3",
86
84
  "eslint": "^8.57.0",
87
85
  "fs-extra": "^11.3.2",
@@ -92,18 +90,18 @@
92
90
  "prompt": "^1.3.0",
93
91
  "replace-in-file": "^8.1.0",
94
92
  "rimraf": "^6.0.1",
95
- "rollup": "^4.59.0",
93
+ "rollup": "^4.60.1",
96
94
  "rollup-plugin-json": "^4.0.0",
97
95
  "rollup-plugin-polyfill-node": "^0.13.0",
98
- "rollup-plugin-typescript2": "^0.36.0",
96
+ "rollup-plugin-typescript2": "^0.37.0",
99
97
  "rx-sandbox": "^2.0.5",
100
98
  "shelljs": "^0.8.5",
101
99
  "stream-browserify": "^3.0.0",
102
- "terser-webpack-plugin": "^5.3.10",
100
+ "terser-webpack-plugin": "^5.4.0",
103
101
  "ts-node": "^10.9.2",
104
102
  "ts-toolbelt": "^9.6.0",
105
103
  "typescript": "^5.9.3",
106
- "webpack": "^5.94.0",
104
+ "webpack": "^5.106.1",
107
105
  "webpack-assets-manifest": "^5.2.1",
108
106
  "webpack-cli": "^5.1.4",
109
107
  "webpack-subresource-integrity": "^5.1.0"