@0xtorch/evm 0.0.163 → 0.0.164

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.
@@ -9,17 +9,17 @@ export declare const evmAddressSchema: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  address: `0x${Lowercase<string>}`;
11
11
  chainId: number;
12
+ abi?: string | undefined;
12
13
  label?: string | undefined;
13
14
  isSpam?: boolean | undefined;
14
15
  app?: string | undefined;
15
- abi?: string | undefined;
16
16
  }, {
17
17
  address: string;
18
18
  chainId: number;
19
+ abi?: string | undefined;
19
20
  label?: string | undefined;
20
21
  isSpam?: boolean | undefined;
21
22
  app?: string | undefined;
22
- abi?: string | undefined;
23
23
  }>;
24
24
  export type EvmAddress = z.infer<typeof evmAddressSchema>;
25
25
  //# sourceMappingURL=address.d.ts.map
@@ -392,17 +392,17 @@ export declare const transactionDecodedSchema: z.ZodObject<{
392
392
  }, "strip", z.ZodTypeAny, {
393
393
  address: `0x${Lowercase<string>}`;
394
394
  chainId: number;
395
+ abi?: string | undefined;
395
396
  label?: string | undefined;
396
397
  isSpam?: boolean | undefined;
397
398
  app?: string | undefined;
398
- abi?: string | undefined;
399
399
  }, {
400
400
  address: string;
401
401
  chainId: number;
402
+ abi?: string | undefined;
402
403
  label?: string | undefined;
403
404
  isSpam?: boolean | undefined;
404
405
  app?: string | undefined;
405
- abi?: string | undefined;
406
406
  }>;
407
407
  function: z.ZodOptional<z.ZodObject<{
408
408
  args: z.ZodArray<z.ZodObject<{
@@ -447,26 +447,26 @@ export declare const transactionDecodedSchema: z.ZodObject<{
447
447
  }, "strip", z.ZodTypeAny, {
448
448
  address: `0x${Lowercase<string>}`;
449
449
  chainId: number;
450
+ abi?: string | undefined;
450
451
  label?: string | undefined;
451
452
  isSpam?: boolean | undefined;
452
453
  app?: string | undefined;
453
- abi?: string | undefined;
454
454
  }, {
455
455
  address: string;
456
456
  chainId: number;
457
+ abi?: string | undefined;
457
458
  label?: string | undefined;
458
459
  isSpam?: boolean | undefined;
459
460
  app?: string | undefined;
460
- abi?: string | undefined;
461
461
  }>>;
462
462
  }, "strip", z.ZodTypeAny, {
463
463
  from: {
464
464
  address: `0x${Lowercase<string>}`;
465
465
  chainId: number;
466
+ abi?: string | undefined;
466
467
  label?: string | undefined;
467
468
  isSpam?: boolean | undefined;
468
469
  app?: string | undefined;
469
- abi?: string | undefined;
470
470
  };
471
471
  value: bigint;
472
472
  hash: `0x${Lowercase<string>}`;
@@ -569,20 +569,20 @@ export declare const transactionDecodedSchema: z.ZodObject<{
569
569
  to?: {
570
570
  address: `0x${Lowercase<string>}`;
571
571
  chainId: number;
572
+ abi?: string | undefined;
572
573
  label?: string | undefined;
573
574
  isSpam?: boolean | undefined;
574
575
  app?: string | undefined;
575
- abi?: string | undefined;
576
576
  } | undefined;
577
577
  contractAddress?: `0x${Lowercase<string>}` | undefined;
578
578
  }, {
579
579
  from: {
580
580
  address: string;
581
581
  chainId: number;
582
+ abi?: string | undefined;
582
583
  label?: string | undefined;
583
584
  isSpam?: boolean | undefined;
584
585
  app?: string | undefined;
585
- abi?: string | undefined;
586
586
  };
587
587
  value: string;
588
588
  hash: string;
@@ -685,10 +685,10 @@ export declare const transactionDecodedSchema: z.ZodObject<{
685
685
  to?: {
686
686
  address: string;
687
687
  chainId: number;
688
+ abi?: string | undefined;
688
689
  label?: string | undefined;
689
690
  isSpam?: boolean | undefined;
690
691
  app?: string | undefined;
691
- abi?: string | undefined;
692
692
  } | undefined;
693
693
  contractAddress?: string | undefined;
694
694
  }>;
@@ -2,33 +2,28 @@ import { ethereum } from '@0xtorch/core'
2
2
  import { scroll } from 'viem/chains'
3
3
  import { type Client, createClient } from '../../client'
4
4
  import type { Explorer } from '../../explorer'
5
- import { createEtherscanV2 } from '../../explorer'
5
+ import { createBlockscout } from '../../explorer'
6
6
  import type { Chain } from '../types/chain'
7
7
  import type { HttpRpc } from '../types/rpc'
8
8
 
9
9
  export const createScrollChain = ({
10
- explorerApiKey: apiKey,
11
10
  explorerProxyUrl: proxyUrl,
12
- explorerPageSize: pageSize,
13
11
  }: {
14
- explorerApiKey?: string
15
12
  explorerProxyUrl?: string
16
- explorerPageSize?: number
17
- }) =>
18
- createScrollChainCustom({
13
+ }) => {
14
+ return createScrollChainCustom({
19
15
  client: createClient({
20
16
  chain: scroll,
21
17
  httpRpcs: scrollHttpRpcs,
22
18
  }),
23
- explorer: createEtherscanV2({
24
- name: 'Scrollscan',
25
- baseUrl: 'https://scrollscan.com',
26
- chainId: 534_352,
27
- apiKey,
19
+ explorer: createBlockscout({
20
+ name: 'Scroll Blockscout',
21
+ baseUrl: 'https://scroll.blockscout.com',
22
+ apiBaseUrl: 'https://scroll.blockscout.com/api',
28
23
  proxyUrl,
29
- pageSize,
30
24
  }),
31
25
  })
26
+ }
32
27
 
33
28
  type CreateScrollChainParameters = {
34
29
  client: Client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xtorch/evm",
3
- "version": "0.0.163",
3
+ "version": "0.0.164",
4
4
  "description": "Cryptorch EVM extension",
5
5
  "keywords": [
6
6
  "cryptorch",
@@ -38,9 +38,9 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@0xtorch/big-decimal": "^0.0.14",
41
- "@0xtorch/core": "^0.0.67",
41
+ "@0xtorch/core": "^0.0.68",
42
42
  "abitype": "^1.0.9",
43
- "viem": "^2.47.10",
43
+ "viem": "^2.47.11",
44
44
  "zod": "^3.24.4"
45
45
  }
46
46
  }