viem 0.0.0-main.20230521T001926 → 0.0.0-main.20230522T015355

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/README.md CHANGED
@@ -51,7 +51,7 @@
51
51
  - Browser native [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt), instead of large BigNumber libraries
52
52
  - Utilities for working with [ABIs](https://ethereum.org/en/glossary/#abi) (encoding/decoding/inspection)
53
53
  - TypeScript ready ([infer types](https://viem.sh/docs/typescript) from ABIs and EIP-712 Typed Data)
54
- - First-class support for [Anvil](https://book.getfoundry.sh/) & [Hardhat](https://hardhat.org/)
54
+ - First-class support for [Anvil](https://book.getfoundry.sh/), [Hardhat](https://hardhat.org/) & [Ganache](https://trufflesuite.com/ganache/)
55
55
  - Test suite running against [forked](https://ethereum.org/en/glossary/#fork) Ethereum network
56
56
 
57
57
  ... and a lot lot more.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.0.0-main.20230521T001926';
4
+ exports.version = '0.0.0-main.20230522T015355';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const version = '0.0.0-main.20230521T001926';
1
+ export const version = '0.0.0-main.20230522T015355';
2
2
  //# sourceMappingURL=version.js.map
@@ -3,9 +3,9 @@ import type { TestRequests } from '../types/eip1193.js';
3
3
  import { type Client, type ClientConfig } from './createClient.js';
4
4
  import { type TestActions } from './decorators/test.js';
5
5
  import type { Transport } from './transports/createTransport.js';
6
- export type TestClientMode = 'anvil' | 'hardhat';
6
+ export type TestClientMode = 'anvil' | 'hardhat' | 'ganache';
7
7
  export type TestClientConfig<TMode extends TestClientMode = TestClientMode, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
8
- /** Mode of the test client. Available: "anvil" | "hardhat" */
8
+ /** Mode of the test client. Available: "anvil" | "hardhat" | "ganache" */
9
9
  mode: TMode;
10
10
  };
11
11
  export type TestClient<TMode extends TestClientMode = TestClientMode, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TIncludeActions extends boolean = true> = Client<TTransport, TestRequests<TMode>, TChain> & (TIncludeActions extends true ? TestActions : unknown) & {
@@ -1 +1 @@
1
- {"version":3,"file":"createTestClient.d.ts","sourceRoot":"","sources":["../../../src/clients/createTestClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,YAAY,EAAgB,MAAM,mBAAmB,CAAA;AAChF,OAAO,EAAE,KAAK,WAAW,EAAe,MAAM,sBAAsB,CAAA;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhD,MAAM,MAAM,gBAAgB,CAC1B,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAClD,IAAI,CACN,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,EAChC,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CAC3D,GAAG;IACF,8DAA8D;IAC9D,IAAI,EAAE,KAAK,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,CACpB,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,eAA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U,EAAE,MAAM,CAAC,EAChC,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CAC3D,GAAG;IACF,0EAA0E;IAC1E,IAAI,EAAE,KAAK,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,CACpB,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,eAAe,SAAS,OAAO,GAAG,IAAI,IACpC,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GACjD,CAAC,eAAe,SAAS,IAAI,GAAG,WAAW,GAAG,OAAO,CAAC,GAAG;IACvD,IAAI,EAAE,KAAK,CAAA;CACZ,CAAA;AAEH;;GAEG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,SAAS,cAAc,EAC5B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAC5C,EACA,KAAK,EACL,GAAY,EACZ,IAAoB,EACpB,IAAI,EACJ,eAAe,EACf,SAAS,GACV,EAAE,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,GAAG,UAAU,CACzD,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,CACL,CAgBA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "0.0.0-main.20230521T001926";
1
+ export declare const version = "0.0.0-main.20230522T015355";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "isomorphic-ws": "5.0.0",
13
13
  "ws": "8.12.0"
14
14
  },
15
- "version": "0.0.0-main.20230521T001926",
15
+ "version": "0.0.0-main.20230522T015355",
16
16
  "files": [
17
17
  "dist",
18
18
  "!dist/**/*.tsbuildinfo",
@@ -5,7 +5,7 @@ import { type Client, type ClientConfig, createClient } from './createClient.js'
5
5
  import { type TestActions, testActions } from './decorators/test.js'
6
6
  import type { Transport } from './transports/createTransport.js'
7
7
 
8
- export type TestClientMode = 'anvil' | 'hardhat'
8
+ export type TestClientMode = 'anvil' | 'hardhat' | 'ganache'
9
9
 
10
10
  export type TestClientConfig<
11
11
  TMode extends TestClientMode = TestClientMode,
@@ -15,7 +15,7 @@ export type TestClientConfig<
15
15
  ClientConfig<TTransport, TChain>,
16
16
  'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'
17
17
  > & {
18
- /** Mode of the test client. Available: "anvil" | "hardhat" */
18
+ /** Mode of the test client. Available: "anvil" | "hardhat" | "ganache" */
19
19
  mode: TMode
20
20
  }
21
21
 
@@ -1 +1 @@
1
- export const version = '0.0.0-main.20230521T001926'
1
+ export const version = '0.0.0-main.20230522T015355'