levr-sdk 0.3.1 → 0.4.0
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/dist/esm/abis/IClankerFeeLocker.js +215 -0
- package/dist/esm/abis/IClankerLpLockerFeeConversion.js +26 -0
- package/dist/esm/abis/LevrDeployer_v1.js +86 -0
- package/dist/esm/abis/LevrFactory_v1.js +603 -66
- package/dist/esm/abis/LevrFeeSplitter_v1.js +5 -58
- package/dist/esm/abis/LevrGovernor_v1.js +215 -14
- package/dist/esm/abis/LevrStakedToken_v1.js +15 -0
- package/dist/esm/abis/LevrStaking_v1.js +318 -63
- package/dist/esm/abis/LevrTreasury_v1.js +34 -38
- package/dist/esm/abis/index.js +2 -0
- package/dist/esm/airdrop.js +29 -14
- package/dist/esm/airdrop.js.map +1 -1
- package/dist/esm/build-calldatas-v4.js +2 -1
- package/dist/esm/build-calldatas-v4.js.map +1 -1
- package/dist/esm/build-clanker-v4.js +6 -1
- package/dist/esm/build-clanker-v4.js.map +1 -1
- package/dist/esm/client/hook/use-project.js +6 -3
- package/dist/esm/client/hook/use-project.js.map +1 -1
- package/dist/esm/client/hook/use-register.js +1 -1
- package/dist/esm/client/hook/use-stake.js +1 -1
- package/dist/esm/client/levr-provider.js +43 -72
- package/dist/esm/client/levr-provider.js.map +1 -1
- package/dist/esm/client/query-keys.js +1 -1
- package/dist/esm/client/query-keys.js.map +1 -1
- package/dist/esm/constants/clanker.js +84 -0
- package/dist/esm/constants/clanker.js.map +1 -0
- package/dist/esm/constants/config.js +71 -0
- package/dist/esm/constants/config.js.map +1 -0
- package/dist/esm/constants/index.js +52 -0
- package/dist/esm/constants/index.js.map +1 -0
- package/dist/esm/constants/levr.js +34 -0
- package/dist/esm/constants/levr.js.map +1 -0
- package/dist/esm/constants/uniswap.js +86 -0
- package/dist/esm/constants/uniswap.js.map +1 -0
- package/dist/esm/deploy-v4.js +1 -1
- package/dist/esm/factory.js +84 -7
- package/dist/esm/factory.js.map +1 -1
- package/dist/esm/fee-receivers.js +1 -1
- package/dist/esm/fee-splitter.js +1 -1
- package/dist/esm/governance.js +4 -3
- package/dist/esm/governance.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/pool-key.js +1 -1
- package/dist/esm/pool.js +1 -1
- package/dist/esm/project.js +194 -55
- package/dist/esm/project.js.map +1 -1
- package/dist/esm/proposal.js +1 -0
- package/dist/esm/proposal.js.map +1 -1
- package/dist/esm/quote/v4.js +1 -1
- package/dist/esm/schema/levr.schema.js +37 -10
- package/dist/esm/schema/levr.schema.js.map +1 -1
- package/dist/esm/stake.js +137 -61
- package/dist/esm/stake.js.map +1 -1
- package/dist/esm/swap-v4.js +1 -1
- package/dist/esm/usd-price.js +1 -1
- package/dist/esm/user.js +13 -6
- package/dist/esm/user.js.map +1 -1
- package/dist/esm/util.js +58 -2
- package/dist/esm/util.js.map +1 -1
- package/dist/esm/vault.js +1 -1
- package/dist/types/abis/IClankerFeeLocker.d.ts +169 -0
- package/dist/types/abis/IClankerLpLockerFeeConversion.d.ts +20 -0
- package/dist/types/abis/LevrDeployer_v1.d.ts +67 -0
- package/dist/types/abis/LevrFactory_v1.d.ts +454 -39
- package/dist/types/abis/LevrFeeSplitter_v1.d.ts +4 -44
- package/dist/types/abis/LevrGovernor_v1.d.ts +172 -14
- package/dist/types/abis/LevrStakedToken_v1.d.ts +12 -0
- package/dist/types/abis/LevrStaking_v1.d.ts +258 -61
- package/dist/types/abis/LevrTreasury_v1.d.ts +29 -31
- package/dist/types/abis/index.d.ts +2 -0
- package/dist/types/airdrop.d.ts +2 -1
- package/dist/types/airdrop.d.ts.map +1 -1
- package/dist/types/build-calldatas-v4.d.ts +1 -0
- package/dist/types/build-calldatas-v4.d.ts.map +1 -1
- package/dist/types/build-clanker-v4.d.ts +2 -1
- package/dist/types/build-clanker-v4.d.ts.map +1 -1
- package/dist/types/client/hook/use-factory.d.ts +2 -0
- package/dist/types/client/hook/use-factory.d.ts.map +1 -1
- package/dist/types/client/hook/use-project.d.ts.map +1 -1
- package/dist/types/client/levr-provider.d.ts.map +1 -1
- package/dist/types/client/query-keys.d.ts +1 -1
- package/dist/types/client/query-keys.d.ts.map +1 -1
- package/dist/types/constants/clanker.d.ts +31 -0
- package/dist/types/constants/clanker.d.ts.map +1 -0
- package/dist/types/constants/config.d.ts +71 -0
- package/dist/types/constants/config.d.ts.map +1 -0
- package/dist/types/constants/index.d.ts +35 -0
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/constants/levr.d.ts +17 -0
- package/dist/types/constants/levr.d.ts.map +1 -0
- package/dist/types/constants/uniswap.d.ts +37 -0
- package/dist/types/constants/uniswap.d.ts.map +1 -0
- package/dist/types/factory.d.ts +20 -3
- package/dist/types/factory.d.ts.map +1 -1
- package/dist/types/fee-receivers.d.ts +17 -177
- package/dist/types/fee-receivers.d.ts.map +1 -1
- package/dist/types/governance.d.ts +2 -0
- package/dist/types/governance.d.ts.map +1 -1
- package/dist/types/project.d.ts +17 -2
- package/dist/types/project.d.ts.map +1 -1
- package/dist/types/proposal.d.ts +344 -28
- package/dist/types/proposal.d.ts.map +1 -1
- package/dist/types/schema/levr.schema.d.ts +21 -0
- package/dist/types/schema/levr.schema.d.ts.map +1 -1
- package/dist/types/stake.d.ts +20 -34
- package/dist/types/stake.d.ts.map +1 -1
- package/dist/types/user.d.ts +813 -1
- package/dist/types/user.d.ts.map +1 -1
- package/dist/types/util.d.ts +4 -0
- package/dist/types/util.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/esm/constants.js +0 -300
- package/dist/esm/constants.js.map +0 -1
- package/dist/types/constants.d.ts +0 -177
- package/dist/types/constants.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-factory.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/use-factory.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"use-factory.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/use-factory.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE;;;;;;;;;;;;kBAiBnE;AAED;;GAEG;AACH,wBAAgB,UAAU;;;;;;;;;;;;WAEzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-project.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/use-project.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAGnC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"use-project.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/use-project.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAGnC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAA2B,aAAa,EAAE,MAAM,OAAO,CAAA;AAEnG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAGlD,MAAM,MAAM,2BAA2B,GAAG;IACxC,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,OAAO,EAAE,CAAQ,GAClB,EAAE,2BAA2B,+EAkB7B;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B,kBAAkB,EAAE,eAAe,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,kBAAkB,EAClB,OAAO,EAAE,CAAQ,GAClB,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCvB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAExC,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAE,iBAAsB,yEAiBvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"levr-provider.d.ts","sourceRoot":"","sources":["../../../src/client/levr-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,
|
|
1
|
+
{"version":3,"file":"levr-provider.d.ts","sourceRoot":"","sources":["../../../src/client/levr-provider.tsx"],"names":[],"mappings":"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"}
|
|
@@ -7,7 +7,7 @@ export declare const queryKeys: {
|
|
|
7
7
|
/**
|
|
8
8
|
* Static project query key (doesn't change frequently - includes feeSplitter config)
|
|
9
9
|
*/
|
|
10
|
-
readonly staticProject: (token: Address, chainId: number) => readonly ["static-project", `0x${string}`, number];
|
|
10
|
+
readonly staticProject: (token: Address, chainId: number, userAddress?: Address | null) => readonly ["static-project", `0x${string}`, number, `0x${string}` | null];
|
|
11
11
|
/**
|
|
12
12
|
* Project query key (dynamic data - treasury stats, staking stats, etc.)
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../src/client/query-keys.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC;;;GAGG;AACH,eAAO,MAAM,SAAS;IACpB;;OAEG;oCACoB,OAAO,WAAW,MAAM;
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../src/client/query-keys.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC;;;GAGG;AACH,eAAO,MAAM,SAAS;IACpB;;OAEG;oCACoB,OAAO,WAAW,MAAM,gBAAgB,OAAO,GAAG,IAAI;IAG7E;;OAEG;8BACc,OAAO,WAAW,MAAM;IAEzC;;OAEG;iCACiB,OAAO,SAAS,OAAO,WAAW,OAAO,YAAY,OAAO;IAGhF;;OAEG;8BACc,OAAO;IAExB;;OAEG;iCACiB,MAAM,kBAAkB,OAAO;2CAGrB,OAAO;IAErC;;OAEG;;8CAE4B,OAAO,eAAe,MAAM;uDAEnB,OAAO,YAAY,MAAM;4CAEpC,OAAO,YAAY,MAAM;qDAEhB,OAAO,YAAY,MAAM,gBAAgB,OAAO;;IAItF;;OAEG;mCACmB,MAAM,YAAY,MAAM,gBAAgB,OAAO;kCAGhD,MAAM,YAAY,MAAM,eAAe,MAAM;IAGlE;;OAEG;yCACyB,OAAO,YAAY,MAAM;IAGrD;;OAEG;;mCAGW,MAAM,YACN,OAAO,eACJ,OAAO,aACT,MAAM,qBACE,MAAM;;IAI7B;;OAEG;uCACuB,MAAM;IAEhC;;OAEG;6BACa,OAAO,YAAY,MAAM;CACjC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the LP locker address for a given chain ID
|
|
3
|
+
* @param chainId - The chain ID
|
|
4
|
+
* @returns The LP locker address
|
|
5
|
+
*/
|
|
6
|
+
export declare const GET_LP_LOCKER_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Get the Fee locker address for a given chain ID
|
|
9
|
+
* @param chainId - The chain ID
|
|
10
|
+
* @returns The Fee locker address
|
|
11
|
+
*/
|
|
12
|
+
export declare const GET_FEE_LOCKER_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Get the Clanker Factory address for a given chain ID
|
|
15
|
+
* @param chainId - The chain ID
|
|
16
|
+
* @returns The Clanker Factory address (same on Base mainnet and Base Sepolia)
|
|
17
|
+
*/
|
|
18
|
+
export declare const GET_CLANKER_FACTORY_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Get the Clanker Airdrop address for a given chain ID
|
|
21
|
+
* @param chainId - The chain ID
|
|
22
|
+
* @returns The Clanker Airdrop address
|
|
23
|
+
*/
|
|
24
|
+
export declare const GET_CLANKER_AIRDROP_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Get the Vault address for a given chain ID
|
|
27
|
+
* @param chainId - The chain ID
|
|
28
|
+
* @returns The Vault address
|
|
29
|
+
*/
|
|
30
|
+
export declare const GET_VAULT_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
31
|
+
//# sourceMappingURL=clanker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clanker.d.ts","sourceRoot":"","sources":["../../../src/constants/clanker.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAWxE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAWzE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAY9E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAW9E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAWpE,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Percentage of LP fees allocated to Levr team (0-100)
|
|
3
|
+
* This is automatically included in all deployments via the UI
|
|
4
|
+
*/
|
|
5
|
+
export declare const LEVR_TEAM_LP_FEE_PERCENTAGE: 2;
|
|
6
|
+
/**
|
|
7
|
+
* Staking rewards in basis points
|
|
8
|
+
* User-facing percentages of LP fees allocated to staking (before team fee is subtracted)
|
|
9
|
+
* Note: Team fee is automatically deducted in the deployment logic
|
|
10
|
+
*/
|
|
11
|
+
export declare const STAKING_REWARDS: {
|
|
12
|
+
readonly '100%': 10000;
|
|
13
|
+
readonly '90%': 9000;
|
|
14
|
+
readonly '80%': 8000;
|
|
15
|
+
readonly '70%': 7000;
|
|
16
|
+
readonly '60%': 6000;
|
|
17
|
+
readonly '50%': 5000;
|
|
18
|
+
readonly '40%': 4000;
|
|
19
|
+
};
|
|
20
|
+
export declare const STATIC_FEE_TIERS: {
|
|
21
|
+
readonly '1%': 100;
|
|
22
|
+
readonly '2%': 200;
|
|
23
|
+
readonly '3%': 300;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Vault lockup period options (in days)
|
|
27
|
+
* Tokens are locked for this period and cannot be claimed
|
|
28
|
+
*/
|
|
29
|
+
export declare const VAULT_LOCKUP_PERIODS: {
|
|
30
|
+
readonly '30 days': 30;
|
|
31
|
+
readonly '90 days': 90;
|
|
32
|
+
readonly '180 days': 180;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Vault vesting period options (in days)
|
|
36
|
+
* Linear vesting occurs between end of lockup and end of vesting period
|
|
37
|
+
* 'instant' means tokens are claimable immediately once lockup ends (no vesting period)
|
|
38
|
+
*/
|
|
39
|
+
export declare const VAULT_VESTING_PERIODS: {
|
|
40
|
+
readonly instant: 0;
|
|
41
|
+
readonly '30 days': 30;
|
|
42
|
+
readonly '180 days': 180;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Vault allocation percentage options
|
|
46
|
+
* Percentage of total token supply (100B tokens) allocated to vault
|
|
47
|
+
*/
|
|
48
|
+
export declare const VAULT_PERCENTAGES: {
|
|
49
|
+
readonly '5%': 5;
|
|
50
|
+
readonly '10%': 10;
|
|
51
|
+
readonly '15%': 15;
|
|
52
|
+
readonly '20%': 20;
|
|
53
|
+
readonly '25%': 25;
|
|
54
|
+
readonly '30%': 30;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Common treasury airdrop amounts in tokens (not wei)
|
|
58
|
+
* First value is used as default in deployV4
|
|
59
|
+
*/
|
|
60
|
+
export declare const TREASURY_AIRDROP_AMOUNTS: {
|
|
61
|
+
readonly '10%': 10000000000;
|
|
62
|
+
readonly '20%': 20000000000;
|
|
63
|
+
readonly '30%': 30000000000;
|
|
64
|
+
readonly '40%': 40000000000;
|
|
65
|
+
readonly '50%': 50000000000;
|
|
66
|
+
readonly '60%': 60000000000;
|
|
67
|
+
readonly '70%': 70000000000;
|
|
68
|
+
readonly '80%': 80000000000;
|
|
69
|
+
readonly '90%': 90000000000;
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/constants/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAG,CAAU,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;CAQlB,CAAA;AAEV,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAA;AAEV;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;CAU3B,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BigNumber } from 'ethers';
|
|
2
|
+
export * from './clanker';
|
|
3
|
+
export * from './config';
|
|
4
|
+
export * from './levr';
|
|
5
|
+
export * from './uniswap';
|
|
6
|
+
/**
|
|
7
|
+
* Get the WETH address for a given chain ID
|
|
8
|
+
* @param chainId - The chain ID
|
|
9
|
+
* @returns The WETH address
|
|
10
|
+
*/
|
|
11
|
+
export declare const WETH: (chainId?: number) => {
|
|
12
|
+
address: `0x${string}`;
|
|
13
|
+
decimals: number;
|
|
14
|
+
symbol: string;
|
|
15
|
+
name: string;
|
|
16
|
+
} | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Contract balance representation, for use in Universal Router
|
|
19
|
+
*/
|
|
20
|
+
export declare const CONTRACT_BALANCE: BigNumber;
|
|
21
|
+
/**
|
|
22
|
+
* MSG_SENDER representation, for use in Universal Router
|
|
23
|
+
*/
|
|
24
|
+
export declare const MSG_SENDER = "0x0000000000000000000000000000000000000001";
|
|
25
|
+
/**
|
|
26
|
+
* ADDRESS_THIS representation, for use in Universal Router
|
|
27
|
+
*/
|
|
28
|
+
export declare const ADDRESS_THIS = "0x0000000000000000000000000000000000000002";
|
|
29
|
+
/**
|
|
30
|
+
* Get the USDC address for a given chain ID
|
|
31
|
+
* @param chainId - The chain ID
|
|
32
|
+
* @returns The USDC address
|
|
33
|
+
*/
|
|
34
|
+
export declare const GET_USDC_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGlC,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AAEzB;;;;GAIG;AACH,eAAO,MAAM,IAAI,GACf,UAAU,MAAM,KAEd;IACE,OAAO,EAAE,KAAK,MAAM,EAAE,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb,GACD,SAeH,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,WAE5B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,+CAA+C,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,YAAY,+CAA+C,CAAA;AAExE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAOnE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the factory address for a given chain ID
|
|
3
|
+
* @param chainId - The chain ID
|
|
4
|
+
* @returns The factory address
|
|
5
|
+
*/
|
|
6
|
+
export declare const GET_FACTORY_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Get the fee splitter factory address for a given chain ID
|
|
9
|
+
* @param chainId - The chain ID
|
|
10
|
+
* @returns The fee splitter factory address
|
|
11
|
+
*/
|
|
12
|
+
export declare const GET_FEE_SPLITTER_FACTORY_ADDRESS: (chainId?: number) => `0x${string}` | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Levr team wallet address that receives LP fees from deployments
|
|
15
|
+
*/
|
|
16
|
+
export declare const LEVR_TEAM_WALLET: "0x4B7ddAc59cEeC3dE4706C460f34Bbce758a58bED";
|
|
17
|
+
//# sourceMappingURL=levr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"levr.d.ts","sourceRoot":"","sources":["../../../src/constants/levr.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQtE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQnF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAG,4CAAqD,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the Uniswap V4 Permit2 address for a given chain ID
|
|
3
|
+
* @param chainId - The chain ID
|
|
4
|
+
* @returns The Permit2 address
|
|
5
|
+
*/
|
|
6
|
+
export declare const UNISWAP_V4_PERMIT2: (chainId?: number) => `0x${string}` | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Get the Uniswap V4 Quoter address for a given chain ID
|
|
9
|
+
* @param chainId - The chain ID
|
|
10
|
+
* @returns The Quoter address
|
|
11
|
+
*/
|
|
12
|
+
export declare const UNISWAP_V4_QUOTER: (chainId?: number) => `0x${string}` | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Get the Uniswap V4 Universal Router address for a given chain ID
|
|
15
|
+
* @param chainId - The chain ID
|
|
16
|
+
* @returns The Uniswap V4 Universal Router address
|
|
17
|
+
*/
|
|
18
|
+
export declare const UNISWAP_V4_UNIVERSAL_ROUTER: (chainId?: number) => `0x${string}` | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Get the Uniswap V4 Pool Manager address for a given chain ID
|
|
21
|
+
* @param chainId - The chain ID
|
|
22
|
+
* @returns The Pool Manager address
|
|
23
|
+
*/
|
|
24
|
+
export declare const UNISWAP_V4_POOL_MANAGER: (chainId?: number) => `0x${string}` | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Get the Uniswap V4 StateView address for a given chain ID
|
|
27
|
+
* @param chainId - The chain ID
|
|
28
|
+
* @returns The StateView address
|
|
29
|
+
*/
|
|
30
|
+
export declare const UNISWAP_V4_STATE_VIEW: (chainId?: number) => `0x${string}` | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Get the Uniswap V3 Quoter V2 address for a given chain ID
|
|
33
|
+
* @param chainId - The chain ID
|
|
34
|
+
* @returns The V3 Quoter V2 address
|
|
35
|
+
*/
|
|
36
|
+
export declare const UNISWAP_V3_QUOTER_V2: (chainId?: number) => `0x${string}` | undefined;
|
|
37
|
+
//# sourceMappingURL=uniswap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uniswap.d.ts","sourceRoot":"","sources":["../../../src/constants/uniswap.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQrE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQpE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQ9E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQ1E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQxE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,KAAG,KAAK,MAAM,EAAE,GAAG,SAQvE,CAAA"}
|
package/dist/types/factory.d.ts
CHANGED
|
@@ -10,12 +10,29 @@ export type FactoryConfig = Readonly<{
|
|
|
10
10
|
approvalBps: number;
|
|
11
11
|
minSTokenBpsToSubmit: number;
|
|
12
12
|
maxProposalAmountBps: number;
|
|
13
|
+
minimumQuorumBps: number;
|
|
13
14
|
}>;
|
|
14
15
|
/**
|
|
15
|
-
* Fetches the factory configuration from the blockchain
|
|
16
|
+
* Fetches the global factory configuration from the blockchain
|
|
16
17
|
* @param publicClient - The public client for reading from the blockchain
|
|
17
18
|
* @param chainId - The chain ID
|
|
18
|
-
* @returns The factory configuration
|
|
19
|
+
* @returns The global factory configuration
|
|
19
20
|
*/
|
|
20
|
-
export declare function
|
|
21
|
+
export declare function getGlobalFactoryConfig(publicClient: PublicClient, chainId: number): Promise<Pick<FactoryConfig, 'protocolFeeBps' | 'protocolTreasury'> | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Fetches the project-specific factory configuration from the blockchain
|
|
24
|
+
* @param publicClient - The public client for reading from the blockchain
|
|
25
|
+
* @param factoryAddress - The factory address
|
|
26
|
+
* @param clankerToken - The Clanker token address
|
|
27
|
+
* @returns The project-specific factory configuration
|
|
28
|
+
*/
|
|
29
|
+
export declare function getProjectFactoryConfig(publicClient: PublicClient, factoryAddress: Address, clankerToken: Address): Promise<Omit<FactoryConfig, 'protocolFeeBps' | 'protocolTreasury'> | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetches the complete factory configuration from the blockchain
|
|
32
|
+
* @param publicClient - The public client for reading from the blockchain
|
|
33
|
+
* @param chainId - The chain ID
|
|
34
|
+
* @param clankerToken - The Clanker token address (for project-specific config, defaults to zero address)
|
|
35
|
+
* @returns The complete factory configuration
|
|
36
|
+
*/
|
|
37
|
+
export declare function getFactoryConfig(publicClient: PublicClient, chainId: number, clankerToken?: Address): Promise<FactoryConfig | null>;
|
|
21
38
|
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAMjD,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAC,CAAA;AAEF;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,gBAAgB,GAAG,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAsC5E;AAED;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,OAAO,EACvB,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,gBAAgB,GAAG,kBAAkB,CAAC,GAAG,IAAI,CAAC,CA8F5E;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,OAAO,GACrB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CA4B/B"}
|
|
@@ -566,7 +566,7 @@ export declare function parseFeeReceivers(tokenRewardsResult: {
|
|
|
566
566
|
rewardAdmins?: readonly `0x${string}`[];
|
|
567
567
|
rewardRecipients?: readonly `0x${string}`[];
|
|
568
568
|
rewardBps?: readonly number[];
|
|
569
|
-
feePreferences?: readonly number[];
|
|
569
|
+
feePreferences?: readonly (number | undefined)[];
|
|
570
570
|
}, userAddress?: `0x${string}`): FeeReceiverAdmin[];
|
|
571
571
|
/**
|
|
572
572
|
* Get fee receivers for a clanker token
|
|
@@ -835,34 +835,6 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
835
835
|
readonly internalType: "bool";
|
|
836
836
|
}];
|
|
837
837
|
readonly stateMutability: "view";
|
|
838
|
-
}, {
|
|
839
|
-
readonly type: "function";
|
|
840
|
-
readonly name: "pendingFees";
|
|
841
|
-
readonly inputs: readonly [{
|
|
842
|
-
readonly name: "rewardToken";
|
|
843
|
-
readonly type: "address";
|
|
844
|
-
readonly internalType: "address";
|
|
845
|
-
}];
|
|
846
|
-
readonly outputs: readonly [{
|
|
847
|
-
readonly name: "pending";
|
|
848
|
-
readonly type: "uint256";
|
|
849
|
-
readonly internalType: "uint256";
|
|
850
|
-
}];
|
|
851
|
-
readonly stateMutability: "view";
|
|
852
|
-
}, {
|
|
853
|
-
readonly type: "function";
|
|
854
|
-
readonly name: "pendingFeesInclBalance";
|
|
855
|
-
readonly inputs: readonly [{
|
|
856
|
-
readonly name: "rewardToken";
|
|
857
|
-
readonly type: "address";
|
|
858
|
-
readonly internalType: "address";
|
|
859
|
-
}];
|
|
860
|
-
readonly outputs: readonly [{
|
|
861
|
-
readonly name: "pending";
|
|
862
|
-
readonly type: "uint256";
|
|
863
|
-
readonly internalType: "uint256";
|
|
864
|
-
}];
|
|
865
|
-
readonly stateMutability: "view";
|
|
866
838
|
}, {
|
|
867
839
|
readonly type: "function";
|
|
868
840
|
readonly name: "recoverDust";
|
|
@@ -1026,10 +998,6 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1026
998
|
readonly internalType: "uint256";
|
|
1027
999
|
}];
|
|
1028
1000
|
readonly anonymous: false;
|
|
1029
|
-
}, {
|
|
1030
|
-
readonly type: "error";
|
|
1031
|
-
readonly name: "ClankerMetadataNotFound";
|
|
1032
|
-
readonly inputs: readonly [];
|
|
1033
1001
|
}, {
|
|
1034
1002
|
readonly type: "error";
|
|
1035
1003
|
readonly name: "DuplicateReceiver";
|
|
@@ -1038,22 +1006,10 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1038
1006
|
readonly type: "error";
|
|
1039
1007
|
readonly name: "DuplicateStakingReceiver";
|
|
1040
1008
|
readonly inputs: readonly [];
|
|
1041
|
-
}, {
|
|
1042
|
-
readonly type: "error";
|
|
1043
|
-
readonly name: "InvalidSplits";
|
|
1044
|
-
readonly inputs: readonly [];
|
|
1045
1009
|
}, {
|
|
1046
1010
|
readonly type: "error";
|
|
1047
1011
|
readonly name: "InvalidTotalBps";
|
|
1048
1012
|
readonly inputs: readonly [];
|
|
1049
|
-
}, {
|
|
1050
|
-
readonly type: "error";
|
|
1051
|
-
readonly name: "LpLockerNotConfigured";
|
|
1052
|
-
readonly inputs: readonly [];
|
|
1053
|
-
}, {
|
|
1054
|
-
readonly type: "error";
|
|
1055
|
-
readonly name: "NoPendingFees";
|
|
1056
|
-
readonly inputs: readonly [];
|
|
1057
1013
|
}, {
|
|
1058
1014
|
readonly type: "error";
|
|
1059
1015
|
readonly name: "NoReceivers";
|
|
@@ -1082,6 +1038,10 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1082
1038
|
readonly type: "error";
|
|
1083
1039
|
readonly name: "SplitsNotConfigured";
|
|
1084
1040
|
readonly inputs: readonly [];
|
|
1041
|
+
}, {
|
|
1042
|
+
readonly type: "error";
|
|
1043
|
+
readonly name: "TokenNotTrusted";
|
|
1044
|
+
readonly inputs: readonly [];
|
|
1085
1045
|
}, {
|
|
1086
1046
|
readonly type: "error";
|
|
1087
1047
|
readonly name: "TooManyReceivers";
|
|
@@ -1259,34 +1219,6 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1259
1219
|
readonly internalType: "bool";
|
|
1260
1220
|
}];
|
|
1261
1221
|
readonly stateMutability: "view";
|
|
1262
|
-
}, {
|
|
1263
|
-
readonly type: "function";
|
|
1264
|
-
readonly name: "pendingFees";
|
|
1265
|
-
readonly inputs: readonly [{
|
|
1266
|
-
readonly name: "rewardToken";
|
|
1267
|
-
readonly type: "address";
|
|
1268
|
-
readonly internalType: "address";
|
|
1269
|
-
}];
|
|
1270
|
-
readonly outputs: readonly [{
|
|
1271
|
-
readonly name: "pending";
|
|
1272
|
-
readonly type: "uint256";
|
|
1273
|
-
readonly internalType: "uint256";
|
|
1274
|
-
}];
|
|
1275
|
-
readonly stateMutability: "view";
|
|
1276
|
-
}, {
|
|
1277
|
-
readonly type: "function";
|
|
1278
|
-
readonly name: "pendingFeesInclBalance";
|
|
1279
|
-
readonly inputs: readonly [{
|
|
1280
|
-
readonly name: "rewardToken";
|
|
1281
|
-
readonly type: "address";
|
|
1282
|
-
readonly internalType: "address";
|
|
1283
|
-
}];
|
|
1284
|
-
readonly outputs: readonly [{
|
|
1285
|
-
readonly name: "pending";
|
|
1286
|
-
readonly type: "uint256";
|
|
1287
|
-
readonly internalType: "uint256";
|
|
1288
|
-
}];
|
|
1289
|
-
readonly stateMutability: "view";
|
|
1290
1222
|
}, {
|
|
1291
1223
|
readonly type: "function";
|
|
1292
1224
|
readonly name: "recoverDust";
|
|
@@ -1450,10 +1382,6 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1450
1382
|
readonly internalType: "uint256";
|
|
1451
1383
|
}];
|
|
1452
1384
|
readonly anonymous: false;
|
|
1453
|
-
}, {
|
|
1454
|
-
readonly type: "error";
|
|
1455
|
-
readonly name: "ClankerMetadataNotFound";
|
|
1456
|
-
readonly inputs: readonly [];
|
|
1457
1385
|
}, {
|
|
1458
1386
|
readonly type: "error";
|
|
1459
1387
|
readonly name: "DuplicateReceiver";
|
|
@@ -1462,22 +1390,10 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1462
1390
|
readonly type: "error";
|
|
1463
1391
|
readonly name: "DuplicateStakingReceiver";
|
|
1464
1392
|
readonly inputs: readonly [];
|
|
1465
|
-
}, {
|
|
1466
|
-
readonly type: "error";
|
|
1467
|
-
readonly name: "InvalidSplits";
|
|
1468
|
-
readonly inputs: readonly [];
|
|
1469
1393
|
}, {
|
|
1470
1394
|
readonly type: "error";
|
|
1471
1395
|
readonly name: "InvalidTotalBps";
|
|
1472
1396
|
readonly inputs: readonly [];
|
|
1473
|
-
}, {
|
|
1474
|
-
readonly type: "error";
|
|
1475
|
-
readonly name: "LpLockerNotConfigured";
|
|
1476
|
-
readonly inputs: readonly [];
|
|
1477
|
-
}, {
|
|
1478
|
-
readonly type: "error";
|
|
1479
|
-
readonly name: "NoPendingFees";
|
|
1480
|
-
readonly inputs: readonly [];
|
|
1481
1397
|
}, {
|
|
1482
1398
|
readonly type: "error";
|
|
1483
1399
|
readonly name: "NoReceivers";
|
|
@@ -1506,6 +1422,10 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1506
1422
|
readonly type: "error";
|
|
1507
1423
|
readonly name: "SplitsNotConfigured";
|
|
1508
1424
|
readonly inputs: readonly [];
|
|
1425
|
+
}, {
|
|
1426
|
+
readonly type: "error";
|
|
1427
|
+
readonly name: "TokenNotTrusted";
|
|
1428
|
+
readonly inputs: readonly [];
|
|
1509
1429
|
}, {
|
|
1510
1430
|
readonly type: "error";
|
|
1511
1431
|
readonly name: "TooManyReceivers";
|
|
@@ -1683,34 +1603,6 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1683
1603
|
readonly internalType: "bool";
|
|
1684
1604
|
}];
|
|
1685
1605
|
readonly stateMutability: "view";
|
|
1686
|
-
}, {
|
|
1687
|
-
readonly type: "function";
|
|
1688
|
-
readonly name: "pendingFees";
|
|
1689
|
-
readonly inputs: readonly [{
|
|
1690
|
-
readonly name: "rewardToken";
|
|
1691
|
-
readonly type: "address";
|
|
1692
|
-
readonly internalType: "address";
|
|
1693
|
-
}];
|
|
1694
|
-
readonly outputs: readonly [{
|
|
1695
|
-
readonly name: "pending";
|
|
1696
|
-
readonly type: "uint256";
|
|
1697
|
-
readonly internalType: "uint256";
|
|
1698
|
-
}];
|
|
1699
|
-
readonly stateMutability: "view";
|
|
1700
|
-
}, {
|
|
1701
|
-
readonly type: "function";
|
|
1702
|
-
readonly name: "pendingFeesInclBalance";
|
|
1703
|
-
readonly inputs: readonly [{
|
|
1704
|
-
readonly name: "rewardToken";
|
|
1705
|
-
readonly type: "address";
|
|
1706
|
-
readonly internalType: "address";
|
|
1707
|
-
}];
|
|
1708
|
-
readonly outputs: readonly [{
|
|
1709
|
-
readonly name: "pending";
|
|
1710
|
-
readonly type: "uint256";
|
|
1711
|
-
readonly internalType: "uint256";
|
|
1712
|
-
}];
|
|
1713
|
-
readonly stateMutability: "view";
|
|
1714
1606
|
}, {
|
|
1715
1607
|
readonly type: "function";
|
|
1716
1608
|
readonly name: "recoverDust";
|
|
@@ -1874,10 +1766,6 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1874
1766
|
readonly internalType: "uint256";
|
|
1875
1767
|
}];
|
|
1876
1768
|
readonly anonymous: false;
|
|
1877
|
-
}, {
|
|
1878
|
-
readonly type: "error";
|
|
1879
|
-
readonly name: "ClankerMetadataNotFound";
|
|
1880
|
-
readonly inputs: readonly [];
|
|
1881
1769
|
}, {
|
|
1882
1770
|
readonly type: "error";
|
|
1883
1771
|
readonly name: "DuplicateReceiver";
|
|
@@ -1886,22 +1774,10 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1886
1774
|
readonly type: "error";
|
|
1887
1775
|
readonly name: "DuplicateStakingReceiver";
|
|
1888
1776
|
readonly inputs: readonly [];
|
|
1889
|
-
}, {
|
|
1890
|
-
readonly type: "error";
|
|
1891
|
-
readonly name: "InvalidSplits";
|
|
1892
|
-
readonly inputs: readonly [];
|
|
1893
1777
|
}, {
|
|
1894
1778
|
readonly type: "error";
|
|
1895
1779
|
readonly name: "InvalidTotalBps";
|
|
1896
1780
|
readonly inputs: readonly [];
|
|
1897
|
-
}, {
|
|
1898
|
-
readonly type: "error";
|
|
1899
|
-
readonly name: "LpLockerNotConfigured";
|
|
1900
|
-
readonly inputs: readonly [];
|
|
1901
|
-
}, {
|
|
1902
|
-
readonly type: "error";
|
|
1903
|
-
readonly name: "NoPendingFees";
|
|
1904
|
-
readonly inputs: readonly [];
|
|
1905
1781
|
}, {
|
|
1906
1782
|
readonly type: "error";
|
|
1907
1783
|
readonly name: "NoReceivers";
|
|
@@ -1930,6 +1806,10 @@ export declare function getFeeSplitterStaticContracts(clankerToken: `0x${string}
|
|
|
1930
1806
|
readonly type: "error";
|
|
1931
1807
|
readonly name: "SplitsNotConfigured";
|
|
1932
1808
|
readonly inputs: readonly [];
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly type: "error";
|
|
1811
|
+
readonly name: "TokenNotTrusted";
|
|
1812
|
+
readonly inputs: readonly [];
|
|
1933
1813
|
}, {
|
|
1934
1814
|
readonly type: "error";
|
|
1935
1815
|
readonly name: "TooManyReceivers";
|
|
@@ -2131,34 +2011,6 @@ export declare function getFeeSplitterDynamicContracts(clankerToken: `0x${string
|
|
|
2131
2011
|
readonly internalType: "bool";
|
|
2132
2012
|
}];
|
|
2133
2013
|
readonly stateMutability: "view";
|
|
2134
|
-
}, {
|
|
2135
|
-
readonly type: "function";
|
|
2136
|
-
readonly name: "pendingFees";
|
|
2137
|
-
readonly inputs: readonly [{
|
|
2138
|
-
readonly name: "rewardToken";
|
|
2139
|
-
readonly type: "address";
|
|
2140
|
-
readonly internalType: "address";
|
|
2141
|
-
}];
|
|
2142
|
-
readonly outputs: readonly [{
|
|
2143
|
-
readonly name: "pending";
|
|
2144
|
-
readonly type: "uint256";
|
|
2145
|
-
readonly internalType: "uint256";
|
|
2146
|
-
}];
|
|
2147
|
-
readonly stateMutability: "view";
|
|
2148
|
-
}, {
|
|
2149
|
-
readonly type: "function";
|
|
2150
|
-
readonly name: "pendingFeesInclBalance";
|
|
2151
|
-
readonly inputs: readonly [{
|
|
2152
|
-
readonly name: "rewardToken";
|
|
2153
|
-
readonly type: "address";
|
|
2154
|
-
readonly internalType: "address";
|
|
2155
|
-
}];
|
|
2156
|
-
readonly outputs: readonly [{
|
|
2157
|
-
readonly name: "pending";
|
|
2158
|
-
readonly type: "uint256";
|
|
2159
|
-
readonly internalType: "uint256";
|
|
2160
|
-
}];
|
|
2161
|
-
readonly stateMutability: "view";
|
|
2162
2014
|
}, {
|
|
2163
2015
|
readonly type: "function";
|
|
2164
2016
|
readonly name: "recoverDust";
|
|
@@ -2322,10 +2174,6 @@ export declare function getFeeSplitterDynamicContracts(clankerToken: `0x${string
|
|
|
2322
2174
|
readonly internalType: "uint256";
|
|
2323
2175
|
}];
|
|
2324
2176
|
readonly anonymous: false;
|
|
2325
|
-
}, {
|
|
2326
|
-
readonly type: "error";
|
|
2327
|
-
readonly name: "ClankerMetadataNotFound";
|
|
2328
|
-
readonly inputs: readonly [];
|
|
2329
2177
|
}, {
|
|
2330
2178
|
readonly type: "error";
|
|
2331
2179
|
readonly name: "DuplicateReceiver";
|
|
@@ -2334,22 +2182,10 @@ export declare function getFeeSplitterDynamicContracts(clankerToken: `0x${string
|
|
|
2334
2182
|
readonly type: "error";
|
|
2335
2183
|
readonly name: "DuplicateStakingReceiver";
|
|
2336
2184
|
readonly inputs: readonly [];
|
|
2337
|
-
}, {
|
|
2338
|
-
readonly type: "error";
|
|
2339
|
-
readonly name: "InvalidSplits";
|
|
2340
|
-
readonly inputs: readonly [];
|
|
2341
2185
|
}, {
|
|
2342
2186
|
readonly type: "error";
|
|
2343
2187
|
readonly name: "InvalidTotalBps";
|
|
2344
2188
|
readonly inputs: readonly [];
|
|
2345
|
-
}, {
|
|
2346
|
-
readonly type: "error";
|
|
2347
|
-
readonly name: "LpLockerNotConfigured";
|
|
2348
|
-
readonly inputs: readonly [];
|
|
2349
|
-
}, {
|
|
2350
|
-
readonly type: "error";
|
|
2351
|
-
readonly name: "NoPendingFees";
|
|
2352
|
-
readonly inputs: readonly [];
|
|
2353
2189
|
}, {
|
|
2354
2190
|
readonly type: "error";
|
|
2355
2191
|
readonly name: "NoReceivers";
|
|
@@ -2378,6 +2214,10 @@ export declare function getFeeSplitterDynamicContracts(clankerToken: `0x${string
|
|
|
2378
2214
|
readonly type: "error";
|
|
2379
2215
|
readonly name: "SplitsNotConfigured";
|
|
2380
2216
|
readonly inputs: readonly [];
|
|
2217
|
+
}, {
|
|
2218
|
+
readonly type: "error";
|
|
2219
|
+
readonly name: "TokenNotTrusted";
|
|
2220
|
+
readonly inputs: readonly [];
|
|
2381
2221
|
}, {
|
|
2382
2222
|
readonly type: "error";
|
|
2383
2223
|
readonly name: "TooManyReceivers";
|