@boostxyz/sdk 1.1.0-alpha.24 → 2.0.0-alpha.25

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.
Files changed (133) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +7 -7
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.cjs.map +1 -1
  5. package/dist/Actions/EventAction.d.ts +7 -7
  6. package/dist/Actions/EventAction.d.ts.map +1 -1
  7. package/dist/Actions/EventAction.js +153 -152
  8. package/dist/Actions/EventAction.js.map +1 -1
  9. package/dist/AllowLists/AllowList.cjs +1 -1
  10. package/dist/AllowLists/AllowList.js +10 -10
  11. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  12. package/dist/AllowLists/SimpleAllowList.js +10 -10
  13. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  14. package/dist/AllowLists/SimpleDenyList.js +3 -3
  15. package/dist/Auth/PassthroughAuth.cjs +1 -1
  16. package/dist/Auth/PassthroughAuth.js +1 -1
  17. package/dist/BoostCore.cjs +2 -1
  18. package/dist/BoostCore.cjs.map +1 -1
  19. package/dist/BoostCore.d.ts +564 -1
  20. package/dist/BoostCore.d.ts.map +1 -1
  21. package/dist/BoostCore.js +1322 -29
  22. package/dist/BoostCore.js.map +1 -1
  23. package/dist/BoostRegistry.cjs +1 -1
  24. package/dist/BoostRegistry.js +27 -27
  25. package/dist/Budgets/Budget.cjs +1 -1
  26. package/dist/Budgets/Budget.js +2 -2
  27. package/dist/Budgets/ManagedBudget.cjs +1 -1
  28. package/dist/Budgets/ManagedBudget.js +23 -23
  29. package/dist/Deployable/DeployableTarget.cjs +1 -1
  30. package/dist/Deployable/DeployableTarget.js +1 -1
  31. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  32. package/dist/Deployable/DeployableTargetWithRBAC.js +23 -23
  33. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  34. package/dist/Incentives/AllowListIncentive.js +8 -8
  35. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  36. package/dist/Incentives/CGDAIncentive.js +12 -12
  37. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  38. package/dist/Incentives/ERC20Incentive.js +16 -16
  39. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +2 -0
  40. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -0
  41. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +42 -15
  42. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
  43. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +188 -0
  44. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -0
  45. package/dist/Incentives/ERC20VariableIncentive.cjs +2 -0
  46. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -0
  47. package/dist/Incentives/ERC20VariableIncentive.d.ts +7 -5
  48. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  49. package/dist/{Incentive-rM5nKznp.js → Incentives/ERC20VariableIncentive.js} +42 -67
  50. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -0
  51. package/dist/Incentives/Incentive.cjs +1 -1
  52. package/dist/Incentives/Incentive.cjs.map +1 -1
  53. package/dist/Incentives/Incentive.d.ts +552 -3
  54. package/dist/Incentives/Incentive.d.ts.map +1 -1
  55. package/dist/Incentives/Incentive.js +40 -16
  56. package/dist/Incentives/Incentive.js.map +1 -1
  57. package/dist/Incentives/PointsIncentive.cjs +1 -1
  58. package/dist/Incentives/PointsIncentive.js +8 -8
  59. package/dist/{SimpleDenyList-DNj5qDWM.cjs → SimpleDenyList-BdlpZdDz.cjs} +2 -2
  60. package/dist/{SimpleDenyList-DNj5qDWM.cjs.map → SimpleDenyList-BdlpZdDz.cjs.map} +1 -1
  61. package/dist/{SimpleDenyList-BDXpY74P.js → SimpleDenyList-D0cyVUVv.js} +16 -16
  62. package/dist/{SimpleDenyList-BDXpY74P.js.map → SimpleDenyList-D0cyVUVv.js.map} +1 -1
  63. package/dist/Validators/LimitedSignerValidator.cjs +2 -0
  64. package/dist/Validators/LimitedSignerValidator.cjs.map +1 -0
  65. package/dist/Validators/LimitedSignerValidator.d.ts +806 -0
  66. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -0
  67. package/dist/Validators/LimitedSignerValidator.js +299 -0
  68. package/dist/Validators/LimitedSignerValidator.js.map +1 -0
  69. package/dist/Validators/SignerValidator.cjs +1 -1
  70. package/dist/Validators/SignerValidator.cjs.map +1 -1
  71. package/dist/Validators/SignerValidator.d.ts +2 -2
  72. package/dist/Validators/SignerValidator.js +5 -5
  73. package/dist/Validators/SignerValidator.js.map +1 -1
  74. package/dist/Validators/Validator.cjs +1 -1
  75. package/dist/Validators/Validator.cjs.map +1 -1
  76. package/dist/Validators/Validator.d.ts +22 -2
  77. package/dist/Validators/Validator.d.ts.map +1 -1
  78. package/dist/Validators/Validator.js +26 -17
  79. package/dist/Validators/Validator.js.map +1 -1
  80. package/dist/{componentInterfaces-BBCFkrZv.js → componentInterfaces-bIVo8eyA.js} +9 -9
  81. package/dist/componentInterfaces-bIVo8eyA.js.map +1 -0
  82. package/dist/{deployments-fJsWblwS.js → deployments-Ccx1MtoK.js} +5 -5
  83. package/dist/deployments-Ccx1MtoK.js.map +1 -0
  84. package/dist/{generated-CsNyWPKA.js → generated-BAKNSOjJ.js} +661 -381
  85. package/dist/generated-BAKNSOjJ.js.map +1 -0
  86. package/dist/generated-Cqn4wS01.cjs +3 -0
  87. package/dist/generated-Cqn4wS01.cjs.map +1 -0
  88. package/dist/index.cjs +1 -1
  89. package/dist/index.d.ts +1 -0
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +150 -138
  92. package/dist/index.js.map +1 -1
  93. package/dist/utils.cjs +1 -1
  94. package/dist/utils.cjs.map +1 -1
  95. package/dist/utils.d.ts +10 -0
  96. package/dist/utils.d.ts.map +1 -1
  97. package/dist/utils.js +27 -26
  98. package/dist/utils.js.map +1 -1
  99. package/package.json +21 -5
  100. package/src/Actions/EventAction.ts +29 -27
  101. package/src/BoostCore.test.ts +3 -3
  102. package/src/BoostCore.ts +51 -5
  103. package/src/Incentives/AllowListIncentive.test.ts +19 -21
  104. package/src/Incentives/CGDAIncentive.test.ts +20 -22
  105. package/src/Incentives/ERC1155Incentive.test.ts +14 -15
  106. package/src/Incentives/ERC20Incentive.test.ts +17 -19
  107. package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +62 -10
  108. package/src/Incentives/ERC20VariableCriteriaIncentive.ts +79 -37
  109. package/src/Incentives/ERC20VariableIncentive.test.ts +16 -18
  110. package/src/Incentives/ERC20VariableIncentive.ts +16 -8
  111. package/src/Incentives/Incentive.ts +4 -1
  112. package/src/Incentives/PointsIncentive.test.ts +3 -5
  113. package/src/Validators/LimitedSignerValidator.test.ts +223 -0
  114. package/src/Validators/LimitedSignerValidator.ts +707 -0
  115. package/src/Validators/SignerValidator.test.ts +21 -22
  116. package/src/Validators/SignerValidator.ts +2 -2
  117. package/src/Validators/Validator.test.ts +7 -1
  118. package/src/Validators/Validator.ts +30 -3
  119. package/src/index.test.ts +2 -0
  120. package/src/index.ts +1 -0
  121. package/src/utils.ts +11 -0
  122. package/dist/BoostCore-Btl5BdAs.cjs +0 -3
  123. package/dist/BoostCore-Btl5BdAs.cjs.map +0 -1
  124. package/dist/BoostCore-CD56zbYX.js +0 -2641
  125. package/dist/BoostCore-CD56zbYX.js.map +0 -1
  126. package/dist/Incentive-CcnOIc8L.cjs +0 -2
  127. package/dist/Incentive-CcnOIc8L.cjs.map +0 -1
  128. package/dist/Incentive-rM5nKznp.js.map +0 -1
  129. package/dist/componentInterfaces-BBCFkrZv.js.map +0 -1
  130. package/dist/deployments-fJsWblwS.js.map +0 -1
  131. package/dist/generated-CsNyWPKA.js.map +0 -1
  132. package/dist/generated-DHerxf1y.cjs +0 -3
  133. package/dist/generated-DHerxf1y.cjs.map +0 -1
@@ -1,14 +1,14 @@
1
- import { loadFixture } from '@nomicfoundation/hardhat-network-helpers';
2
- import { isAddress, pad } from 'viem';
3
- import { beforeAll, describe, expect, test } from 'vitest';
4
- import { accounts } from '@boostxyz/test/accounts';
1
+ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers";
2
+ import { isAddress, pad } from "viem";
3
+ import { beforeAll, describe, expect, test } from "vitest";
4
+ import { accounts } from "@boostxyz/test/accounts";
5
5
  import {
6
6
  type Fixtures,
7
7
  defaultOptions,
8
8
  deployFixtures,
9
- } from '@boostxyz/test/helpers';
10
- import { testAccount } from '@boostxyz/test/viem';
11
- import { SignerValidator } from './SignerValidator';
9
+ } from "@boostxyz/test/helpers";
10
+ import { testAccount } from "@boostxyz/test/viem";
11
+ import { SignerValidator } from "./SignerValidator";
12
12
 
13
13
  let fixtures: Fixtures;
14
14
 
@@ -26,12 +26,12 @@ function freshValidator(fixtures: Fixtures) {
26
26
  };
27
27
  }
28
28
 
29
- describe('SignerValidator', () => {
29
+ describe("SignerValidator", () => {
30
30
  beforeAll(async () => {
31
31
  fixtures = await loadFixture(deployFixtures(defaultOptions));
32
32
  });
33
33
 
34
- test('can successfully be deployed', async () => {
34
+ test("can successfully be deployed", async () => {
35
35
  const action = new SignerValidator(defaultOptions, {
36
36
  signers: [testAccount.address],
37
37
  validatorCaller: testAccount.address,
@@ -40,7 +40,7 @@ describe('SignerValidator', () => {
40
40
  expect(isAddress(action.assertValidAddress())).toBe(true);
41
41
  });
42
42
 
43
- test('initializes successfully', async () => {
43
+ test("initializes successfully", async () => {
44
44
  const validator = await loadFixture(freshValidator(fixtures));
45
45
  expect(await validator.signers(defaultOptions.account.address)).toBe(true);
46
46
  // biome-ignore lint/style/noNonNullAssertion: this will never be undefined
@@ -49,15 +49,14 @@ describe('SignerValidator', () => {
49
49
  expect(await validator.signers(accounts.at(2)!.account)).toBe(false);
50
50
  });
51
51
 
52
- test('can validate hashes', async () => {
52
+ test("can validate hashes", async () => {
53
53
  const validator = await loadFixture(freshValidator(fixtures));
54
54
 
55
55
  // Define the input data
56
56
  const boostId = 5n;
57
- const incentiveQuantity = 1;
58
57
  const incentiveId = 0n;
59
- const claimant = '0x24582544C98a86eE59687c4D5B55D78f4FffA666';
60
- const incentiveData = pad('0xdef456232173821931823712381232131391321934');
58
+ const claimant = "0x24582544C98a86eE59687c4D5B55D78f4FffA666";
59
+ const incentiveData = pad("0xdef456232173821931823712381232131391321934");
61
60
 
62
61
  // biome-ignore lint/style/noNonNullAssertion: this will never be undefined
63
62
  const trustedSigner = accounts.at(0)!;
@@ -68,7 +67,7 @@ describe('SignerValidator', () => {
68
67
  signer: trustedSigner,
69
68
  incentiveData,
70
69
  chainId: defaultOptions.config.chains[0].id,
71
- incentiveQuantity,
70
+ incentiveQuantity: 1,
72
71
  claimant,
73
72
  boostId: boostId,
74
73
  });
@@ -77,7 +76,7 @@ describe('SignerValidator', () => {
77
76
  signer: untrustedSigner,
78
77
  incentiveData,
79
78
  chainId: defaultOptions.config.chains[0].id,
80
- incentiveQuantity,
79
+ incentiveQuantity: 1,
81
80
  claimant,
82
81
  boostId: boostId,
83
82
  });
@@ -104,15 +103,15 @@ describe('SignerValidator', () => {
104
103
  expect(e).toBeInstanceOf(Error);
105
104
  }
106
105
  });
107
- test('will not revalidate the same hash', async () => {
106
+
107
+ test("will not revalidate the same hash", async () => {
108
108
  const validator = await loadFixture(freshValidator(fixtures));
109
109
 
110
110
  // Define the input data
111
111
  const boostId = 5n;
112
- const incentiveQuantity = 1;
113
112
  const incentiveId = 0n;
114
- const claimant = '0x24582544C98a86eE59687c4D5B55D78f4FffA666';
115
- const incentiveData = pad('0xdef456232173821931823712381232131391321934');
113
+ const claimant = "0x24582544C98a86eE59687c4D5B55D78f4FffA666";
114
+ const incentiveData = pad("0xdef456232173821931823712381232131391321934");
116
115
 
117
116
  // biome-ignore lint/style/noNonNullAssertion: this will never be undefined
118
117
  const trustedSigner = accounts.at(0)!;
@@ -121,7 +120,7 @@ describe('SignerValidator', () => {
121
120
  signer: trustedSigner,
122
121
  incentiveData,
123
122
  chainId: defaultOptions.config.chains[0].id,
124
- incentiveQuantity,
123
+ incentiveQuantity: 1,
125
124
  claimant,
126
125
  boostId: boostId,
127
126
  });
@@ -148,7 +147,7 @@ describe('SignerValidator', () => {
148
147
  }
149
148
  });
150
149
 
151
- test('can set authorized', async () => {
150
+ test("can set authorized", async () => {
152
151
  const validator = await loadFixture(freshValidator(fixtures));
153
152
  // biome-ignore lint/style/noNonNullAssertion: this will never be undefined
154
153
  const newSigner = accounts.at(2)!.account;
@@ -184,7 +184,7 @@ export interface SignerValidatorClaimDataParams {
184
184
  */
185
185
  validator: Address;
186
186
  /**
187
- * The incentive quantity.
187
+ * The total number of incentives on the Boost
188
188
  *
189
189
  * @type {number}
190
190
  */
@@ -226,7 +226,7 @@ export interface SignerValidatorInputParams {
226
226
  signature: Hex;
227
227
 
228
228
  /**
229
- * The incentive quantity.
229
+ * The total number of incentives on the Boost
230
230
  *
231
231
  * @type {number}
232
232
  */
@@ -1,8 +1,9 @@
1
+ import { isAddress } from 'viem';
1
2
  import { describe, expect, test } from 'vitest';
2
3
  import { defaultOptions } from '@boostxyz/test/helpers';
3
4
  import { testAccount } from '@boostxyz/test/viem';
4
5
  import { SignerValidator } from './SignerValidator';
5
- import { validatorFromAddress } from './Validator';
6
+ import { BoostValidatorEOA, validatorFromAddress } from './Validator';
6
7
 
7
8
  describe('Validator', () => {
8
9
  test('can automatically instantiate SignerValidator given an address', async () => {
@@ -18,4 +19,9 @@ describe('Validator', () => {
18
19
  ),
19
20
  ).toBeInstanceOf(SignerValidator);
20
21
  });
22
+
23
+ test('Boost EOAs are defined', () => {
24
+ expect(isAddress(BoostValidatorEOA.TESTNET)).toBe(true)
25
+ // expect(isAddress(BoostValidatorEOA.MAINNET)).toBe(true)
26
+ })
21
27
  });
@@ -1,12 +1,17 @@
1
1
  import { aValidatorAbi } from '@boostxyz/evm';
2
- import { ASignerValidator } from '@boostxyz/evm/deploys/componentInterfaces.json';
2
+ import {
3
+ ASignerValidator,
4
+ // TODO: bring this back in
5
+ // ALimitedSignerValidator,
6
+ } from '@boostxyz/evm/deploys/componentInterfaces.json';
3
7
  import { readContract } from '@wagmi/core';
4
8
  import type { Address, Hex } from 'viem';
5
9
  import type { DeployableOptions } from '../Deployable/Deployable';
6
10
  import { InvalidComponentInterfaceError } from '../errors';
11
+ import { LimitedSignerValidator } from './LimitedSignerValidator';
7
12
  import { SignerValidator } from './SignerValidator';
8
13
 
9
- export { SignerValidator };
14
+ export { SignerValidator, LimitedSignerValidator };
10
15
 
11
16
  /**
12
17
  * A union type representing all valid protocol Validator implementations
@@ -14,7 +19,7 @@ export { SignerValidator };
14
19
  * @export
15
20
  * @typedef {Validator}
16
21
  */
17
- export type Validator = SignerValidator;
22
+ export type Validator = SignerValidator | LimitedSignerValidator;
18
23
 
19
24
  /**
20
25
  * A map of Validator component interfaces to their constructors.
@@ -23,6 +28,8 @@ export type Validator = SignerValidator;
23
28
  */
24
29
  export const ValidatorByComponentInterface = {
25
30
  [ASignerValidator as Hex]: SignerValidator,
31
+ // TODO bring this back in
32
+ // [ALimitedSignerValidator as Hex]: LimitedSignerValidator,
26
33
  };
27
34
 
28
35
  /**
@@ -53,3 +60,23 @@ export async function validatorFromAddress(
53
60
  }
54
61
  return new Ctor(options, address);
55
62
  }
63
+
64
+ /**
65
+ * An enum of verified Boost Validator EOA (Externally Owned Account) addresses used by the Boost protocol
66
+ * for validating transactions on mainnet and testnet environments.
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * // Initialize a SignerValidator using the pre-configured EOA address of a verified Boost validator.
71
+ * // If no validator is provided to core.createBoost(...), then this is what will be used by default.
72
+ * const validator = core.SignerValidator({
73
+ * signers: [BoostValidatorEOA.[TESTNET | MAINNET]],
74
+ * validatorCaller: core.assertValidAddress()
75
+ * })
76
+ * ```
77
+ * @enum {Address}
78
+ */
79
+ export const BoostValidatorEOA = {
80
+ MAINNET: import.meta.env.VITE_BOOST_MAINNET_SIGNER_EOA as Address,
81
+ TESTNET: import.meta.env.VITE_BOOST_TESTNET_SIGNER_EOA as Address,
82
+ };
package/src/index.test.ts CHANGED
@@ -23,6 +23,8 @@ const allExports = [
23
23
  "ERC20VariableCriteriaIncentive",
24
24
  "PointsIncentive",
25
25
  "SignerValidator",
26
+ "LimitedSignerValidator",
27
+ "BoostValidatorEOA",
26
28
  "BoostCoreNoIdentifierEmitted",
27
29
  "ContractAddressRequiredError",
28
30
  "DeployableAlreadyDeployedError",
package/src/index.ts CHANGED
@@ -43,6 +43,7 @@ export * from './Incentives/PointsIncentive';
43
43
  // Validators
44
44
 
45
45
  export * from './Validators/SignerValidator';
46
+ export * from './Validators/LimitedSignerValidator';
46
47
  export * from './Validators/Validator';
47
48
 
48
49
  // Extra
package/src/utils.ts CHANGED
@@ -43,6 +43,17 @@ export enum RegistryType {
43
43
  VALIDATOR = 4,
44
44
  }
45
45
 
46
+ /**
47
+ * Enum encapsulating all the different cheat codes for criteria modules.
48
+ * @export
49
+ * @enum {number}
50
+ */
51
+ export enum CheatCodes {
52
+ ANY_ACTION_PARAM = 255,
53
+ TX_SENDER_CLAIMANT = 255,
54
+ GAS_REBATE_INCENTIVE = 255,
55
+ }
56
+
46
57
  /**
47
58
  * Helper type that encapsulates common writeContract parameters without fields like `abi`, `args`, `functionName`, `address` that are expected to be provided the SDK.
48
59
  * See (writeContract)[https://viem.sh/docs/contract/writeContract]
@@ -1,3 +0,0 @@
1
- "use strict";const u=require("./generated-DHerxf1y.cjs"),w=require("@wagmi/core"),i=require("viem"),D=require("./deployments-DF_6-7hH.cjs"),k=require("./Actions/Action.cjs"),B=require("./Actions/EventAction.cjs"),_=require("./AllowLists/AllowList.cjs"),U=require("./AllowLists/SimpleAllowList.cjs"),G=require("./SimpleDenyList-DNj5qDWM.cjs"),X=require("./Auth/PassthroughAuth.cjs"),v=require("./Boost.cjs"),Z=require("./Budgets/Budget.cjs"),W=require("./Budgets/ManagedBudget.cjs"),K=require("./Deployable/Deployable.cjs"),J=require("./Incentives/AllowListIncentive.cjs"),Q=require("./Incentives/CGDAIncentive.cjs"),Y=require("./Incentives/ERC20Incentive.cjs"),f0=require("./Deployable/DeployableTarget.cjs"),p=require("./errors.cjs"),S=require("./Incentive-CcnOIc8L.cjs"),e0=require("./Incentives/PointsIncentive.cjs"),b0=require("./Validators/SignerValidator.cjs"),t0=require("./Validators/Validator.cjs"),y=require("./utils.cjs"),F=require("viem/actions"),M=require("viem/utils"),a0="0x60806040526103e8600360146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555034801561003a575f80fd5b50604051615301380380615301833981810160405281019061005c919061026b565b61006b336100f260201b60201c565b8160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506102a9565b6101006101ce60201b60201c565b15610178577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780541561013a57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3506101cb565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f90565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6101ff826101d6565b9050919050565b5f610210826101f5565b9050919050565b61022081610206565b811461022a575f80fd5b50565b5f8151905061023b81610217565b92915050565b61024a816101f5565b8114610254575f80fd5b50565b5f8151905061026581610241565b92915050565b5f8060408385031215610281576102806101d2565b5b5f61028e8582860161022d565b925050602061029f85828601610257565b9150509250929050565b61504b806102b65f395ff3fe60806040526004361061014a575f3560e01c80637b103999116100b5578063dd98558c1161006e578063dd98558c146103fa578063e21ff73114610437578063eccc19a614610473578063f04e283e1461049b578063f2fde38b146104b7578063fee81cf4146104d35761014a565b80637b1039991461030c5780638da5cb5b146103365780638fe4f52314610360578063a92647dc1461037c578063b0e21e8a146103a6578063d73792a9146103d05761014a565b806354d1f13d1161010757806354d1f13d1461024a5780635edb9eb0146102545780635f32c23e1461027e57806360777795146102a6578063715018a6146102e6578063730f9c57146102f05761014a565b80630250e72b1461014e57806313c8e2de1461018a57806325692962146101c657806339a51be5146101d057806343bc42d3146101fa57806346877b1a14610222575b5f80fd5b348015610159575f80fd5b50610174600480360381019061016f91906137f5565b61050f565b6040516101819190613950565b60405180910390f35b348015610195575f80fd5b506101b060048036038101906101ab9190613993565b6105e6565b6040516101bd9190613c21565b60405180910390f35b6101ce61088e565b005b3480156101db575f80fd5b506101e46108df565b6040516101f19190613c50565b60405180910390f35b348015610205575f80fd5b50610220600480360381019061021b9190613c93565b610904565b005b34801561022d575f80fd5b5061024860048036038101906102439190613ce8565b610938565b005b610252610983565b005b34801561025f575f80fd5b506102686109bc565b6040516102759190613d22565b60405180910390f35b348015610289575f80fd5b506102a4600480360381019061029f9190613d3b565b6109c7565b005b3480156102b1575f80fd5b506102cc60048036038101906102c791906137f5565b610b53565b6040516102dd959493929190613d88565b60405180910390f35b6102ee610bb0565b005b61030a60048036038101906103059190613e3a565b610bc3565b005b348015610317575f80fd5b50610320611104565b60405161032d9190613ef0565b60405180910390f35b348015610341575f80fd5b5061034a611129565b6040516103579190613c50565b60405180910390f35b61037a60048036038101906103759190613f09565b611151565b005b348015610387575f80fd5b50610390611166565b60405161039d9190613fad565b60405180910390f35b3480156103b1575f80fd5b506103ba61118b565b6040516103c79190613fd5565b60405180910390f35b3480156103db575f80fd5b506103e46111a5565b6040516103f19190613fd5565b60405180910390f35b348015610405575f80fd5b50610420600480360381019061041b9190613fee565b6111ab565b60405161042e92919061405f565b60405180910390f35b348015610442575f80fd5b5061045d60048036038101906104589190614086565b6118af565b60405161046a9190613c21565b60405180910390f35b34801561047e575f80fd5b5061049960048036038101906104949190613ce8565b61229d565b005b6104b560048036038101906104b09190613ce8565b6122e8565b005b6104d160048036038101906104cc9190613ce8565b612326565b005b3480156104de575f80fd5b506104f960048036038101906104f49190613ce8565b61234f565b6040516105069190613d22565b60405180910390f35b610517613607565b60045f8381526020019081526020015f206040518060a00160405290815f82015f9054906101000a900460ff16600281111561055657610555613820565b5b600281111561056857610567613820565b5b81526020015f820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820154815250509050919050565b6105ee613659565b5f8281548110610601576106006140d1565b5b905f5260205f209060080201604051806101000160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054806020026020016040519081016040528092919081815260200182805480156107ee57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116107a5575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b5f610897612368565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61090c612372565b80600360146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b610940612372565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f8080549050905090565b3068929eee149b4bd2126854036109e55763ab143c065f526004601cfd5b3068929eee149b4bd21268555f6109fc83836123a9565b90505f60045f8381526020019081526020015f2090505f816002015461271067ffffffffffffffff168360010154610a34919061412b565b610a3e9190614199565b90505f610a4a836123db565b905081811115610b3f575f8282610a6191906141c9565b90505f61271067ffffffffffffffff16856002015483610a81919061412b565b610a8b9190614199565b9050610a9785826125e1565b80856001015410610ac15780856001015f828254610ab591906141c9565b92505081905550610acb565b5f85600101819055505b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1687897f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b1784604051610b349190613d22565b60405180910390a450505b505050503868929eee149b4bd21268555050565b6004602052805f5260405f205f91509050805f015f9054906101000a900460ff1690805f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905085565b610bb8612372565b610bc15f6127c2565b565b3068929eee149b4bd212685403610be15763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808781548110610c0157610c006140d1565b5b905f5260205f20906008020190505f610c1a88886123a9565b90505f60045f8381526020019081526020015f209050826002015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e3f756de8588886040518463ffffffff1660e01b8152600401610c9093929190614256565b602060405180830381865afa158015610cab573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ccf91906142bb565b610d05576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663703b69008a8a878a8a6040518663ffffffff1660e01b8152600401610d699594939291906142e6565b6020604051808303815f875af1158015610d85573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610da991906142bb565b610ddf576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8073ffffffffffffffffffffffffffffffffffffffff16825f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610e3c575f610e46565b610e45826123db565b5b9050836004018981548110610e5e57610e5d6140d1565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bb1757cf8689896040518463ffffffff1660e01b8152600401610ec293929190614256565b6020604051808303815f875af1158015610ede573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f0291906142bb565b610f47578487876040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401610f3e93929190614256565b60405180910390fd5b5f8073ffffffffffffffffffffffffffffffffffffffff16835f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610fa4575f610fae565b610fad836123db565b5b90505f818311610fbe575f610fcb565b8183610fca91906141c9565b5b90505f61271067ffffffffffffffff16856002015483610feb919061412b565b610ff59190614199565b90505f8111156110955761100985826125e1565b80856001015f82825461101c91906141c9565b9250508190555060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c8e7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b178460405161108c9190613d22565b60405180910390a45b8773ffffffffffffffffffffffffffffffffffffffff168c8e7f0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b2595478e8e8e6040516110e193929190614256565b60405180910390a4505050505050503868929eee149b4bd2126855505050505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b61115f858585858533610bc3565b5050505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360149054906101000a900467ffffffffffffffff1681565b61271081565b5f803068929eee149b4bd2126854036111cb5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8085815481106111eb576111ea6140d1565b5b905f5260205f209060080201604051806101000160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054806020026020016040519081016040528092919081815260200182805480156113d857602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161138f575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050806060015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114dc576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6114e786866123a9565b90505f60045f8381526020019081526020015f2090505f898981019061150d91906144bd565b90505f81602001518060200190518101906115289190614518565b90505f61271067ffffffffffffffff16846002015483611548919061412b565b6115529190614199565b90505f81111561176f57600160028111156115705761156f613820565b5b845f015f9054906101000a900460ff16600281111561159257611591613820565b5b14806115d057505f60028111156115ac576115ab613820565b5b845f015f9054906101000a900460ff1660028111156115ce576115cd613820565b5b145b1561162b57611626835f015182865f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128889092919063ffffffff16565b6116fd565b60028081111561163e5761163d613820565b5b845f015f9054906101000a900460ff1660028111156116605761165f613820565b5b036116fc57835f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a30855f01518760030154856040518563ffffffff1660e01b81526004016116ce9493929190614566565b5f604051808303815f87803b1580156116e5575f80fd5b505af11580156116f7573d5f803e3d5ffd5b505050505b5b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16898b7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b17846040516117669190613d22565b60405180910390a45b5f8087608001518b81518110611788576117876140d1565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1663474f5a44866040516020016117bc9190614656565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016117e791906146ae565b60408051808303815f875af1158015611802573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061182691906146e2565b915091505f820361187257338e8e6040517f9ecd71a900000000000000000000000000000000000000000000000000000000815260040161186993929190614256565b60405180910390fd5b82866001015f82825461188591906141c9565b9250508190555081819950995050505050505050503868929eee149b4bd212685594509492505050565b6118b7613659565b335f73ffffffffffffffffffffffffffffffffffffffff1660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156119ab575060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80826040518263ffffffff1660e01b815260040161196a9190613c50565b602060405180830381865afa158015611985573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119a991906142bb565b155b156119e2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd212685403611a005763ab143c065f526004601cfd5b3068929eee149b4bd21268555f611a5985858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506128d1565b806020019051810190611a6c9190614a80565b9050611a7a815f015161296a565b5f8060018160018154018082558091505003905f5260205f20906008020190508160e00151816007015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550815f0151816003015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160a00151600360149054906101000a900467ffffffffffffffff16611b4b9190614ac7565b816005015f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508160c001518160060181905550611bb17fe67157950000000000000000000000000000000000000000000000000000000083602001516001612a45565b815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611c217fe2089f790000000000000000000000000000000000000000000000000000000083606001516001612a45565b816002015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611c738260800151835f0151612a67565b816004019080519060200190611c8a92919061370f565b505f73ffffffffffffffffffffffffffffffffffffffff1682604001516020015173ffffffffffffffffffffffffffffffffffffffff1614611cfb57611cf67f5912b89c0000000000000000000000000000000000000000000000000000000083604001516001612a45565b611de4565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f5912b89c000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401611d769190614b3c565b602060405180830381865afa158015611d91573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611db591906142bb565b611dbf575f611de3565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b5b816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f73ffffffffffffffffffffffffffffffffffffffff16816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611eda577f5912b89c000000000000000000000000000000000000000000000000000000005f6040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401611ed1929190614b55565b60405180910390fd5b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816007015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660015f80549050611f5e91906141c9565b7f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd8460040180549050856001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866002015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876003015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516120039493929190614b7c565b60405180910390a480604051806101000160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054806020026020016040519081016040528092919081815260200182805480156121ed57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116121a4575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050935050503868929eee149b4bd21268555092915050565b6122a5612372565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122f0612372565b63389a75e1600c52805f526020600c20805442111561231657636f5e88185f526004601cfd5b5f815550612323816127c2565b50565b61232e612372565b8060601b61234357637448fbae5f526004601cfd5b61234c816127c2565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f6202a300905090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146123a7576382b429005f526004601cfd5b565b5f82826040516020016123bd929190614bdf565b60405160208183030381529060405280519060200120905092915050565b5f600160028111156123f0576123ef613820565b5b825f015f9054906101000a900460ff16600281111561241257612411613820565b5b148061245057505f600281111561242c5761242b613820565b5b825f015f9054906101000a900460ff16600281111561244e5761244d613820565b5b145b156124f757815f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016124b19190613c50565b602060405180830381865afa1580156124cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124f09190614518565b90506125dc565b60028081111561250a57612509613820565b5b825f015f9054906101000a900460ff16600281111561252c5761252b613820565b5b036125d857815f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e3084600301546040518363ffffffff1660e01b8152600401612592929190614c0a565b602060405180830381865afa1580156125ad573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125d19190614518565b90506125dc565b5f90505b919050565b600160028111156125f5576125f4613820565b5b825f015f9054906101000a900460ff16600281111561261757612616613820565b5b148061265557505f600281111561263157612630613820565b5b825f015f9054906101000a900460ff16600281111561265357612652613820565b5b145b156126ce576126c960035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682845f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128889092919063ffffffff16565b6127be565b6002808111156126e1576126e0613820565b5b825f015f9054906101000a900460ff16600281111561270357612702613820565b5b036127bd57815f0160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a3060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168560030154856040518563ffffffff1660e01b815260040161278f9493929190614566565b5f604051808303815f87803b1580156127a6575f80fd5b505af11580156127b8573d5f803e3d5ffd5b505050505b5b5050565b6127ca612f75565b1561282f577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550612885565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af13d1560015f511417166128c8576390b8ec185f526004601cfd5b5f603452505050565b60608151156129655760405190506020810160048301805184518501811983525b8086101561294b576001860195508551601f1a8061293b576001870196508651601f1a5f198652607f811161292957600181013887395b6001607f821601860195505050612946565b808553600185019450505b6128f2565b81835260208501840385525f845260208401604052505050505b919050565b6129947fe49cedd70000000000000000000000000000000000000000000000000000000082612f79565b8073ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80336040518263ffffffff1660e01b81526004016129cd9190613c50565b602060405180830381865afa1580156129e8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a0c91906142bb565b612a42576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f612a54848460200151612f79565b612a5e8383613070565b90509392505050565b6060825167ffffffffffffffff811115612a8457612a83614336565b5b604051908082528060200260200182016040528015612ab25781602001602082028036833780820191505090505b5090505f5b8351811015612f6e57612b087fa921670500000000000000000000000000000000000000000000000000000000858381518110612af757612af66140d1565b5b602002602001015160200151612f79565b838181518110612b1b57612b1a6140d1565b5b60200260200101515f0151612ba7577fa921670500000000000000000000000000000000000000000000000000000000848281518110612b5e57612b5d6140d1565b5b6020026020010151602001516040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401612b9e929190614b55565b60405180910390fd5b612bec7fa921670500000000000000000000000000000000000000000000000000000000858381518110612bde57612bdd6140d1565b5b60200260200101515f612a45565b828281518110612bff57612bfe6140d1565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505f828281518110612c4d57612c4c6140d1565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16634e7165a2868481518110612c8357612c826140d1565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401612cab91906146ae565b5f60405180830381865afa158015612cc5573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190612ced9190614c31565b90505f815114612ec2575f80612d028361312c565b915091508573ffffffffffffffffffffffffffffffffffffffff1663fa4ca9b1836040518263ffffffff1660e01b8152600401612d3f91906146ae565b6020604051808303815f875af1158015612d5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d7f91906142bb565b612db5576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff1663fa4ca9b1846040518263ffffffff1660e01b8152600401612dee91906146ae565b6020604051808303815f875af1158015612e0a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e2e91906142bb565b612e64576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f83806020019051810190612e799190614d2c565b9050612ebe60015f80549050612e8f91906141c9565b86836020015185855f01518d8b81518110612ead57612eac6140d1565b5b602002602001015160400151613428565b5050505b828281518110612ed557612ed46140d1565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1663439fab91868481518110612f0b57612f0a6140d1565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401612f3391906146ae565b5f604051808303815f87803b158015612f4a575f80fd5b505af1158015612f5c573d5f803e3d5ffd5b50505050508080600101915050612ab7565b5092915050565b5f90565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061302857508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a7836040518263ffffffff1660e01b8152600401612fe79190614b3c565b602060405180830381865afa158015613002573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061302691906142bb565b155b1561306c5781816040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401613063929190614b55565b60405180910390fd5b5050565b5f825f01516130835782602001516130a7565b6130a6836020015173ffffffffffffffffffffffffffffffffffffffff166135a4565b5b9050825f015180156130b65750815b15613126578073ffffffffffffffffffffffffffffffffffffffff1663439fab9184604001516040518263ffffffff1660e01b81526004016130f891906146ae565b5f604051808303815f87803b15801561310f575f80fd5b505af1158015613121573d5f803e3d5ffd5b505050505b92915050565b60605f80838060200190518101906131449190614d2c565b90506001600281111561315a57613159613820565b5b815f015160028111156131705761316f613820565b5b14806131a257505f600281111561318a57613189613820565b5b815f015160028111156131a05761319f613820565b5b145b156132ab575f81606001518060200190518101906131c09190614dac565b90505f61271067ffffffffffffffff16600360149054906101000a900467ffffffffffffffff1667ffffffffffffffff16835f01516131ff919061412b565b6132099190614199565b90505f60405180602001604052808381525090508060405160200161322e9190614df1565b604051602081830303815290604052846060018190525030846040019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508360405160200161328e9190614e6a565b604051602081830303815290604052829550955050505050613423565b6002808111156132be576132bd613820565b5b815f015160028111156132d4576132d3613820565b5b036133f1575f81606001518060200190518101906132f29190614f07565b90505f61271067ffffffffffffffff16600360149054906101000a900467ffffffffffffffff1667ffffffffffffffff168360200151613332919061412b565b61333c9190614199565b90505f6040518060600160405280845f0151815260200183815260200184604001518152509050806040516020016133749190614f9b565b604051602081830303815290604052846060018190525030846040019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050836040516020016133d49190614e6a565b604051602081830303815290604052829550955050505050613423565b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b915091565b60605f60028081111561343e5761343d613820565b5b84600281111561345157613450613820565b5b03613474578280602001905181019061346a9190614fbb565b5080915050613478565b8291505b5f6040518060a0016040528086600281111561349757613496613820565b5b81526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152602001600360149054906101000a900467ffffffffffffffff1667ffffffffffffffff1681526020018381525090508060045f6134f88c8c6123a9565b81526020019081526020015f205f820151815f015f6101000a81548160ff0219169083600281111561352d5761352c613820565b5b02179055506020820151815f0160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600101556060820151816002015560808201518160030155905050505050505050505050565b5f6135af5f836135b6565b9050919050565b5f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f09050806135fd5763301164255f526004601cfd5b5f60215292915050565b6040518060a001604052805f600281111561362557613624613820565b5b81526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b6040518061010001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f67ffffffffffffffff1681526020015f81526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090565b828054828255905f5260205f20908101928215613785579160200282015b82811115613784578251825f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061372d565b5b5090506137929190613796565b5090565b5b808211156137ad575f815f905550600101613797565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b6137d4816137c2565b81146137de575f80fd5b50565b5f813590506137ef816137cb565b92915050565b5f6020828403121561380a576138096137ba565b5b5f613817848285016137e1565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6003811061385e5761385d613820565b5b50565b5f81905061386e8261384d565b919050565b5f61387d82613861565b9050919050565b61388d81613873565b82525050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6138bc82613893565b9050919050565b6138cc816138b2565b82525050565b5f819050919050565b6138e4816138d2565b82525050565b60a082015f8201516138fe5f850182613884565b50602082015161391160208501826138c3565b50604082015161392460408501826138db565b50606082015161393760608501826138db565b50608082015161394a60808501826138db565b50505050565b5f60a0820190506139635f8301846138ea565b92915050565b613972816138d2565b811461397c575f80fd5b50565b5f8135905061398d81613969565b92915050565b5f602082840312156139a8576139a76137ba565b5b5f6139b58482850161397f565b91505092915050565b5f819050919050565b5f6139e16139dc6139d784613893565b6139be565b613893565b9050919050565b5f6139f2826139c7565b9050919050565b5f613a03826139e8565b9050919050565b613a13816139f9565b82525050565b5f613a23826139e8565b9050919050565b613a3381613a19565b82525050565b5f613a43826139e8565b9050919050565b613a5381613a39565b82525050565b5f613a63826139c7565b9050919050565b5f613a7482613a59565b9050919050565b613a8481613a6a565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f613abd826139e8565b9050919050565b613acd81613ab3565b82525050565b5f613ade8383613ac4565b60208301905092915050565b5f602082019050919050565b5f613b0082613a8a565b613b0a8185613a94565b9350613b1583613aa4565b805f5b83811015613b45578151613b2c8882613ad3565b9750613b3783613aea565b925050600181019050613b18565b5085935050505092915050565b5f67ffffffffffffffff82169050919050565b613b6e81613b52565b82525050565b5f61010083015f830151613b8a5f860182613a0a565b506020830151613b9d6020860182613a2a565b506040830151613bb06040860182613a4a565b506060830151613bc36060860182613a7b565b5060808301518482036080860152613bdb8282613af6565b91505060a0830151613bf060a0860182613b65565b5060c0830151613c0360c08601826138db565b5060e0830151613c1660e08601826138c3565b508091505092915050565b5f6020820190508181035f830152613c398184613b74565b905092915050565b613c4a816138b2565b82525050565b5f602082019050613c635f830184613c41565b92915050565b613c7281613b52565b8114613c7c575f80fd5b50565b5f81359050613c8d81613c69565b92915050565b5f60208284031215613ca857613ca76137ba565b5b5f613cb584828501613c7f565b91505092915050565b613cc7816138b2565b8114613cd1575f80fd5b50565b5f81359050613ce281613cbe565b92915050565b5f60208284031215613cfd57613cfc6137ba565b5b5f613d0a84828501613cd4565b91505092915050565b613d1c816138d2565b82525050565b5f602082019050613d355f830184613d13565b92915050565b5f8060408385031215613d5157613d506137ba565b5b5f613d5e8582860161397f565b9250506020613d6f8582860161397f565b9150509250929050565b613d8281613873565b82525050565b5f60a082019050613d9b5f830188613d79565b613da86020830187613c41565b613db56040830186613d13565b613dc26060830185613d13565b613dcf6080830184613d13565b9695505050505050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112613dfa57613df9613dd9565b5b8235905067ffffffffffffffff811115613e1757613e16613ddd565b5b602083019150836001820283011115613e3357613e32613de1565b5b9250929050565b5f805f805f8060a08789031215613e5457613e536137ba565b5b5f613e6189828a0161397f565b9650506020613e7289828a0161397f565b9550506040613e8389828a01613cd4565b945050606087013567ffffffffffffffff811115613ea457613ea36137be565b5b613eb089828a01613de5565b93509350506080613ec389828a01613cd4565b9150509295509295509295565b5f613eda826139e8565b9050919050565b613eea81613ed0565b82525050565b5f602082019050613f035f830184613ee1565b92915050565b5f805f805f60808688031215613f2257613f216137ba565b5b5f613f2f8882890161397f565b9550506020613f408882890161397f565b9450506040613f5188828901613cd4565b935050606086013567ffffffffffffffff811115613f7257613f716137be565b5b613f7e88828901613de5565b92509250509295509295909350565b5f613f97826139e8565b9050919050565b613fa781613f8d565b82525050565b5f602082019050613fc05f830184613f9e565b92915050565b613fcf81613b52565b82525050565b5f602082019050613fe85f830184613fc6565b92915050565b5f805f8060608587031215614006576140056137ba565b5b5f85013567ffffffffffffffff811115614023576140226137be565b5b61402f87828801613de5565b945094505060206140428782880161397f565b92505060406140538782880161397f565b91505092959194509250565b5f6040820190506140725f830185613d13565b61407f6020830184613c41565b9392505050565b5f806020838503121561409c5761409b6137ba565b5b5f83013567ffffffffffffffff8111156140b9576140b86137be565b5b6140c585828601613de5565b92509250509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614135826138d2565b9150614140836138d2565b925082820261414e816138d2565b91508282048414831517614165576141646140fe565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6141a3826138d2565b91506141ae836138d2565b9250826141be576141bd61416c565b5b828204905092915050565b5f6141d3826138d2565b91506141de836138d2565b92508282039050818111156141f6576141f56140fe565b5b92915050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f61423583856141fc565b935061424283858461420c565b61424b8361421a565b840190509392505050565b5f6040820190506142695f830186613c41565b818103602083015261427c81848661422a565b9050949350505050565b5f8115159050919050565b61429a81614286565b81146142a4575f80fd5b50565b5f815190506142b581614291565b92915050565b5f602082840312156142d0576142cf6137ba565b5b5f6142dd848285016142a7565b91505092915050565b5f6080820190506142f95f830188613d13565b6143066020830187613d13565b6143136040830186613c41565b818103606083015261432681848661422a565b90509695505050505050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61436c8261421a565b810181811067ffffffffffffffff8211171561438b5761438a614336565b5b80604052505050565b5f61439d6137b1565b90506143a98282614363565b919050565b5f80fd5b5f80fd5b5f67ffffffffffffffff8211156143d0576143cf614336565b5b6143d98261421a565b9050602081019050919050565b5f6143f86143f3846143b6565b614394565b905082815260208101848484011115614414576144136143b2565b5b61441f84828561420c565b509392505050565b5f82601f83011261443b5761443a613dd9565b5b813561444b8482602086016143e6565b91505092915050565b5f6040828403121561446957614468614332565b5b6144736040614394565b90505f61448284828501613cd4565b5f83015250602082013567ffffffffffffffff8111156144a5576144a46143ae565b5b6144b184828501614427565b60208301525092915050565b5f602082840312156144d2576144d16137ba565b5b5f82013567ffffffffffffffff8111156144ef576144ee6137be565b5b6144fb84828501614454565b91505092915050565b5f8151905061451281613969565b92915050565b5f6020828403121561452d5761452c6137ba565b5b5f61453a84828501614504565b91505092915050565b50565b5f6145515f836141fc565b915061455c82614543565b5f82019050919050565b5f60a0820190506145795f830187613c41565b6145866020830186613c41565b6145936040830185613d13565b6145a06060830184613d13565b81810360808301526145b181614546565b905095945050505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f6145ee826145bc565b6145f881856145c6565b93506146088185602086016145d6565b6146118161421a565b840191505092915050565b5f604083015f8301516146315f8601826138c3565b506020830151848203602086015261464982826145e4565b9150508091505092915050565b5f6020820190508181035f83015261466e818461461c565b905092915050565b5f614680826145bc565b61468a81856141fc565b935061469a8185602086016145d6565b6146a38161421a565b840191505092915050565b5f6020820190508181035f8301526146c68184614676565b905092915050565b5f815190506146dc81613cbe565b92915050565b5f80604083850312156146f8576146f76137ba565b5b5f61470585828601614504565b9250506020614716858286016146ce565b9150509250929050565b5f61472a82613893565b9050919050565b5f61473b82614720565b9050919050565b61474b81614731565b8114614755575f80fd5b50565b5f8151905061476681614742565b92915050565b5f61477e614779846143b6565b614394565b90508281526020810184848401111561479a576147996143b2565b5b6147a58482856145d6565b509392505050565b5f82601f8301126147c1576147c0613dd9565b5b81516147d184826020860161476c565b91505092915050565b5f606082840312156147ef576147ee614332565b5b6147f96060614394565b90505f614808848285016142a7565b5f83015250602061481b848285016146ce565b602083015250604082015167ffffffffffffffff81111561483f5761483e6143ae565b5b61484b848285016147ad565b60408301525092915050565b5f67ffffffffffffffff82111561487157614870614336565b5b602082029050602081019050919050565b5f61489461488f84614857565b614394565b905080838252602082019050602084028301858111156148b7576148b6613de1565b5b835b818110156148fe57805167ffffffffffffffff8111156148dc576148db613dd9565b5b8086016148e989826147da565b855260208501945050506020810190506148b9565b5050509392505050565b5f82601f83011261491c5761491b613dd9565b5b815161492c848260208601614882565b91505092915050565b5f8151905061494381613c69565b92915050565b5f610100828403121561495f5761495e614332565b5b61496a610100614394565b90505f61497984828501614758565b5f83015250602082015167ffffffffffffffff81111561499c5761499b6143ae565b5b6149a8848285016147da565b602083015250604082015167ffffffffffffffff8111156149cc576149cb6143ae565b5b6149d8848285016147da565b604083015250606082015167ffffffffffffffff8111156149fc576149fb6143ae565b5b614a08848285016147da565b606083015250608082015167ffffffffffffffff811115614a2c57614a2b6143ae565b5b614a3884828501614908565b60808301525060a0614a4c84828501614935565b60a08301525060c0614a6084828501614504565b60c08301525060e0614a74848285016146ce565b60e08301525092915050565b5f60208284031215614a9557614a946137ba565b5b5f82015167ffffffffffffffff811115614ab257614ab16137be565b5b614abe84828501614949565b91505092915050565b5f614ad182613b52565b9150614adc83613b52565b9250828201905067ffffffffffffffff811115614afc57614afb6140fe565b5b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614b3681614b02565b82525050565b5f602082019050614b4f5f830184614b2d565b92915050565b5f604082019050614b685f830185614b2d565b614b756020830184613c41565b9392505050565b5f608082019050614b8f5f830187613d13565b614b9c6020830186613c41565b614ba96040830185613c41565b614bb66060830184613c41565b95945050505050565b5f819050919050565b614bd9614bd4826138d2565b614bbf565b82525050565b5f614bea8285614bc8565b602082019150614bfa8284614bc8565b6020820191508190509392505050565b5f604082019050614c1d5f830185613c41565b614c2a6020830184613d13565b9392505050565b5f60208284031215614c4657614c456137ba565b5b5f82015167ffffffffffffffff811115614c6357614c626137be565b5b614c6f848285016147ad565b91505092915050565b60038110614c84575f80fd5b50565b5f81519050614c9581614c78565b92915050565b5f60808284031215614cb057614caf614332565b5b614cba6080614394565b90505f614cc984828501614c87565b5f830152506020614cdc848285016146ce565b6020830152506040614cf0848285016146ce565b604083015250606082015167ffffffffffffffff811115614d1457614d136143ae565b5b614d20848285016147ad565b60608301525092915050565b5f60208284031215614d4157614d406137ba565b5b5f82015167ffffffffffffffff811115614d5e57614d5d6137be565b5b614d6a84828501614c9b565b91505092915050565b5f60208284031215614d8857614d87614332565b5b614d926020614394565b90505f614da184828501614504565b5f8301525092915050565b5f60208284031215614dc157614dc06137ba565b5b5f614dce84828501614d73565b91505092915050565b602082015f820151614deb5f8501826138db565b50505050565b5f602082019050614e045f830184614dd7565b92915050565b5f608083015f830151614e1f5f860182613884565b506020830151614e3260208601826138c3565b506040830151614e4560408601826138c3565b5060608301518482036060860152614e5d82826145e4565b9150508091505092915050565b5f6020820190508181035f830152614e828184614e0a565b905092915050565b5f60608284031215614e9f57614e9e614332565b5b614ea96060614394565b90505f614eb884828501614504565b5f830152506020614ecb84828501614504565b602083015250604082015167ffffffffffffffff811115614eef57614eee6143ae565b5b614efb848285016147ad565b60408301525092915050565b5f60208284031215614f1c57614f1b6137ba565b5b5f82015167ffffffffffffffff811115614f3957614f386137be565b5b614f4584828501614e8a565b91505092915050565b5f606083015f830151614f635f8601826138db565b506020830151614f7660208601826138db565b5060408301518482036040860152614f8e82826145e4565b9150508091505092915050565b5f6020820190508181035f830152614fb38184614f4e565b905092915050565b5f8060408385031215614fd157614fd06137ba565b5b5f614fde85828601614504565b925050602083015167ffffffffffffffff811115614fff57614ffe6137be565b5b61500b858286016147ad565b915050925092905056fea2646970667358221220904c8f9d3e483d6c82a064bbe349f76b3e492e71ff0ca1e3b9a15fa154e6509464736f6c634300081a0033";function q(a){const e=a.state.current,f=a.state.connections.get(e),b=f==null?void 0:f.accounts,t=b==null?void 0:b[0],d=a.chains.find(s=>s.id===(f==null?void 0:f.chainId)),n=a.state.status;switch(n){case"connected":return{address:t,addresses:b,chain:d,chainId:f==null?void 0:f.chainId,connector:f==null?void 0:f.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:t,addresses:b,chain:d,chainId:f==null?void 0:f.chainId,connector:f==null?void 0:f.connector,isConnected:!!t,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:t,addresses:b,chain:d,chainId:f==null?void 0:f.chainId,connector:f==null?void 0:f.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function d0(a){return a.state.chainId}function L(a,e,f){const b=a[e.name];if(typeof b=="function")return b;const t=a[f];return typeof t=="function"?t:d=>e(a,d)}const n0="2.13.8",s0=()=>`@wagmi/core@${n0}`;var N=function(a,e,f,b){if(f==="a"&&!b)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?a!==e||!b:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?b:f==="a"?b.call(a):b?b.value:e.get(a)},C,z;class x extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return s0()}constructor(e,f={}){var d;super(),C.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const b=f.cause instanceof x?f.cause.details:(d=f.cause)!=null&&d.message?f.cause.message:f.details,t=f.cause instanceof x&&f.cause.docsPath||f.docsPath;this.message=[e||"An error occurred.","",...f.metaMessages?[...f.metaMessages,""]:[],...t?[`Docs: ${this.docsBaseUrl}${t}.html${f.docsSlug?`#${f.docsSlug}`:""}`]:[],...b?[`Details: ${b}`]:[],`Version: ${this.version}`].join(`
2
- `),f.cause&&(this.cause=f.cause),this.details=b,this.docsPath=t,this.metaMessages=f.metaMessages,this.shortMessage=e}walk(e){return N(this,C,"m",z).call(this,this,e)}}C=new WeakSet,z=function a(e,f){return f!=null&&f(e)?e:e.cause?N(this,C,"m",a).call(this,e.cause,f):e};class c0 extends x{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class i0 extends x{constructor({address:e,connector:f}){super(`Account "${e}" not found for connector "${f.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class r0 extends x{constructor({connectionChainId:e,connectorChainId:f}){super(`The current chain of the connector (id: ${f}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${f}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class o0 extends x{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function O(a,e={}){let f;if(e.connector){const{connector:c}=e;if(a.state.status==="reconnecting"&&!c.getAccounts&&!c.getChainId)throw new o0({connector:c});const[g,m]=await Promise.all([c.getAccounts(),c.getChainId()]);f={accounts:g,chainId:m,connector:c}}else f=a.state.connections.get(a.state.current);if(!f)throw new c0;const b=e.chainId??f.chainId,t=await f.connector.getChainId();if(t!==f.chainId)throw new r0({connectionChainId:f.chainId,connectorChainId:t});const d=f.connector;if(d.getClient)return d.getClient({chainId:b});const n=M.parseAccount(e.account??f.accounts[0]);if(n.address=M.getAddress(n.address),e.account&&!f.accounts.some(c=>c.toLowerCase()===n.address.toLowerCase()))throw new i0({address:n.address,connector:d});const s=a.chains.find(c=>c.id===b),r=await f.connector.getProvider({chainId:b});return i.createClient({account:n,chain:s,name:"Connector Client",transport:c=>i.custom(r)({...c,retryCount:0})})}async function u0(a,e){const{abi:f,chainId:b,connector:t,...d}=e;let n;e.account?n=e.account:n=(await O(a,{chainId:b,connector:t})).account;const s=a.getClient({chainId:b}),r=L(s,F.simulateContract,"simulateContract"),{result:c,request:g}=await r({...d,abi:f,account:n});return{chainId:s.chain.id,result:c,request:{__mode:"prepared",...g,chainId:b}}}async function V(a,e){const{account:f,chainId:b,connector:t,__mode:d,...n}=e;let s;typeof f=="object"&&f.type==="local"?s=a.getClient({chainId:b}):s=await O(a,{account:f,chainId:b,connector:t});const{connector:r}=q(a);let c;if(d==="prepared"||r!=null&&r.supportsSimulation)c=n;else{const{request:o}=await u0(a,{...n,account:f,chainId:b});c=o}return await L(s,F.writeContract,"writeContract")({...c,...f?{account:f}:{},chain:b?{id:b}:null})}function y0(a){return a.address!==void 0&&typeof a.address=="object"?(e,f)=>{var n;const b=d0(e),t=q(e);let d;return f.chainId?d=f.chainId:f.account&&f.account===t.address||f.account===void 0?d=t.chainId:d=b,V(e,{...f,...a.functionName?{functionName:a.functionName}:{},address:d?(n=a.address)==null?void 0:n[d]:void 0,abi:a.abi})}:(e,f)=>V(e,{...f,...a.address?{address:a.address}:{},...a.functionName?{functionName:a.functionName}:{},abi:a.abi})}const l0="0x608060405273deaddeaddeaddeaddeaddeaddeaddeaddeaddead5f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015610062575f80fd5b5061007161007660201b60201c565b61010b565b5f6100856100e260201b60201c565b90508054600181161561009f5763f92ee8a95f526004601cfd5b8160c01c808260011c146100dd578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b612b11806101185f395ff3fe608060405260043610610203575f3560e01c8063715018a611610117578063d54ad2a11161009f578063ec87621c1161006e578063ec87621c14610707578063f04e283e14610731578063f2fde38b1461074d578063fe9fbb8014610769578063fee81cf4146107a557610203565b8063d54ad2a11461064f578063db09da1214610679578063dcc21361146106b5578063dcc59b6f146106dd57610203565b8063a4d66daf116100e6578063a4d66daf1461055b578063a871ced214610585578063bb1757cf146105af578063be4994f8146105eb578063c884ef831461061357610203565b8063715018a6146104d057806375b238fc146104da57806377548687146105045780638da5cb5b1461053157610203565b80632de948071161019a578063474f5a4411610169578063474f5a44146103f55780634a4ee7b1146104325780634e7165a21461044e578063514e62fc1461048a57806354d1f13d146104c657610203565b80632de948071461033f57806338d52e0f1461037b5780634359d28a146103a5578063439fab91146103cd57610203565b80631cd64df4116101d65780631cd64df4146102a5578063228cb733146102e1578063256929621461030b57806328d6183b1461031557610203565b806301ffc9a71461020757806307621eca14610243578063183a4f6e1461026d5780631c10893f14610289575b5f80fd5b348015610212575f80fd5b5061022d60048036038101906102289190611abd565b6107e1565b60405161023a9190611b02565b60405180910390f35b34801561024e575f80fd5b5061025761085a565b6040516102649190611b33565b60405180910390f35b61028760048036038101906102829190611b76565b610863565b005b6102a3600480360381019061029e9190611bfb565b610870565b005b3480156102b0575f80fd5b506102cb60048036038101906102c69190611bfb565b610886565b6040516102d89190611b02565b60405180910390f35b3480156102ec575f80fd5b506102f561089c565b6040516103029190611b33565b60405180910390f35b6103136108a2565b005b348015610320575f80fd5b506103296108f3565b6040516103369190611c48565b60405180910390f35b34801561034a575f80fd5b5061036560048036038101906103609190611c61565b61091a565b6040516103729190611b33565b60405180910390f35b348015610386575f80fd5b5061038f610933565b60405161039c9190611c9b565b60405180910390f35b3480156103b0575f80fd5b506103cb60048036038101906103c69190611d6a565b610956565b005b3480156103d8575f80fd5b506103f360048036038101906103ee9190611e3d565b610a64565b005b348015610400575f80fd5b5061041b60048036038101906104169190611e3d565b610ccc565b604051610429929190611e88565b60405180910390f35b61044c60048036038101906104479190611bfb565b610e30565b005b348015610459575f80fd5b50610474600480360381019061046f9190611e3d565b610e46565b6040516104819190611f1f565b60405180910390f35b348015610495575f80fd5b506104b060048036038101906104ab9190611bfb565b610f14565b6040516104bd9190611b02565b60405180910390f35b6104ce610f2b565b005b6104d8610f64565b005b3480156104e5575f80fd5b506104ee610f77565b6040516104fb9190611b33565b60405180910390f35b34801561050f575f80fd5b50610518610f7c565b6040516105289493929190611fe5565b60405180910390f35b34801561053c575f80fd5b50610545610fd1565b6040516105529190611c9b565b60405180910390f35b348015610566575f80fd5b5061056f610ff9565b60405161057c9190611b33565b60405180910390f35b348015610590575f80fd5b50610599610fff565b6040516105a691906120b7565b60405180910390f35b3480156105ba575f80fd5b506105d560048036038101906105d091906120d0565b6110ce565b6040516105e29190611b02565b60405180910390f35b3480156105f6575f80fd5b50610611600480360381019061060c9190612182565b6112c2565b005b34801561061e575f80fd5b5061063960048036038101906106349190611c61565b611378565b6040516106469190611b02565b60405180910390f35b34801561065a575f80fd5b50610663611395565b6040516106709190611b33565b60405180910390f35b348015610684575f80fd5b5061069f600480360381019061069a91906120d0565b61139b565b6040516106ac9190611b02565b60405180910390f35b3480156106c0575f80fd5b506106db60048036038101906106d69190612182565b6113ae565b005b3480156106e8575f80fd5b506106f1611464565b6040516106fe9190611b33565b60405180910390f35b348015610712575f80fd5b5061071b61146a565b6040516107289190611b33565b60405180910390f35b61074b60048036038101906107469190611c61565b61146f565b005b61076760048036038101906107629190611c61565b6114ad565b005b348015610774575f80fd5b5061078f600480360381019061078a9190611c61565b6114d6565b60405161079c9190611b02565b60405180910390f35b3480156107b0575f80fd5b506107cb60048036038101906107c69190611c61565b611529565b6040516107d89190611b33565b60405180910390f35b5f7f90318111000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610853575061085282611542565b5b9050919050565b5f600254905090565b61086d33826115bb565b50565b6108786115ca565b6108828282611601565b5050565b5f81826108928561091a565b1614905092915050565b60025481565b5f6108ab611611565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f9031811100000000000000000000000000000000000000000000000000000000905090565b5f638b78c6d8600c52815f526020600c20549050919050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026109618161161b565b8282905085859050146109a0576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b85859050811015610a5c575f8484838181106109c1576109c0612200565b5b90506020020160208101906109d69190612257565b90506001151581151503610a1b57610a168787848181106109fa576109f9612200565b5b9050602002016020810190610a0f9190611c61565b6001611601565b610a4e565b610a4d878784818110610a3157610a30612200565b5b9050602002016020810190610a469190611c61565b60016115bb565b5b5080806001019150506109a2565b505050505050565b5f610a6d611650565b90508054600382558015610a9f5760018160011c14303b10610a965763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610aa933611679565b5f8383810190610ab99190612463565b90505f815f015190505f826020015190505f836040015190505f846060015190505f8203610b13576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610b3d308673ffffffffffffffffffffffffffffffffffffffff1661174f90919063ffffffff16565b905082811015610b8b57855f015181846040517f5c54305e000000000000000000000000000000000000000000000000000000008152600401610b829392919061248e565b60405180910390fd5b845f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600281905550826004819055505f6005819055508160065f820151815f015f6101000a81548160ff02191690836001811115610c0a57610c09611f3f565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050610c8c33611679565b5050505050508015610cc7576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610cd981611782565b5f8585810190610ce991906125dc565b90505f8160200151806020019051810190610d049190612637565b90508060045f828254610d17919061268f565b92505081905550610d6b825f0151825f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117a99092919063ffffffff16565b815f015173ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d35f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff16845f015184604051602001610ddd93929190612727565b604051602081830303815290604052604051610df99190611f1f565b60405180910390a2805f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff16945094505050509250929050565b610e386115ca565b610e4282826115bb565b5050565b60605f808484810190610e59919061279e565b9250509150604051806080016040528060016002811115610e7d57610e7c611f3f565b5b81526020018373ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff168152602001604051806020016040528084815250604051602001610ed99190612817565b604051602081830303815290604052815250604051602001610efb919061291e565b6040516020818303038152906040529250505092915050565b5f8082610f208561091a565b161415905092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610f6c6115ca565b610f755f6117f2565b565b600281565b6006805f015f9054906101000a900460ff1690806001015490806002015f9054906101000a900460ff16908060020160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b60045481565b611007611a05565b60066040518060800160405290815f82015f9054906101000a900460ff16600181111561103757611036611f3f565b5b600181111561104957611048611f3f565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905090565b5f6110d76115ca565b5f83838101906110e791906129c3565b90505f81602001518060200190518101906111029190612637565b90505f61110e876118b8565b611144576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6002540361115557819050611179565b670de0b6b3a76400008260025461116c9190612a0a565b6111769190612a78565b90505b6004548160055461118a9190612aa8565b11156111c2576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060055f8282546111d39190612aa8565b9250508190555061122487825f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117a99092919063ffffffff16565b8673ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d35f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff16898460405160200161129093929190612727565b6040516020818303038152906040526040516112ac9190611f1f565b60405180910390a2600193505050509392505050565b60026112cd8161161b565b82829050858590501461130c576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b858590508110156113705761136386868381811061132f5761132e612200565b5b90506020020160208101906113449190611c61565b85858481811061135757611356612200565b5b90506020020135611601565b808060010191505061130e565b505050505050565b6003602052805f5260405f205f915054906101000a900460ff1681565b60055481565b5f6113a5846118b8565b90509392505050565b60026113b98161161b565b8282905085859050146113f8576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8585905081101561145c5761144f86868381811061141b5761141a612200565b5b90506020020160208101906114309190611c61565b85858481811061144357611442612200565b5b905060200201356115bb565b80806001019150506113fa565b505050505050565b60015481565b600181565b6114776115ca565b63389a75e1600c52805f526020600c20805442111561149d57636f5e88185f526004601cfd5b5f8155506114aa816117f2565b50565b6114b56115ca565b8060601b6114ca57637448fbae5f526004601cfd5b6114d3816117f2565b50565b5f8173ffffffffffffffffffffffffffffffffffffffff166114f6610fd1565b73ffffffffffffffffffffffffffffffffffffffff1614806115225750611521826002600117610f14565b5b9050919050565b5f63389a75e1600c52815f526020600c20549050919050565b5f7fa9216705000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115b457506115b3826118c7565b5b9050919050565b6115c682825f611940565b5050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146115ff576382b429005f526004601cfd5b565b61160d82826001611940565b5050565b5f6202a300905090565b638b78c6d81954331461164d57638b78c6d8600c52335f52806020600c20541661164c576382b429005f526004601cfd5b5b50565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b611681611998565b156116f9577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278054156116bb57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35061174c565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b638b78c6d8600c52335f52806020600c2054166117a6576382b429005f526004601cfd5b50565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af13d1560015f511417166117e9576390b8ec185f526004601cfd5b5f603452505050565b6117fa611998565b1561185f577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b82178155506118b5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f600454600554109050919050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061193957506119388261199c565b5b9050919050565b638b78c6d8600c52825f526020600c2080548381178361196257848216821890505b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f90565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60405180608001604052805f6001811115611a2357611a22611f3f565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611a9c81611a68565b8114611aa6575f80fd5b50565b5f81359050611ab781611a93565b92915050565b5f60208284031215611ad257611ad1611a60565b5b5f611adf84828501611aa9565b91505092915050565b5f8115159050919050565b611afc81611ae8565b82525050565b5f602082019050611b155f830184611af3565b92915050565b5f819050919050565b611b2d81611b1b565b82525050565b5f602082019050611b465f830184611b24565b92915050565b611b5581611b1b565b8114611b5f575f80fd5b50565b5f81359050611b7081611b4c565b92915050565b5f60208284031215611b8b57611b8a611a60565b5b5f611b9884828501611b62565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611bca82611ba1565b9050919050565b611bda81611bc0565b8114611be4575f80fd5b50565b5f81359050611bf581611bd1565b92915050565b5f8060408385031215611c1157611c10611a60565b5b5f611c1e85828601611be7565b9250506020611c2f85828601611b62565b9150509250929050565b611c4281611a68565b82525050565b5f602082019050611c5b5f830184611c39565b92915050565b5f60208284031215611c7657611c75611a60565b5b5f611c8384828501611be7565b91505092915050565b611c9581611bc0565b82525050565b5f602082019050611cae5f830184611c8c565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611cd557611cd4611cb4565b5b8235905067ffffffffffffffff811115611cf257611cf1611cb8565b5b602083019150836020820283011115611d0e57611d0d611cbc565b5b9250929050565b5f8083601f840112611d2a57611d29611cb4565b5b8235905067ffffffffffffffff811115611d4757611d46611cb8565b5b602083019150836020820283011115611d6357611d62611cbc565b5b9250929050565b5f805f8060408587031215611d8257611d81611a60565b5b5f85013567ffffffffffffffff811115611d9f57611d9e611a64565b5b611dab87828801611cc0565b9450945050602085013567ffffffffffffffff811115611dce57611dcd611a64565b5b611dda87828801611d15565b925092505092959194509250565b5f8083601f840112611dfd57611dfc611cb4565b5b8235905067ffffffffffffffff811115611e1a57611e19611cb8565b5b602083019150836001820283011115611e3657611e35611cbc565b5b9250929050565b5f8060208385031215611e5357611e52611a60565b5b5f83013567ffffffffffffffff811115611e7057611e6f611a64565b5b611e7c85828601611de8565b92509250509250929050565b5f604082019050611e9b5f830185611b24565b611ea86020830184611c8c565b9392505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611ef182611eaf565b611efb8185611eb9565b9350611f0b818560208601611ec9565b611f1481611ed7565b840191505092915050565b5f6020820190508181035f830152611f378184611ee7565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611f7d57611f7c611f3f565b5b50565b5f819050611f8d82611f6c565b919050565b5f611f9c82611f80565b9050919050565b611fac81611f92565b82525050565b5f819050919050565b611fc481611fb2565b82525050565b5f60ff82169050919050565b611fdf81611fca565b82525050565b5f608082019050611ff85f830187611fa3565b6120056020830186611fbb565b6120126040830185611fd6565b61201f6060830184611c8c565b95945050505050565b61203181611f92565b82525050565b61204081611fb2565b82525050565b61204f81611fca565b82525050565b61205e81611bc0565b82525050565b608082015f8201516120785f850182612028565b50602082015161208b6020850182612037565b50604082015161209e6040850182612046565b5060608201516120b16060850182612055565b50505050565b5f6080820190506120ca5f830184612064565b92915050565b5f805f604084860312156120e7576120e6611a60565b5b5f6120f486828701611be7565b935050602084013567ffffffffffffffff81111561211557612114611a64565b5b61212186828701611de8565b92509250509250925092565b5f8083601f84011261214257612141611cb4565b5b8235905067ffffffffffffffff81111561215f5761215e611cb8565b5b60208301915083602082028301111561217b5761217a611cbc565b5b9250929050565b5f805f806040858703121561219a57612199611a60565b5b5f85013567ffffffffffffffff8111156121b7576121b6611a64565b5b6121c387828801611cc0565b9450945050602085013567ffffffffffffffff8111156121e6576121e5611a64565b5b6121f28782880161212d565b925092505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b61223681611ae8565b8114612240575f80fd5b50565b5f813590506122518161222d565b92915050565b5f6020828403121561226c5761226b611a60565b5b5f61227984828501612243565b91505092915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6122bc82611ed7565b810181811067ffffffffffffffff821117156122db576122da612286565b5b80604052505050565b5f6122ed611a57565b90506122f982826122b3565b919050565b5f80fd5b6002811061230e575f80fd5b50565b5f8135905061231f81612302565b92915050565b61232e81611fb2565b8114612338575f80fd5b50565b5f8135905061234981612325565b92915050565b61235881611fca565b8114612362575f80fd5b50565b5f813590506123738161234f565b92915050565b5f6080828403121561238e5761238d612282565b5b61239860806122e4565b90505f6123a784828501612311565b5f8301525060206123ba8482850161233b565b60208301525060406123ce84828501612365565b60408301525060606123e284828501611be7565b60608301525092915050565b5f60e0828403121561240357612402612282565b5b61240d60806122e4565b90505f61241c84828501611be7565b5f83015250602061242f84828501611b62565b602083015250604061244384828501611b62565b604083015250606061245784828501612379565b60608301525092915050565b5f60e0828403121561247857612477611a60565b5b5f612485848285016123ee565b91505092915050565b5f6060820190506124a15f830186611c8c565b6124ae6020830185611b24565b6124bb6040830184611b24565b949350505050565b5f80fd5b5f67ffffffffffffffff8211156124e1576124e0612286565b5b6124ea82611ed7565b9050602081019050919050565b828183375f83830152505050565b5f612517612512846124c7565b6122e4565b905082815260208101848484011115612533576125326124c3565b5b61253e8482856124f7565b509392505050565b5f82601f83011261255a57612559611cb4565b5b813561256a848260208601612505565b91505092915050565b5f6040828403121561258857612587612282565b5b61259260406122e4565b90505f6125a184828501611be7565b5f83015250602082013567ffffffffffffffff8111156125c4576125c36122fe565b5b6125d084828501612546565b60208301525092915050565b5f602082840312156125f1576125f0611a60565b5b5f82013567ffffffffffffffff81111561260e5761260d611a64565b5b61261a84828501612573565b91505092915050565b5f8151905061263181611b4c565b92915050565b5f6020828403121561264c5761264b611a60565b5b5f61265984828501612623565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61269982611b1b565b91506126a483611b1b565b92508282039050818111156126bc576126bb612662565b5b92915050565b5f8160601b9050919050565b5f6126d8826126c2565b9050919050565b5f6126e9826126ce565b9050919050565b6127016126fc82611bc0565b6126df565b82525050565b5f819050919050565b61272161271c82611b1b565b612707565b82525050565b5f61273282866126f0565b60148201915061274282856126f0565b6014820191506127528284612710565b602082019150819050949350505050565b5f61276d82611ba1565b9050919050565b61277d81612763565b8114612787575f80fd5b50565b5f8135905061279881612774565b92915050565b5f805f606084860312156127b5576127b4611a60565b5b5f6127c28682870161278a565b93505060206127d386828701611b62565b92505060406127e486828701611b62565b9150509250925092565b6127f781611b1b565b82525050565b602082015f8201516128115f8501826127ee565b50505050565b5f60208201905061282a5f8301846127fd565b92915050565b6003811061284157612840611f3f565b5b50565b5f81905061285182612830565b919050565b5f61286082612844565b9050919050565b61287081612856565b82525050565b5f82825260208201905092915050565b5f61289082611eaf565b61289a8185612876565b93506128aa818560208601611ec9565b6128b381611ed7565b840191505092915050565b5f608083015f8301516128d35f860182612867565b5060208301516128e66020860182612055565b5060408301516128f96040860182612055565b50606083015184820360608601526129118282612886565b9150508091505092915050565b5f6020820190508181035f83015261293681846128be565b905092915050565b5f6040828403121561295357612952612282565b5b61295d60406122e4565b90505f82013567ffffffffffffffff81111561297c5761297b6122fe565b5b61298884828501612546565b5f83015250602082013567ffffffffffffffff8111156129ab576129aa6122fe565b5b6129b784828501612546565b60208301525092915050565b5f602082840312156129d8576129d7611a60565b5b5f82013567ffffffffffffffff8111156129f5576129f4611a64565b5b612a018482850161293e565b91505092915050565b5f612a1482611b1b565b9150612a1f83611b1b565b9250828202612a2d81611b1b565b91508282048414831517612a4457612a43612662565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612a8282611b1b565b9150612a8d83611b1b565b925082612a9d57612a9c612a4b565b5b828204905092915050565b5f612ab282611b1b565b9150612abd83611b1b565b9250828201905080821115612ad557612ad4612662565b5b9291505056fea264697066735822122088f94b42df208a46ce42b778ca64ec72184f49c28f9e1521dea9b44eb0201ee864736f6c634300081a0033",p0={"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef":{name:"Transfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0}]},"Transfer(address indexed,address indexed,uint256 indexed)":{name:"Transfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0}]},"0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e":{name:"Purchased",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"uint256"},{type:"uint256"}]},"Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)":{name:"Purchased",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"uint256"},{type:"uint256"}]},"0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"NameRegistered(string,bytes32,address,uint256,uint256,uint256)":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f":{name:"DelegateChanged",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0}]},"DelegateChanged(address indexed,address indexed,address indexed)":{name:"DelegateChanged",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0}]},"0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0":{name:"SwappedV3",type:"event",inputs:[{type:"bytes16"},{type:"address"},{type:"uint256"},{type:"address"},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)":{name:"SwappedV3",type:"event",inputs:[{type:"bytes16"},{type:"address"},{type:"uint256"},{type:"address"},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4":{name:"VoteCast",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256"},{type:"uint8"},{type:"uint256"},{type:"string"}]},"VoteCast(address indexed,uint256,uint8,uint256,string)":{name:"VoteCast",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256"},{type:"uint8"},{type:"uint256"},{type:"string"}]},"0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa":{name:"Minted",type:"event",inputs:[{type:"uint8"},{type:"address"},{type:"uint256"},{type:"uint256"}]},"Minted(uint8,address,uint256,uint256)":{name:"Minted",type:"event",inputs:[{type:"uint8"},{type:"address"},{type:"uint256"},{type:"uint256"}]},"0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888":{name:"Minted",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint8"},{type:"uint8"},{type:"address",indexed:!0},{type:"tuple",components:[{type:"uint32"},{type:"uint256"},{type:"address"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"address"},{type:"bool"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},{type:"uint256",indexed:!0}]},"Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)":{name:"Minted",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint8"},{type:"uint8"},{type:"address",indexed:!0},{type:"tuple",components:[{type:"uint32"},{type:"uint256"},{type:"address"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"address"},{type:"bool"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},{type:"uint256",indexed:!0}]},"0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8":{name:"ZoraTimedSaleStrategyRewards",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"}]},"ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)":{name:"ZoraTimedSaleStrategyRewards",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"}]},"0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b":{name:"InfoIndexed",type:"event",inputs:[{type:"address",indexed:!0},{type:"string",indexed:!0}]},"InfoIndexed(address indexed,string indexed)":{name:"InfoIndexed",type:"event",inputs:[{type:"address",indexed:!0},{type:"string",indexed:!0}]},"0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c":{name:"Info",type:"event",inputs:[{type:"address"},{type:"string"}]},"Info(address,string)":{name:"Info",type:"event",inputs:[{type:"address"},{type:"string"}]}},h0={"Transfer(address indexed,address indexed,uint256 indexed)":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef":"Transfer(address indexed,address indexed,uint256 indexed)","Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)":"0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e","0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e":"Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)","NameRegistered(string,bytes32,address,uint256,uint256,uint256)":"0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27","0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27":"NameRegistered(string,bytes32,address,uint256,uint256,uint256)","DelegateChanged(address indexed,address indexed,address indexed)":"0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f","0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f":"DelegateChanged(address indexed,address indexed,address indexed)","SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)":"0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0","0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0":"SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)","VoteCast(address indexed,uint256,uint8,uint256,string)":"0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4","0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4":"VoteCast(address indexed,uint256,uint8,uint256,string)","Minted(uint8,address,uint256,uint256)":"0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa","0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa":"Minted(uint8,address,uint256,uint256)","Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)":"0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888","0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888":"Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)","ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)":"0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8","0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8":"ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)","InfoIndexed(address indexed,string indexed)":"0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b","0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b":"InfoIndexed(address indexed,string indexed)","Info(address,string)":"0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c","0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c":"Info(address,string)"},g0={abi:p0,selectors:h0},m0={"0x0000000000000000000000000000000000000000000000000000000040c10f19":{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[]},"mint(address to, uint256 amount)":{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[]},"0x00000000000000000000000000000000000000000000000000000000a836f32f":{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"mintTo"},{type:"uint256",name:"quantity"},{type:"address",name:"collection"},{type:"uint256",name:"tokenId"},{type:"address",name:"mintReferral"},{type:"string",name:"comment"}],outputs:[]},"mint(address mintTo,uint256 quantity,address collection,uint256 tokenId,address mintReferral,string comment)":{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"mintTo"},{type:"uint256",name:"quantity"},{type:"address",name:"collection"},{type:"uint256",name:"tokenId"},{type:"address",name:"mintReferral"},{type:"string",name:"comment"}],outputs:[]},"0x0000000000000000000000000000000000000000000000000000000017d304b0":{name:"mintPayable",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[]},"mintPayable(address to, uint256 amount)":{name:"mintPayable",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[]},"0x0000000000000000000000000000000000000000000000000000000024856bc3":{name:"execute",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes",name:"commands"},{type:"bytes[]",name:"inputs"}],outputs:[]},"execute(bytes commands,bytes[] inputs)":{name:"execute",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes",name:"commands"},{type:"bytes[]",name:"inputs"}],outputs:[]},"0x0000000000000000000000000000000000000000000000000000000074694a2b":{name:"register",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"name"},{type:"address",name:"owner"},{type:"uint256",name:"duration"},{type:"bytes32",name:"secret"},{type:"address",name:"resolver"},{type:"bytes[]",name:"data"},{type:"bool",name:"reverseRecord"},{type:"uint16",name:"ownerControlledFuses"}],outputs:[]},"register(string name,address owner,uint256 duration,bytes32 secret,address resolver,bytes[] data,bool reverseRecord,uint16 ownerControlledFuses)":{name:"register",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"name"},{type:"address",name:"owner"},{type:"uint256",name:"duration"},{type:"bytes32",name:"secret"},{type:"address",name:"resolver"},{type:"bytes[]",name:"data"},{type:"bool",name:"reverseRecord"},{type:"uint16",name:"ownerControlledFuses"}],outputs:[]},"0x00000000000000000000000000000000000000000000000000000000eb9019d4":{name:"getVotes",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"uint256",name:"blockNumber"}],outputs:[{type:"uint256"}]},"getVotes(address account, uint256 blockNumber) view returns (uint256)":{name:"getVotes",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"uint256",name:"blockNumber"}],outputs:[{type:"uint256"}]},"0x0000000000000000000000000000000000000000000000000000000023b872dd":{name:"transferFrom",type:"function",stateMutability:"nonpayable",inputs:[{type:"address"},{type:"address"},{type:"uint256"}],outputs:[]},"transferFrom(address,address,uint256)":{name:"transferFrom",type:"function",stateMutability:"nonpayable",inputs:[{type:"address"},{type:"address"},{type:"uint256"}],outputs:[]},"0x000000000000000000000000000000000000000000000000000000004a04a1c9":{name:"mintTo",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",components:[{type:"address"},{type:"uint8"},{type:"uint8"},{type:"address"},{type:"uint32"},{type:"address"},{type:"uint32"},{type:"bytes32[]"},{type:"uint96"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"bytes"},{type:"address"},{type:"bytes32[]"},{type:"uint256"}]}],outputs:[]},"mintTo((address,uint8,uint8,address,uint32,address,uint32,bytes32[],uint96,uint32,uint32,uint32,bytes,address,bytes32[],uint256))":{name:"mintTo",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",components:[{type:"address"},{type:"uint8"},{type:"uint8"},{type:"address"},{type:"uint32"},{type:"address"},{type:"uint32"},{type:"bytes32[]"},{type:"uint96"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"bytes"},{type:"address"},{type:"bytes32[]"},{type:"uint256"}]}],outputs:[]},"0x00000000000000000000000000000000000000000000000000000000b3836da9":{name:"buy1155",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"erc20zAddress"},{type:"uint256",name:"num1155ToBuy"},{type:"address",name:"recipient"},{type:"address",name:"excessRefundRecipient"},{type:"uint256",name:"maxEthToSpend"},{type:"uint160",name:"sqrtPriceLimitX96"}],outputs:[]},"buy1155(address erc20zAddress, uint256 num1155ToBuy, address recipient, address excessRefundRecipient, uint256 maxEthToSpend, uint160 sqrtPriceLimitX96)":{name:"buy1155",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"erc20zAddress"},{type:"uint256",name:"num1155ToBuy"},{type:"address",name:"recipient"},{type:"address",name:"excessRefundRecipient"},{type:"uint256",name:"maxEthToSpend"},{type:"uint160",name:"sqrtPriceLimitX96"}],outputs:[]},"0x000000000000000000000000000000000000000000000000000000006a627842":{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address"}],outputs:[]},"mint(address)":{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address"}],outputs:[]}},x0={"mint(address to, uint256 amount)":"0x0000000000000000000000000000000000000000000000000000000040c10f19","0x0000000000000000000000000000000000000000000000000000000040c10f19":"mint(address to, uint256 amount)","mint(address mintTo,uint256 quantity,address collection,uint256 tokenId,address mintReferral,string comment)":"0x00000000000000000000000000000000000000000000000000000000a836f32f","0x00000000000000000000000000000000000000000000000000000000a836f32f":"mint(address mintTo,uint256 quantity,address collection,uint256 tokenId,address mintReferral,string comment)","mintPayable(address to, uint256 amount)":"0x0000000000000000000000000000000000000000000000000000000017d304b0","0x0000000000000000000000000000000000000000000000000000000017d304b0":"mintPayable(address to, uint256 amount)","execute(bytes commands,bytes[] inputs)":"0x0000000000000000000000000000000000000000000000000000000024856bc3","0x0000000000000000000000000000000000000000000000000000000024856bc3":"execute(bytes commands,bytes[] inputs)","register(string name,address owner,uint256 duration,bytes32 secret,address resolver,bytes[] data,bool reverseRecord,uint16 ownerControlledFuses)":"0x0000000000000000000000000000000000000000000000000000000074694a2b","0x0000000000000000000000000000000000000000000000000000000074694a2b":"register(string name,address owner,uint256 duration,bytes32 secret,address resolver,bytes[] data,bool reverseRecord,uint16 ownerControlledFuses)","getVotes(address account, uint256 blockNumber) view returns (uint256)":"0x00000000000000000000000000000000000000000000000000000000eb9019d4","0x00000000000000000000000000000000000000000000000000000000eb9019d4":"getVotes(address account, uint256 blockNumber) view returns (uint256)","transferFrom(address,address,uint256)":"0x0000000000000000000000000000000000000000000000000000000023b872dd","0x0000000000000000000000000000000000000000000000000000000023b872dd":"transferFrom(address,address,uint256)","mintTo((address,uint8,uint8,address,uint32,address,uint32,bytes32[],uint96,uint32,uint32,uint32,bytes,address,bytes32[],uint256))":"0x000000000000000000000000000000000000000000000000000000004a04a1c9","0x000000000000000000000000000000000000000000000000000000004a04a1c9":"mintTo((address,uint8,uint8,address,uint32,address,uint32,bytes32[],uint96,uint32,uint32,uint32,bytes,address,bytes32[],uint256))","buy1155(address erc20zAddress, uint256 num1155ToBuy, address recipient, address excessRefundRecipient, uint256 maxEthToSpend, uint160 sqrtPriceLimitX96)":"0x00000000000000000000000000000000000000000000000000000000b3836da9","0x00000000000000000000000000000000000000000000000000000000b3836da9":"buy1155(address erc20zAddress, uint256 num1155ToBuy, address recipient, address excessRefundRecipient, uint256 maxEthToSpend, uint160 sqrtPriceLimitX96)","mint(address)":"0x000000000000000000000000000000000000000000000000000000006a627842","0x000000000000000000000000000000000000000000000000000000006a627842":"mint(address)"},w0={abi:m0,selectors:x0},R=class R extends f0.DeployableTarget{constructor(){super(...arguments),this.abi=u.m}async getIncentiveCriteria(){try{return await u.lT(this._config,{address:this.assertValidAddress()})}catch(e){throw new p.IncentiveCriteriaNotFoundError(e)}}async getIncentiveScalar({hash:e}){var t;const f=await this.getIncentiveCriteria(),b=await w.getTransaction(this._config,{hash:e});if(f.criteriaType===B.SignatureType.EVENT){const n=(await w.getTransactionReceipt(this._config,{hash:e})).logs;if(n.length===0)throw new p.NoMatchingLogsError(`No logs found for event signature ${f.signature}`);try{const s=g0.abi[f.signature],r=i.parseEventLogs({abi:[s],logs:n});if(r==null||r.length===0)throw new p.NoMatchingLogsError(`No logs found for event signature ${f.signature}`);const c=((t=r[0])==null?void 0:t.args)[f.fieldIndex];if(c===void 0)throw new p.DecodedArgsError(`Decoded argument at index ${f.fieldIndex} is undefined`);return BigInt(c)}catch(s){throw new p.DecodedArgsError(`Failed to decode event log for signature ${f.signature}: ${s.message}`)}}else if(f.criteriaType===B.SignatureType.FUNC)try{const d=w0.abi[f.signature],s=i.decodeFunctionData({abi:[d],data:b.input}).args[f.fieldIndex];if(s==null)throw new p.DecodedArgsError(`Decoded argument at index ${f.fieldIndex} is undefined`);return BigInt(s)}catch(d){throw new p.DecodedArgsError(`Failed to decode function data for signature ${f.signature}: ${d.message}`)}else throw new p.InvalidCriteriaTypeError(`Invalid criteria type ${f.criteriaType}`)}buildParameters(e,f){const[b,t]=this.validateDeploymentConfig(e,f);return{abi:u.m,bytecode:l0,args:[$(b)],...this.optionallyAttachAccount(t.account)}}buildClaimData(e){return i.encodeAbiParameters([{type:"uint256",name:"rewardAmount"}],[e])}};R.bases={31337:void 0,...D.ERC20VariableCriteriaIncentive};let I=R;function $({asset:a,reward:e,limit:f,criteria:b}){return i.encodeAbiParameters([{type:"tuple",name:"initPayloadExtended",components:[{type:"address",name:"asset"},{type:"uint256",name:"reward"},{type:"uint256",name:"limit"},{type:"tuple",name:"criteria",components:[{type:"uint8",name:"criteriaType"},{type:"bytes32",name:"signature"},{type:"uint8",name:"fieldIndex"},{type:"address",name:"targetContract"}]}]}],[{asset:a,reward:e,limit:f,criteria:{criteriaType:b.criteriaType,signature:b.signature,fieldIndex:b.fieldIndex,targetContract:b.targetContract}}])}const v0=i.parseEther("0.000075"),A={31337:void 0,...D.BoostCore},C0=A[11155111]||i.zeroAddress;function I0(a){return a.address}function A0(a){return a.registryAddress&&a.protocolFeeReceiver}const E=class E extends K.Deployable{get addresses(){return this.constructor.addresses}constructor({config:e,account:f,...b}){if(I0(b)&&b.address)super({account:f,config:e},b.address);else if(A0(b))super({account:f,config:e},[b.registryAddress,b.protocolFeeReceiver]);else{const{address:t}=y.assertValidAddressByChainId(e,A);super({account:f,config:e},t)}this.abi=u.T}async createBoost(e,f){var T;const[b,t]=this.validateDeploymentConfig(e,f),d=((T=f==null?void 0:f.chain)==null?void 0:T.id)||(f==null?void 0:f.chainId),{chainId:n,address:s}=y.assertValidAddressByChainId(t.config,this.addresses,d),r=y0({abi:u.T,functionName:"createBoost",address:s}),c=await this.prepareCreateBoostPayload(s,n,b,t);console.log(c);const g=await r(t.config,{...this.optionallyAttachAccount(t.account),...f,chainId:n,args:[v.prepareBoostPayload(c)]}),m=await w.waitForTransactionReceipt(t.config,{hash:g}),o=i.parseEventLogs({abi:u.T,eventName:"BoostCreated",logs:m.logs}).at(0);let h=0n;if(!o)throw new p.BoostCoreNoIdentifierEmitted;h=o==null?void 0:o.args.boostId;const l=await this.readBoost(h);return new v.Boost({id:h,budget:b.budget.at(l.budget),action:b.action.at(l.action),validator:b.validator.at(l.validator),allowList:b.allowList.at(l.allowList),incentives:b.incentives.map((H,j)=>H.at(l.incentives.at(j))),protocolFee:l.protocolFee,maxParticipants:l.maxParticipants,owner:l.owner})}async simulateCreateBoost(e,f){var c;const[b,t]=this.validateDeploymentConfig(e,f),d=((c=f==null?void 0:f.chain)==null?void 0:c.id)||(f==null?void 0:f.chainId),{chainId:n,address:s}=y.assertValidAddressByChainId(t.config,this.addresses,d),r=await this.prepareCreateBoostPayload(s,n,b,t);return await u.Kc(this._config,{...this.optionallyAttachAccount(),...f,address:s,chainId:n,args:[v.prepareBoostPayload(r)]})}async prepareCreateBoostPayload(e,f,b,t){var m;if(!b.owner&&(b.owner=((m=this._account)==null?void 0:m.address)||w.getAccount(t.config).address||i.zeroAddress,b.owner===i.zeroAddress))throw new p.DeployableUnknownOwnerProvidedError;b.validator||(b.validator=this.SignerValidator({signers:[b.owner],validatorCaller:e}));let d=i.zeroAddress;if(b.budget.address){if(d=b.budget.address,!await b.budget.isAuthorized(e))throw new p.BudgetMustAuthorizeBoostCore(e)}else throw new p.MustInitializeBudgetError;let n={instance:i.zeroAddress,isBase:!0,parameters:i.zeroHash};if(b.action.address){const o=b.action.isBase;n={isBase:o,instance:b.action.address,parameters:o&&b.action.buildParameters(void 0,t).args.at(0)||i.zeroHash}}else n.parameters=b.action.buildParameters(void 0,t).args.at(0)||i.zeroHash,n.instance=y.assertValidAddressByChainId(t.config,b.action.bases,f).address;let s={instance:i.zeroAddress,isBase:!0,parameters:i.zeroHash};if(b.validator.address){const o=b.validator.isBase;s={isBase:o,instance:b.validator.address,parameters:o&&b.validator.buildParameters(void 0,t).args.at(0)||i.zeroHash}}else s.parameters=b.validator.buildParameters(void 0,t).args.at(0)||i.zeroHash,s.instance=y.assertValidAddressByChainId(t.config,b.validator.bases,f).address;let r={instance:i.zeroAddress,isBase:!0,parameters:i.zeroHash};if(b.allowList||(b.allowList=this.OpenAllowList()),b.allowList.address){const o=b.allowList.isBase;r={isBase:o,instance:b.allowList.address,parameters:i.zeroHash}}else r.parameters=b.allowList.buildParameters(void 0,t).args.at(0)||i.zeroHash,r.instance=y.assertValidAddressByChainId(t.config,b.allowList.bases,f).address;const c=b.incentives.map(()=>({instance:i.zeroAddress,isBase:!0,parameters:i.zeroHash}));for(let o=0;o<b.incentives.length;o++){const h=b.incentives.at(o);if(h.address){const l=h.isBase;if(!l)throw new p.IncentiveNotCloneableError(h);c[o]={isBase:l,instance:h.address,parameters:l&&h.buildParameters(void 0,t).args.at(0)||i.zeroHash}}else c[o].parameters=h.buildParameters(void 0,t).args.at(0)||i.zeroHash,c[o].instance=y.assertValidAddressByChainId(t.config,h.bases,f).address}return{budget:d,action:n,validator:s,allowList:r,incentives:c,protocolFee:b.protocolFee||0n,maxParticipants:b.maxParticipants||0n,owner:b.owner}}async claimIncentive(e,f,b,t,d){return await this.awaitResult(this.claimIncentiveRaw(e,f,b,t,d))}async claimIncentiveRaw(e,f,b,t,d){var c;const{request:n,result:s}=await u.$c(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,((c=d==null?void 0:d.chain)==null?void 0:c.id)||(d==null?void 0:d.chainId)),args:[e,f,b,t],...this.optionallyAttachAccount(),...d});return{hash:await u.xc(this._config,n),result:s}}async claimIncentiveFor(e,f,b,t,d,n){return await this.awaitResult(this.claimIncentiveForRaw(e,f,b,t,d,n))}async claimIncentiveForRaw(e,f,b,t,d,n){var g;const{request:s,result:r}=await u.Wc(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,((g=n==null?void 0:n.chain)==null?void 0:g.id)||(n==null?void 0:n.chainId)),args:[e,f,b,t,d],...this.optionallyAttachAccount(),...n});return{hash:await u.Sc(this._config,s),result:r}}async readBoost(e,f){var b;try{let t;return typeof e=="string"?t=BigInt(e):t=e,await u.Nc(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[t],...this.optionallyAttachAccount(),...f})}catch(t){throw(b=t==null?void 0:t.message)!=null&&b.includes("bounds")?new p.BoostNotFoundError(String(e)):t}}async getBoost(e,f){let b;typeof e=="string"?b=BigInt(e):b=e;const{protocolFee:t,maxParticipants:d,owner:n,...s}=await this.readBoost(b,f),r={config:this._config,account:this._account},[c,g,m,o,h]=await Promise.all([k.actionFromAddress(r,s.action),Z.budgetFromAddress(r,s.budget),t0.validatorFromAddress(r,s.validator),_.allowListFromAddress(r,s.allowList),Promise.all(s.incentives.map(l=>S.incentiveFromAddress(r,l)))]);return new v.Boost({id:b,action:c,budget:g,validator:m,allowList:o,incentives:h,protocolFee:t,maxParticipants:d,owner:n})}async getBoostCount(e){return await u.hc(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[],...this.optionallyAttachAccount(),...e})}async isAuthorized(e,f){const b=await this.createBoostAuth(f);return u.k2(this._config,{address:b,args:[e],...this.optionallyAttachAccount(),...f})}async createBoostAuth(e){return await u.Ic(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[],...this.optionallyAttachAccount(),...e})}async setCreateBoostAuth(e,f){return await this.awaitResult(this.setCreateBoostAuthRaw(e.assertValidAddress(),{...f}))}async setCreateBoostAuthRaw(e,f){const{request:b,result:t}=await u.em(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[e],...this.optionallyAttachAccount(),...f});return{hash:await u.Fc(this._config,b),result:t}}async protocolFee(e){return await u.Ec(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[],...this.optionallyAttachAccount(),...e})}async protocolFeeReceiver(e){return await u.Cc(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[],...this.optionallyAttachAccount(),...e})}async setProcolFeeReceiver(e,f){return await this.awaitResult(this.setProcolFeeReceiverRaw(e,{...f}))}async setProcolFeeReceiverRaw(e,f){const{request:b,result:t}=await u.nm(this._config,{...y.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[e],...this.optionallyAttachAccount(),...f});return{hash:await u.qc(this._config,b),result:t}}async getClaimFromTransaction(e){var t;const f=await w.getTransactionReceipt(this._config,e);return(t=i.parseEventLogs({abi:u.T,eventName:"BoostClaimed",logs:f.logs}).at(0))==null?void 0:t.args}PassthroughAuth(e){return new X.PassthroughAuth({config:this._config,account:this._account},e)}EventAction(e,f){return new B.EventAction({config:this._config,account:this._account},e,f)}OpenAllowList(e){return new _.OpenAllowList({config:this._config,account:this._account},void 0,e)}SimpleAllowList(e,f){return new U.SimpleAllowList({config:this._config,account:this._account},e,f)}SimpleDenyList(e,f){return new G.SimpleDenyList({config:this._config,account:this._account},e,f)}ManagedBudget(e){return new W.ManagedBudget({config:this._config,account:this._account},e)}AllowListIncentive(e){return new J.AllowListIncentive({config:this._config,account:this._account},e)}CGDAIncentive(e){return new Q.CGDAIncentive({config:this._config,account:this._account},e)}ERC20Incentive(e){return new Y.ERC20Incentive({config:this._config,account:this._account},e)}PointsIncentive(e){return new e0.PointsIncentive({config:this._config,account:this._account},e)}SignerValidator(e,f){return new b0.SignerValidator({config:this._config,account:this._account},e,f)}ERC20VariableCriteriaIncentive(e,f){return new I({config:this._config,account:this._account},e,f)}ERC20VariableIncentive(e,f){return new S.ERC20VariableIncentive({config:this._config,account:this._account},e,f)}buildParameters(e,f){const[b,t]=this.validateDeploymentConfig(e,f);return{abi:u.T,bytecode:a0,args:b,...this.optionallyAttachAccount(t.account)}}};E.addresses=A;let P=E;exports.BOOST_CORE_ADDRESS=C0;exports.BOOST_CORE_ADDRESSES=A;exports.BOOST_CORE_CLAIM_FEE=v0;exports.BoostCore=P;exports.ERC20VariableCriteriaIncentive=I;exports.prepareERC20VariableCriteriaIncentivePayload=$;
3
- //# sourceMappingURL=BoostCore-Btl5BdAs.cjs.map