-
Notifications
You must be signed in to change notification settings - Fork 242
/
constants.ts
31 lines (25 loc) · 908 Bytes
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { Chain } from "../../../chains/types.js";
import { getThirdwebDomains } from "../../../utils/domains.js";
// dev only
export const DEBUG = false;
export const DUMMY_SIGNATURE =
"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c";
export const DEFAULT_ACCOUNT_FACTORY =
"0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00";
export const ENTRYPOINT_ADDRESS_v0_6 =
"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"; // v0.6
export const MANAGED_ACCOUNT_GAS_BUFFER = 50000n;
/**
* @internal
*/
export const getDefaultBundlerUrl = (chain: Chain) => {
const domain = getThirdwebDomains().bundler;
return `https://${chain.id}.${domain}/`;
};
/**
* @internal
*/
export const getDefaultPaymasterUrl = (chain: Chain) => {
const domain = getThirdwebDomains().bundler;
return `https://${chain.id}.${domain}/`;
};