@boostxyz/sdk 0.0.0-alpha.7 → 0.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.js +1 -1
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +3 -2
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +10 -10
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.d.ts +2 -2
- package/dist/AllowLists/AllowList.js +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.d.ts +3 -3
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +1 -1
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +1 -1
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +33 -1
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +286 -241
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.cjs.map +1 -1
- package/dist/BoostRegistry.d.ts +14 -0
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +21 -5
- package/dist/BoostRegistry.js.map +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.js +1 -1
- package/dist/Deployable/Deployable.cjs.map +1 -1
- package/dist/Deployable/Deployable.d.ts +8 -2
- package/dist/Deployable/Deployable.d.ts.map +1 -1
- package/dist/Deployable/Deployable.js +6 -0
- package/dist/Deployable/Deployable.js.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -1
- package/dist/Deployable/DeployableTarget.d.ts +4 -3
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +30 -27
- package/dist/Deployable/DeployableTarget.js.map +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +1 -1
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +1 -1
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +1 -1
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +1 -1
- package/dist/errors.cjs +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.ts +14 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +30 -21
- package/dist/errors.js.map +1 -1
- package/dist/{generated-Cd-Fe7W7.cjs → generated-BzszviNp.cjs} +3 -3
- package/dist/{generated-Cd-Fe7W7.cjs.map → generated-BzszviNp.cjs.map} +1 -1
- package/dist/{generated-DGpIVcv5.js → generated-Cbv8zFkf.js} +286 -278
- package/dist/{generated-DGpIVcv5.js.map → generated-Cbv8zFkf.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +105 -104
- package/package.json +1 -1
- package/src/Actions/EventAction.ts +10 -2
- package/src/AllowLists/SimpleAllowList.ts +3 -2
- package/src/BoostCore.ts +76 -13
- package/src/BoostRegistry.ts +21 -0
- package/src/Deployable/Deployable.ts +8 -2
- package/src/Deployable/DeployableTarget.ts +17 -4
- package/src/errors.ts +18 -0
package/dist/BoostCore.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { getAccount as
|
|
3
|
-
import { createClient as
|
|
1
|
+
import { c as P, bd as k, be as G, bf as U, bg as W, bh as H, bi as Q, bj as J, bk as K, bl as X, bm as Y, bn as Z, bo as ff, bp as ef, bq as af, br as bf, bs as tf, bt as cf } from "./generated-Cbv8zFkf.js";
|
|
2
|
+
import { getAccount as sf, waitForTransactionReceipt as nf } from "@wagmi/core";
|
|
3
|
+
import { createClient as df, custom as rf, zeroAddress as w, zeroHash as o, parseEventLogs as of } from "viem";
|
|
4
4
|
import { actionFromAddress as uf } from "./Actions/Action.js";
|
|
5
5
|
import { EventAction as lf } from "./Actions/EventAction.js";
|
|
6
6
|
import { allowListFromAddress as hf } from "./AllowLists/AllowList.js";
|
|
7
7
|
import { SimpleAllowList as mf } from "./AllowLists/SimpleAllowList.js";
|
|
8
8
|
import { SimpleDenyList as gf } from "./AllowLists/SimpleDenyList.js";
|
|
9
9
|
import { PassthroughAuth as wf } from "./Auth/PassthroughAuth.js";
|
|
10
|
-
import { Boost as
|
|
10
|
+
import { Boost as $ } from "./Boost.js";
|
|
11
11
|
import { budgetFromAddress as pf } from "./Budgets/Budget.js";
|
|
12
12
|
import { ManagedBudget as Af } from "./Budgets/ManagedBudget.js";
|
|
13
13
|
import { Deployable as yf } from "./Deployable/Deployable.js";
|
|
14
14
|
import { AllowListIncentive as Cf } from "./Incentives/AllowListIncentive.js";
|
|
15
15
|
import { CGDAIncentive as vf } from "./Incentives/CGDAIncentive.js";
|
|
16
16
|
import { ERC20Incentive as _f } from "./Incentives/ERC20Incentive.js";
|
|
17
|
-
import { incentiveFromAddress as
|
|
17
|
+
import { incentiveFromAddress as If, ERC20VariableIncentive as Pf } from "./Incentives/Incentive.js";
|
|
18
18
|
import { PointsIncentive as Bf } from "./Incentives/PointsIncentive.js";
|
|
19
|
-
import { SignerValidator as
|
|
20
|
-
import { validatorFromAddress as
|
|
21
|
-
import { DeployableUnknownOwnerProvidedError as Ef, BudgetMustAuthorizeBoostCore as
|
|
22
|
-
import { prepareBoostPayload as
|
|
23
|
-
import { simulateContract as
|
|
24
|
-
import { parseAccount as
|
|
25
|
-
const Mf = "0x60806040526544364c5bb0006004556103e860055f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506103e8600560086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555034801561006e575f80fd5b506040516135683803806135688339818101604052810190610090919061029f565b61009f3361012660201b60201c565b8160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506102dd565b61013461020260201b60201c565b156101ac577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780541561016e57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3506101ff565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f90565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102338261020a565b9050919050565b5f61024482610229565b9050919050565b6102548161023a565b811461025e575f80fd5b50565b5f8151905061026f8161024b565b92915050565b61027e81610229565b8114610288575f80fd5b50565b5f8151905061029981610275565b92915050565b5f80604083850312156102b5576102b4610206565b5b5f6102c285828601610261565b92505060206102d38582860161028b565b9150509250929050565b61327e806102ea5f395ff3fe60806040526004361061014a575f3560e01c8063892b97f8116100b5578063d73792a91161006e578063d73792a9146103d0578063e21ff731146103fa578063eccc19a614610436578063f04e283e1461045e578063f2fde38b1461047a578063fee81cf4146104965761014a565b8063892b97f8146102e45780638da5cb5b1461030c5780638fe4f5231461033657806399d32fc414610352578063a92647dc1461037c578063b0e21e8a146103a65761014a565b806354d1f13d1161010757806354d1f13d146102365780635edb9eb014610240578063715018a61461026a578063730f9c57146102745780637b1039991461029057806384ae2bc6146102ba5761014a565b806313c8e2de1461014e578063256929621461018a5780632e75ab501461019457806339a51be5146101bc57806343bc42d3146101e657806346877b1a1461020e575b5f80fd5b348015610159575f80fd5b50610174600480360381019061016f91906122d2565b6104d2565b60405161018191906125c3565b60405180910390f35b6101926107ac565b005b34801561019f575f80fd5b506101ba60048036038101906101b591906122d2565b6107fd565b005b3480156101c7575f80fd5b506101d061080f565b6040516101dd91906125f2565b60405180910390f35b3480156101f1575f80fd5b5061020c60048036038101906102079190612635565b610834565b005b348015610219575f80fd5b50610234600480360381019061022f919061268a565b610867565b005b61023e6108b2565b005b34801561024b575f80fd5b506102546108eb565b60405161026191906126c4565b60405180910390f35b6102726108f6565b005b61028e6004803603810190610289919061273e565b610909565b005b34801561029b575f80fd5b506102a4610b9a565b6040516102b191906127f4565b60405180910390f35b3480156102c5575f80fd5b506102ce610bbf565b6040516102db919061281c565b60405180910390f35b3480156102ef575f80fd5b5061030a60048036038101906103059190612635565b610bd9565b005b348015610317575f80fd5b50610320610c0d565b60405161032d91906125f2565b60405180910390f35b610350600480360381019061034b9190612835565b610c35565b005b34801561035d575f80fd5b50610366610c4a565b60405161037391906126c4565b60405180910390f35b348015610387575f80fd5b50610390610c50565b60405161039d91906128d9565b60405180910390f35b3480156103b1575f80fd5b506103ba610c75565b6040516103c7919061281c565b60405180910390f35b3480156103db575f80fd5b506103e4610c8e565b6040516103f1919061281c565b60405180910390f35b348015610405575f80fd5b50610420600480360381019061041b91906128f2565b610c94565b60405161042d91906125c3565b60405180910390f35b348015610441575f80fd5b5061045c6004803603810190610457919061268a565b61164f565b005b6104786004803603810190610473919061268a565b61169a565b005b610494600480360381019061048f919061268a565b6116d8565b005b3480156104a1575f80fd5b506104bc60048036038101906104b7919061268a565b611701565b6040516104c991906126c4565b60405180910390f35b6104da612126565b5f82815481106104ed576104ec61293d565b5b905f5260205f209060080201604051806101200160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054806020026020016040519081016040528092919081815260200182805480156106da57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610691575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016005820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b5f6107b561171a565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b610805611724565b8060048190555050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61083c611724565b8060055f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b61086f611724565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f8080549050905090565b6108fe611724565b6109075f61175b565b565b3068929eee149b4bd2126854036109275763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8087815481106109475761094661293d565b5b905f5260205f20906008020190506004543410156109a2575f346004546040517f5c54305e0000000000000000000000000000000000000000000000000000000081526004016109999392919061296a565b60405180910390fd5b6109ac8186611821565b806001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663703b690088888588886040518663ffffffff1660e01b8152600401610a109594939291906129f9565b6020604051808303815f875af1158015610a2c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a509190612a7a565b610a86576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806004018681548110610a9c57610a9b61293d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bb1757cf8386866040518463ffffffff1660e01b8152600401610b0093929190612aa5565b6020604051808303815f875af1158015610b1c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b409190612a7a565b610b85578184846040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401610b7c93929190612aa5565b60405180910390fd5b503868929eee149b4bd2126855505050505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560089054906101000a900467ffffffffffffffff1681565b610be1611724565b80600560086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b610c43858585858533610909565b5050505050565b60045481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055f9054906101000a900467ffffffffffffffff1681565b61271081565b610c9c612126565b335f73ffffffffffffffffffffffffffffffffffffffff1660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015610d90575060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80826040518263ffffffff1660e01b8152600401610d4f91906125f2565b602060405180830381865afa158015610d6a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d8e9190612a7a565b155b15610dc7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd212685403610de55763ab143c065f526004601cfd5b3068929eee149b4bd21268555f610e3e85858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f8201169050808301925050505050505061198f565b806020019051810190610e519190612f35565b9050610e5f815f0151611a28565b5f8060018160018154018082558091505003905f5260205f2090600802019050816101000151816007015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550815f0151816003015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160a0015160055f9054906101000a900467ffffffffffffffff16610f309190612fa9565b816005015f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508160c00151600560089054906101000a900467ffffffffffffffff16610f7f9190612fa9565b8160050160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508160e001518160060181905550610fe67fe67157950000000000000000000000000000000000000000000000000000000083602001516001611b03565b815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110567fe2089f790000000000000000000000000000000000000000000000000000000083606001516001611b03565b816002015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110a88260800151835f0151611b25565b8160040190805190602001906110bf9291906121ec565b505f73ffffffffffffffffffffffffffffffffffffffff1682604001516020015173ffffffffffffffffffffffffffffffffffffffff16146111305761112b7f5912b89c0000000000000000000000000000000000000000000000000000000083604001516001611b03565b611219565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f5912b89c000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016111ab919061301e565b602060405180830381865afa1580156111c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111ea9190612a7a565b6111f4575f611218565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b5b816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816007015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660015f805490506112de9190613037565b7f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd8460040180549050856001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866002015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876003015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051611383949392919061306a565b60405180910390a480604051806101200160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820180548060200260200160405190810160405280929190818152602001828054801561156d57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611524575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016005820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050935050503868929eee149b4bd21268555092915050565b611657611724565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6116a2611724565b63389a75e1600c52805f526020600c2080544211156116c857636f5e88185f526004601cfd5b5f8155506116d58161175b565b50565b6116e0611724565b8060601b6116f557637448fbae5f526004601cfd5b6116fe8161175b565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f6202a300905090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611759576382b429005f526004601cfd5b565b611763611eef565b156117c8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b821781555061181e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f600454031561198b575f60045490505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146118e7575f61271067ffffffffffffffff168460050160089054906101000a900467ffffffffffffffff1667ffffffffffffffff166004546118a291906130ad565b6118ac919061311b565b905080826118ba9190613037565b91506118e5818473ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b505b61193f6002826118f7919061311b565b846007015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b6119894760035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b505b5050565b6060815115611a235760405190506020810160048301805184518501811983525b80861015611a09576001860195508551601f1a806119f9576001870196508651601f1a5f198652607f81116119e757600181013887395b6001607f821601860195505050611a04565b808553600185019450505b6119b0565b81835260208501840385525f845260208401604052505050505b919050565b611a527fea5ad34e0000000000000000000000000000000000000000000000000000000082611f10565b8073ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80336040518263ffffffff1660e01b8152600401611a8b91906125f2565b602060405180830381865afa158015611aa6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aca9190612a7a565b611b00576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f611b12848460200151611f10565b611b1c8383612007565b90509392505050565b6060825167ffffffffffffffff811115611b4257611b41612ad9565b5b604051908082528060200260200182016040528015611b705781602001602082028036833780820191505090505b5090505f5b8351811015611ee857611bc67f5970a68900000000000000000000000000000000000000000000000000000000858381518110611bb557611bb461293d565b5b602002602001015160200151611f10565b838181518110611bd957611bd861293d565b5b60200260200101515f0151611c65577f5970a68900000000000000000000000000000000000000000000000000000000848281518110611c1c57611c1b61293d565b5b6020026020010151602001516040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401611c5c92919061314b565b60405180910390fd5b611caa7f5970a68900000000000000000000000000000000000000000000000000000000858381518110611c9c57611c9b61293d565b5b60200260200101515f611b03565b828281518110611cbd57611cbc61293d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505f828281518110611d0b57611d0a61293d565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16634e7165a2868481518110611d4157611d4061293d565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401611d6991906131b4565b5f60405180830381865afa158015611d83573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611dab91906131d4565b90505f815114611e3c578373ffffffffffffffffffffffffffffffffffffffff1663fa4ca9b1826040518263ffffffff1660e01b8152600401611dee91906131b4565b6020604051808303815f875af1158015611e0a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e2e9190612a7a565b611e3b57611e3a61321b565b5b5b828281518110611e4f57611e4e61293d565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1663439fab91868481518110611e8557611e8461293d565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401611ead91906131b4565b5f604051808303815f87803b158015611ec4575f80fd5b505af1158015611ed6573d5f803e3d5ffd5b50505050508080600101915050611b75565b5092915050565b5f90565b5f385f3884865af1611f0c5763b12d13eb5f526004601cfd5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480611fbf57508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a7836040518263ffffffff1660e01b8152600401611f7e919061301e565b602060405180830381865afa158015611f99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fbd9190612a7a565b155b156120035781816040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401611ffa92919061314b565b60405180910390fd5b5050565b5f825f015161201a57826020015161203e565b61203d836020015173ffffffffffffffffffffffffffffffffffffffff166120c3565b5b9050825f0151801561204d5750815b156120bd578073ffffffffffffffffffffffffffffffffffffffff1663439fab9184604001516040518263ffffffff1660e01b815260040161208f91906131b4565b5f604051808303815f87803b1580156120a6575f80fd5b505af11580156120b8573d5f803e3d5ffd5b505050505b92915050565b5f6120ce5f836120d5565b9050919050565b5f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f090508061211c5763301164255f526004601cfd5b5f60215292915050565b6040518061012001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f67ffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f81526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090565b828054828255905f5260205f20908101928215612262579160200282015b82811115612261578251825f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061220a565b5b50905061226f9190612273565b5090565b5b8082111561228a575f815f905550600101612274565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b6122b18161229f565b81146122bb575f80fd5b50565b5f813590506122cc816122a8565b92915050565b5f602082840312156122e7576122e6612297565b5b5f6122f4848285016122be565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61233f61233a612335846122fd565b61231c565b6122fd565b9050919050565b5f61235082612325565b9050919050565b5f61236182612346565b9050919050565b61237181612357565b82525050565b5f61238182612346565b9050919050565b61239181612377565b82525050565b5f6123a182612346565b9050919050565b6123b181612397565b82525050565b5f6123c182612325565b9050919050565b5f6123d2826123b7565b9050919050565b6123e2816123c8565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f61241b82612346565b9050919050565b61242b81612411565b82525050565b5f61243c8383612422565b60208301905092915050565b5f602082019050919050565b5f61245e826123e8565b61246881856123f2565b935061247383612402565b805f5b838110156124a357815161248a8882612431565b975061249583612448565b925050600181019050612476565b5085935050505092915050565b5f67ffffffffffffffff82169050919050565b6124cc816124b0565b82525050565b6124db8161229f565b82525050565b5f6124eb826122fd565b9050919050565b6124fb816124e1565b82525050565b5f61012083015f8301516125175f860182612368565b50602083015161252a6020860182612388565b50604083015161253d60408601826123a8565b50606083015161255060608601826123d9565b50608083015184820360808601526125688282612454565b91505060a083015161257d60a08601826124c3565b5060c083015161259060c08601826124c3565b5060e08301516125a360e08601826124d2565b506101008301516125b86101008601826124f2565b508091505092915050565b5f6020820190508181035f8301526125db8184612501565b905092915050565b6125ec816124e1565b82525050565b5f6020820190506126055f8301846125e3565b92915050565b612614816124b0565b811461261e575f80fd5b50565b5f8135905061262f8161260b565b92915050565b5f6020828403121561264a57612649612297565b5b5f61265784828501612621565b91505092915050565b612669816124e1565b8114612673575f80fd5b50565b5f8135905061268481612660565b92915050565b5f6020828403121561269f5761269e612297565b5b5f6126ac84828501612676565b91505092915050565b6126be8161229f565b82525050565b5f6020820190506126d75f8301846126b5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126126fe576126fd6126dd565b5b8235905067ffffffffffffffff81111561271b5761271a6126e1565b5b602083019150836001820283011115612737576127366126e5565b5b9250929050565b5f805f805f8060a0878903121561275857612757612297565b5b5f61276589828a016122be565b965050602061277689828a016122be565b955050604061278789828a01612676565b945050606087013567ffffffffffffffff8111156127a8576127a761229b565b5b6127b489828a016126e9565b935093505060806127c789828a01612676565b9150509295509295509295565b5f6127de82612346565b9050919050565b6127ee816127d4565b82525050565b5f6020820190506128075f8301846127e5565b92915050565b612816816124b0565b82525050565b5f60208201905061282f5f83018461280d565b92915050565b5f805f805f6080868803121561284e5761284d612297565b5b5f61285b888289016122be565b955050602061286c888289016122be565b945050604061287d88828901612676565b935050606086013567ffffffffffffffff81111561289e5761289d61229b565b5b6128aa888289016126e9565b92509250509295509295909350565b5f6128c382612346565b9050919050565b6128d3816128b9565b82525050565b5f6020820190506128ec5f8301846128ca565b92915050565b5f806020838503121561290857612907612297565b5b5f83013567ffffffffffffffff8111156129255761292461229b565b5b612931858286016126e9565b92509250509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60608201905061297d5f8301866125e3565b61298a60208301856126b5565b61299760408301846126b5565b949350505050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f6129d8838561299f565b93506129e58385846129af565b6129ee836129bd565b840190509392505050565b5f608082019050612a0c5f8301886126b5565b612a1960208301876126b5565b612a2660408301866125e3565b8181036060830152612a398184866129cd565b90509695505050505050565b5f8115159050919050565b612a5981612a45565b8114612a63575f80fd5b50565b5f81519050612a7481612a50565b92915050565b5f60208284031215612a8f57612a8e612297565b5b5f612a9c84828501612a66565b91505092915050565b5f604082019050612ab85f8301866125e3565b8181036020830152612acb8184866129cd565b9050949350505050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612b0f826129bd565b810181811067ffffffffffffffff82111715612b2e57612b2d612ad9565b5b80604052505050565b5f612b4061228e565b9050612b4c8282612b06565b919050565b5f80fd5b5f612b5f826122fd565b9050919050565b5f612b7082612b55565b9050919050565b612b8081612b66565b8114612b8a575f80fd5b50565b5f81519050612b9b81612b77565b92915050565b5f81519050612baf81612660565b92915050565b5f80fd5b5f67ffffffffffffffff821115612bd357612bd2612ad9565b5b612bdc826129bd565b9050602081019050919050565b8281835e5f83830152505050565b5f612c09612c0484612bb9565b612b37565b905082815260208101848484011115612c2557612c24612bb5565b5b612c30848285612be9565b509392505050565b5f82601f830112612c4c57612c4b6126dd565b5b8151612c5c848260208601612bf7565b91505092915050565b5f60608284031215612c7a57612c79612ad5565b5b612c846060612b37565b90505f612c9384828501612a66565b5f830152506020612ca684828501612ba1565b602083015250604082015167ffffffffffffffff811115612cca57612cc9612b51565b5b612cd684828501612c38565b60408301525092915050565b5f67ffffffffffffffff821115612cfc57612cfb612ad9565b5b602082029050602081019050919050565b5f612d1f612d1a84612ce2565b612b37565b90508083825260208201905060208402830185811115612d4257612d416126e5565b5b835b81811015612d8957805167ffffffffffffffff811115612d6757612d666126dd565b5b808601612d748982612c65565b85526020850194505050602081019050612d44565b5050509392505050565b5f82601f830112612da757612da66126dd565b5b8151612db7848260208601612d0d565b91505092915050565b5f81519050612dce8161260b565b92915050565b5f81519050612de2816122a8565b92915050565b5f6101208284031215612dfe57612dfd612ad5565b5b612e09610120612b37565b90505f612e1884828501612b8d565b5f83015250602082015167ffffffffffffffff811115612e3b57612e3a612b51565b5b612e4784828501612c65565b602083015250604082015167ffffffffffffffff811115612e6b57612e6a612b51565b5b612e7784828501612c65565b604083015250606082015167ffffffffffffffff811115612e9b57612e9a612b51565b5b612ea784828501612c65565b606083015250608082015167ffffffffffffffff811115612ecb57612eca612b51565b5b612ed784828501612d93565b60808301525060a0612eeb84828501612dc0565b60a08301525060c0612eff84828501612dc0565b60c08301525060e0612f1384828501612dd4565b60e083015250610100612f2884828501612ba1565b6101008301525092915050565b5f60208284031215612f4a57612f49612297565b5b5f82015167ffffffffffffffff811115612f6757612f6661229b565b5b612f7384828501612de8565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612fb3826124b0565b9150612fbe836124b0565b9250828201905067ffffffffffffffff811115612fde57612fdd612f7c565b5b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301881612fe4565b82525050565b5f6020820190506130315f83018461300f565b92915050565b5f6130418261229f565b915061304c8361229f565b925082820390508181111561306457613063612f7c565b5b92915050565b5f60808201905061307d5f8301876126b5565b61308a60208301866125e3565b61309760408301856125e3565b6130a460608301846125e3565b95945050505050565b5f6130b78261229f565b91506130c28361229f565b92508282026130d08161229f565b915082820484148315176130e7576130e6612f7c565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131258261229f565b91506131308361229f565b9250826131405761313f6130ee565b5b828204905092915050565b5f60408201905061315e5f83018561300f565b61316b60208301846125e3565b9392505050565b5f81519050919050565b5f61318682613172565b613190818561299f565b93506131a0818560208601612be9565b6131a9816129bd565b840191505092915050565b5f6020820190508181035f8301526131cc818461317c565b905092915050565b5f602082840312156131e9576131e8612297565b5b5f82015167ffffffffffffffff8111156132065761320561229b565b5b61321284828501612c38565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52600160045260245ffdfea2646970667358221220fb22934e0d9f7a8e32d07cd1f2621ea36204627afface45e5bc80aab6122bb7d64736f6c634300081a0033";
|
|
26
|
-
function
|
|
27
|
-
const e =
|
|
19
|
+
import { SignerValidator as Ff } from "./Validators/SignerValidator.js";
|
|
20
|
+
import { validatorFromAddress as Rf } from "./Validators/Validator.js";
|
|
21
|
+
import { DeployableUnknownOwnerProvidedError as Ef, BudgetMustAuthorizeBoostCore as Df, MustInitializeBudgetError as Vf, IncentiveNotCloneableError as Lf, BoostCoreNoIdentifierEmitted as $f } from "./errors.js";
|
|
22
|
+
import { prepareBoostPayload as xf } from "./utils.js";
|
|
23
|
+
import { simulateContract as Nf, writeContract as Mf } from "viem/actions";
|
|
24
|
+
import { parseAccount as jf, getAddress as Sf } from "viem/utils";
|
|
25
|
+
const Of = "0x60806040526544364c5bb0006004556103e860055f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506103e8600560086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555034801561006e575f80fd5b506040516135683803806135688339818101604052810190610090919061029f565b61009f3361012660201b60201c565b8160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506102dd565b61013461020260201b60201c565b156101ac577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780541561016e57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3506101ff565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f90565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102338261020a565b9050919050565b5f61024482610229565b9050919050565b6102548161023a565b811461025e575f80fd5b50565b5f8151905061026f8161024b565b92915050565b61027e81610229565b8114610288575f80fd5b50565b5f8151905061029981610275565b92915050565b5f80604083850312156102b5576102b4610206565b5b5f6102c285828601610261565b92505060206102d38582860161028b565b9150509250929050565b61327e806102ea5f395ff3fe60806040526004361061014a575f3560e01c8063892b97f8116100b5578063d73792a91161006e578063d73792a9146103d0578063e21ff731146103fa578063eccc19a614610436578063f04e283e1461045e578063f2fde38b1461047a578063fee81cf4146104965761014a565b8063892b97f8146102e45780638da5cb5b1461030c5780638fe4f5231461033657806399d32fc414610352578063a92647dc1461037c578063b0e21e8a146103a65761014a565b806354d1f13d1161010757806354d1f13d146102365780635edb9eb014610240578063715018a61461026a578063730f9c57146102745780637b1039991461029057806384ae2bc6146102ba5761014a565b806313c8e2de1461014e578063256929621461018a5780632e75ab501461019457806339a51be5146101bc57806343bc42d3146101e657806346877b1a1461020e575b5f80fd5b348015610159575f80fd5b50610174600480360381019061016f91906122d2565b6104d2565b60405161018191906125c3565b60405180910390f35b6101926107ac565b005b34801561019f575f80fd5b506101ba60048036038101906101b591906122d2565b6107fd565b005b3480156101c7575f80fd5b506101d061080f565b6040516101dd91906125f2565b60405180910390f35b3480156101f1575f80fd5b5061020c60048036038101906102079190612635565b610834565b005b348015610219575f80fd5b50610234600480360381019061022f919061268a565b610867565b005b61023e6108b2565b005b34801561024b575f80fd5b506102546108eb565b60405161026191906126c4565b60405180910390f35b6102726108f6565b005b61028e6004803603810190610289919061273e565b610909565b005b34801561029b575f80fd5b506102a4610b9a565b6040516102b191906127f4565b60405180910390f35b3480156102c5575f80fd5b506102ce610bbf565b6040516102db919061281c565b60405180910390f35b3480156102ef575f80fd5b5061030a60048036038101906103059190612635565b610bd9565b005b348015610317575f80fd5b50610320610c0d565b60405161032d91906125f2565b60405180910390f35b610350600480360381019061034b9190612835565b610c35565b005b34801561035d575f80fd5b50610366610c4a565b60405161037391906126c4565b60405180910390f35b348015610387575f80fd5b50610390610c50565b60405161039d91906128d9565b60405180910390f35b3480156103b1575f80fd5b506103ba610c75565b6040516103c7919061281c565b60405180910390f35b3480156103db575f80fd5b506103e4610c8e565b6040516103f1919061281c565b60405180910390f35b348015610405575f80fd5b50610420600480360381019061041b91906128f2565b610c94565b60405161042d91906125c3565b60405180910390f35b348015610441575f80fd5b5061045c6004803603810190610457919061268a565b61164f565b005b6104786004803603810190610473919061268a565b61169a565b005b610494600480360381019061048f919061268a565b6116d8565b005b3480156104a1575f80fd5b506104bc60048036038101906104b7919061268a565b611701565b6040516104c991906126c4565b60405180910390f35b6104da612126565b5f82815481106104ed576104ec61293d565b5b905f5260205f209060080201604051806101200160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054806020026020016040519081016040528092919081815260200182805480156106da57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610691575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016005820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b5f6107b561171a565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b610805611724565b8060048190555050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61083c611724565b8060055f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b61086f611724565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f8080549050905090565b6108fe611724565b6109075f61175b565b565b3068929eee149b4bd2126854036109275763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8087815481106109475761094661293d565b5b905f5260205f20906008020190506004543410156109a2575f346004546040517f5c54305e0000000000000000000000000000000000000000000000000000000081526004016109999392919061296a565b60405180910390fd5b6109ac8186611821565b806001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663703b690088888588886040518663ffffffff1660e01b8152600401610a109594939291906129f9565b6020604051808303815f875af1158015610a2c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a509190612a7a565b610a86576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806004018681548110610a9c57610a9b61293d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bb1757cf8386866040518463ffffffff1660e01b8152600401610b0093929190612aa5565b6020604051808303815f875af1158015610b1c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b409190612a7a565b610b85578184846040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401610b7c93929190612aa5565b60405180910390fd5b503868929eee149b4bd2126855505050505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560089054906101000a900467ffffffffffffffff1681565b610be1611724565b80600560086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b610c43858585858533610909565b5050505050565b60045481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055f9054906101000a900467ffffffffffffffff1681565b61271081565b610c9c612126565b335f73ffffffffffffffffffffffffffffffffffffffff1660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015610d90575060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80826040518263ffffffff1660e01b8152600401610d4f91906125f2565b602060405180830381865afa158015610d6a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d8e9190612a7a565b155b15610dc7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd212685403610de55763ab143c065f526004601cfd5b3068929eee149b4bd21268555f610e3e85858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f8201169050808301925050505050505061198f565b806020019051810190610e519190612f35565b9050610e5f815f0151611a28565b5f8060018160018154018082558091505003905f5260205f2090600802019050816101000151816007015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550815f0151816003015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160a0015160055f9054906101000a900467ffffffffffffffff16610f309190612fa9565b816005015f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508160c00151600560089054906101000a900467ffffffffffffffff16610f7f9190612fa9565b8160050160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508160e001518160060181905550610fe67fe67157950000000000000000000000000000000000000000000000000000000083602001516001611b03565b815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110567fe2089f790000000000000000000000000000000000000000000000000000000083606001516001611b03565b816002015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110a88260800151835f0151611b25565b8160040190805190602001906110bf9291906121ec565b505f73ffffffffffffffffffffffffffffffffffffffff1682604001516020015173ffffffffffffffffffffffffffffffffffffffff16146111305761112b7f5912b89c0000000000000000000000000000000000000000000000000000000083604001516001611b03565b611219565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f5912b89c000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016111ab919061301e565b602060405180830381865afa1580156111c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111ea9190612a7a565b6111f4575f611218565b805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b5b816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816007015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660015f805490506112de9190613037565b7f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd8460040180549050856001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866002015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876003015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051611383949392919061306a565b60405180910390a480604051806101200160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820180548060200260200160405190810160405280929190818152602001828054801561156d57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611524575b50505050508152602001600582015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016005820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160068201548152602001600782015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050935050503868929eee149b4bd21268555092915050565b611657611724565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6116a2611724565b63389a75e1600c52805f526020600c2080544211156116c857636f5e88185f526004601cfd5b5f8155506116d58161175b565b50565b6116e0611724565b8060601b6116f557637448fbae5f526004601cfd5b6116fe8161175b565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f6202a300905090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611759576382b429005f526004601cfd5b565b611763611eef565b156117c8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b821781555061181e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f600454031561198b575f60045490505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146118e7575f61271067ffffffffffffffff168460050160089054906101000a900467ffffffffffffffff1667ffffffffffffffff166004546118a291906130ad565b6118ac919061311b565b905080826118ba9190613037565b91506118e5818473ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b505b61193f6002826118f7919061311b565b846007015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b6119894760035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ef390919063ffffffff16565b505b5050565b6060815115611a235760405190506020810160048301805184518501811983525b80861015611a09576001860195508551601f1a806119f9576001870196508651601f1a5f198652607f81116119e757600181013887395b6001607f821601860195505050611a04565b808553600185019450505b6119b0565b81835260208501840385525f845260208401604052505050505b919050565b611a527fea5ad34e0000000000000000000000000000000000000000000000000000000082611f10565b8073ffffffffffffffffffffffffffffffffffffffff1663fe9fbb80336040518263ffffffff1660e01b8152600401611a8b91906125f2565b602060405180830381865afa158015611aa6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aca9190612a7a565b611b00576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f611b12848460200151611f10565b611b1c8383612007565b90509392505050565b6060825167ffffffffffffffff811115611b4257611b41612ad9565b5b604051908082528060200260200182016040528015611b705781602001602082028036833780820191505090505b5090505f5b8351811015611ee857611bc67f5970a68900000000000000000000000000000000000000000000000000000000858381518110611bb557611bb461293d565b5b602002602001015160200151611f10565b838181518110611bd957611bd861293d565b5b60200260200101515f0151611c65577f5970a68900000000000000000000000000000000000000000000000000000000848281518110611c1c57611c1b61293d565b5b6020026020010151602001516040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401611c5c92919061314b565b60405180910390fd5b611caa7f5970a68900000000000000000000000000000000000000000000000000000000858381518110611c9c57611c9b61293d565b5b60200260200101515f611b03565b828281518110611cbd57611cbc61293d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505f828281518110611d0b57611d0a61293d565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16634e7165a2868481518110611d4157611d4061293d565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401611d6991906131b4565b5f60405180830381865afa158015611d83573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611dab91906131d4565b90505f815114611e3c578373ffffffffffffffffffffffffffffffffffffffff1663fa4ca9b1826040518263ffffffff1660e01b8152600401611dee91906131b4565b6020604051808303815f875af1158015611e0a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e2e9190612a7a565b611e3b57611e3a61321b565b5b5b828281518110611e4f57611e4e61293d565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1663439fab91868481518110611e8557611e8461293d565b5b6020026020010151604001516040518263ffffffff1660e01b8152600401611ead91906131b4565b5f604051808303815f87803b158015611ec4575f80fd5b505af1158015611ed6573d5f803e3d5ffd5b50505050508080600101915050611b75565b5092915050565b5f90565b5f385f3884865af1611f0c5763b12d13eb5f526004601cfd5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480611fbf57508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a7836040518263ffffffff1660e01b8152600401611f7e919061301e565b602060405180830381865afa158015611f99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fbd9190612a7a565b155b156120035781816040517fe1c44448000000000000000000000000000000000000000000000000000000008152600401611ffa92919061314b565b60405180910390fd5b5050565b5f825f015161201a57826020015161203e565b61203d836020015173ffffffffffffffffffffffffffffffffffffffff166120c3565b5b9050825f0151801561204d5750815b156120bd578073ffffffffffffffffffffffffffffffffffffffff1663439fab9184604001516040518263ffffffff1660e01b815260040161208f91906131b4565b5f604051808303815f87803b1580156120a6575f80fd5b505af11580156120b8573d5f803e3d5ffd5b505050505b92915050565b5f6120ce5f836120d5565b9050919050565b5f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f090508061211c5763301164255f526004601cfd5b5f60215292915050565b6040518061012001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f67ffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f81526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090565b828054828255905f5260205f20908101928215612262579160200282015b82811115612261578251825f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061220a565b5b50905061226f9190612273565b5090565b5b8082111561228a575f815f905550600101612274565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b6122b18161229f565b81146122bb575f80fd5b50565b5f813590506122cc816122a8565b92915050565b5f602082840312156122e7576122e6612297565b5b5f6122f4848285016122be565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61233f61233a612335846122fd565b61231c565b6122fd565b9050919050565b5f61235082612325565b9050919050565b5f61236182612346565b9050919050565b61237181612357565b82525050565b5f61238182612346565b9050919050565b61239181612377565b82525050565b5f6123a182612346565b9050919050565b6123b181612397565b82525050565b5f6123c182612325565b9050919050565b5f6123d2826123b7565b9050919050565b6123e2816123c8565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f61241b82612346565b9050919050565b61242b81612411565b82525050565b5f61243c8383612422565b60208301905092915050565b5f602082019050919050565b5f61245e826123e8565b61246881856123f2565b935061247383612402565b805f5b838110156124a357815161248a8882612431565b975061249583612448565b925050600181019050612476565b5085935050505092915050565b5f67ffffffffffffffff82169050919050565b6124cc816124b0565b82525050565b6124db8161229f565b82525050565b5f6124eb826122fd565b9050919050565b6124fb816124e1565b82525050565b5f61012083015f8301516125175f860182612368565b50602083015161252a6020860182612388565b50604083015161253d60408601826123a8565b50606083015161255060608601826123d9565b50608083015184820360808601526125688282612454565b91505060a083015161257d60a08601826124c3565b5060c083015161259060c08601826124c3565b5060e08301516125a360e08601826124d2565b506101008301516125b86101008601826124f2565b508091505092915050565b5f6020820190508181035f8301526125db8184612501565b905092915050565b6125ec816124e1565b82525050565b5f6020820190506126055f8301846125e3565b92915050565b612614816124b0565b811461261e575f80fd5b50565b5f8135905061262f8161260b565b92915050565b5f6020828403121561264a57612649612297565b5b5f61265784828501612621565b91505092915050565b612669816124e1565b8114612673575f80fd5b50565b5f8135905061268481612660565b92915050565b5f6020828403121561269f5761269e612297565b5b5f6126ac84828501612676565b91505092915050565b6126be8161229f565b82525050565b5f6020820190506126d75f8301846126b5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126126fe576126fd6126dd565b5b8235905067ffffffffffffffff81111561271b5761271a6126e1565b5b602083019150836001820283011115612737576127366126e5565b5b9250929050565b5f805f805f8060a0878903121561275857612757612297565b5b5f61276589828a016122be565b965050602061277689828a016122be565b955050604061278789828a01612676565b945050606087013567ffffffffffffffff8111156127a8576127a761229b565b5b6127b489828a016126e9565b935093505060806127c789828a01612676565b9150509295509295509295565b5f6127de82612346565b9050919050565b6127ee816127d4565b82525050565b5f6020820190506128075f8301846127e5565b92915050565b612816816124b0565b82525050565b5f60208201905061282f5f83018461280d565b92915050565b5f805f805f6080868803121561284e5761284d612297565b5b5f61285b888289016122be565b955050602061286c888289016122be565b945050604061287d88828901612676565b935050606086013567ffffffffffffffff81111561289e5761289d61229b565b5b6128aa888289016126e9565b92509250509295509295909350565b5f6128c382612346565b9050919050565b6128d3816128b9565b82525050565b5f6020820190506128ec5f8301846128ca565b92915050565b5f806020838503121561290857612907612297565b5b5f83013567ffffffffffffffff8111156129255761292461229b565b5b612931858286016126e9565b92509250509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60608201905061297d5f8301866125e3565b61298a60208301856126b5565b61299760408301846126b5565b949350505050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f6129d8838561299f565b93506129e58385846129af565b6129ee836129bd565b840190509392505050565b5f608082019050612a0c5f8301886126b5565b612a1960208301876126b5565b612a2660408301866125e3565b8181036060830152612a398184866129cd565b90509695505050505050565b5f8115159050919050565b612a5981612a45565b8114612a63575f80fd5b50565b5f81519050612a7481612a50565b92915050565b5f60208284031215612a8f57612a8e612297565b5b5f612a9c84828501612a66565b91505092915050565b5f604082019050612ab85f8301866125e3565b8181036020830152612acb8184866129cd565b9050949350505050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612b0f826129bd565b810181811067ffffffffffffffff82111715612b2e57612b2d612ad9565b5b80604052505050565b5f612b4061228e565b9050612b4c8282612b06565b919050565b5f80fd5b5f612b5f826122fd565b9050919050565b5f612b7082612b55565b9050919050565b612b8081612b66565b8114612b8a575f80fd5b50565b5f81519050612b9b81612b77565b92915050565b5f81519050612baf81612660565b92915050565b5f80fd5b5f67ffffffffffffffff821115612bd357612bd2612ad9565b5b612bdc826129bd565b9050602081019050919050565b8281835e5f83830152505050565b5f612c09612c0484612bb9565b612b37565b905082815260208101848484011115612c2557612c24612bb5565b5b612c30848285612be9565b509392505050565b5f82601f830112612c4c57612c4b6126dd565b5b8151612c5c848260208601612bf7565b91505092915050565b5f60608284031215612c7a57612c79612ad5565b5b612c846060612b37565b90505f612c9384828501612a66565b5f830152506020612ca684828501612ba1565b602083015250604082015167ffffffffffffffff811115612cca57612cc9612b51565b5b612cd684828501612c38565b60408301525092915050565b5f67ffffffffffffffff821115612cfc57612cfb612ad9565b5b602082029050602081019050919050565b5f612d1f612d1a84612ce2565b612b37565b90508083825260208201905060208402830185811115612d4257612d416126e5565b5b835b81811015612d8957805167ffffffffffffffff811115612d6757612d666126dd565b5b808601612d748982612c65565b85526020850194505050602081019050612d44565b5050509392505050565b5f82601f830112612da757612da66126dd565b5b8151612db7848260208601612d0d565b91505092915050565b5f81519050612dce8161260b565b92915050565b5f81519050612de2816122a8565b92915050565b5f6101208284031215612dfe57612dfd612ad5565b5b612e09610120612b37565b90505f612e1884828501612b8d565b5f83015250602082015167ffffffffffffffff811115612e3b57612e3a612b51565b5b612e4784828501612c65565b602083015250604082015167ffffffffffffffff811115612e6b57612e6a612b51565b5b612e7784828501612c65565b604083015250606082015167ffffffffffffffff811115612e9b57612e9a612b51565b5b612ea784828501612c65565b606083015250608082015167ffffffffffffffff811115612ecb57612eca612b51565b5b612ed784828501612d93565b60808301525060a0612eeb84828501612dc0565b60a08301525060c0612eff84828501612dc0565b60c08301525060e0612f1384828501612dd4565b60e083015250610100612f2884828501612ba1565b6101008301525092915050565b5f60208284031215612f4a57612f49612297565b5b5f82015167ffffffffffffffff811115612f6757612f6661229b565b5b612f7384828501612de8565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612fb3826124b0565b9150612fbe836124b0565b9250828201905067ffffffffffffffff811115612fde57612fdd612f7c565b5b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301881612fe4565b82525050565b5f6020820190506130315f83018461300f565b92915050565b5f6130418261229f565b915061304c8361229f565b925082820390508181111561306457613063612f7c565b5b92915050565b5f60808201905061307d5f8301876126b5565b61308a60208301866125e3565b61309760408301856125e3565b6130a460608301846125e3565b95945050505050565b5f6130b78261229f565b91506130c28361229f565b92508282026130d08161229f565b915082820484148315176130e7576130e6612f7c565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131258261229f565b91506131308361229f565b9250826131405761313f6130ee565b5b828204905092915050565b5f60408201905061315e5f83018561300f565b61316b60208301846125e3565b9392505050565b5f81519050919050565b5f61318682613172565b613190818561299f565b93506131a0818560208601612be9565b6131a9816129bd565b840191505092915050565b5f6020820190508181035f8301526131cc818461317c565b905092915050565b5f602082840312156131e9576131e8612297565b5b5f82015167ffffffffffffffff8111156132065761320561229b565b5b61321284828501612c38565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52600160045260245ffdfea2646970667358221220fb22934e0d9f7a8e32d07cd1f2621ea36204627afface45e5bc80aab6122bb7d64736f6c634300081a0033";
|
|
26
|
+
function N(b) {
|
|
27
|
+
const e = b.state.current, f = b.state.connections.get(e), a = f == null ? void 0 : f.accounts, c = a == null ? void 0 : a[0], t = b.chains.find((d) => d.id === (f == null ? void 0 : f.chainId)), s = b.state.status;
|
|
28
28
|
switch (s) {
|
|
29
29
|
case "connected":
|
|
30
30
|
return {
|
|
31
31
|
address: c,
|
|
32
|
-
addresses:
|
|
32
|
+
addresses: a,
|
|
33
33
|
chain: t,
|
|
34
34
|
chainId: f == null ? void 0 : f.chainId,
|
|
35
35
|
connector: f == null ? void 0 : f.connector,
|
|
@@ -42,7 +42,7 @@ function S(a) {
|
|
|
42
42
|
case "reconnecting":
|
|
43
43
|
return {
|
|
44
44
|
address: c,
|
|
45
|
-
addresses:
|
|
45
|
+
addresses: a,
|
|
46
46
|
chain: t,
|
|
47
47
|
chainId: f == null ? void 0 : f.chainId,
|
|
48
48
|
connector: f == null ? void 0 : f.connector,
|
|
@@ -55,7 +55,7 @@ function S(a) {
|
|
|
55
55
|
case "connecting":
|
|
56
56
|
return {
|
|
57
57
|
address: c,
|
|
58
|
-
addresses:
|
|
58
|
+
addresses: a,
|
|
59
59
|
chain: t,
|
|
60
60
|
chainId: f == null ? void 0 : f.chainId,
|
|
61
61
|
connector: f == null ? void 0 : f.connector,
|
|
@@ -80,34 +80,34 @@ function S(a) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function qf(b) {
|
|
84
|
+
return b.state.chainId;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
if (typeof
|
|
89
|
-
return
|
|
90
|
-
const c =
|
|
91
|
-
return typeof c == "function" ? c : (t) => e(
|
|
86
|
+
function M(b, e, f) {
|
|
87
|
+
const a = b[e.name];
|
|
88
|
+
if (typeof a == "function")
|
|
89
|
+
return a;
|
|
90
|
+
const c = b[f];
|
|
91
|
+
return typeof c == "function" ? c : (t) => e(b, t);
|
|
92
92
|
}
|
|
93
|
-
const
|
|
94
|
-
var
|
|
95
|
-
if (f === "a" && !
|
|
93
|
+
const zf = "2.13.0", Tf = () => `@wagmi/core@${zf}`;
|
|
94
|
+
var j = function(b, e, f, a) {
|
|
95
|
+
if (f === "a" && !a)
|
|
96
96
|
throw new TypeError("Private accessor was defined without a getter");
|
|
97
|
-
if (typeof e == "function" ?
|
|
97
|
+
if (typeof e == "function" ? b !== e || !a : !e.has(b))
|
|
98
98
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
99
|
-
return f === "m" ?
|
|
100
|
-
},
|
|
101
|
-
class
|
|
99
|
+
return f === "m" ? a : f === "a" ? a.call(b) : a ? a.value : e.get(b);
|
|
100
|
+
}, B, S;
|
|
101
|
+
class p extends Error {
|
|
102
102
|
get docsBaseUrl() {
|
|
103
103
|
return "https://wagmi.sh/core";
|
|
104
104
|
}
|
|
105
105
|
get version() {
|
|
106
|
-
return
|
|
106
|
+
return Tf();
|
|
107
107
|
}
|
|
108
108
|
constructor(e, f = {}) {
|
|
109
109
|
var t;
|
|
110
|
-
super(),
|
|
110
|
+
super(), B.add(this), Object.defineProperty(this, "details", {
|
|
111
111
|
enumerable: !0,
|
|
112
112
|
configurable: !0,
|
|
113
113
|
writable: !0,
|
|
@@ -133,7 +133,7 @@ class A extends Error {
|
|
|
133
133
|
writable: !0,
|
|
134
134
|
value: "WagmiCoreError"
|
|
135
135
|
});
|
|
136
|
-
const
|
|
136
|
+
const a = f.cause instanceof p ? f.cause.details : (t = f.cause) != null && t.message ? f.cause.message : f.details, c = f.cause instanceof p && f.cause.docsPath || f.docsPath;
|
|
137
137
|
this.message = [
|
|
138
138
|
e || "An error occurred.",
|
|
139
139
|
"",
|
|
@@ -141,19 +141,19 @@ class A extends Error {
|
|
|
141
141
|
...c ? [
|
|
142
142
|
`Docs: ${this.docsBaseUrl}${c}.html${f.docsSlug ? `#${f.docsSlug}` : ""}`
|
|
143
143
|
] : [],
|
|
144
|
-
...
|
|
144
|
+
...a ? [`Details: ${a}`] : [],
|
|
145
145
|
`Version: ${this.version}`
|
|
146
146
|
].join(`
|
|
147
|
-
`), f.cause && (this.cause = f.cause), this.details =
|
|
147
|
+
`), f.cause && (this.cause = f.cause), this.details = a, this.docsPath = c, this.metaMessages = f.metaMessages, this.shortMessage = e;
|
|
148
148
|
}
|
|
149
149
|
walk(e) {
|
|
150
|
-
return
|
|
150
|
+
return j(this, B, "m", S).call(this, this, e);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
return f != null && f(e) ? e : e.cause ?
|
|
153
|
+
B = /* @__PURE__ */ new WeakSet(), S = function b(e, f) {
|
|
154
|
+
return f != null && f(e) ? e : e.cause ? j(this, B, "m", b).call(this, e.cause, f) : e;
|
|
155
155
|
};
|
|
156
|
-
class
|
|
156
|
+
class kf extends p {
|
|
157
157
|
constructor() {
|
|
158
158
|
super("Connector not connected."), Object.defineProperty(this, "name", {
|
|
159
159
|
enumerable: !0,
|
|
@@ -163,7 +163,7 @@ class zf extends A {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
class
|
|
166
|
+
class Gf extends p {
|
|
167
167
|
constructor({ address: e, connector: f }) {
|
|
168
168
|
super(`Account "${e}" not found for connector "${f.name}".`), Object.defineProperty(this, "name", {
|
|
169
169
|
enumerable: !0,
|
|
@@ -173,7 +173,7 @@ class Tf extends A {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
class Uf extends
|
|
176
|
+
class Uf extends p {
|
|
177
177
|
constructor({ connectionChainId: e, connectorChainId: f }) {
|
|
178
178
|
super(`The current chain of the connector (id: ${f}) does not match the connection's chain (id: ${e}).`, {
|
|
179
179
|
metaMessages: [
|
|
@@ -188,23 +188,23 @@ class Uf extends A {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
async function
|
|
191
|
+
async function O(b, e = {}) {
|
|
192
192
|
let f;
|
|
193
193
|
if (e.connector) {
|
|
194
|
-
const { connector:
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
const { connector: n } = e, [u, g] = await Promise.all([
|
|
195
|
+
n.getAccounts(),
|
|
196
|
+
n.getChainId()
|
|
197
197
|
]);
|
|
198
198
|
f = {
|
|
199
|
-
accounts:
|
|
199
|
+
accounts: u,
|
|
200
200
|
chainId: g,
|
|
201
|
-
connector:
|
|
201
|
+
connector: n
|
|
202
202
|
};
|
|
203
203
|
} else
|
|
204
|
-
f =
|
|
204
|
+
f = b.state.connections.get(b.state.current);
|
|
205
205
|
if (!f)
|
|
206
|
-
throw new
|
|
207
|
-
const
|
|
206
|
+
throw new kf();
|
|
207
|
+
const a = e.chainId ?? f.chainId, c = await f.connector.getChainId();
|
|
208
208
|
if (c !== f.chainId)
|
|
209
209
|
throw new Uf({
|
|
210
210
|
connectionChainId: f.chainId,
|
|
@@ -212,84 +212,84 @@ async function T(a, e = {}) {
|
|
|
212
212
|
});
|
|
213
213
|
const t = f.connector;
|
|
214
214
|
if (t.getClient)
|
|
215
|
-
return t.getClient({ chainId:
|
|
216
|
-
const s =
|
|
217
|
-
s.address =
|
|
218
|
-
const
|
|
219
|
-
if (e.account && !f.accounts.some((
|
|
220
|
-
throw new
|
|
215
|
+
return t.getClient({ chainId: a });
|
|
216
|
+
const s = jf(e.account ?? f.accounts[0]);
|
|
217
|
+
s.address = Sf(s.address);
|
|
218
|
+
const d = b.chains.find((n) => n.id === a), r = await f.connector.getProvider({ chainId: a });
|
|
219
|
+
if (e.account && !f.accounts.some((n) => n.toLowerCase() === s.address.toLowerCase()))
|
|
220
|
+
throw new Gf({
|
|
221
221
|
address: s.address,
|
|
222
222
|
connector: t
|
|
223
223
|
});
|
|
224
|
-
return
|
|
224
|
+
return df({
|
|
225
225
|
account: s,
|
|
226
|
-
chain:
|
|
226
|
+
chain: d,
|
|
227
227
|
name: "Connector Client",
|
|
228
|
-
transport: (
|
|
228
|
+
transport: (n) => rf(r)({ ...n, retryCount: 0 })
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
async function
|
|
232
|
-
const { abi: f, chainId:
|
|
231
|
+
async function Wf(b, e) {
|
|
232
|
+
const { abi: f, chainId: a, connector: c, ...t } = e;
|
|
233
233
|
let s;
|
|
234
|
-
e.account ? s = e.account : s = (await
|
|
235
|
-
chainId:
|
|
234
|
+
e.account ? s = e.account : s = (await O(b, {
|
|
235
|
+
chainId: a,
|
|
236
236
|
connector: c
|
|
237
237
|
})).account;
|
|
238
|
-
const
|
|
238
|
+
const d = b.getClient({ chainId: a }), r = M(d, Nf, "simulateContract"), { result: n, request: u } = await r({ ...t, abi: f, account: s });
|
|
239
239
|
return {
|
|
240
|
-
chainId:
|
|
241
|
-
result:
|
|
242
|
-
request: { __mode: "prepared", ...
|
|
240
|
+
chainId: d.chain.id,
|
|
241
|
+
result: n,
|
|
242
|
+
request: { __mode: "prepared", ...u, chainId: a }
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
async function
|
|
246
|
-
const { account: f, chainId:
|
|
247
|
-
let n;
|
|
248
|
-
typeof f == "object" && f.type === "local" ? n = a.getClient({ chainId: b }) : n = await T(a, { account: f, chainId: b, connector: c });
|
|
249
|
-
const { connector: r } = S(a);
|
|
245
|
+
async function x(b, e) {
|
|
246
|
+
const { account: f, chainId: a, connector: c, __mode: t, ...s } = e;
|
|
250
247
|
let d;
|
|
248
|
+
typeof f == "object" && f.type === "local" ? d = b.getClient({ chainId: a }) : d = await O(b, { account: f, chainId: a, connector: c });
|
|
249
|
+
const { connector: r } = N(b);
|
|
250
|
+
let n;
|
|
251
251
|
if (t === "prepared" || r != null && r.supportsSimulation)
|
|
252
|
-
|
|
252
|
+
n = s;
|
|
253
253
|
else {
|
|
254
|
-
const { request:
|
|
254
|
+
const { request: A } = await Wf(b, {
|
|
255
255
|
...s,
|
|
256
256
|
account: f,
|
|
257
|
-
chainId:
|
|
257
|
+
chainId: a
|
|
258
258
|
});
|
|
259
|
-
|
|
259
|
+
n = A;
|
|
260
260
|
}
|
|
261
|
-
return await
|
|
262
|
-
...
|
|
261
|
+
return await M(d, Mf, "writeContract")({
|
|
262
|
+
...n,
|
|
263
263
|
...f ? { account: f } : {},
|
|
264
|
-
chain:
|
|
264
|
+
chain: a ? { id: a } : null
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
267
|
+
function Hf(b) {
|
|
268
|
+
return b.address !== void 0 && typeof b.address == "object" ? (e, f) => {
|
|
269
269
|
var s;
|
|
270
|
-
const
|
|
270
|
+
const a = qf(e), c = N(e);
|
|
271
271
|
let t;
|
|
272
|
-
return f.chainId ? t = f.chainId : f.account && f.account === c.address || f.account === void 0 ? t = c.chainId : t =
|
|
272
|
+
return f.chainId ? t = f.chainId : f.account && f.account === c.address || f.account === void 0 ? t = c.chainId : t = a, x(e, {
|
|
273
273
|
...f,
|
|
274
|
-
...
|
|
275
|
-
address: t ? (s =
|
|
276
|
-
abi:
|
|
274
|
+
...b.functionName ? { functionName: b.functionName } : {},
|
|
275
|
+
address: t ? (s = b.address) == null ? void 0 : s[t] : void 0,
|
|
276
|
+
abi: b.abi
|
|
277
277
|
});
|
|
278
|
-
} : (e, f) =>
|
|
278
|
+
} : (e, f) => x(e, {
|
|
279
279
|
...f,
|
|
280
|
-
...
|
|
281
|
-
...
|
|
282
|
-
abi:
|
|
280
|
+
...b.address ? { address: b.address } : {},
|
|
281
|
+
...b.functionName ? { functionName: b.functionName } : {},
|
|
282
|
+
abi: b.abi
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
const
|
|
286
|
-
function
|
|
287
|
-
return
|
|
285
|
+
const Qf = "0xF4905b327904E5797840fd8cD7F300001a34122f";
|
|
286
|
+
function Jf(b) {
|
|
287
|
+
return b.address;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function Kf(b) {
|
|
290
|
+
return b.registryAddress && b.protocolFeeReceiver;
|
|
291
291
|
}
|
|
292
|
-
class
|
|
292
|
+
class C0 extends yf {
|
|
293
293
|
/**
|
|
294
294
|
* Creates an instance of BoostCore.
|
|
295
295
|
*
|
|
@@ -299,163 +299,157 @@ class A0 extends yf {
|
|
|
299
299
|
* @param {?Account} [param0.account]
|
|
300
300
|
* @param {({ address?: Address; } | { registryAddress: Address; protocolFeeReceiver: Address; })} param0....options
|
|
301
301
|
*/
|
|
302
|
-
constructor({ config: e, account: f, ...
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
]) : super({ account: f, config: e },
|
|
302
|
+
constructor({ config: e, account: f, ...a }) {
|
|
303
|
+
Jf(a) && a.address ? super({ account: f, config: e }, a.address) : Kf(a) ? super({ account: f, config: e }, [
|
|
304
|
+
a.registryAddress,
|
|
305
|
+
a.protocolFeeReceiver
|
|
306
|
+
]) : super({ account: f, config: e }, Qf), this.abi = P;
|
|
307
307
|
}
|
|
308
308
|
/**
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
309
|
+
* Create a new Boost.
|
|
310
|
+
*
|
|
311
|
+
* @public
|
|
312
|
+
* @async
|
|
313
|
+
* @param {CreateBoostPayload} _boostPayload
|
|
314
|
+
* @param {?DeployableOptions} [_options]
|
|
315
|
+
* @returns {Boost}
|
|
316
|
+
*/
|
|
317
317
|
async createBoost(e, f) {
|
|
318
|
-
var L
|
|
319
|
-
const
|
|
318
|
+
var L;
|
|
319
|
+
const a = this.assertValidAddress(), [c, t] = this.validateDeploymentConfig(
|
|
320
320
|
e,
|
|
321
321
|
f
|
|
322
322
|
);
|
|
323
323
|
let {
|
|
324
324
|
budget: s,
|
|
325
|
-
action:
|
|
325
|
+
action: d,
|
|
326
326
|
validator: r,
|
|
327
|
-
allowList:
|
|
328
|
-
incentives:
|
|
327
|
+
allowList: n,
|
|
328
|
+
incentives: u,
|
|
329
329
|
protocolFee: g = 0n,
|
|
330
|
-
referralFee:
|
|
330
|
+
referralFee: A = 0n,
|
|
331
331
|
maxParticipants: F = 0n,
|
|
332
332
|
owner: m
|
|
333
333
|
} = c;
|
|
334
|
-
const
|
|
335
|
-
abi:
|
|
334
|
+
const R = Hf({
|
|
335
|
+
abi: P,
|
|
336
336
|
functionName: "createBoost",
|
|
337
337
|
address: this.address
|
|
338
338
|
});
|
|
339
|
-
if (!m && (m = ((L = this._account) == null ? void 0 : L.address) ||
|
|
339
|
+
if (!m && (m = ((L = this._account) == null ? void 0 : L.address) || sf(t.config).address || w, m === w))
|
|
340
340
|
throw new Ef();
|
|
341
|
-
let
|
|
341
|
+
let V = w;
|
|
342
342
|
if (s.address) {
|
|
343
|
-
if (
|
|
344
|
-
throw new
|
|
345
|
-
} else
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
const u = await s.deployRaw(void 0, t), p = await x(t.config, {
|
|
349
|
-
hash: u
|
|
350
|
-
});
|
|
351
|
-
if (!p.contractAddress)
|
|
352
|
-
throw new Df(p);
|
|
353
|
-
D = p.contractAddress;
|
|
354
|
-
}
|
|
355
|
-
let C = {
|
|
343
|
+
if (V = s.address, !await s.isAuthorized(a))
|
|
344
|
+
throw new Df(a);
|
|
345
|
+
} else
|
|
346
|
+
throw new Vf();
|
|
347
|
+
let y = {
|
|
356
348
|
instance: w,
|
|
357
349
|
isBase: !0,
|
|
358
|
-
parameters:
|
|
350
|
+
parameters: o
|
|
359
351
|
};
|
|
360
|
-
if (
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
isBase:
|
|
364
|
-
instance:
|
|
365
|
-
parameters:
|
|
352
|
+
if (d.address) {
|
|
353
|
+
const i = d.address === d.base || d.isBase;
|
|
354
|
+
y = {
|
|
355
|
+
isBase: i,
|
|
356
|
+
instance: d.address,
|
|
357
|
+
parameters: i ? d.buildParameters(void 0, t).args.at(0) || o : o
|
|
366
358
|
};
|
|
367
359
|
} else
|
|
368
|
-
|
|
369
|
-
let
|
|
360
|
+
y.parameters = d.buildParameters(void 0, t).args.at(0) || o, y.instance = d.base;
|
|
361
|
+
let C = {
|
|
370
362
|
instance: w,
|
|
371
363
|
isBase: !0,
|
|
372
|
-
parameters:
|
|
364
|
+
parameters: o
|
|
373
365
|
};
|
|
374
366
|
if (r.address) {
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
isBase:
|
|
367
|
+
const i = r.address === r.base || r.isBase;
|
|
368
|
+
C = {
|
|
369
|
+
isBase: i,
|
|
378
370
|
instance: r.address,
|
|
379
|
-
parameters:
|
|
371
|
+
parameters: i ? r.buildParameters(
|
|
380
372
|
{
|
|
381
373
|
signers: [m],
|
|
382
|
-
validatorCaller:
|
|
374
|
+
validatorCaller: a
|
|
383
375
|
},
|
|
384
376
|
t
|
|
385
|
-
).args.at(0) ||
|
|
377
|
+
).args.at(0) || o : o
|
|
386
378
|
};
|
|
387
379
|
} else
|
|
388
|
-
|
|
380
|
+
C.parameters = r.buildParameters(
|
|
389
381
|
{
|
|
390
382
|
signers: [m],
|
|
391
|
-
validatorCaller:
|
|
383
|
+
validatorCaller: a
|
|
392
384
|
},
|
|
393
385
|
t
|
|
394
|
-
).args.at(0) ||
|
|
395
|
-
let
|
|
386
|
+
).args.at(0) || o, C.instance = r.base;
|
|
387
|
+
let v = {
|
|
396
388
|
instance: w,
|
|
397
389
|
isBase: !0,
|
|
398
|
-
parameters:
|
|
390
|
+
parameters: o
|
|
399
391
|
};
|
|
400
|
-
if (
|
|
401
|
-
const
|
|
402
|
-
|
|
403
|
-
isBase:
|
|
404
|
-
instance:
|
|
405
|
-
parameters:
|
|
392
|
+
if (n.address) {
|
|
393
|
+
const i = n.address === n.base || n.isBase;
|
|
394
|
+
v = {
|
|
395
|
+
isBase: i,
|
|
396
|
+
instance: n.address,
|
|
397
|
+
parameters: i ? o : o
|
|
406
398
|
};
|
|
407
399
|
} else
|
|
408
|
-
|
|
409
|
-
let
|
|
400
|
+
v.parameters = n.buildParameters(void 0, t).args.at(0) || o, v.instance = n.base;
|
|
401
|
+
let _ = u.map(() => ({
|
|
410
402
|
instance: w,
|
|
411
403
|
isBase: !0,
|
|
412
|
-
parameters:
|
|
404
|
+
parameters: o
|
|
413
405
|
}));
|
|
414
|
-
for (let
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
const
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
406
|
+
for (let i = 0; i < u.length; i++) {
|
|
407
|
+
const l = u.at(i);
|
|
408
|
+
if (l.address) {
|
|
409
|
+
const D = l.address === l.base || l.isBase;
|
|
410
|
+
if (!D)
|
|
411
|
+
throw new Lf(l);
|
|
412
|
+
_[i] = {
|
|
413
|
+
isBase: D,
|
|
414
|
+
instance: l.address,
|
|
415
|
+
parameters: D ? l.buildParameters(void 0, t).args.at(0) || o : o
|
|
422
416
|
};
|
|
423
417
|
} else
|
|
424
|
-
|
|
418
|
+
_[i].parameters = l.buildParameters(void 0, t).args.at(0) || o, _[i].instance = l.base;
|
|
425
419
|
}
|
|
426
|
-
const
|
|
427
|
-
budget:
|
|
428
|
-
action:
|
|
429
|
-
validator:
|
|
430
|
-
allowList:
|
|
431
|
-
incentives:
|
|
420
|
+
const q = {
|
|
421
|
+
budget: V,
|
|
422
|
+
action: y,
|
|
423
|
+
validator: C,
|
|
424
|
+
allowList: v,
|
|
425
|
+
incentives: _,
|
|
432
426
|
protocolFee: g,
|
|
433
|
-
referralFee:
|
|
427
|
+
referralFee: A,
|
|
434
428
|
maxParticipants: F,
|
|
435
429
|
owner: m
|
|
436
|
-
},
|
|
437
|
-
args: [
|
|
430
|
+
}, z = await R(t.config, {
|
|
431
|
+
args: [xf(q)],
|
|
438
432
|
...this.optionallyAttachAccount(t.account)
|
|
439
|
-
}),
|
|
440
|
-
hash:
|
|
433
|
+
}), T = await nf(t.config, {
|
|
434
|
+
hash: z
|
|
441
435
|
}), I = of({
|
|
442
|
-
abi:
|
|
436
|
+
abi: P,
|
|
443
437
|
eventName: "BoostCreated",
|
|
444
|
-
logs:
|
|
438
|
+
logs: T.logs
|
|
445
439
|
}).at(0);
|
|
446
|
-
let
|
|
440
|
+
let E = 0n;
|
|
447
441
|
if (!I)
|
|
448
|
-
throw new
|
|
449
|
-
|
|
450
|
-
const h = await this.readBoost(
|
|
451
|
-
return new
|
|
452
|
-
id:
|
|
442
|
+
throw new $f();
|
|
443
|
+
E = I == null ? void 0 : I.args.boostIndex;
|
|
444
|
+
const h = await this.readBoost(E);
|
|
445
|
+
return new $({
|
|
446
|
+
id: E,
|
|
453
447
|
budget: s.at(h.budget),
|
|
454
|
-
action:
|
|
448
|
+
action: d.at(h.action),
|
|
455
449
|
validator: r.at(h.validator),
|
|
456
|
-
allowList:
|
|
457
|
-
incentives:
|
|
458
|
-
(
|
|
450
|
+
allowList: n.at(h.allowList),
|
|
451
|
+
incentives: u.map(
|
|
452
|
+
(i, l) => i.at(h.incentives.at(l))
|
|
459
453
|
),
|
|
460
454
|
protocolFee: h.protocolFee,
|
|
461
455
|
referralFee: h.referralFee,
|
|
@@ -475,9 +469,9 @@ class A0 extends yf {
|
|
|
475
469
|
* @param {?WriteParams<typeof boostCoreAbi, 'claimIncentive'>} [params]
|
|
476
470
|
* @returns {unknown}
|
|
477
471
|
*/
|
|
478
|
-
async claimIncentive(e, f,
|
|
472
|
+
async claimIncentive(e, f, a, c, t) {
|
|
479
473
|
return this.awaitResult(
|
|
480
|
-
this.claimIncentiveRaw(e, f,
|
|
474
|
+
this.claimIncentiveRaw(e, f, a, c, t)
|
|
481
475
|
);
|
|
482
476
|
}
|
|
483
477
|
/**
|
|
@@ -492,18 +486,69 @@ class A0 extends yf {
|
|
|
492
486
|
* @param {?WriteParams<typeof boostCoreAbi, 'claimIncentive'>} [params]
|
|
493
487
|
* @returns {unknown}
|
|
494
488
|
*/
|
|
495
|
-
async claimIncentiveRaw(e, f,
|
|
496
|
-
const { request: s, result:
|
|
489
|
+
async claimIncentiveRaw(e, f, a, c, t) {
|
|
490
|
+
const { request: s, result: d } = await k(
|
|
497
491
|
this._config,
|
|
498
492
|
{
|
|
499
493
|
address: this.assertValidAddress(),
|
|
500
|
-
args: [e, f,
|
|
494
|
+
args: [e, f, a, c],
|
|
501
495
|
...this.optionallyAttachAccount(),
|
|
502
496
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
503
497
|
...t
|
|
504
498
|
}
|
|
505
499
|
);
|
|
506
|
-
return { hash: await
|
|
500
|
+
return { hash: await G(this._config, s), result: d };
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Claims one incentive for a given `Boost` on behalf of another user by `boostId` and `incentiveId`
|
|
504
|
+
*
|
|
505
|
+
* @public
|
|
506
|
+
* @async
|
|
507
|
+
* @param {bigint} boostId
|
|
508
|
+
* @param {bigint} incentiveId
|
|
509
|
+
* @param {Address} referrer
|
|
510
|
+
* @param {Hex} data
|
|
511
|
+
* @param {Address} claimant
|
|
512
|
+
* @param {?WriteParams<typeof boostCoreAbi, 'claimIncentiveFor'>} [params]
|
|
513
|
+
* @returns {unknown}
|
|
514
|
+
*/
|
|
515
|
+
async claimIncentiveFor(e, f, a, c, t, s) {
|
|
516
|
+
return this.awaitResult(
|
|
517
|
+
this.claimIncentiveForRaw(
|
|
518
|
+
e,
|
|
519
|
+
f,
|
|
520
|
+
a,
|
|
521
|
+
c,
|
|
522
|
+
t,
|
|
523
|
+
s
|
|
524
|
+
)
|
|
525
|
+
);
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Claim an incentive for a Boost on behalf of another user
|
|
529
|
+
*
|
|
530
|
+
* @public
|
|
531
|
+
* @async
|
|
532
|
+
* @param {bigint} boostId - The ID of the Boost
|
|
533
|
+
* @param {bigint} incentiveId - The ID of the Incentive
|
|
534
|
+
* @param {Address} referrer - The address of the referrer (if any)
|
|
535
|
+
* @param {Hex} data - The data for the claim
|
|
536
|
+
* @param {Address} claimant - The address of the user eligible for the incentive payout
|
|
537
|
+
* @param {?WriteParams<typeof boostCoreAbi, 'claimIncentiveFor'>} [params]
|
|
538
|
+
* @returns {unknown}
|
|
539
|
+
*/
|
|
540
|
+
async claimIncentiveForRaw(e, f, a, c, t, s) {
|
|
541
|
+
const { request: d, result: r } = await U(
|
|
542
|
+
this._config,
|
|
543
|
+
{
|
|
544
|
+
address: this.assertValidAddress(),
|
|
545
|
+
args: [e, f, a, c, t],
|
|
546
|
+
...this.optionallyAttachAccount(),
|
|
547
|
+
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
548
|
+
...s
|
|
549
|
+
}
|
|
550
|
+
);
|
|
551
|
+
return { hash: await W(this._config, d), result: r };
|
|
507
552
|
}
|
|
508
553
|
/**
|
|
509
554
|
* Get a Boost by index, will return the raw on chain representation of a Boost.
|
|
@@ -515,7 +560,7 @@ class A0 extends yf {
|
|
|
515
560
|
* @returns {unknown}
|
|
516
561
|
*/
|
|
517
562
|
async readBoost(e, f) {
|
|
518
|
-
return
|
|
563
|
+
return H(this._config, {
|
|
519
564
|
address: this.assertValidAddress(),
|
|
520
565
|
args: [e],
|
|
521
566
|
...this.optionallyAttachAccount(),
|
|
@@ -533,39 +578,39 @@ class A0 extends yf {
|
|
|
533
578
|
* @returns {unknown}
|
|
534
579
|
*/
|
|
535
580
|
async getBoost(e, f) {
|
|
536
|
-
let
|
|
537
|
-
typeof e == "string" ?
|
|
581
|
+
let a;
|
|
582
|
+
typeof e == "string" ? a = BigInt(e) : a = e;
|
|
538
583
|
const {
|
|
539
584
|
protocolFee: c,
|
|
540
585
|
referralFee: t,
|
|
541
586
|
maxParticipants: s,
|
|
542
|
-
owner:
|
|
587
|
+
owner: d,
|
|
543
588
|
...r
|
|
544
|
-
} = await this.readBoost(
|
|
589
|
+
} = await this.readBoost(a, f), n = {
|
|
545
590
|
config: this._config,
|
|
546
591
|
account: this._account
|
|
547
|
-
}, [
|
|
548
|
-
uf(
|
|
549
|
-
pf(
|
|
550
|
-
|
|
551
|
-
hf(
|
|
592
|
+
}, [u, g, A, F, m] = await Promise.all([
|
|
593
|
+
uf(n, r.action),
|
|
594
|
+
pf(n, r.budget),
|
|
595
|
+
Rf(n, r.validator),
|
|
596
|
+
hf(n, r.allowList),
|
|
552
597
|
Promise.all(
|
|
553
598
|
r.incentives.map(
|
|
554
|
-
(
|
|
599
|
+
(R) => If(n, R)
|
|
555
600
|
)
|
|
556
601
|
)
|
|
557
602
|
]);
|
|
558
|
-
return new
|
|
559
|
-
id:
|
|
560
|
-
action:
|
|
603
|
+
return new $({
|
|
604
|
+
id: a,
|
|
605
|
+
action: u,
|
|
561
606
|
budget: g,
|
|
562
|
-
validator:
|
|
607
|
+
validator: A,
|
|
563
608
|
allowList: F,
|
|
564
609
|
incentives: m,
|
|
565
610
|
protocolFee: c,
|
|
566
611
|
referralFee: t,
|
|
567
612
|
maxParticipants: s,
|
|
568
|
-
owner:
|
|
613
|
+
owner: d
|
|
569
614
|
});
|
|
570
615
|
}
|
|
571
616
|
/**
|
|
@@ -577,7 +622,7 @@ class A0 extends yf {
|
|
|
577
622
|
* @returns {Promise<bigint>}
|
|
578
623
|
*/
|
|
579
624
|
async getBoostCount(e) {
|
|
580
|
-
return
|
|
625
|
+
return Q(this._config, {
|
|
581
626
|
address: this.assertValidAddress(),
|
|
582
627
|
args: [],
|
|
583
628
|
...this.optionallyAttachAccount(),
|
|
@@ -596,9 +641,9 @@ class A0 extends yf {
|
|
|
596
641
|
* @returns {Promise<boolean>}
|
|
597
642
|
*/
|
|
598
643
|
async isAuthorized(e, f) {
|
|
599
|
-
const
|
|
600
|
-
return
|
|
601
|
-
address:
|
|
644
|
+
const a = await this.createBoostAuth();
|
|
645
|
+
return J(this._config, {
|
|
646
|
+
address: a,
|
|
602
647
|
args: [e],
|
|
603
648
|
...this.optionallyAttachAccount(),
|
|
604
649
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
@@ -614,7 +659,7 @@ class A0 extends yf {
|
|
|
614
659
|
* @returns {unknown}
|
|
615
660
|
*/
|
|
616
661
|
async createBoostAuth(e) {
|
|
617
|
-
return
|
|
662
|
+
return K(this._config, {
|
|
618
663
|
address: this.assertValidAddress(),
|
|
619
664
|
args: [],
|
|
620
665
|
...this.optionallyAttachAccount(),
|
|
@@ -648,7 +693,7 @@ class A0 extends yf {
|
|
|
648
693
|
* @returns {unknown}
|
|
649
694
|
*/
|
|
650
695
|
async setCreateBoostAuthRaw(e, f) {
|
|
651
|
-
const { request:
|
|
696
|
+
const { request: a, result: c } = await X(
|
|
652
697
|
this._config,
|
|
653
698
|
{
|
|
654
699
|
address: this.assertValidAddress(),
|
|
@@ -658,7 +703,7 @@ class A0 extends yf {
|
|
|
658
703
|
...f
|
|
659
704
|
}
|
|
660
705
|
);
|
|
661
|
-
return { hash: await
|
|
706
|
+
return { hash: await Y(this._config, a), result: c };
|
|
662
707
|
}
|
|
663
708
|
/**
|
|
664
709
|
* Get the protocol fee.
|
|
@@ -669,7 +714,7 @@ class A0 extends yf {
|
|
|
669
714
|
* @returns {unknown}
|
|
670
715
|
*/
|
|
671
716
|
async protocolFee(e) {
|
|
672
|
-
return
|
|
717
|
+
return Z(this._config, {
|
|
673
718
|
address: this.assertValidAddress(),
|
|
674
719
|
args: [],
|
|
675
720
|
...this.optionallyAttachAccount(),
|
|
@@ -686,7 +731,7 @@ class A0 extends yf {
|
|
|
686
731
|
* @returns {unknown}
|
|
687
732
|
*/
|
|
688
733
|
async protocolFeeReceiver(e) {
|
|
689
|
-
return
|
|
734
|
+
return ff(this._config, {
|
|
690
735
|
address: this.assertValidAddress(),
|
|
691
736
|
args: [],
|
|
692
737
|
...this.optionallyAttachAccount(),
|
|
@@ -720,7 +765,7 @@ class A0 extends yf {
|
|
|
720
765
|
* @returns {unknown}
|
|
721
766
|
*/
|
|
722
767
|
async setProcolFeeReceiverRaw(e, f) {
|
|
723
|
-
const { request:
|
|
768
|
+
const { request: a, result: c } = await ef(
|
|
724
769
|
this._config,
|
|
725
770
|
{
|
|
726
771
|
address: this.assertValidAddress(),
|
|
@@ -732,7 +777,7 @@ class A0 extends yf {
|
|
|
732
777
|
);
|
|
733
778
|
return { hash: await af(
|
|
734
779
|
this._config,
|
|
735
|
-
|
|
780
|
+
a
|
|
736
781
|
), result: c };
|
|
737
782
|
}
|
|
738
783
|
/**
|
|
@@ -744,7 +789,7 @@ class A0 extends yf {
|
|
|
744
789
|
* @returns {unknown}
|
|
745
790
|
*/
|
|
746
791
|
async claimFee(e) {
|
|
747
|
-
return
|
|
792
|
+
return bf(this._config, {
|
|
748
793
|
address: this.assertValidAddress(),
|
|
749
794
|
args: [],
|
|
750
795
|
...this.optionallyAttachAccount(),
|
|
@@ -774,7 +819,7 @@ class A0 extends yf {
|
|
|
774
819
|
* @returns {unknown}
|
|
775
820
|
*/
|
|
776
821
|
async setClaimFeeRaw(e, f) {
|
|
777
|
-
const { request:
|
|
822
|
+
const { request: a, result: c } = await tf(
|
|
778
823
|
this._config,
|
|
779
824
|
{
|
|
780
825
|
address: this.assertValidAddress(),
|
|
@@ -784,7 +829,7 @@ class A0 extends yf {
|
|
|
784
829
|
...f
|
|
785
830
|
}
|
|
786
831
|
);
|
|
787
|
-
return { hash: await
|
|
832
|
+
return { hash: await cf(this._config, a), result: c };
|
|
788
833
|
}
|
|
789
834
|
/**
|
|
790
835
|
* Bound {@link PassthroughAuth} constructor that reuses the same configuration as the Boost Core instance.
|
|
@@ -1052,7 +1097,7 @@ class A0 extends yf {
|
|
|
1052
1097
|
* @returns {SignerValidator}
|
|
1053
1098
|
*/
|
|
1054
1099
|
SignerValidator(e, f) {
|
|
1055
|
-
return new
|
|
1100
|
+
return new Ff(
|
|
1056
1101
|
{ config: this._config, account: this._account },
|
|
1057
1102
|
e,
|
|
1058
1103
|
f
|
|
@@ -1071,7 +1116,7 @@ class A0 extends yf {
|
|
|
1071
1116
|
* @returns {ERC20VariableIncentive}
|
|
1072
1117
|
*/
|
|
1073
1118
|
ERC20VariableIncentive(e, f) {
|
|
1074
|
-
return new
|
|
1119
|
+
return new Pf(
|
|
1075
1120
|
{ config: this._config, account: this._account },
|
|
1076
1121
|
e,
|
|
1077
1122
|
f
|
|
@@ -1086,21 +1131,21 @@ class A0 extends yf {
|
|
|
1086
1131
|
* @returns {GenericDeployableParams}
|
|
1087
1132
|
*/
|
|
1088
1133
|
buildParameters(e, f) {
|
|
1089
|
-
const [
|
|
1134
|
+
const [a, c] = this.validateDeploymentConfig(
|
|
1090
1135
|
e,
|
|
1091
1136
|
f
|
|
1092
1137
|
);
|
|
1093
1138
|
return {
|
|
1094
|
-
abi:
|
|
1095
|
-
bytecode:
|
|
1096
|
-
args:
|
|
1139
|
+
abi: P,
|
|
1140
|
+
bytecode: Of,
|
|
1141
|
+
args: a,
|
|
1097
1142
|
...this.optionallyAttachAccount(c.account)
|
|
1098
1143
|
};
|
|
1099
1144
|
}
|
|
1100
1145
|
}
|
|
1101
1146
|
export {
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1147
|
+
Qf as BOOST_CORE_ADDRESS,
|
|
1148
|
+
C0 as BoostCore,
|
|
1149
|
+
P as boostCoreAbi
|
|
1105
1150
|
};
|
|
1106
1151
|
//# sourceMappingURL=BoostCore.js.map
|