@pimlico/mock-paymaster 0.0.2
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/CHANGELOG.md +7 -0
- package/_cjs/helpers/abi.js +1049 -0
- package/_cjs/helpers/abi.js.map +1 -0
- package/_cjs/helpers/erc20-utils.js +52 -0
- package/_cjs/helpers/erc20-utils.js.map +1 -0
- package/_cjs/helpers/schema.js +263 -0
- package/_cjs/helpers/schema.js.map +1 -0
- package/_cjs/helpers/utils.js +38 -0
- package/_cjs/helpers/utils.js.map +1 -0
- package/_cjs/index.js +55 -0
- package/_cjs/index.js.map +1 -0
- package/_cjs/package.json +1 -0
- package/_cjs/relay.js +250 -0
- package/_cjs/relay.js.map +1 -0
- package/_cjs/singletonPaymasters.js +266 -0
- package/_cjs/singletonPaymasters.js.map +1 -0
- package/_esm/helpers/abi.js +1046 -0
- package/_esm/helpers/abi.js.map +1 -0
- package/_esm/helpers/erc20-utils.js +46 -0
- package/_esm/helpers/erc20-utils.js.map +1 -0
- package/_esm/helpers/schema.js +260 -0
- package/_esm/helpers/schema.js.map +1 -0
- package/_esm/helpers/utils.js +39 -0
- package/_esm/helpers/utils.js.map +1 -0
- package/_esm/index.js +52 -0
- package/_esm/index.js.map +1 -0
- package/_esm/package.json +1 -0
- package/_esm/relay.js +249 -0
- package/_esm/relay.js.map +1 -0
- package/_esm/singletonPaymasters.js +263 -0
- package/_esm/singletonPaymasters.js.map +1 -0
- package/_types/helpers/abi.d.ts +977 -0
- package/_types/helpers/abi.d.ts.map +1 -0
- package/_types/helpers/erc20-utils.d.ts +10 -0
- package/_types/helpers/erc20-utils.d.ts.map +1 -0
- package/_types/helpers/schema.d.ts +1091 -0
- package/_types/helpers/schema.d.ts.map +1 -0
- package/_types/helpers/utils.d.ts +15 -0
- package/_types/helpers/utils.d.ts.map +1 -0
- package/_types/index.d.ts +6 -0
- package/_types/index.d.ts.map +1 -0
- package/_types/relay.d.ts +86 -0
- package/_types/relay.d.ts.map +1 -0
- package/_types/singletonPaymasters.d.ts +93267 -0
- package/_types/singletonPaymasters.d.ts.map +1 -0
- package/helpers/abi.ts +1046 -0
- package/helpers/erc20-utils.ts +80 -0
- package/helpers/schema.ts +272 -0
- package/helpers/utils.ts +77 -0
- package/index.ts +78 -0
- package/package.json +38 -0
- package/relay.ts +430 -0
- package/singletonPaymasters.ts +381 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../helpers/abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6mB9B,CAAA;AAEV,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsa9B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Account, type Address, type Chain, type PublicClient, type Transport, type WalletClient } from "viem";
|
|
2
|
+
export declare const deployErc20Token: (walletClient: WalletClient<Transport, Chain, Account>, publicClient: PublicClient) => Promise<void>;
|
|
3
|
+
export declare const tokenBalanceOf: (holder: Address, anvilRpc: string) => Promise<bigint>;
|
|
4
|
+
export declare const sudoMintTokens: ({ amount, to, anvilRpc }: {
|
|
5
|
+
amount: bigint;
|
|
6
|
+
to: Address;
|
|
7
|
+
anvilRpc: string;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
export declare const ERC20_ADDRESS: `0x${string}`;
|
|
10
|
+
//# sourceMappingURL=erc20-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc20-utils.d.ts","sourceRoot":"","sources":["../../helpers/erc20-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EAQpB,MAAM,MAAM,CAAA;AAQb,eAAO,MAAM,gBAAgB,GACzB,cAAc,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACrD,cAAc,YAAY,kBAa7B,CAAA;AAED,eAAO,MAAM,cAAc,GAAU,QAAQ,OAAO,EAAE,UAAU,MAAM,oBAarE,CAAA;AAED,eAAO,MAAM,cAAc,GAAU,0BAIlC;IACC,MAAM,EAAE,MAAM,CAAA;IACd,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;CACnB,kBAWA,CAAA;AAED,eAAO,MAAM,aAAa,eAIxB,CAAA"}
|