@boostxyz/sdk 0.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +7 -0
- package/dist/Actions/Action.cjs +1 -0
- package/dist/Actions/Action.d.ts +31 -0
- package/dist/Actions/Action.d.ts.map +1 -0
- package/dist/Actions/Action.js +27 -0
- package/dist/Actions/ContractAction.d.ts +327 -0
- package/dist/Actions/ContractAction.d.ts.map +1 -0
- package/dist/Actions/ERC721MintAction.d.ts +486 -0
- package/dist/Actions/ERC721MintAction.d.ts.map +1 -0
- package/dist/Actions/EventAction.cjs +1 -0
- package/dist/Actions/EventAction.d.ts +433 -0
- package/dist/Actions/EventAction.d.ts.map +1 -0
- package/dist/Actions/EventAction.js +211 -0
- package/dist/AllowLists/AllowList.cjs +1 -0
- package/dist/AllowLists/AllowList.d.ts +33 -0
- package/dist/AllowLists/AllowList.d.ts.map +1 -0
- package/dist/AllowLists/AllowList.js +28 -0
- package/dist/AllowLists/SimpleAllowList.cjs +1 -0
- package/dist/AllowLists/SimpleAllowList.d.ts +452 -0
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.js +138 -0
- package/dist/AllowLists/SimpleDenyList.cjs +1 -0
- package/dist/AllowLists/SimpleDenyList.d.ts +306 -0
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleDenyList.js +202 -0
- package/dist/Auth/Auth.cjs +1 -0
- package/dist/Auth/Auth.d.ts +10 -0
- package/dist/Auth/Auth.d.ts.map +1 -0
- package/dist/Auth/Auth.js +4 -0
- package/dist/Auth/PassthroughAuth.cjs +1 -0
- package/dist/Auth/PassthroughAuth.d.ts +51 -0
- package/dist/Auth/PassthroughAuth.d.ts.map +1 -0
- package/dist/Auth/PassthroughAuth.js +38 -0
- package/dist/Boost.cjs +1 -0
- package/dist/Boost.d.ts +142 -0
- package/dist/Boost.d.ts.map +1 -0
- package/dist/Boost.js +15 -0
- package/dist/BoostCore.cjs +2 -0
- package/dist/BoostCore.d.ts +460 -0
- package/dist/BoostCore.d.ts.map +1 -0
- package/dist/BoostCore.js +1105 -0
- package/dist/BoostRegistry.cjs +1 -0
- package/dist/BoostRegistry.d.ts +229 -0
- package/dist/BoostRegistry.d.ts.map +1 -0
- package/dist/BoostRegistry.js +250 -0
- package/dist/Budgets/Budget.cjs +1 -0
- package/dist/Budgets/Budget.d.ts +31 -0
- package/dist/Budgets/Budget.d.ts.map +1 -0
- package/dist/Budgets/Budget.js +27 -0
- package/dist/Budgets/ManagedBudget.cjs +1 -0
- package/dist/Budgets/ManagedBudget.d.ts +1065 -0
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -0
- package/dist/Budgets/ManagedBudget.js +498 -0
- package/dist/Budgets/SimpleBudget.d.ts +793 -0
- package/dist/Budgets/SimpleBudget.d.ts.map +1 -0
- package/dist/Budgets/VestingBudget.d.ts +726 -0
- package/dist/Budgets/VestingBudget.d.ts.map +1 -0
- package/dist/Deployable/Contract.cjs +1 -0
- package/dist/Deployable/Contract.d.ts +125 -0
- package/dist/Deployable/Contract.d.ts.map +1 -0
- package/dist/Deployable/Contract.js +149 -0
- package/dist/Deployable/Deployable.cjs +1 -0
- package/dist/Deployable/Deployable.d.ts +155 -0
- package/dist/Deployable/Deployable.d.ts.map +1 -0
- package/dist/Deployable/Deployable.js +124 -0
- package/dist/Deployable/DeployableTarget.cjs +1 -0
- package/dist/Deployable/DeployableTarget.d.ts +115 -0
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -0
- package/dist/Deployable/DeployableTarget.js +128 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -0
- package/dist/Incentives/AllowListIncentive.d.ts +483 -0
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -0
- package/dist/Incentives/AllowListIncentive.js +188 -0
- package/dist/Incentives/CGDAIncentive.cjs +1 -0
- package/dist/Incentives/CGDAIncentive.d.ts +560 -0
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -0
- package/dist/Incentives/CGDAIncentive.js +249 -0
- package/dist/Incentives/ERC1155Incentive.d.ts +652 -0
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20Incentive.cjs +1 -0
- package/dist/Incentives/ERC20Incentive.d.ts +622 -0
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20Incentive.js +292 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +545 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -0
- package/dist/Incentives/Incentive.cjs +1 -0
- package/dist/Incentives/Incentive.d.ts +39 -0
- package/dist/Incentives/Incentive.d.ts.map +1 -0
- package/dist/Incentives/Incentive.js +280 -0
- package/dist/Incentives/PointsIncentive.cjs +1 -0
- package/dist/Incentives/PointsIncentive.d.ts +615 -0
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -0
- package/dist/Incentives/PointsIncentive.js +197 -0
- package/dist/Validators/SignerValidator.cjs +1 -0
- package/dist/Validators/SignerValidator.d.ts +452 -0
- package/dist/Validators/SignerValidator.d.ts.map +1 -0
- package/dist/Validators/SignerValidator.js +167 -0
- package/dist/Validators/Validator.cjs +1 -0
- package/dist/Validators/Validator.d.ts +31 -0
- package/dist/Validators/Validator.d.ts.map +1 -0
- package/dist/Validators/Validator.js +25 -0
- package/dist/errors.cjs +1 -0
- package/dist/errors.d.ts +257 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +161 -0
- package/dist/generated-BaaleHW-.cjs +2 -0
- package/dist/generated-x_abr3Yv.js +6228 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1355 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +1454 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +643 -0
- package/package.json +197 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { a2 as t, a3 as o, a4 as i, a5 as n, a6 as h, a7 as l } from "../generated-x_abr3Yv.js";
|
|
2
|
+
import { getAccount as u } from "@wagmi/core";
|
|
3
|
+
import { zeroHash as A, zeroAddress as w } from "viem";
|
|
4
|
+
import { DeployableTarget as g } from "../Deployable/DeployableTarget.js";
|
|
5
|
+
import { DeployableUnknownOwnerProvidedError as p } from "../errors.js";
|
|
6
|
+
import { RegistryType as y, prepareSimpleAllowListPayload as m } from "../utils.js";
|
|
7
|
+
const R = "0x6080604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b61140e806100bd5f395ff3fe608060405260043610610113575f3560e01c80634a4ee7b11161009f57806398332bbc1161006357806398332bbc1461031d578063e3f756de14610347578063f04e283e14610383578063f2fde38b1461039f578063fee81cf4146103bb57610113565b80634a4ee7b114610287578063514e62fc146102a357806354d1f13d146102df578063715018a6146102e95780638da5cb5b146102f357610113565b806325692962116100e657806325692962146101c757806328d6183b146101d15780632de94807146101fb5780633abb060414610237578063439fab911461025f57610113565b806301ffc9a714610117578063183a4f6e146101535780631c10893f1461016f5780631cd64df41461018b575b5f80fd5b348015610122575f80fd5b5061013d60048036038101906101389190610d51565b6103f7565b60405161014a9190610d96565b60405180910390f35b61016d60048036038101906101689190610de2565b610470565b005b61018960048036038101906101849190610e67565b61047d565b005b348015610196575f80fd5b506101b160048036038101906101ac9190610e67565b610493565b6040516101be9190610d96565b60405180910390f35b6101cf6104a9565b005b3480156101dc575f80fd5b506101e56104fa565b6040516101f29190610eb4565b60405180910390f35b348015610206575f80fd5b50610221600480360381019061021c9190610ecd565b610521565b60405161022e9190610f07565b60405180910390f35b348015610242575f80fd5b5061025d60048036038101906102589190610fd6565b61053a565b005b34801561026a575f80fd5b50610285600480360381019061028091906110a9565b610647565b005b6102a1600480360381019061029c9190610e67565b61076f565b005b3480156102ae575f80fd5b506102c960048036038101906102c49190610e67565b610785565b6040516102d69190610d96565b60405180910390f35b6102e761079c565b005b6102f16107d5565b005b3480156102fe575f80fd5b506103076107e8565b6040516103149190611103565b60405180910390f35b348015610328575f80fd5b50610331610810565b60405161033e9190610f07565b60405180910390f35b348015610352575f80fd5b5061036d6004803603810190610368919061111c565b610815565b60405161037a9190610d96565b60405180910390f35b61039d60048036038101906103989190610ecd565b610868565b005b6103b960048036038101906103b49190610ecd565b6108a6565b005b3480156103c6575f80fd5b506103e160048036038101906103dc9190610ecd565b6108cf565b6040516103ee9190610f07565b60405180910390f35b5f7f8ba1fc24000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104695750610468826108e8565b5b9050919050565b61047a3382610961565b50565b610485610970565b61048f82826109a7565b5050565b5f818261049f85610521565b1614905092915050565b5f6104b26109b7565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f8ba1fc2400000000000000000000000000000000000000000000000000000000905090565b5f638b78c6d8600c52815f526020600c20549050919050565b6002610545816109c1565b828290508585905014610584576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8585905081101561063f578383828181106105a4576105a3611179565b5b90506020020160208101906105b991906111d0565b5f808888858181106105ce576105cd611179565b5b90506020020160208101906105e39190610ecd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610586565b505050505050565b5f6106506109e8565b905080546003825580156106825760018160011c14303b106106795763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f808484810190610694919061137e565b915091506106a182610a11565b6106ac8260026109a7565b5f5b81518110156107325760015f808484815181106106ce576106cd611179565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555080806001019150506106ae565b505050801561076a576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b610777610970565b6107818282610961565b5050565b5f808261079185610521565b161415905092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b6107dd610970565b6107e65f610ae7565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b600281565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1690509392505050565b610870610970565b63389a75e1600c52805f526020600c20805442111561089657636f5e88185f526004601cfd5b5f8155506108a381610ae7565b50565b6108ae610970565b8060601b6108c357637448fbae5f526004601cfd5b6108cc81610ae7565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f7fe2089f79000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095a575061095982610bad565b5b9050919050565b61096c82825f610c26565b5050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146109a5576382b429005f526004601cfd5b565b6109b382826001610c26565b5050565b5f6202a300905090565b638b78c6d8600c52335f52806020600c2054166109e5576382b429005f526004601cfd5b50565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a19610c7e565b15610a91577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805415610a5357630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a350610ae4565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b610aef610c7e565b15610b54577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550610baa565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c1f5750610c1e82610c82565b5b9050919050565b638b78c6d8600c52825f526020600c20805483811783610c4857848216821890505b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f90565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610d3081610cfc565b8114610d3a575f80fd5b50565b5f81359050610d4b81610d27565b92915050565b5f60208284031215610d6657610d65610cf4565b5b5f610d7384828501610d3d565b91505092915050565b5f8115159050919050565b610d9081610d7c565b82525050565b5f602082019050610da95f830184610d87565b92915050565b5f819050919050565b610dc181610daf565b8114610dcb575f80fd5b50565b5f81359050610ddc81610db8565b92915050565b5f60208284031215610df757610df6610cf4565b5b5f610e0484828501610dce565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610e3682610e0d565b9050919050565b610e4681610e2c565b8114610e50575f80fd5b50565b5f81359050610e6181610e3d565b92915050565b5f8060408385031215610e7d57610e7c610cf4565b5b5f610e8a85828601610e53565b9250506020610e9b85828601610dce565b9150509250929050565b610eae81610cfc565b82525050565b5f602082019050610ec75f830184610ea5565b92915050565b5f60208284031215610ee257610ee1610cf4565b5b5f610eef84828501610e53565b91505092915050565b610f0181610daf565b82525050565b5f602082019050610f1a5f830184610ef8565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610f4157610f40610f20565b5b8235905067ffffffffffffffff811115610f5e57610f5d610f24565b5b602083019150836020820283011115610f7a57610f79610f28565b5b9250929050565b5f8083601f840112610f9657610f95610f20565b5b8235905067ffffffffffffffff811115610fb357610fb2610f24565b5b602083019150836020820283011115610fcf57610fce610f28565b5b9250929050565b5f805f8060408587031215610fee57610fed610cf4565b5b5f85013567ffffffffffffffff81111561100b5761100a610cf8565b5b61101787828801610f2c565b9450945050602085013567ffffffffffffffff81111561103a57611039610cf8565b5b61104687828801610f81565b925092505092959194509250565b5f8083601f84011261106957611068610f20565b5b8235905067ffffffffffffffff81111561108657611085610f24565b5b6020830191508360018202830111156110a2576110a1610f28565b5b9250929050565b5f80602083850312156110bf576110be610cf4565b5b5f83013567ffffffffffffffff8111156110dc576110db610cf8565b5b6110e885828601611054565b92509250509250929050565b6110fd81610e2c565b82525050565b5f6020820190506111165f8301846110f4565b92915050565b5f805f6040848603121561113357611132610cf4565b5b5f61114086828701610e53565b935050602084013567ffffffffffffffff81111561116157611160610cf8565b5b61116d86828701611054565b92509250509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b6111af81610d7c565b81146111b9575f80fd5b50565b5f813590506111ca816111a6565b92915050565b5f602082840312156111e5576111e4610cf4565b5b5f6111f2848285016111bc565b91505092915050565b5f61120582610e0d565b9050919050565b611215816111fb565b811461121f575f80fd5b50565b5f813590506112308161120c565b92915050565b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61127c82611236565b810181811067ffffffffffffffff8211171561129b5761129a611246565b5b80604052505050565b5f6112ad610ceb565b90506112b98282611273565b919050565b5f67ffffffffffffffff8211156112d8576112d7611246565b5b602082029050602081019050919050565b5f6112fb6112f6846112be565b6112a4565b9050808382526020820190506020840283018581111561131e5761131d610f28565b5b835b8181101561134757806113338882610e53565b845260208401935050602081019050611320565b5050509392505050565b5f82601f83011261136557611364610f20565b5b81356113758482602086016112e9565b91505092915050565b5f806040838503121561139457611393610cf4565b5b5f6113a185828601611222565b925050602083013567ffffffffffffffff8111156113c2576113c1610cf8565b5b6113ce85828601611351565b915050925092905056fea264697066735822122094368c65f566939d0b9827de55e44a26c567f89bc0bf24103275890d9278dc0164736f6c634300081a0033", O = 2n, s = class s extends g {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.abi = t;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Check if a user is authorized.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
* @async
|
|
16
|
+
* @param {Address} address - The address of the user
|
|
17
|
+
* @param {?ReadParams<typeof simpleAllowListAbi, 'setAllowed'>} [params]
|
|
18
|
+
* @returns {Promise<boolean>} - True if the user is authorized
|
|
19
|
+
*/
|
|
20
|
+
async isAllowed(b, e) {
|
|
21
|
+
return await o(this._config, {
|
|
22
|
+
address: this.assertValidAddress(),
|
|
23
|
+
args: [b, A],
|
|
24
|
+
...this.optionallyAttachAccount(),
|
|
25
|
+
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
26
|
+
...e
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Set the allowed status of a user. The length of the `users_` and `allowed_` arrays must be the same.
|
|
31
|
+
* This function can only be called by the owner
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
* @async
|
|
35
|
+
* @param {Address[]} addresses - The list of users to update
|
|
36
|
+
* @param {boolean[]} allowed - The allowed status of each user
|
|
37
|
+
* @param {?ReadParams<typeof simpleAllowListAbi, 'setAllowed'>} [params]
|
|
38
|
+
* @returns {Promise<void>}
|
|
39
|
+
*/
|
|
40
|
+
async setAllowed(b, e, f) {
|
|
41
|
+
return this.awaitResult(this.setAllowedRaw(b, e, f));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Set the allowed status of a user. The length of the `users_` and `allowed_` arrays must be the same.
|
|
45
|
+
* This function can only be called by the owner
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
* @async
|
|
49
|
+
* @param {Address[]} addresses - The list of users to update
|
|
50
|
+
* @param {boolean[]} allowed - The allowed status of each user
|
|
51
|
+
* @param {?ReadParams<typeof simpleAllowListAbi, 'setAllowed'>} [params]
|
|
52
|
+
* @returns {Promise<void>}
|
|
53
|
+
*/
|
|
54
|
+
async setAllowedRaw(b, e, f) {
|
|
55
|
+
const { request: a, result: c } = await i(
|
|
56
|
+
this._config,
|
|
57
|
+
{
|
|
58
|
+
address: this.assertValidAddress(),
|
|
59
|
+
args: [b, e],
|
|
60
|
+
...this.optionallyAttachAccount(),
|
|
61
|
+
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
62
|
+
...f
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
return { hash: await n(this._config, a), result: c };
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Allows the owner to grant `user` `roles`.
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
* @async
|
|
72
|
+
* @param {Address} address
|
|
73
|
+
* @param {bigint} role
|
|
74
|
+
* @param {?ReadParams<typeof simpleAllowListAbi, 'grantRoles'>} [params]
|
|
75
|
+
* @returns {Promise<void>}
|
|
76
|
+
*/
|
|
77
|
+
async grantRoles(b, e, f) {
|
|
78
|
+
return this.awaitResult(this.grantRolesRaw(b, e, f));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Allows the owner to grant `user` `roles`.
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
* @async
|
|
85
|
+
* @param {Address} address
|
|
86
|
+
* @param {bigint} role
|
|
87
|
+
* @param {?ReadParams<typeof simpleAllowListAbi, 'grantRoles'>} [params]
|
|
88
|
+
* @returns {Promise<void>}
|
|
89
|
+
*/
|
|
90
|
+
async grantRolesRaw(b, e, f) {
|
|
91
|
+
const { request: a, result: c } = await h(
|
|
92
|
+
this._config,
|
|
93
|
+
{
|
|
94
|
+
address: this.assertValidAddress(),
|
|
95
|
+
args: [b, e],
|
|
96
|
+
...this.optionallyAttachAccount(),
|
|
97
|
+
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
98
|
+
...f
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
return { hash: await l(this._config, a), result: c };
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @inheritdoc
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
* @param {?SimpleAllowListPayload} [_payload]
|
|
108
|
+
* @param {?DeployableOptions} [_options]
|
|
109
|
+
* @returns {GenericDeployableParams}
|
|
110
|
+
*/
|
|
111
|
+
buildParameters(b, e) {
|
|
112
|
+
var c;
|
|
113
|
+
const [f, a] = this.validateDeploymentConfig(
|
|
114
|
+
b,
|
|
115
|
+
e
|
|
116
|
+
);
|
|
117
|
+
if (!f.owner || f.owner === w) {
|
|
118
|
+
const d = a.account ? a.account.address : a.config ? u(a.config).address : (c = this._account) == null ? void 0 : c.address;
|
|
119
|
+
if (d)
|
|
120
|
+
f.owner = d;
|
|
121
|
+
else
|
|
122
|
+
throw new p();
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
abi: t,
|
|
126
|
+
bytecode: R,
|
|
127
|
+
args: [m(f)],
|
|
128
|
+
...this.optionallyAttachAccount(a.account)
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
s.base = "0x11556926AaA421e96e06a7A679C680813122db7D", s.registryType = y.ALLOW_LIST;
|
|
133
|
+
let r = s;
|
|
134
|
+
export {
|
|
135
|
+
O as LIST_MANAGER_ROLE,
|
|
136
|
+
r as SimpleAllowList,
|
|
137
|
+
t as simpleAllowListAbi
|
|
138
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../generated-BaaleHW-.cjs"),n=require("@wagmi/core"),o=require("viem"),l=require("../Deployable/DeployableTarget.cjs"),u=require("../errors.cjs"),i=require("../utils.cjs"),h="0x6080604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6110ac806100bd5f395ff3fe6080604052600436106100a6575f3560e01c8063715018a611610063578063715018a6146101745780638da5cb5b1461017e578063e3f756de146101a8578063f04e283e146101e4578063f2fde38b14610200578063fee81cf41461021c576100a6565b806301ffc9a7146100aa578063141973b0146100e6578063256929621461010e57806328d6183b14610118578063439fab911461014257806354d1f13d1461016a575b5f80fd5b3480156100b5575f80fd5b506100d060048036038101906100cb9190610a82565b610258565b6040516100dd9190610ac7565b60405180910390f35b3480156100f1575f80fd5b5061010c60048036038101906101079190610b96565b6102d1565b005b6101166103da565b005b348015610123575f80fd5b5061012c61042b565b6040516101399190610c23565b60405180910390f35b34801561014d575f80fd5b5061016860048036038101906101639190610c91565b610452565b005b61017261056f565b005b61017c6105a8565b005b348015610189575f80fd5b506101926105bb565b60405161019f9190610d1b565b60405180910390f35b3480156101b3575f80fd5b506101ce60048036038101906101c99190610d5e565b6105e3565b6040516101db9190610ac7565b60405180910390f35b6101fe60048036038101906101f99190610dbb565b610637565b005b61021a60048036038101906102159190610dbb565b610675565b005b348015610227575f80fd5b50610242600480360381019061023d9190610dbb565b61069e565b60405161024f9190610dfe565b60405180910390f35b5f7f3d30a22c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102ca57506102c9826106b7565b5b9050919050565b6102d9610730565b818190508484905014610318576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848490508110156103d35782828281811061033857610337610e17565b5b905060200201602081019061034d9190610e6e565b5f8087878581811061036257610361610e17565b5b90506020020160208101906103779190610dbb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550808060010191505061031a565b5050505050565b5f6103e3610767565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f3d30a22c00000000000000000000000000000000000000000000000000000000905090565b5f61045b610771565b9050805460038255801561048d5760018160011c14303b106104845763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f80848481019061049f919061101c565b915091506104ac8261079a565b5f5b81518110156105325760015f808484815181106104ce576104cd610e17565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555080806001019150506104ae565b505050801561056a576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b6105b0610730565b6105b95f610870565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161590509392505050565b61063f610730565b63389a75e1600c52805f526020600c20805442111561066557636f5e88185f526004601cfd5b5f81555061067281610870565b50565b61067d610730565b8060601b61069257637448fbae5f526004601cfd5b61069b81610870565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f7fe2089f79000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610729575061072882610936565b5b9050919050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610765576382b429005f526004601cfd5b565b5f6202a300905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6107a26109af565b1561081a577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278054156107dc57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35061086d565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b6108786109af565b156108dd577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550610933565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109a857506109a7826109b3565b5b9050919050565b5f90565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610a6181610a2d565b8114610a6b575f80fd5b50565b5f81359050610a7c81610a58565b92915050565b5f60208284031215610a9757610a96610a25565b5b5f610aa484828501610a6e565b91505092915050565b5f8115159050919050565b610ac181610aad565b82525050565b5f602082019050610ada5f830184610ab8565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610b0157610b00610ae0565b5b8235905067ffffffffffffffff811115610b1e57610b1d610ae4565b5b602083019150836020820283011115610b3a57610b39610ae8565b5b9250929050565b5f8083601f840112610b5657610b55610ae0565b5b8235905067ffffffffffffffff811115610b7357610b72610ae4565b5b602083019150836020820283011115610b8f57610b8e610ae8565b5b9250929050565b5f805f8060408587031215610bae57610bad610a25565b5b5f85013567ffffffffffffffff811115610bcb57610bca610a29565b5b610bd787828801610aec565b9450945050602085013567ffffffffffffffff811115610bfa57610bf9610a29565b5b610c0687828801610b41565b925092505092959194509250565b610c1d81610a2d565b82525050565b5f602082019050610c365f830184610c14565b92915050565b5f8083601f840112610c5157610c50610ae0565b5b8235905067ffffffffffffffff811115610c6e57610c6d610ae4565b5b602083019150836001820283011115610c8a57610c89610ae8565b5b9250929050565b5f8060208385031215610ca757610ca6610a25565b5b5f83013567ffffffffffffffff811115610cc457610cc3610a29565b5b610cd085828601610c3c565b92509250509250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610d0582610cdc565b9050919050565b610d1581610cfb565b82525050565b5f602082019050610d2e5f830184610d0c565b92915050565b610d3d81610cfb565b8114610d47575f80fd5b50565b5f81359050610d5881610d34565b92915050565b5f805f60408486031215610d7557610d74610a25565b5b5f610d8286828701610d4a565b935050602084013567ffffffffffffffff811115610da357610da2610a29565b5b610daf86828701610c3c565b92509250509250925092565b5f60208284031215610dd057610dcf610a25565b5b5f610ddd84828501610d4a565b91505092915050565b5f819050919050565b610df881610de6565b82525050565b5f602082019050610e115f830184610def565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b610e4d81610aad565b8114610e57575f80fd5b50565b5f81359050610e6881610e44565b92915050565b5f60208284031215610e8357610e82610a25565b5b5f610e9084828501610e5a565b91505092915050565b5f610ea382610cdc565b9050919050565b610eb381610e99565b8114610ebd575f80fd5b50565b5f81359050610ece81610eaa565b92915050565b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610f1a82610ed4565b810181811067ffffffffffffffff82111715610f3957610f38610ee4565b5b80604052505050565b5f610f4b610a1c565b9050610f578282610f11565b919050565b5f67ffffffffffffffff821115610f7657610f75610ee4565b5b602082029050602081019050919050565b5f610f99610f9484610f5c565b610f42565b90508083825260208201905060208402830185811115610fbc57610fbb610ae8565b5b835b81811015610fe55780610fd18882610d4a565b845260208401935050602081019050610fbe565b5050509392505050565b5f82601f83011261100357611002610ae0565b5b8135611013848260208601610f87565b91505092915050565b5f806040838503121561103257611031610a25565b5b5f61103f85828601610ec0565b925050602083013567ffffffffffffffff8111156110605761105f610a29565b5b61106c85828601610fef565b915050925092905056fea2646970667358221220f8901ba0ad91db050edba1d0412882eecda8dba26237dd3383d77357c2f7173964736f6c634300081a0033",t=class t extends l.DeployableTarget{constructor(){super(...arguments),this.abi=d.S}async isAllowed(b,a){return await d.A2(this._config,{address:this.assertValidAddress(),args:[b,o.zeroHash],...this.optionallyAttachAccount(),...a})}async setDenied(b,a,f){return this.awaitResult(this.setDeniedRaw(b,a,f))}async setDeniedRaw(b,a,f){const{request:e,result:c}=await d.k2(this._config,{address:this.assertValidAddress(),args:[b,a],...this.optionallyAttachAccount(),...f});return{hash:await d.B2(this._config,e),result:c}}buildParameters(b,a){var c;const[f,e]=this.validateDeploymentConfig(b,a);if(!f.owner||f.owner===o.zeroAddress){const s=e.account?e.account.address:e.config?n.getAccount(e.config).address:(c=this._account)==null?void 0:c.address;if(s)f.owner=s;else throw new u.DeployableUnknownOwnerProvidedError}return{abi:d.S,bytecode:h,args:[i.prepareSimpleDenyListPayload(f)],...this.optionallyAttachAccount(e.account)}}};t.base="0x41A7c1aCC75BEccD11B8F586510759883092460F",t.registryType=i.RegistryType.ALLOW_LIST;let r=t;exports.simpleDenyListAbi=d.S;exports.SimpleDenyList=r;
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { simpleDenyListAbi } from '@boostxyz/evm';
|
|
2
|
+
import { type Address, type ContractEventName } from 'viem';
|
|
3
|
+
import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
|
|
4
|
+
import { DeployableTarget } from '../Deployable/DeployableTarget';
|
|
5
|
+
import { type GenericLog, type ReadParams, RegistryType, type SimpleDenyListPayload, type WriteParams } from '../utils';
|
|
6
|
+
export { simpleDenyListAbi };
|
|
7
|
+
export type { SimpleDenyListPayload };
|
|
8
|
+
/**
|
|
9
|
+
* A generic `viem.Log` event with support for `SimpleDenyList` event types.
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @typedef {SimpleDenyListLog}
|
|
13
|
+
* @template {ContractEventName<typeof simpleDenyListAbi>} [event=ContractEventName<
|
|
14
|
+
* typeof simpleDenyListAbi
|
|
15
|
+
* >]
|
|
16
|
+
*/
|
|
17
|
+
export type SimpleDenyListLog<event extends ContractEventName<typeof simpleDenyListAbi> = ContractEventName<typeof simpleDenyListAbi>> = GenericLog<typeof simpleDenyListAbi, event>;
|
|
18
|
+
/**
|
|
19
|
+
* A simple implementation of an AllowList that implicitly allows all addresses except those explicitly added to the deny list
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @class SimpleDenyList
|
|
23
|
+
* @typedef {SimpleDenyList}
|
|
24
|
+
* @extends {DeployableTarget<SimpleDenyListPayload>}
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPayload, typeof simpleDenyListAbi> {
|
|
27
|
+
readonly abi: readonly [{
|
|
28
|
+
readonly type: "constructor";
|
|
29
|
+
readonly inputs: readonly [];
|
|
30
|
+
readonly stateMutability: "nonpayable";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
readonly inputs: readonly [];
|
|
34
|
+
readonly name: "AlreadyInitialized";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
readonly inputs: readonly [];
|
|
38
|
+
readonly name: "CloneAlreadyInitialized";
|
|
39
|
+
}, {
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
readonly inputs: readonly [];
|
|
42
|
+
readonly name: "InitializerNotImplemented";
|
|
43
|
+
}, {
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
readonly inputs: readonly [];
|
|
46
|
+
readonly name: "InvalidInitialization";
|
|
47
|
+
}, {
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
readonly inputs: readonly [];
|
|
50
|
+
readonly name: "InvalidInitializationData";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "error";
|
|
53
|
+
readonly inputs: readonly [];
|
|
54
|
+
readonly name: "LengthMismatch";
|
|
55
|
+
}, {
|
|
56
|
+
readonly type: "error";
|
|
57
|
+
readonly inputs: readonly [];
|
|
58
|
+
readonly name: "NewOwnerIsZeroAddress";
|
|
59
|
+
}, {
|
|
60
|
+
readonly type: "error";
|
|
61
|
+
readonly inputs: readonly [];
|
|
62
|
+
readonly name: "NoHandoverRequest";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
readonly inputs: readonly [];
|
|
66
|
+
readonly name: "NotInitializing";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "error";
|
|
69
|
+
readonly inputs: readonly [];
|
|
70
|
+
readonly name: "Unauthorized";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "event";
|
|
73
|
+
readonly anonymous: false;
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly name: "version";
|
|
76
|
+
readonly internalType: "uint64";
|
|
77
|
+
readonly type: "uint64";
|
|
78
|
+
readonly indexed: false;
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "Initialized";
|
|
81
|
+
}, {
|
|
82
|
+
readonly type: "event";
|
|
83
|
+
readonly anonymous: false;
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly name: "pendingOwner";
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
readonly indexed: true;
|
|
89
|
+
}];
|
|
90
|
+
readonly name: "OwnershipHandoverCanceled";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "event";
|
|
93
|
+
readonly anonymous: false;
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly name: "pendingOwner";
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
readonly indexed: true;
|
|
99
|
+
}];
|
|
100
|
+
readonly name: "OwnershipHandoverRequested";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "event";
|
|
103
|
+
readonly anonymous: false;
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly name: "oldOwner";
|
|
106
|
+
readonly internalType: "address";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
readonly indexed: true;
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "newOwner";
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
readonly indexed: true;
|
|
114
|
+
}];
|
|
115
|
+
readonly name: "OwnershipTransferred";
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
readonly inputs: readonly [];
|
|
119
|
+
readonly name: "cancelOwnershipHandover";
|
|
120
|
+
readonly outputs: readonly [];
|
|
121
|
+
readonly stateMutability: "payable";
|
|
122
|
+
}, {
|
|
123
|
+
readonly type: "function";
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly name: "pendingOwner";
|
|
126
|
+
readonly internalType: "address";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}];
|
|
129
|
+
readonly name: "completeOwnershipHandover";
|
|
130
|
+
readonly outputs: readonly [];
|
|
131
|
+
readonly stateMutability: "payable";
|
|
132
|
+
}, {
|
|
133
|
+
readonly type: "function";
|
|
134
|
+
readonly inputs: readonly [];
|
|
135
|
+
readonly name: "getComponentInterface";
|
|
136
|
+
readonly outputs: readonly [{
|
|
137
|
+
readonly name: "";
|
|
138
|
+
readonly internalType: "bytes4";
|
|
139
|
+
readonly type: "bytes4";
|
|
140
|
+
}];
|
|
141
|
+
readonly stateMutability: "pure";
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
readonly inputs: readonly [{
|
|
145
|
+
readonly name: "data_";
|
|
146
|
+
readonly internalType: "bytes";
|
|
147
|
+
readonly type: "bytes";
|
|
148
|
+
}];
|
|
149
|
+
readonly name: "initialize";
|
|
150
|
+
readonly outputs: readonly [];
|
|
151
|
+
readonly stateMutability: "nonpayable";
|
|
152
|
+
}, {
|
|
153
|
+
readonly type: "function";
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly name: "user_";
|
|
156
|
+
readonly internalType: "address";
|
|
157
|
+
readonly type: "address";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "";
|
|
160
|
+
readonly internalType: "bytes";
|
|
161
|
+
readonly type: "bytes";
|
|
162
|
+
}];
|
|
163
|
+
readonly name: "isAllowed";
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly internalType: "bool";
|
|
167
|
+
readonly type: "bool";
|
|
168
|
+
}];
|
|
169
|
+
readonly stateMutability: "view";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "function";
|
|
172
|
+
readonly inputs: readonly [];
|
|
173
|
+
readonly name: "owner";
|
|
174
|
+
readonly outputs: readonly [{
|
|
175
|
+
readonly name: "result";
|
|
176
|
+
readonly internalType: "address";
|
|
177
|
+
readonly type: "address";
|
|
178
|
+
}];
|
|
179
|
+
readonly stateMutability: "view";
|
|
180
|
+
}, {
|
|
181
|
+
readonly type: "function";
|
|
182
|
+
readonly inputs: readonly [{
|
|
183
|
+
readonly name: "pendingOwner";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
}];
|
|
187
|
+
readonly name: "ownershipHandoverExpiresAt";
|
|
188
|
+
readonly outputs: readonly [{
|
|
189
|
+
readonly name: "result";
|
|
190
|
+
readonly internalType: "uint256";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}];
|
|
193
|
+
readonly stateMutability: "view";
|
|
194
|
+
}, {
|
|
195
|
+
readonly type: "function";
|
|
196
|
+
readonly inputs: readonly [];
|
|
197
|
+
readonly name: "renounceOwnership";
|
|
198
|
+
readonly outputs: readonly [];
|
|
199
|
+
readonly stateMutability: "payable";
|
|
200
|
+
}, {
|
|
201
|
+
readonly type: "function";
|
|
202
|
+
readonly inputs: readonly [];
|
|
203
|
+
readonly name: "requestOwnershipHandover";
|
|
204
|
+
readonly outputs: readonly [];
|
|
205
|
+
readonly stateMutability: "payable";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
readonly inputs: readonly [{
|
|
209
|
+
readonly name: "users_";
|
|
210
|
+
readonly internalType: "address[]";
|
|
211
|
+
readonly type: "address[]";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "denied_";
|
|
214
|
+
readonly internalType: "bool[]";
|
|
215
|
+
readonly type: "bool[]";
|
|
216
|
+
}];
|
|
217
|
+
readonly name: "setDenied";
|
|
218
|
+
readonly outputs: readonly [];
|
|
219
|
+
readonly stateMutability: "nonpayable";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
readonly inputs: readonly [{
|
|
223
|
+
readonly name: "interfaceId";
|
|
224
|
+
readonly internalType: "bytes4";
|
|
225
|
+
readonly type: "bytes4";
|
|
226
|
+
}];
|
|
227
|
+
readonly name: "supportsInterface";
|
|
228
|
+
readonly outputs: readonly [{
|
|
229
|
+
readonly name: "";
|
|
230
|
+
readonly internalType: "bool";
|
|
231
|
+
readonly type: "bool";
|
|
232
|
+
}];
|
|
233
|
+
readonly stateMutability: "view";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly name: "newOwner";
|
|
238
|
+
readonly internalType: "address";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
}];
|
|
241
|
+
readonly name: "transferOwnership";
|
|
242
|
+
readonly outputs: readonly [];
|
|
243
|
+
readonly stateMutability: "payable";
|
|
244
|
+
}];
|
|
245
|
+
/**
|
|
246
|
+
* @inheritdoc
|
|
247
|
+
*
|
|
248
|
+
* @public
|
|
249
|
+
* @static
|
|
250
|
+
* @type {Address}
|
|
251
|
+
*/
|
|
252
|
+
static base: Address;
|
|
253
|
+
/**
|
|
254
|
+
* @inheritdoc
|
|
255
|
+
*
|
|
256
|
+
* @public
|
|
257
|
+
* @static
|
|
258
|
+
* @type {RegistryType}
|
|
259
|
+
*/
|
|
260
|
+
static registryType: RegistryType;
|
|
261
|
+
/**
|
|
262
|
+
* Check if a user is authorized (i.e. not denied)
|
|
263
|
+
*
|
|
264
|
+
* @public
|
|
265
|
+
* @async
|
|
266
|
+
* @param {Address} address - The address of the user
|
|
267
|
+
* @param {?ReadParams<typeof simpleDenyListAbi, 'isAllowed'>} [params]
|
|
268
|
+
* @returns {Promise<boolean>} - True if the user is authorized
|
|
269
|
+
*/
|
|
270
|
+
isAllowed(address: Address, params?: ReadParams<typeof simpleDenyListAbi, 'isAllowed'>): Promise<boolean>;
|
|
271
|
+
/**
|
|
272
|
+
* Set the denied status of a user. The length of the `users_` and `denied_` arrays must be the same. This function can only be called by the owner
|
|
273
|
+
*
|
|
274
|
+
* @public
|
|
275
|
+
* @async
|
|
276
|
+
* @param {Address[]} addresses - The list of users to update
|
|
277
|
+
* @param {boolean[]} allowed - The denied status of each user
|
|
278
|
+
* @param {?WriteParams<typeof simpleDenyListAbi, 'setDenied'>} [params]
|
|
279
|
+
* @returns {unknown}
|
|
280
|
+
*/
|
|
281
|
+
setDenied(addresses: Address[], allowed: boolean[], params?: WriteParams<typeof simpleDenyListAbi, 'setDenied'>): Promise<void>;
|
|
282
|
+
/**
|
|
283
|
+
* Set the denied status of a user. The length of the `users_` and `denied_` arrays must be the same. This function can only be called by the owner
|
|
284
|
+
*
|
|
285
|
+
* @public
|
|
286
|
+
* @async
|
|
287
|
+
* @param {Address[]} addresses - The list of users to update
|
|
288
|
+
* @param {boolean[]} allowed - The denied status of each user
|
|
289
|
+
* @param {?WriteParams<typeof simpleDenyListAbi, 'setDenied'>} [params]
|
|
290
|
+
* @returns {unknown}
|
|
291
|
+
*/
|
|
292
|
+
setDeniedRaw(addresses: Address[], allowed: boolean[], params?: WriteParams<typeof simpleDenyListAbi, 'setDenied'>): Promise<{
|
|
293
|
+
hash: `0x${string}`;
|
|
294
|
+
result: void;
|
|
295
|
+
}>;
|
|
296
|
+
/**
|
|
297
|
+
* @inheritdoc
|
|
298
|
+
*
|
|
299
|
+
* @public
|
|
300
|
+
* @param {?SimpleDenyListPayload} [_payload]
|
|
301
|
+
* @param {?DeployableOptions} [_options]
|
|
302
|
+
* @returns {GenericDeployableParams}
|
|
303
|
+
*/
|
|
304
|
+
buildParameters(_payload?: SimpleDenyListPayload, _options?: DeployableOptions): GenericDeployableParams;
|
|
305
|
+
}
|
|
306
|
+
//# sourceMappingURL=SimpleDenyList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleDenyList.d.ts","sourceRoot":"","sources":["../../src/AllowLists/SimpleDenyList.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGlB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAIvB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAEjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAEtC;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,CAC3B,KAAK,SAAS,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,GAAG,iBAAiB,CAC3E,OAAO,iBAAiB,CACzB,IACC,UAAU,CAAC,OAAO,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,cAAe,SAAQ,gBAAgB,CAClD,qBAAqB,EACrB,OAAO,iBAAiB,CACzB;IACC,SAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAqB;IACjD;;;;;;OAMG;IACH,OAAuB,IAAI,EAAE,OAAO,CACP;IAC7B;;;;;;OAMG;IACH,OAAuB,YAAY,EAAE,YAAY,CAA2B;IAE5E;;;;;;;;OAQG;IACU,SAAS,CACpB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,EAAE,WAAW,CAAC,GACzD,OAAO,CAAC,OAAO,CAAC;IAUnB;;;;;;;;;OASG;IACU,SAAS,CACpB,SAAS,EAAE,OAAO,EAAE,EACpB,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,iBAAiB,EAAE,WAAW,CAAC;IAK7D;;;;;;;;;OASG;IACU,YAAY,CACvB,SAAS,EAAE,OAAO,EAAE,EACpB,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,iBAAiB,EAAE,WAAW,CAAC;;;;IAyH7D;;;;;;;OAOG;IACa,eAAe,CAC7B,QAAQ,CAAC,EAAE,qBAAqB,EAChC,QAAQ,CAAC,EAAE,iBAAiB,GAC3B,uBAAuB;CAwB3B"}
|