@boostxyz/sdk 0.0.0-alpha.2 → 0.0.0-alpha.3
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.d.ts +25 -10
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +94 -76
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.js +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 +1 -1
- package/dist/BoostCore.js +85 -85
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +3 -3
- 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 +22 -22
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +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 +5 -5
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +3 -3
- 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.d.ts +171 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +131 -40
- package/dist/generated-Cd-Fe7W7.cjs +2 -0
- package/dist/{generated-x_abr3Yv.js → generated-DGpIVcv5.js} +1153 -2768
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +126 -1353
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +44 -13
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +132 -119
- package/package.json +1 -1
- package/dist/generated-BaaleHW-.cjs +0 -2
package/dist/index.js
CHANGED
|
@@ -1,1355 +1,128 @@
|
|
|
1
|
-
import { BOOST_REGISTRY_ADDRESS as
|
|
2
|
-
import { BOOST_CORE_ADDRESS as
|
|
3
|
-
import { Boost as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { ERC20VariableIncentive as k5, IncentiveByComponentInterface as W5, incentiveFromAddress as z5 } from "./Incentives/Incentive.js";
|
|
26
|
-
import { PointsIncentive as H5 } from "./Incentives/PointsIncentive.js";
|
|
27
|
-
import { SignerValidator as j5 } from "./Validators/SignerValidator.js";
|
|
28
|
-
import { ValidatorByComponentInterface as Q5, validatorFromAddress as X5 } from "./Validators/Validator.js";
|
|
29
|
-
import { ManagedBudget as f1 } from "./Budgets/ManagedBudget.js";
|
|
30
|
-
const z0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b608051610cbb6100c85f395f6104030152610cbb5ff3fe608060405260043610610090575f3560e01c8063439fab9111610058578063439fab911461017f5780639a8a0592146101a7578063d4b83992146101d1578063d7768c47146101fb578063ea3d508a1461023757610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b5780633fa4f24514610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b591906107d8565b610261565b6040516100c7919061081d565b60405180910390f35b6100ea60048036038101906100e59190610897565b6102da565b6040516100f8929190610952565b60405180910390f35b34801561010c575f80fd5b506101156103da565b604051610122919061098f565b60405180910390f35b348015610136575f80fd5b5061013f610401565b60405161014c9190610a22565b60405180910390f35b348015610160575f80fd5b50610169610425565b6040516101769190610a53565b60405180910390f35b34801561018a575f80fd5b506101a560048036038101906101a09190610897565b61042b565b005b3480156101b2575f80fd5b506101bb6104b8565b6040516101c89190610a53565b60405180910390f35b3480156101dc575f80fd5b506101e56104bd565b6040516101f29190610a8c565b60405180910390f35b348015610206575f80fd5b50610221600480360381019061021c9190610897565b6104e2565b60405161022e9190610aa5565b60405180910390f35b348015610242575f80fd5b5061024b610506565b604051610258919061098f565b60405180910390f35b5f7f6c3129aa000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102d357506102d282610519565b5b9050919050565b5f6060465f5414610323575f546040517f180098f400000000000000000000000000000000000000000000000000000000815260040161031a9190610a53565b60405180910390fd5b5f8060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660025461037a600160149054906101000a900460e01b8989610592565b6040516103879190610aff565b5f6040518083038185875af1925050503d805f81146103c1576040519150601f19603f3d011682016040523d82523d5f602084013e6103c6565b606091505b509150915081819350935050509250929050565b5f7f6c3129aa00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025481565b5f6104346105be565b905080546003825580156104665760018160011c14303b1061045d5763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061047e83838101906104799190610c5a565b6105e7565b80156104b3576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f5481565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606104fe600160149054906101000a900460e01b8484610592565b905092915050565b600160149054906101000a900460e01b81565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061058b575061058a8261066c565b5b9050919050565b606081600401604051915080825260208101820160405284602083015282846024840137509392505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6105ef6106e5565b805f01515f81905550806020015160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060400151600160146101000a81548163ffffffff021916908360e01c0217905550806060015160028190555050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106de57506106dd82610709565b5b9050919050565b5f6106ee6105be565b905080546001166107065763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6107b781610783565b81146107c1575f80fd5b50565b5f813590506107d2816107ae565b92915050565b5f602082840312156107ed576107ec61077b565b5b5f6107fa848285016107c4565b91505092915050565b5f8115159050919050565b61081781610803565b82525050565b5f6020820190506108305f83018461080e565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261085757610856610836565b5b8235905067ffffffffffffffff8111156108745761087361083a565b5b6020830191508360018202830111156108905761088f61083e565b5b9250929050565b5f80602083850312156108ad576108ac61077b565b5b5f83013567ffffffffffffffff8111156108ca576108c961077f565b5b6108d685828601610842565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610924826108e2565b61092e81856108ec565b935061093e8185602086016108fc565b6109478161090a565b840191505092915050565b5f6040820190506109655f83018561080e565b8181036020830152610977818461091a565b90509392505050565b61098981610783565b82525050565b5f6020820190506109a25f830184610980565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f6109ea6109e56109e0846109a8565b6109c7565b6109a8565b9050919050565b5f6109fb826109d0565b9050919050565b5f610a0c826109f1565b9050919050565b610a1c81610a02565b82525050565b5f602082019050610a355f830184610a13565b92915050565b5f819050919050565b610a4d81610a3b565b82525050565b5f602082019050610a665f830184610a44565b92915050565b5f610a76826109a8565b9050919050565b610a8681610a6c565b82525050565b5f602082019050610a9f5f830184610a7d565b92915050565b5f6020820190508181035f830152610abd818461091a565b905092915050565b5f81905092915050565b5f610ad9826108e2565b610ae38185610ac5565b9350610af38185602086016108fc565b80840191505092915050565b5f610b0a8284610acf565b915081905092915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610b4f8261090a565b810181811067ffffffffffffffff82111715610b6e57610b6d610b19565b5b80604052505050565b5f610b80610772565b9050610b8c8282610b46565b919050565b610b9a81610a3b565b8114610ba4575f80fd5b50565b5f81359050610bb581610b91565b92915050565b610bc481610a6c565b8114610bce575f80fd5b50565b5f81359050610bdf81610bbb565b92915050565b5f60808284031215610bfa57610bf9610b15565b5b610c046080610b77565b90505f610c1384828501610ba7565b5f830152506020610c2684828501610bd1565b6020830152506040610c3a848285016107c4565b6040830152506060610c4e84828501610ba7565b60608301525092915050565b5f60808284031215610c6f57610c6e61077b565b5b5f610c7c84828501610be5565b9150509291505056fea264697066735822122033ff15dffc6f5d9e8c8c24e995622673a32f12caba8d819c1bc8141a9d59288064736f6c634300081a0033";
|
|
31
|
-
var $0 = { VITE_ALLOWLIST_INCENTIVE_BASE: "0x5Cd43Ea5541e1D6FF36962E6e6C11f0bf9d573d4", VITE_BOOST_REGISTRY_ADDRESS: "0x5cb8D869f2EE4e3D987Ac7bEB37D6812f5346DFC", VITE_CGDA_INCENTIVE_BASE: "0x147c3aBFF7Ab7867B206A8c652Cd59D3BE41Dc3E", VITE_ERC20_INCENTIVE_BASE: "0xDCfbb7767B281Fd2d39fc7c39A9f89dC61E81f0d", VITE_POINTS_INCENTIVE_BASE: "0x881c78Ba2d10894a8f4f6996C0FB5bA8AE627AAb", VITE_SIMPLE_DENYLIST_BASE: "0x41A7c1aCC75BEccD11B8F586510759883092460F", VITE_BOOST_CORE_ADDRESS: "0xF4905b327904E5797840fd8cD7F300001a34122f", VITE_SIMPLE_ALLOWLIST_BASE: "0x11556926AaA421e96e06a7A679C680813122db7D", VITE_ERC20_VARIABLE_INCENTIVE_BASE: "0xA7b6c33828693d431C64e59A27d985c4DfB19B95", VITE_MANAGED_BUDGET_BASE: "0x0b51f997fa15867134fA34366FCeA63Bee93C087", VITE_SIGNER_VALIDATOR_BASE: "0x749c6fDd62727E11e3200571de7CfBb61DFbA93b", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
32
|
-
const o = class o extends l {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments), this.abi = p;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* The target chain ID
|
|
38
|
-
*
|
|
39
|
-
* @public
|
|
40
|
-
* @async
|
|
41
|
-
* @param {?ReadParams<typeof contractActionAbi, 'chainId'>} [params]
|
|
42
|
-
* @returns {Promise<bigint>}
|
|
43
|
-
*/
|
|
44
|
-
async chainId(f) {
|
|
45
|
-
return G(this._config, {
|
|
46
|
-
address: this.assertValidAddress(),
|
|
47
|
-
...this.optionallyAttachAccount(),
|
|
48
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
49
|
-
...f
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* The target contract
|
|
54
|
-
*
|
|
55
|
-
* @public
|
|
56
|
-
* @async
|
|
57
|
-
* @param {?ReadParams<typeof contractActionAbi, 'target'>} [params]
|
|
58
|
-
* @returns {Promise<`0x${string}`>}
|
|
59
|
-
*/
|
|
60
|
-
async target(f) {
|
|
61
|
-
return M(this._config, {
|
|
62
|
-
address: this.assertValidAddress(),
|
|
63
|
-
...this.optionallyAttachAccount(),
|
|
64
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
65
|
-
...f
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* The selector for the function to be called
|
|
70
|
-
*
|
|
71
|
-
* @example `function mint(address to, uint256 amount)`
|
|
72
|
-
* @public
|
|
73
|
-
* @async
|
|
74
|
-
* @param {?ReadParams<typeof contractActionAbi, 'selector'>} [params]
|
|
75
|
-
* @returns {Promise<`0x${string}`>}
|
|
76
|
-
*/
|
|
77
|
-
async selector(f) {
|
|
78
|
-
return U(this._config, {
|
|
79
|
-
address: this.assertValidAddress(),
|
|
80
|
-
...this.optionallyAttachAccount(),
|
|
81
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
82
|
-
...f
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* The native token value to send with the function call
|
|
87
|
-
*
|
|
88
|
-
* @public
|
|
89
|
-
* @async
|
|
90
|
-
* @param {?ReadParams<typeof contractActionAbi, 'value'>} [params]
|
|
91
|
-
* @returns {Promise<bigint>}
|
|
92
|
-
*/
|
|
93
|
-
async value(f) {
|
|
94
|
-
return q(this._config, {
|
|
95
|
-
address: this.assertValidAddress(),
|
|
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
|
-
/**
|
|
102
|
-
* Executes a prepared contract action
|
|
103
|
-
*
|
|
104
|
-
* @public
|
|
105
|
-
* @async
|
|
106
|
-
* @param {Hex} data
|
|
107
|
-
* @param {?WriteParams<typeof contractActionAbi, 'execute'>} [params]
|
|
108
|
-
* @returns {Promise<readonly [boolean, `0x${string}`]>}
|
|
109
|
-
*/
|
|
110
|
-
async execute(f, b) {
|
|
111
|
-
return this.awaitResult(this.executeRaw(f, b));
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Executes a prepared contract action
|
|
115
|
-
*
|
|
116
|
-
* @public
|
|
117
|
-
* @async
|
|
118
|
-
* @param {Hex} data
|
|
119
|
-
* @param {?WriteParams<typeof contractActionAbi, 'execute'>} [params]
|
|
120
|
-
* @returns {unknown}
|
|
121
|
-
*/
|
|
122
|
-
async executeRaw(f, b) {
|
|
123
|
-
const { request: a, result: e } = await Y(
|
|
124
|
-
this._config,
|
|
125
|
-
{
|
|
126
|
-
address: this.assertValidAddress(),
|
|
127
|
-
...this.optionallyAttachAccount(),
|
|
128
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
129
|
-
...b,
|
|
130
|
-
args: [f]
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
return { hash: await k(this._config, a), result: e };
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* The encoded execution payload
|
|
137
|
-
*
|
|
138
|
-
* @public
|
|
139
|
-
* @async
|
|
140
|
-
* @param {Hex} calldata
|
|
141
|
-
* @param {?ReadParams<typeof contractActionAbi, 'prepare'>} [params]
|
|
142
|
-
* @returns {unknown}
|
|
143
|
-
*/
|
|
144
|
-
async prepare(f, b) {
|
|
145
|
-
return W(this._config, {
|
|
146
|
-
address: this.assertValidAddress(),
|
|
147
|
-
args: [f],
|
|
148
|
-
...this.optionallyAttachAccount(),
|
|
149
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
150
|
-
...b
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* @inheritdoc
|
|
155
|
-
*
|
|
156
|
-
* @public
|
|
157
|
-
* @param {?ContractActionPayload} [_payload]
|
|
158
|
-
* @param {?DeployableOptions} [_options]
|
|
159
|
-
* @returns {GenericDeployableParams}
|
|
160
|
-
*/
|
|
161
|
-
buildParameters(f, b) {
|
|
162
|
-
const [a, e] = this.validateDeploymentConfig(
|
|
163
|
-
f,
|
|
164
|
-
b
|
|
165
|
-
);
|
|
166
|
-
return {
|
|
167
|
-
abi: p,
|
|
168
|
-
bytecode: z0,
|
|
169
|
-
args: [N(a)],
|
|
170
|
-
...this.optionallyAttachAccount(e.account)
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
o.base = $0.VITE_CONTRACT_ACTION_BASE, o.registryType = r.ACTION;
|
|
175
|
-
let u = o;
|
|
176
|
-
const H0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6080516116026100c85f395f61054001526116025ff3fe608060405260043610610113575f3560e01c8063715018a61161009f578063d7768c4711610063578063d7768c471461033e578063ea3d508a1461037a578063f04e283e146103a4578063f2fde38b146103c0578063fee81cf4146103dc57610113565b8063715018a61461027a5780638da5cb5b146102845780639a8a0592146102ae578063bec95277146102d8578063d4b839921461031457610113565b8063393df8cb116100e6578063393df8cb146101b85780633fa4f245146101e2578063439fab911461020c57806354d1f13d14610234578063703b69001461023e57610113565b806301ffc9a71461011757806309c5eabe14610153578063256929621461018457806328d6183b1461018e575b5f80fd5b348015610122575f80fd5b5061013d60048036038101906101389190610e73565b610418565b60405161014a9190610eb8565b60405180910390f35b61016d60048036038101906101689190610f32565b610491565b60405161017b929190610fed565b60405180910390f35b61018c6104c6565b005b348015610199575f80fd5b506101a2610517565b6040516101af919061102a565b60405180910390f35b3480156101c3575f80fd5b506101cc61053e565b6040516101d991906110bd565b60405180910390f35b3480156101ed575f80fd5b506101f6610562565b60405161020391906110ee565b60405180910390f35b348015610217575f80fd5b50610232600480360381019061022d9190610f32565b610568565b005b61023c6105f5565b005b348015610249575f80fd5b50610264600480360381019061025f919061116c565b61062e565b6040516102719190610eb8565b60405180910390f35b61028261078b565b005b34801561028f575f80fd5b5061029861079e565b6040516102a591906111ff565b60405180910390f35b3480156102b9575f80fd5b506102c26107c6565b6040516102cf91906110ee565b60405180910390f35b3480156102e3575f80fd5b506102fe60048036038101906102f99190611218565b6107cb565b60405161030b9190610eb8565b60405180910390f35b34801561031f575f80fd5b506103286107e8565b60405161033591906111ff565b60405180910390f35b348015610349575f80fd5b50610364600480360381019061035f9190610f32565b61080d565b6040516103719190611243565b60405180910390f35b348015610385575f80fd5b5061038e610821565b60405161039b919061102a565b60405180910390f35b6103be60048036038101906103b99190611263565b610834565b005b6103da60048036038101906103d59190611263565b610872565b005b3480156103e7575f80fd5b5061040260048036038101906103fd9190611263565b61089b565b60405161040f91906110ee565b60405180910390f35b5f7f97e083eb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061048a5750610489826108b4565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6104cf61092d565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f97e083eb00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025481565b5f610571610937565b905080546003825580156105a35760018160011c14303b1061059a5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506105bb83838101906105b6919061137f565b610960565b80156105f0576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f805f84848101906106409190611495565b915091505f8161064f90611527565b5f1c90508273ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016106c491906110ee565b602060405180830381865afa1580156106df573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070391906115a1565b73ffffffffffffffffffffffffffffffffffffffff16148015610741575060035f8281526020019081526020015f205f9054906101000a900460ff16155b1561077b57600160035f8381526020019081526020015f205f6101000a81548160ff02191690831515021790555060019350505050610782565b5f93505050505b95945050505050565b6107936109ee565b61079c5f610a25565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b5f5481565b6003602052805f5260405f205f915054906101000a900460ff1681565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606108198383610aeb565b905092915050565b600160149054906101000a900460e01b81565b61083c6109ee565b63389a75e1600c52805f526020600c20805442111561086257636f5e88185f526004601cfd5b5f81555061086f81610a25565b50565b61087a6109ee565b8060601b61088f57637448fbae5f526004601cfd5b61089881610a25565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f7f5912b89c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610926575061092582610b0f565b5b9050919050565b5f6202a300905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610968610b88565b61097133610bac565b805f01515f81905550806020015160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060400151600160146101000a81548163ffffffff021916908360e01c0217905550806060015160028190555050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610a23576382b429005f526004601cfd5b565b610a2d610c82565b15610a92577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550610ae8565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b6060610b07600160149054906101000a900460e01b8484610c86565b905092915050565b5f7f6c3129aa000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b815750610b8082610cb2565b5b9050919050565b5f610b91610937565b90508054600116610ba95763d7e6bcf85f526004601cfd5b50565b610bb4610c82565b15610c2c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805415610bee57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a350610c7f565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f90565b606081600401604051915080825260208101820160405284602083015282846024840137509392505050565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d245750610d2382610d2b565b5b9050919050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d9d5750610d9c82610da4565b5b9050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610e5281610e1e565b8114610e5c575f80fd5b50565b5f81359050610e6d81610e49565b92915050565b5f60208284031215610e8857610e87610e16565b5b5f610e9584828501610e5f565b91505092915050565b5f8115159050919050565b610eb281610e9e565b82525050565b5f602082019050610ecb5f830184610ea9565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610ef257610ef1610ed1565b5b8235905067ffffffffffffffff811115610f0f57610f0e610ed5565b5b602083019150836001820283011115610f2b57610f2a610ed9565b5b9250929050565b5f8060208385031215610f4857610f47610e16565b5b5f83013567ffffffffffffffff811115610f6557610f64610e1a565b5b610f7185828601610edd565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610fbf82610f7d565b610fc98185610f87565b9350610fd9818560208601610f97565b610fe281610fa5565b840191505092915050565b5f6040820190506110005f830185610ea9565b81810360208301526110128184610fb5565b90509392505050565b61102481610e1e565b82525050565b5f60208201905061103d5f83018461101b565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61108561108061107b84611043565b611062565b611043565b9050919050565b5f6110968261106b565b9050919050565b5f6110a78261108c565b9050919050565b6110b78161109d565b82525050565b5f6020820190506110d05f8301846110ae565b92915050565b5f819050919050565b6110e8816110d6565b82525050565b5f6020820190506111015f8301846110df565b92915050565b611110816110d6565b811461111a575f80fd5b50565b5f8135905061112b81611107565b92915050565b5f61113b82611043565b9050919050565b61114b81611131565b8114611155575f80fd5b50565b5f8135905061116681611142565b92915050565b5f805f805f6080868803121561118557611184610e16565b5b5f6111928882890161111d565b95505060206111a38882890161111d565b94505060406111b488828901611158565b935050606086013567ffffffffffffffff8111156111d5576111d4610e1a565b5b6111e188828901610edd565b92509250509295509295909350565b6111f981611131565b82525050565b5f6020820190506112125f8301846111f0565b92915050565b5f6020828403121561122d5761122c610e16565b5b5f61123a8482850161111d565b91505092915050565b5f6020820190508181035f83015261125b8184610fb5565b905092915050565b5f6020828403121561127857611277610e16565b5b5f61128584828501611158565b91505092915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6112c882610fa5565b810181811067ffffffffffffffff821117156112e7576112e6611292565b5b80604052505050565b5f6112f9610e0d565b905061130582826112bf565b919050565b5f6080828403121561131f5761131e61128e565b5b61132960806112f0565b90505f6113388482850161111d565b5f83015250602061134b84828501611158565b602083015250604061135f84828501610e5f565b60408301525060606113738482850161111d565b60608301525092915050565b5f6080828403121561139457611393610e16565b5b5f6113a18482850161130a565b91505092915050565b5f6113b482611043565b9050919050565b6113c4816113aa565b81146113ce575f80fd5b50565b5f813590506113df816113bb565b92915050565b5f80fd5b5f67ffffffffffffffff82111561140357611402611292565b5b61140c82610fa5565b9050602081019050919050565b828183375f83830152505050565b5f611439611434846113e9565b6112f0565b905082815260208101848484011115611455576114546113e5565b5b611460848285611419565b509392505050565b5f82601f83011261147c5761147b610ed1565b5b813561148c848260208601611427565b91505092915050565b5f80604083850312156114ab576114aa610e16565b5b5f6114b8858286016113d1565b925050602083013567ffffffffffffffff8111156114d9576114d8610e1a565b5b6114e585828601611468565b9150509250929050565b5f819050602082019050919050565b5f819050919050565b5f61151282516114fe565b80915050919050565b5f82821b905092915050565b5f61153182610f7d565b8261153b846114ef565b905061154681611507565b92506020821015611586576115817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8360200360080261151b565b831692505b5050919050565b5f8151905061159b81611142565b92915050565b5f602082840312156115b6576115b5610e16565b5b5f6115c38482850161158d565b9150509291505056fea26469706673582212209de960213f849624609de48408f8bcca11b7f1c49f0a44bffbd3d3a966e843f264736f6c634300081a0033";
|
|
177
|
-
var K0 = { VITE_ALLOWLIST_INCENTIVE_BASE: "0x5Cd43Ea5541e1D6FF36962E6e6C11f0bf9d573d4", VITE_BOOST_REGISTRY_ADDRESS: "0x5cb8D869f2EE4e3D987Ac7bEB37D6812f5346DFC", VITE_CGDA_INCENTIVE_BASE: "0x147c3aBFF7Ab7867B206A8c652Cd59D3BE41Dc3E", VITE_ERC20_INCENTIVE_BASE: "0xDCfbb7767B281Fd2d39fc7c39A9f89dC61E81f0d", VITE_POINTS_INCENTIVE_BASE: "0x881c78Ba2d10894a8f4f6996C0FB5bA8AE627AAb", VITE_SIMPLE_DENYLIST_BASE: "0x41A7c1aCC75BEccD11B8F586510759883092460F", VITE_BOOST_CORE_ADDRESS: "0xF4905b327904E5797840fd8cD7F300001a34122f", VITE_SIMPLE_ALLOWLIST_BASE: "0x11556926AaA421e96e06a7A679C680813122db7D", VITE_ERC20_VARIABLE_INCENTIVE_BASE: "0xA7b6c33828693d431C64e59A27d985c4DfB19B95", VITE_MANAGED_BUDGET_BASE: "0x0b51f997fa15867134fA34366FCeA63Bee93C087", VITE_SIGNER_VALIDATOR_BASE: "0x749c6fDd62727E11e3200571de7CfBb61DFbA93b", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
178
|
-
const n = class n extends u {
|
|
179
|
-
constructor() {
|
|
180
|
-
super(...arguments), this.abi = T;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* The set of validated tokens
|
|
184
|
-
* This is intended to prevent multiple validations against the same token ID
|
|
185
|
-
*
|
|
186
|
-
* @public
|
|
187
|
-
* @async
|
|
188
|
-
* @param {bigint} token
|
|
189
|
-
* @param {?ReadParams<typeof erc721MintActionAbi, 'validated'>} [params]
|
|
190
|
-
* @returns {unknown}
|
|
191
|
-
*/
|
|
192
|
-
async validated(f, b) {
|
|
193
|
-
return z(this._config, {
|
|
194
|
-
address: this.assertValidAddress(),
|
|
195
|
-
...this.optionallyAttachAccount(),
|
|
196
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
197
|
-
...b,
|
|
198
|
-
args: [f]
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* @inheritdoc
|
|
203
|
-
*
|
|
204
|
-
* @public
|
|
205
|
-
* @async
|
|
206
|
-
* @param {Hex} data
|
|
207
|
-
* @param {?WriteParams<typeof erc721MintActionAbi, 'execute'>} [params]
|
|
208
|
-
* @returns {unknown}
|
|
209
|
-
*/
|
|
210
|
-
async execute(f, b) {
|
|
211
|
-
return this.awaitResult(this.executeRaw(f, b));
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* @inheritdoc
|
|
215
|
-
*
|
|
216
|
-
* @public
|
|
217
|
-
* @async
|
|
218
|
-
* @param {Hex} data
|
|
219
|
-
* @param {?WriteParams<typeof erc721MintActionAbi, 'execute'>} [params]
|
|
220
|
-
* @returns {unknown}
|
|
221
|
-
*/
|
|
222
|
-
async executeRaw(f, b) {
|
|
223
|
-
const { request: a, result: e } = await $(
|
|
224
|
-
this._config,
|
|
225
|
-
{
|
|
226
|
-
address: this.assertValidAddress(),
|
|
227
|
-
args: [f],
|
|
228
|
-
...this.optionallyAttachAccount(),
|
|
229
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
230
|
-
...b
|
|
231
|
-
}
|
|
232
|
-
);
|
|
233
|
-
return { hash: await H(this._config, a), result: e };
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* @inheritdoc
|
|
237
|
-
*
|
|
238
|
-
* @public
|
|
239
|
-
* @async
|
|
240
|
-
* @param {Hex} data
|
|
241
|
-
* @param {?ReadParams<typeof erc721MintActionAbi, 'prepare'>} [params]
|
|
242
|
-
* @returns {unknown}
|
|
243
|
-
*/
|
|
244
|
-
async prepare(f, b) {
|
|
245
|
-
return K(this._config, {
|
|
246
|
-
address: this.assertValidAddress(),
|
|
247
|
-
args: [f],
|
|
248
|
-
...this.optionallyAttachAccount(),
|
|
249
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
250
|
-
...b
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Validate that the action has been completed successfully
|
|
255
|
-
*
|
|
256
|
-
* @public
|
|
257
|
-
* @async
|
|
258
|
-
* @param {Address} holder - The holder
|
|
259
|
-
* @param {BigInt} tokenId - The token ID
|
|
260
|
-
* @param {?WriteParams<typeof erc721MintActionAbi, 'validate'>} [params]
|
|
261
|
-
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the action has been validated for the user
|
|
262
|
-
*/
|
|
263
|
-
async validate(f, b, a) {
|
|
264
|
-
return this.awaitResult(this.validateRaw(f, b, a));
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Validate that the action has been completed successfully
|
|
268
|
-
*
|
|
269
|
-
* @public
|
|
270
|
-
* @async
|
|
271
|
-
* @param {Address} holder - The holder
|
|
272
|
-
* @param {BigInt} tokenId - The token ID
|
|
273
|
-
* @param {?WriteParams<typeof erc721MintActionAbi, 'validate'>} [params]
|
|
274
|
-
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the action has been validated for the user
|
|
275
|
-
*/
|
|
276
|
-
async validateRaw(f, b, a) {
|
|
277
|
-
const { request: e, result: d } = await j(
|
|
278
|
-
this._config,
|
|
279
|
-
{
|
|
280
|
-
address: this.assertValidAddress(),
|
|
281
|
-
args: [F(f, b)],
|
|
282
|
-
...this.optionallyAttachAccount(),
|
|
283
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
284
|
-
...a
|
|
285
|
-
}
|
|
286
|
-
);
|
|
287
|
-
return { hash: await J(this._config, e), result: d };
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* @inheritdoc
|
|
291
|
-
*
|
|
292
|
-
* @public
|
|
293
|
-
* @param {?ERC721MintActionPayload} [_payload]
|
|
294
|
-
* @param {?DeployableOptions} [_options]
|
|
295
|
-
* @returns {GenericDeployableParams}
|
|
296
|
-
*/
|
|
297
|
-
buildParameters(f, b) {
|
|
298
|
-
const [a, e] = this.validateDeploymentConfig(
|
|
299
|
-
f,
|
|
300
|
-
b
|
|
301
|
-
);
|
|
302
|
-
return {
|
|
303
|
-
abi: T,
|
|
304
|
-
bytecode: H0,
|
|
305
|
-
args: [L(a)],
|
|
306
|
-
...this.optionallyAttachAccount(e.account)
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
n.base = K0.VITE_ERC721_MINT_ACTION_BASE, n.registryType = r.ACTION;
|
|
311
|
-
let D = n;
|
|
312
|
-
const j0 = "0x6080604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b612e95806100bd5f395ff3fe608060405260043610610169575f3560e01c8063715018a6116100d0578063f23a6e6111610089578063f9a802c311610063578063f9a802c314610560578063fa4ca9b11461059c578063fe9fbb80146105d8578063fee81cf41461061457610170565b8063f23a6e61146104cc578063f2fde38b14610508578063f8724aba1461052457610170565b8063715018a6146103c8578063774c33ab146103d25780638da5cb5b1461040e578063bc197c8114610438578063d2514e8414610474578063f04e283e146104b057610170565b8063451cc19111610122578063451cc1911461029e578063474f5a44146102da57806354d1f13d14610316578063578bcf35146103205780635aef467a1461035c57806361400c991461038c57610170565b806301ffc9a7146101a257806310098ad5146101de578063256929621461021a57806328d6183b146102245780634359d28a1461024e578063439fab911461027657610170565b3661017057005b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3480156101ad575f80fd5b506101c860048036038101906101c39190612017565b610650565b6040516101d5919061205c565b60405180910390f35b3480156101e9575f80fd5b5061020460048036038101906101ff91906120cf565b610799565b6040516102119190612112565b60405180910390f35b610222610804565b005b34801561022f575f80fd5b50610238610855565b604051610245919061213a565b60405180910390f35b348015610259575f80fd5b50610274600480360381019061026f9190612209565b61087c565b005b348015610281575f80fd5b5061029c600480360381019061029791906122dc565b610986565b005b3480156102a9575f80fd5b506102c460048036038101906102bf91906122dc565b610aab565b6040516102d19190612112565b60405180910390f35b3480156102e5575f80fd5b5061030060048036038101906102fb91906122dc565b610ab2565b60405161030d919061205c565b60405180910390f35b61031e610c98565b005b34801561032b575f80fd5b50610346600480360381019061034191906120cf565b610cd1565b6040516103539190612112565b60405180910390f35b610376600480360381019061037191906122dc565b610d16565b604051610383919061205c565b60405180910390f35b348015610397575f80fd5b506103b260048036038101906103ad919061237c565b611086565b6040516103bf919061205c565b60405180910390f35b6103d06110ea565b005b3480156103dd575f80fd5b506103f860048036038101906103f391906123f1565b6110fd565b6040516104059190612112565b60405180910390f35b348015610419575f80fd5b50610422611153565b60405161042f919061243e565b60405180910390f35b348015610443575f80fd5b5061045e600480360381019061045991906124ac565b61117b565b60405161046b919061213a565b60405180910390f35b34801561047f575f80fd5b5061049a600480360381019061049591906120cf565b611192565b6040516104a79190612112565b60405180910390f35b6104ca60048036038101906104c591906120cf565b6111ea565b005b3480156104d7575f80fd5b506104f260048036038101906104ed9190612583565b611228565b6040516104ff919061213a565b60405180910390f35b610522600480360381019061051d91906120cf565b61123d565b005b34801561052f575f80fd5b5061054a600480360381019061054591906123f1565b611266565b6040516105579190612112565b60405180910390f35b34801561056b575f80fd5b50610586600480360381019061058191906123f1565b6112e8565b6040516105939190612112565b60405180910390f35b3480156105a7575f80fd5b506105c260048036038101906105bd91906122dc565b6113c1565b6040516105cf919061205c565b60405180910390f35b3480156105e3575f80fd5b506105fe60048036038101906105f991906120cf565b61166d565b60405161060b919061205c565b60405180910390f35b34801561061f575f80fd5b5061063a600480360381019061063591906120cf565b6116fc565b6040516106479190612112565b60405180910390f35b5f7f2929d19c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061071a57507f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061078257507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610792575061079182611715565b5b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146107fb576107f6308373ffffffffffffffffffffffffffffffffffffffff1661178e90919063ffffffff16565b6107fd565b475b9050919050565b5f61080d6117c1565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f2929d19c00000000000000000000000000000000000000000000000000000000905090565b6108846117cb565b8181905084849050146108c3576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8484905081101561097f578282828181106108e3576108e2612619565b5b90506020020160208101906108f89190612670565b60025f87878581811061090e5761090d612619565b5b905060200201602081019061092391906120cf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555080806001019150506108c5565b5050505050565b5f61098f611802565b905080546003825580156109c15760018160011c14303b106109b85763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f83838101906109d29190612854565b90506109e0815f015161182b565b5f5b816020015151811015610a6f57600160025f84602001518481518110610a0b57610a0a612619565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555080806001019150506109e2565b50508015610aa6576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f92915050565b5f610abb6117cb565b5f8383810190610acb91906129ff565b90505f6002811115610ae057610adf612a46565b5b815f01516002811115610af657610af5612a46565b5b1480610b29575060016002811115610b1157610b10612a46565b5b815f01516002811115610b2757610b26612a46565b5b145b15610b82575f8160600151806020019051810190610b479190612ac0565b9050610b7c826020015183604001515f845f015114610b6957835f0151610b77565b610b768560200151610799565b5b611901565b50610c8c565b600280811115610b9557610b94612a46565b5b815f01516002811115610bab57610baa612a46565b5b03610c82575f8160600151806020019051810190610bc99190612be4565b9050610c7c82602001518360400151835f01515f856020015114610bf1578460200151610c72565b856020015173ffffffffffffffffffffffffffffffffffffffff1662fdd58e30875f01516040518363ffffffff1660e01b8152600401610c32929190612c2b565b602060405180830381865afa158015610c4d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c719190612c52565b5b8560400151611b19565b50610c8b565b5f915050610c92565b5b60019150505b92915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f808383810190610d2791906129ff565b90505f6002811115610d3c57610d3b612a46565b5b815f01516002811115610d5257610d51612a46565b5b03610dc8575f8160600151806020019051810190610d709190612ac0565b9050805f01513414610dc2578160200151815f01516040517fcece04c5000000000000000000000000000000000000000000000000000000008152600401610db9929190612c2b565b60405180910390fd5b5061107a565b60016002811115610ddc57610ddb612a46565b5b815f01516002811115610df257610df1612a46565b5b03610ecd575f8160600151806020019051810190610e109190612ac0565b9050610e4a826040015130835f0151856020015173ffffffffffffffffffffffffffffffffffffffff16611d45909392919063ffffffff16565b805f0151610e7b30846020015173ffffffffffffffffffffffffffffffffffffffff1661178e90919063ffffffff16565b1015610ec7578160200151815f01516040517fcece04c5000000000000000000000000000000000000000000000000000000008152600401610ebe929190612c2b565b60405180910390fd5b50611079565b600280811115610ee057610edf612a46565b5b815f01516002811115610ef657610ef5612a46565b5b0361106f575f8160600151806020019051810190610f149190612be4565b9050816020015173ffffffffffffffffffffffffffffffffffffffff1663f242432a836040015130845f0151856020015186604001516040518663ffffffff1660e01b8152600401610f6a959493929190612ccf565b5f604051808303815f87803b158015610f81575f80fd5b505af1158015610f93573d5f803e3d5ffd5b505050508060200151826020015173ffffffffffffffffffffffffffffffffffffffff1662fdd58e30845f01516040518363ffffffff1660e01b8152600401610fdd929190612c2b565b602060405180830381865afa158015610ff8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061101c9190612c52565b101561106957816020015181602001516040517fcece04c5000000000000000000000000000000000000000000000000000000008152600401611060929190612c2b565b60405180910390fd5b50611078565b5f915050611080565b5b5b60019150505b92915050565b5f805f90505b838390508110156110de576110c48484838181106110ad576110ac612619565b5b90506020028101906110bf9190612d33565b6113c1565b6110d1575f9150506110e4565b808060010191505061108c565b50600190505b92915050565b6110f26117cb565b6110fb5f611d9f565b565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2054905092915050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b5f63bc197c8160e01b905098975050505050505050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546111d983610799565b6111e39190612dc2565b9050919050565b6111f26117cb565b63389a75e1600c52805f526020600c20805442111561121857636f5e88185f526004601cfd5b5f81555061122581611d9f565b50565b5f63f23a6e6160e01b90509695505050505050565b6112456117cb565b8060601b61125a57637448fbae5f526004601cfd5b61126381611d9f565b50565b5f8273ffffffffffffffffffffffffffffffffffffffff1662fdd58e30846040518363ffffffff1660e01b81526004016112a1929190612c2b565b602060405180830381865afa1580156112bc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112e09190612c52565b905092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f20548373ffffffffffffffffffffffffffffffffffffffff1662fdd58e30856040518363ffffffff1660e01b8152600401611370929190612c2b565b602060405180830381865afa15801561138b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113af9190612c52565b6113b99190612dc2565b905092915050565b5f6113cb3361166d565b611401576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f838381019061141191906129ff565b90506001600281111561142757611426612a46565b5b815f0151600281111561143d5761143c612a46565b5b148061146f57505f600281111561145757611456612a46565b5b815f0151600281111561146d5761146c612a46565b5b145b1561150f575f816060015180602001905181019061148d9190612ac0565b90505f61149d8360200151610799565b905080825f015111156114f257826020015181835f01516040517f5c54305e0000000000000000000000000000000000000000000000000000000081526004016114e993929190612df5565b60405180910390fd5b61150883602001518460400151845f0151611901565b5050611661565b60028081111561152257611521612a46565b5b815f0151600281111561153857611537612a46565b5b03611657575f81606001518060200190518101906115569190612be4565b90505f826020015173ffffffffffffffffffffffffffffffffffffffff1662fdd58e30845f01516040518363ffffffff1660e01b815260040161159a929190612c2b565b602060405180830381865afa1580156115b5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115d99190612c52565b905080826020015111156116305782602001518183602001516040517f5c54305e00000000000000000000000000000000000000000000000000000000815260040161162793929190612df5565b60405180910390fd5b61165083602001518460400151845f015185602001518660400151611b19565b5050611660565b5f915050611667565b5b60019150505b92915050565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806116f557506116c6611153565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b5f63389a75e1600c52815f526020600c20549050919050565b5f7fea5ad34e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611787575061178682611e65565b5b9050919050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b5f6202a300905090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611800576382b429005f526004601cfd5b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b611833611ede565b156118ab577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780541561186d57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3506118fe565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b3068929eee149b4bd21268540361191f5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361199f578282826040517fbf182be800000000000000000000000000000000000000000000000000000000815260040161199693929190612e2a565b60405180910390fd5b6119a883610799565b8111156119f857826119b984610799565b826040517f5c54305e0000000000000000000000000000000000000000000000000000000081526004016119ef93929190612df5565b60405180910390fd5b805f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611a439190612dc2565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a8c57611a878282611ee2565b611ab8565b611ab782828573ffffffffffffffffffffffffffffffffffffffff16611eff9092919063ffffffff16565b5b8273ffffffffffffffffffffffffffffffffffffffff167fad4a9acf26d8bba7a8cf1a41160d59be042ee554578e256c98d2ab74cdd435428383604051611b00929190612c2b565b60405180910390a23868929eee149b4bd2126855505050565b3068929eee149b4bd212685403611b375763ab143c065f526004601cfd5b3068929eee149b4bd21268555f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611bb7578484836040517fbf182be8000000000000000000000000000000000000000000000000000000008152600401611bae93929190612e2a565b60405180910390fd5b611bc18584611266565b821115611c125784611bd38685611266565b836040517f5c54305e000000000000000000000000000000000000000000000000000000008152600401611c0993929190612df5565b60405180910390fd5b8160015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8581526020019081526020015f205f828254611c6d9190612dc2565b925050819055508473ffffffffffffffffffffffffffffffffffffffff1663f242432a30868686866040518663ffffffff1660e01b8152600401611cb5959493929190612ccf565b5f604051808303815f87803b158015611ccc575f80fd5b505af1158015611cde573d5f803e3d5ffd5b505050508473ffffffffffffffffffffffffffffffffffffffff167fad4a9acf26d8bba7a8cf1a41160d59be042ee554578e256c98d2ab74cdd435428584604051611d2a929190612c2b565b60405180910390a23868929eee149b4bd21268555050505050565b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af13d1560015f51141716611d9057637939f4245f526004601cfd5b5f606052806040525050505050565b611da7611ede565b15611e0c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550611e62565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ed75750611ed682611f48565b5b9050919050565b5f90565b5f385f3884865af1611efb5763b12d13eb5f526004601cfd5b5050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af13d1560015f51141716611f3f576390b8ec185f526004601cfd5b5f603452505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611ff681611fc2565b8114612000575f80fd5b50565b5f8135905061201181611fed565b92915050565b5f6020828403121561202c5761202b611fba565b5b5f61203984828501612003565b91505092915050565b5f8115159050919050565b61205681612042565b82525050565b5f60208201905061206f5f83018461204d565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61209e82612075565b9050919050565b6120ae81612094565b81146120b8575f80fd5b50565b5f813590506120c9816120a5565b92915050565b5f602082840312156120e4576120e3611fba565b5b5f6120f1848285016120bb565b91505092915050565b5f819050919050565b61210c816120fa565b82525050565b5f6020820190506121255f830184612103565b92915050565b61213481611fc2565b82525050565b5f60208201905061214d5f83018461212b565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261217457612173612153565b5b8235905067ffffffffffffffff81111561219157612190612157565b5b6020830191508360208202830111156121ad576121ac61215b565b5b9250929050565b5f8083601f8401126121c9576121c8612153565b5b8235905067ffffffffffffffff8111156121e6576121e5612157565b5b6020830191508360208202830111156122025761220161215b565b5b9250929050565b5f805f806040858703121561222157612220611fba565b5b5f85013567ffffffffffffffff81111561223e5761223d611fbe565b5b61224a8782880161215f565b9450945050602085013567ffffffffffffffff81111561226d5761226c611fbe565b5b612279878288016121b4565b925092505092959194509250565b5f8083601f84011261229c5761229b612153565b5b8235905067ffffffffffffffff8111156122b9576122b8612157565b5b6020830191508360018202830111156122d5576122d461215b565b5b9250929050565b5f80602083850312156122f2576122f1611fba565b5b5f83013567ffffffffffffffff81111561230f5761230e611fbe565b5b61231b85828601612287565b92509250509250929050565b5f8083601f84011261233c5761233b612153565b5b8235905067ffffffffffffffff81111561235957612358612157565b5b6020830191508360208202830111156123755761237461215b565b5b9250929050565b5f806020838503121561239257612391611fba565b5b5f83013567ffffffffffffffff8111156123af576123ae611fbe565b5b6123bb85828601612327565b92509250509250929050565b6123d0816120fa565b81146123da575f80fd5b50565b5f813590506123eb816123c7565b92915050565b5f806040838503121561240757612406611fba565b5b5f612414858286016120bb565b9250506020612425858286016123dd565b9150509250929050565b61243881612094565b82525050565b5f6020820190506124515f83018461242f565b92915050565b5f8083601f84011261246c5761246b612153565b5b8235905067ffffffffffffffff81111561248957612488612157565b5b6020830191508360208202830111156124a5576124a461215b565b5b9250929050565b5f805f805f805f8060a0898b0312156124c8576124c7611fba565b5b5f6124d58b828c016120bb565b98505060206124e68b828c016120bb565b975050604089013567ffffffffffffffff81111561250757612506611fbe565b5b6125138b828c01612457565b9650965050606089013567ffffffffffffffff81111561253657612535611fbe565b5b6125428b828c01612457565b9450945050608089013567ffffffffffffffff81111561256557612564611fbe565b5b6125718b828c01612287565b92509250509295985092959890939650565b5f805f805f8060a0878903121561259d5761259c611fba565b5b5f6125aa89828a016120bb565b96505060206125bb89828a016120bb565b95505060406125cc89828a016123dd565b94505060606125dd89828a016123dd565b935050608087013567ffffffffffffffff8111156125fe576125fd611fbe565b5b61260a89828a01612287565b92509250509295509295509295565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b61264f81612042565b8114612659575f80fd5b50565b5f8135905061266a81612646565b92915050565b5f6020828403121561268557612684611fba565b5b5f6126928482850161265c565b91505092915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6126e58261269f565b810181811067ffffffffffffffff82111715612704576127036126af565b5b80604052505050565b5f612716611fb1565b905061272282826126dc565b919050565b5f80fd5b5f67ffffffffffffffff821115612745576127446126af565b5b602082029050602081019050919050565b5f6127686127638461272b565b61270d565b9050808382526020820190506020840283018581111561278b5761278a61215b565b5b835b818110156127b457806127a088826120bb565b84526020840193505060208101905061278d565b5050509392505050565b5f82601f8301126127d2576127d1612153565b5b81356127e2848260208601612756565b91505092915050565b5f60408284031215612800576127ff61269b565b5b61280a604061270d565b90505f612819848285016120bb565b5f83015250602082013567ffffffffffffffff81111561283c5761283b612727565b5b612848848285016127be565b60208301525092915050565b5f6020828403121561286957612868611fba565b5b5f82013567ffffffffffffffff81111561288657612885611fbe565b5b612892848285016127eb565b91505092915050565b600381106128a7575f80fd5b50565b5f813590506128b88161289b565b92915050565b5f80fd5b5f67ffffffffffffffff8211156128dc576128db6126af565b5b6128e58261269f565b9050602081019050919050565b828183375f83830152505050565b5f61291261290d846128c2565b61270d565b90508281526020810184848401111561292e5761292d6128be565b5b6129398482856128f2565b509392505050565b5f82601f83011261295557612954612153565b5b8135612965848260208601612900565b91505092915050565b5f608082840312156129835761298261269b565b5b61298d608061270d565b90505f61299c848285016128aa565b5f8301525060206129af848285016120bb565b60208301525060406129c3848285016120bb565b604083015250606082013567ffffffffffffffff8111156129e7576129e6612727565b5b6129f384828501612941565b60608301525092915050565b5f60208284031215612a1457612a13611fba565b5b5f82013567ffffffffffffffff811115612a3157612a30611fbe565b5b612a3d8482850161296e565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f81519050612a81816123c7565b92915050565b5f60208284031215612a9c57612a9b61269b565b5b612aa6602061270d565b90505f612ab584828501612a73565b5f8301525092915050565b5f60208284031215612ad557612ad4611fba565b5b5f612ae284828501612a87565b91505092915050565b8281835e5f83830152505050565b5f612b0b612b06846128c2565b61270d565b905082815260208101848484011115612b2757612b266128be565b5b612b32848285612aeb565b509392505050565b5f82601f830112612b4e57612b4d612153565b5b8151612b5e848260208601612af9565b91505092915050565b5f60608284031215612b7c57612b7b61269b565b5b612b86606061270d565b90505f612b9584828501612a73565b5f830152506020612ba884828501612a73565b602083015250604082015167ffffffffffffffff811115612bcc57612bcb612727565b5b612bd884828501612b3a565b60408301525092915050565b5f60208284031215612bf957612bf8611fba565b5b5f82015167ffffffffffffffff811115612c1657612c15611fbe565b5b612c2284828501612b67565b91505092915050565b5f604082019050612c3e5f83018561242f565b612c4b6020830184612103565b9392505050565b5f60208284031215612c6757612c66611fba565b5b5f612c7484828501612a73565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f612ca182612c7d565b612cab8185612c87565b9350612cbb818560208601612aeb565b612cc48161269f565b840191505092915050565b5f60a082019050612ce25f83018861242f565b612cef602083018761242f565b612cfc6040830186612103565b612d096060830185612103565b8181036080830152612d1b8184612c97565b90509695505050505050565b5f80fd5b5f80fd5b5f80fd5b5f8083356001602003843603038112612d4f57612d4e612d27565b5b80840192508235915067ffffffffffffffff821115612d7157612d70612d2b565b5b602083019250600182023603831315612d8d57612d8c612d2f565b5b509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612dcc826120fa565b9150612dd7836120fa565b9250828201905080821115612def57612dee612d95565b5b92915050565b5f606082019050612e085f83018661242f565b612e156020830185612103565b612e226040830184612103565b949350505050565b5f606082019050612e3d5f83018661242f565b612e4a602083018561242f565b612e576040830184612103565b94935050505056fea26469706673582212208fdd0de22676ac839330c792a342ad2d9d581db8ca973f6ef498b774cdd2410264736f6c634300081a0033";
|
|
313
|
-
var J0 = { VITE_ALLOWLIST_INCENTIVE_BASE: "0x5Cd43Ea5541e1D6FF36962E6e6C11f0bf9d573d4", VITE_BOOST_REGISTRY_ADDRESS: "0x5cb8D869f2EE4e3D987Ac7bEB37D6812f5346DFC", VITE_CGDA_INCENTIVE_BASE: "0x147c3aBFF7Ab7867B206A8c652Cd59D3BE41Dc3E", VITE_ERC20_INCENTIVE_BASE: "0xDCfbb7767B281Fd2d39fc7c39A9f89dC61E81f0d", VITE_POINTS_INCENTIVE_BASE: "0x881c78Ba2d10894a8f4f6996C0FB5bA8AE627AAb", VITE_SIMPLE_DENYLIST_BASE: "0x41A7c1aCC75BEccD11B8F586510759883092460F", VITE_BOOST_CORE_ADDRESS: "0xF4905b327904E5797840fd8cD7F300001a34122f", VITE_SIMPLE_ALLOWLIST_BASE: "0x11556926AaA421e96e06a7A679C680813122db7D", VITE_ERC20_VARIABLE_INCENTIVE_BASE: "0xA7b6c33828693d431C64e59A27d985c4DfB19B95", VITE_MANAGED_BUDGET_BASE: "0x0b51f997fa15867134fA34366FCeA63Bee93C087", VITE_SIGNER_VALIDATOR_BASE: "0x749c6fDd62727E11e3200571de7CfBb61DFbA93b", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
314
|
-
function Q0(c) {
|
|
315
|
-
return c.tokenId === void 0;
|
|
316
|
-
}
|
|
317
|
-
function X0(c) {
|
|
318
|
-
return c.tokenId !== void 0;
|
|
319
|
-
}
|
|
320
|
-
function i(c) {
|
|
321
|
-
if (Q0(c))
|
|
322
|
-
return t(c);
|
|
323
|
-
if (X0(c))
|
|
324
|
-
return O(c);
|
|
325
|
-
throw new m(c);
|
|
326
|
-
}
|
|
327
|
-
const A = class A extends l {
|
|
328
|
-
constructor() {
|
|
329
|
-
super(...arguments), this.abi = g;
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Allocates assets to the budget.
|
|
333
|
-
* The caller must have already approved the contract to transfer the asset
|
|
334
|
-
* If the asset transfer fails, the allocation will revert
|
|
335
|
-
*
|
|
336
|
-
* @public
|
|
337
|
-
* @async
|
|
338
|
-
* @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
|
|
339
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'allocate'>} [params]
|
|
340
|
-
* @returns {Promise<boolean>} - True if the allocation was successful
|
|
341
|
-
*/
|
|
342
|
-
async allocate(f, b) {
|
|
343
|
-
return this.awaitResult(this.allocateRaw(f, b));
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Allocates assets to the budget.
|
|
347
|
-
* The caller must have already approved the contract to transfer the asset
|
|
348
|
-
* If the asset transfer fails, the allocation will revert
|
|
349
|
-
*
|
|
350
|
-
* @public
|
|
351
|
-
* @async
|
|
352
|
-
* @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
|
|
353
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'allocate'>} [params]
|
|
354
|
-
* @returns {Promise<boolean>} - True if the allocation was successful
|
|
355
|
-
*/
|
|
356
|
-
async allocateRaw(f, b) {
|
|
357
|
-
const { request: a, result: e } = await Q(
|
|
358
|
-
this._config,
|
|
359
|
-
{
|
|
360
|
-
address: this.assertValidAddress(),
|
|
361
|
-
args: [i(f)],
|
|
362
|
-
...this.optionallyAttachAccount(),
|
|
363
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
364
|
-
...b
|
|
365
|
-
}
|
|
366
|
-
);
|
|
367
|
-
return { hash: await X(this._config, a), result: e };
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Clawbacks assets from the budget.
|
|
371
|
-
* Only the owner can directly clawback assets from the budget
|
|
372
|
-
* If the amount is zero, the entire balance of the asset will be transferred to the receiver
|
|
373
|
-
* If the asset transfer fails, the reclamation will revert
|
|
374
|
-
*
|
|
375
|
-
* @public
|
|
376
|
-
* @async
|
|
377
|
-
* @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
|
|
378
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'clawback'>} [params]
|
|
379
|
-
* @returns {Promise<boolean>} - True if the request was successful
|
|
380
|
-
*/
|
|
381
|
-
async clawback(f, b) {
|
|
382
|
-
return this.awaitResult(this.clawbackRaw(f, b));
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Clawbacks assets from the budget.
|
|
386
|
-
* Only the owner can directly clawback assets from the budget
|
|
387
|
-
* If the amount is zero, the entire balance of the asset will be transferred to the receiver
|
|
388
|
-
* If the asset transfer fails, the reclamation will revert
|
|
389
|
-
*
|
|
390
|
-
* @public
|
|
391
|
-
* @async
|
|
392
|
-
* @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
|
|
393
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'clawback'>} [params]
|
|
394
|
-
* @returns {Promise<boolean>} - True if the request was successful
|
|
395
|
-
*/
|
|
396
|
-
async clawbackRaw(f, b) {
|
|
397
|
-
const { request: a, result: e } = await Z(
|
|
398
|
-
this._config,
|
|
399
|
-
{
|
|
400
|
-
address: this.assertValidAddress(),
|
|
401
|
-
args: [i(f)],
|
|
402
|
-
...this.optionallyAttachAccount(),
|
|
403
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
404
|
-
...b
|
|
405
|
-
}
|
|
406
|
-
);
|
|
407
|
-
return { hash: await f0(this._config, a), result: e };
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* Disburses assets from the budget to a single recipient
|
|
411
|
-
* If the asset transfer fails, the disbursement will revert
|
|
412
|
-
*
|
|
413
|
-
* @public
|
|
414
|
-
* @async
|
|
415
|
-
* @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
|
|
416
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'disburse'>} [params]
|
|
417
|
-
* @returns {Promise<boolean>} - True if the disbursement was successful
|
|
418
|
-
*/
|
|
419
|
-
async disburse(f, b) {
|
|
420
|
-
return this.awaitResult(this.disburseRaw(f, b));
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* Disburses assets from the budget to a single recipient
|
|
424
|
-
* If the asset transfer fails, the disbursement will revert
|
|
425
|
-
*
|
|
426
|
-
* @public
|
|
427
|
-
* @async
|
|
428
|
-
* @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
|
|
429
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'disburse'>} [params]
|
|
430
|
-
* @returns {Promise<boolean>} - True if the disbursement was successful
|
|
431
|
-
*/
|
|
432
|
-
async disburseRaw(f, b) {
|
|
433
|
-
const { request: a, result: e } = await b0(
|
|
434
|
-
this._config,
|
|
435
|
-
{
|
|
436
|
-
address: this.assertValidAddress(),
|
|
437
|
-
args: [i(f)],
|
|
438
|
-
...this.optionallyAttachAccount(),
|
|
439
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
440
|
-
...b
|
|
441
|
-
}
|
|
442
|
-
);
|
|
443
|
-
return { hash: await a0(this._config, a), result: e };
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Disburses assets from the budget to multiple recipients
|
|
447
|
-
*
|
|
448
|
-
* @public
|
|
449
|
-
* @async
|
|
450
|
-
* @param {Array<FungibleTransferPayload | ERC1155TransferPayload>} transfers
|
|
451
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'disburseBatch'>} [params]
|
|
452
|
-
* @returns {Promise<boolean>} - True if all disbursements were successful
|
|
453
|
-
*/
|
|
454
|
-
async disburseBatch(f, b) {
|
|
455
|
-
return this.awaitResult(this.disburseBatchRaw(f, b));
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* Disburses assets from the budget to multiple recipients
|
|
459
|
-
*
|
|
460
|
-
* @public
|
|
461
|
-
* @async
|
|
462
|
-
* @param {Array<FungibleTransferPayload | ERC1155TransferPayload>} transfers
|
|
463
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'disburseBatch'>} [params]
|
|
464
|
-
* @returns {Promise<boolean>} - True if all disbursements were successful
|
|
465
|
-
*/
|
|
466
|
-
async disburseBatchRaw(f, b) {
|
|
467
|
-
const { request: a, result: e } = await e0(
|
|
468
|
-
this._config,
|
|
469
|
-
{
|
|
470
|
-
address: this.assertValidAddress(),
|
|
471
|
-
args: [f.map(i)],
|
|
472
|
-
...this.optionallyAttachAccount(),
|
|
473
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
474
|
-
...b
|
|
475
|
-
}
|
|
476
|
-
);
|
|
477
|
-
return { hash: await d0(this._config, a), result: e };
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* Set the authorized status of the given accounts
|
|
481
|
-
* The mechanism for managing authorization is left to the implementing contract
|
|
482
|
-
*
|
|
483
|
-
* @public
|
|
484
|
-
* @async
|
|
485
|
-
* @param {Address[]} addresses - The accounts to authorize or deauthorize
|
|
486
|
-
* @param {boolean[]} allowed - The authorization status for the given accounts
|
|
487
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'setAuthorized'>} [params]
|
|
488
|
-
* @returns {Promise<void>}
|
|
489
|
-
*/
|
|
490
|
-
async setAuthorized(f, b, a) {
|
|
491
|
-
return this.awaitResult(this.setAuthorizedRaw(f, b, a));
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Set the authorized status of the given accounts
|
|
495
|
-
* The mechanism for managing authorization is left to the implementing contract
|
|
496
|
-
*
|
|
497
|
-
* @public
|
|
498
|
-
* @async
|
|
499
|
-
* @param {Address[]} addresses - The accounts to authorize or deauthorize
|
|
500
|
-
* @param {boolean[]} allowed - The authorization status for the given accounts
|
|
501
|
-
* @param {?WriteParams<typeof simpleBudgetAbi, 'setAuthorized'>} [params]
|
|
502
|
-
* @returns {Promise<void>}
|
|
503
|
-
*/
|
|
504
|
-
async setAuthorizedRaw(f, b, a) {
|
|
505
|
-
const { request: e, result: d } = await c0(
|
|
506
|
-
this._config,
|
|
507
|
-
{
|
|
508
|
-
address: this.assertValidAddress(),
|
|
509
|
-
args: [f, b],
|
|
510
|
-
...this.optionallyAttachAccount(),
|
|
511
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
512
|
-
...a
|
|
513
|
-
}
|
|
514
|
-
);
|
|
515
|
-
return { hash: await s0(this._config, e), result: d };
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Check if the given account is authorized to use the budget
|
|
519
|
-
*
|
|
520
|
-
* @public
|
|
521
|
-
* @param {Address} account
|
|
522
|
-
* @param {?ReadParams<typeof simpleBudgetAbi, 'isAuthorized'>} [params]
|
|
523
|
-
* @returns {Promise<boolean>} - True if the account is authorized
|
|
524
|
-
*/
|
|
525
|
-
isAuthorized(f, b) {
|
|
526
|
-
return t0(this._config, {
|
|
527
|
-
address: this.assertValidAddress(),
|
|
528
|
-
args: [f],
|
|
529
|
-
...this.optionallyAttachAccount(),
|
|
530
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
531
|
-
...b
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
|
-
* Get the owner of the budget
|
|
536
|
-
*
|
|
537
|
-
* @public
|
|
538
|
-
* @param {?ReadParams<typeof simpleBudgetAbi, 'owner'>} [params]
|
|
539
|
-
* @returns {Promise<Address>}
|
|
540
|
-
*/
|
|
541
|
-
owner(f) {
|
|
542
|
-
return r0(this._config, {
|
|
543
|
-
address: this.assertValidAddress(),
|
|
544
|
-
args: [],
|
|
545
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
546
|
-
...f
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* Get the total amount of assets allocated to the budget, including any that have been distributed
|
|
551
|
-
* If a tokenId is provided, get the total amount of ERC1155 assets allocated to the budget, including any that have been distributed
|
|
552
|
-
*
|
|
553
|
-
* @public
|
|
554
|
-
* @param {Address} asset - The address of the asset
|
|
555
|
-
* @param {?(bigint | undefined)} [tokenId] - The ID of the token
|
|
556
|
-
* @param {?ReadParams<typeof simpleBudgetAbi, 'total'>} [params]
|
|
557
|
-
* @returns {Promise<bigint>} - The total amount of assets
|
|
558
|
-
*/
|
|
559
|
-
total(f, b, a) {
|
|
560
|
-
return i0(this._config, {
|
|
561
|
-
address: this.assertValidAddress(),
|
|
562
|
-
args: b ? [f, b] : [f],
|
|
563
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
564
|
-
...a
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* Get the amount of assets available for distribution from the budget.
|
|
569
|
-
* If a tokenId is provided, get the amount of ERC1155 assets available for distribution from the budget
|
|
570
|
-
*
|
|
571
|
-
* @public
|
|
572
|
-
* @param {Address} asset
|
|
573
|
-
* @param {?(bigint | undefined)} [tokenId]
|
|
574
|
-
* @param {?ReadParams<typeof simpleBudgetAbi, 'available'>} [params]
|
|
575
|
-
* @returns {Promise<bigint>} - The amount of assets available
|
|
576
|
-
*/
|
|
577
|
-
available(f, b, a) {
|
|
578
|
-
return o0(this._config, {
|
|
579
|
-
address: this.assertValidAddress(),
|
|
580
|
-
args: b ? [f, b] : [f],
|
|
581
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
582
|
-
...a
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* Get the amount of assets that have been distributed from the budget.
|
|
587
|
-
* If a tokenId is provided, get the amount of ERC1155 assets that have been distributed from the budget
|
|
588
|
-
*
|
|
589
|
-
* @public
|
|
590
|
-
* @param {Address} asset
|
|
591
|
-
* @param {?(bigint | undefined)} [tokenId]
|
|
592
|
-
* @param {?ReadParams<typeof simpleBudgetAbi, 'distributed'>} [params]
|
|
593
|
-
* @returns {Promise<bigint>} - The amount of assets distributed
|
|
594
|
-
*/
|
|
595
|
-
distributed(f, b, a) {
|
|
596
|
-
return n0(this._config, {
|
|
597
|
-
address: this.assertValidAddress(),
|
|
598
|
-
args: b ? [f, b] : [f],
|
|
599
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
600
|
-
...a
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
/**
|
|
604
|
-
* @inheritdoc
|
|
605
|
-
*
|
|
606
|
-
* @public
|
|
607
|
-
* @param {?SimpleBudgetPayload} [_payload]
|
|
608
|
-
* @param {?DeployableOptions} [_options]
|
|
609
|
-
* @returns {GenericDeployableParams}
|
|
610
|
-
*/
|
|
611
|
-
buildParameters(f, b) {
|
|
612
|
-
var d;
|
|
613
|
-
const [a, e] = this.validateDeploymentConfig(
|
|
614
|
-
f,
|
|
615
|
-
b
|
|
616
|
-
);
|
|
617
|
-
if (!a.owner || a.owner === x) {
|
|
618
|
-
const s = e.account ? e.account.address : e.config ? w(e.config).address : (d = this._account) == null ? void 0 : d.address;
|
|
619
|
-
if (s)
|
|
620
|
-
a.owner = s;
|
|
621
|
-
else
|
|
622
|
-
throw new R();
|
|
623
|
-
}
|
|
624
|
-
return {
|
|
625
|
-
abi: g,
|
|
626
|
-
bytecode: j0,
|
|
627
|
-
args: [P(a)],
|
|
628
|
-
...this.optionallyAttachAccount(e.account)
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
A.base = J0.VITE_SIMPLE_BUDGET_BASE, A.registryType = r.BUDGET;
|
|
633
|
-
let C = A;
|
|
634
|
-
const Z0 = "0x6080604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6125c3806100bd5f395ff3fe60806040526004361061014e575f3560e01c80635aef467a116100b5578063efbe1c1c1161006e578063efbe1c1c1461049b578063f04e283e146104c5578063f2fde38b146104e1578063fa4ca9b1146104fd578063fe9fbb8014610539578063fee81cf41461057557610155565b80635aef467a1461039557806361400c99146103c5578063715018a6146104015780638da5cb5b1461040b578063be9a655514610435578063d2514e841461045f57610155565b80634359d28a116101075780634359d28a14610287578063439fab91146102af578063451cc191146102d7578063474f5a441461031357806354d1f13d1461034f578063578bcf351461035957610155565b806301ffc9a7146101875780630fb5a6b4146101c357806310098ad5146101ed57806313d033c014610229578063256929621461025357806328d6183b1461025d57610155565b3661015557005b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b348015610192575f80fd5b506101ad60048036038101906101a89190611986565b6105b1565b6040516101ba91906119cb565b60405180910390f35b3480156101ce575f80fd5b506101d761062a565b6040516101e49190611a06565b60405180910390f35b3480156101f8575f80fd5b50610213600480360381019061020e9190611a79565b610643565b6040516102209190611abc565b60405180910390f35b348015610234575f80fd5b5061023d61069d565b60405161024a9190611a06565b60405180910390f35b61025b6106b6565b005b348015610268575f80fd5b50610271610707565b60405161027e9190611ae4565b60405180910390f35b348015610292575f80fd5b506102ad60048036038101906102a89190611bb3565b61072e565b005b3480156102ba575f80fd5b506102d560048036038101906102d09190611c86565b610838565b005b3480156102e2575f80fd5b506102fd60048036038101906102f89190611c86565b6109e0565b60405161030a9190611abc565b60405180910390f35b34801561031e575f80fd5b5061033960048036038101906103349190611c86565b6109e7565b60405161034691906119cb565b60405180910390f35b610357610acc565b005b348015610364575f80fd5b5061037f600480360381019061037a9190611a79565b610b05565b60405161038c9190611abc565b60405180910390f35b6103af60048036038101906103aa9190611c86565b610b4b565b6040516103bc91906119cb565b60405180910390f35b3480156103d0575f80fd5b506103eb60048036038101906103e69190611d26565b610d18565b6040516103f891906119cb565b60405180910390f35b610409610d7c565b005b348015610416575f80fd5b5061041f610d8f565b60405161042c9190611d80565b60405180910390f35b348015610440575f80fd5b50610449610db7565b6040516104569190611a06565b60405180910390f35b34801561046a575f80fd5b5061048560048036038101906104809190611a79565b610dce565b6040516104929190611abc565b60405180910390f35b3480156104a6575f80fd5b506104af610e86565b6040516104bc9190611abc565b60405180910390f35b6104df60048036038101906104da9190611a79565b610eca565b005b6104fb60048036038101906104f69190611a79565b610f08565b005b348015610508575f80fd5b50610523600480360381019061051e9190611c86565b610f31565b60405161053091906119cb565b60405180910390f35b348015610544575f80fd5b5061055f600480360381019061055a9190611a79565b611030565b60405161056c91906119cb565b60405180910390f35b348015610580575f80fd5b5061059b60048036038101906105969190611a79565b6110bf565b6040516105a89190611abc565b60405180910390f35b5f7f64683da1000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106235750610622826110d8565b5b9050919050565b5f60089054906101000a900467ffffffffffffffff1681565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461068c8342611151565b6106969190611dc6565b9050919050565b5f60109054906101000a900467ffffffffffffffff1681565b5f6106bf611213565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f64683da100000000000000000000000000000000000000000000000000000000905090565b61073661121d565b818190508484905014610775576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848490508110156108315782828281811061079557610794611df9565b5b90506020020160208101906107aa9190611e50565b60025f8787858181106107c0576107bf611df9565b5b90506020020160208101906107d59190611a79565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610777565b5050505050565b5f610841611254565b905080546003825580156108735760018160011c14303b1061086a5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f8383810190610884919061209a565b905080604001515f806101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080606001515f60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080608001515f60106101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550610915815f015161127d565b5f5b8160200151518110156109a457600160025f846020015184815181106109405761093f611df9565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610917565b505080156109db576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f92915050565b5f6109f061121d565b5f8383810190610a009190612245565b90505f6002811115610a1557610a1461228c565b5b815f01516002811115610a2b57610a2a61228c565b5b1480610a5e575060016002811115610a4657610a4561228c565b5b815f01516002811115610a5c57610a5b61228c565b5b145b15610ab7575f8160600151806020019051810190610a7c919061231c565b9050610ab1826020015183604001515f845f015114610a9e57835f0151610aac565b610aab8560200151610643565b5b611353565b50610ac0565b5f915050610ac6565b60019150505b92915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f808383810190610b5c9190612245565b90505f6002811115610b7157610b7061228c565b5b815f01516002811115610b8757610b8661228c565b5b03610bfd575f8160600151806020019051810190610ba5919061231c565b9050805f01513414610bf7578160200151815f01516040517fcece04c5000000000000000000000000000000000000000000000000000000008152600401610bee929190612347565b60405180910390fd5b50610d0c565b60016002811115610c1157610c1061228c565b5b815f01516002811115610c2757610c2661228c565b5b03610d02575f8160600151806020019051810190610c45919061231c565b9050610c7f826040015130835f0151856020015173ffffffffffffffffffffffffffffffffffffffff1661156c909392919063ffffffff16565b805f0151610cb030846020015173ffffffffffffffffffffffffffffffffffffffff166115c690919063ffffffff16565b1015610cfc578160200151815f01516040517fcece04c5000000000000000000000000000000000000000000000000000000008152600401610cf3929190612347565b60405180910390fd5b50610d0b565b5f915050610d12565b5b60019150505b92915050565b5f805f90505b83839050811015610d7057610d56848483818110610d3f57610d3e611df9565b5b9050602002810190610d51919061237a565b610f31565b610d63575f915050610d76565b8080600101915050610d1e565b50600190505b92915050565b610d8461121d565b610d8d5f6115f9565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b5f8054906101000a900467ffffffffffffffff1681565b5f805f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610e3157610e2c308473ffffffffffffffffffffffffffffffffffffffff166115c690919063ffffffff16565b610e33565b475b90508060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610e7e91906123dc565b915050919050565b5f8060089054906101000a900467ffffffffffffffff165f8054906101000a900467ffffffffffffffff16610ebb919061240f565b67ffffffffffffffff16905090565b610ed261121d565b63389a75e1600c52805f526020600c208054421115610ef857636f5e88185f526004601cfd5b5f815550610f05816115f9565b50565b610f1061121d565b8060601b610f2557637448fbae5f526004601cfd5b610f2e816115f9565b50565b5f610f3b33611030565b610f71576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8383810190610f819190612245565b905060016002811115610f9757610f9661228c565b5b815f01516002811115610fad57610fac61228c565b5b1480610fdf57505f6002811115610fc757610fc661228c565b5b815f01516002811115610fdd57610fdc61228c565b5b145b1561101b575f8160600151806020019051810190610ffd919061231c565b905061101582602001518360400151835f0151611353565b50611024565b5f91505061102a565b60019150505b92915050565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806110b85750611089610d8f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b5f63389a75e1600c52815f526020600c20549050919050565b5f7fea5ad34e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061114a5750611149826116bf565b5b9050919050565b5f805f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146111b4576111af308573ffffffffffffffffffffffffffffffffffffffff166115c690919063ffffffff16565b6111b6565b475b905061120a60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548261120491906123dc565b84611738565b91505092915050565b5f6202a300905090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611252576382b429005f526004601cfd5b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b61128561184d565b156112fd577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278054156112bf57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a350611350565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b3068929eee149b4bd2126854036113715763ab143c065f526004601cfd5b3068929eee149b4bd21268555f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113f1578282826040517fbf182be80000000000000000000000000000000000000000000000000000000081526004016113e89392919061244a565b60405180910390fd5b6113fa83610643565b81111561144a578261140b84610643565b826040517f5c54305e0000000000000000000000000000000000000000000000000000000081526004016114419392919061247f565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461149691906123dc565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036114df576114da8282611851565b61150b565b61150a82828573ffffffffffffffffffffffffffffffffffffffff1661186e9092919063ffffffff16565b5b8273ffffffffffffffffffffffffffffffffffffffff167fad4a9acf26d8bba7a8cf1a41160d59be042ee554578e256c98d2ab74cdd435428383604051611553929190612347565b60405180910390a23868929eee149b4bd2126855505050565b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af13d1560015f511417166115b757637939f4245f526004601cfd5b5f606052806040525050505050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b61160161184d565b15611666577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b82178155506116bc565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117315750611730826118b7565b5b9050919050565b5f8060109054906101000a900467ffffffffffffffff165f8054906101000a900467ffffffffffffffff1661176d919061240f565b67ffffffffffffffff168267ffffffffffffffff161015611790575f9050611847565b5f60089054906101000a900467ffffffffffffffff165f8054906101000a900467ffffffffffffffff166117c4919061240f565b67ffffffffffffffff168267ffffffffffffffff16106117e657829050611847565b5f60089054906101000a900467ffffffffffffffff1667ffffffffffffffff165f8054906101000a900467ffffffffffffffff168361182591906124b4565b67ffffffffffffffff168461183a91906124ef565b611844919061255d565b90505b92915050565b5f90565b5f385f3884865af161186a5763b12d13eb5f526004601cfd5b5050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af13d1560015f511417166118ae576390b8ec185f526004601cfd5b5f603452505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61196581611931565b811461196f575f80fd5b50565b5f813590506119808161195c565b92915050565b5f6020828403121561199b5761199a611929565b5b5f6119a884828501611972565b91505092915050565b5f8115159050919050565b6119c5816119b1565b82525050565b5f6020820190506119de5f8301846119bc565b92915050565b5f67ffffffffffffffff82169050919050565b611a00816119e4565b82525050565b5f602082019050611a195f8301846119f7565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611a4882611a1f565b9050919050565b611a5881611a3e565b8114611a62575f80fd5b50565b5f81359050611a7381611a4f565b92915050565b5f60208284031215611a8e57611a8d611929565b5b5f611a9b84828501611a65565b91505092915050565b5f819050919050565b611ab681611aa4565b82525050565b5f602082019050611acf5f830184611aad565b92915050565b611ade81611931565b82525050565b5f602082019050611af75f830184611ad5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611b1e57611b1d611afd565b5b8235905067ffffffffffffffff811115611b3b57611b3a611b01565b5b602083019150836020820283011115611b5757611b56611b05565b5b9250929050565b5f8083601f840112611b7357611b72611afd565b5b8235905067ffffffffffffffff811115611b9057611b8f611b01565b5b602083019150836020820283011115611bac57611bab611b05565b5b9250929050565b5f805f8060408587031215611bcb57611bca611929565b5b5f85013567ffffffffffffffff811115611be857611be761192d565b5b611bf487828801611b09565b9450945050602085013567ffffffffffffffff811115611c1757611c1661192d565b5b611c2387828801611b5e565b925092505092959194509250565b5f8083601f840112611c4657611c45611afd565b5b8235905067ffffffffffffffff811115611c6357611c62611b01565b5b602083019150836001820283011115611c7f57611c7e611b05565b5b9250929050565b5f8060208385031215611c9c57611c9b611929565b5b5f83013567ffffffffffffffff811115611cb957611cb861192d565b5b611cc585828601611c31565b92509250509250929050565b5f8083601f840112611ce657611ce5611afd565b5b8235905067ffffffffffffffff811115611d0357611d02611b01565b5b602083019150836020820283011115611d1f57611d1e611b05565b5b9250929050565b5f8060208385031215611d3c57611d3b611929565b5b5f83013567ffffffffffffffff811115611d5957611d5861192d565b5b611d6585828601611cd1565b92509250509250929050565b611d7a81611a3e565b82525050565b5f602082019050611d935f830184611d71565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611dd082611aa4565b9150611ddb83611aa4565b9250828203905081811115611df357611df2611d99565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b611e2f816119b1565b8114611e39575f80fd5b50565b5f81359050611e4a81611e26565b92915050565b5f60208284031215611e6557611e64611929565b5b5f611e7284828501611e3c565b91505092915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611ec582611e7f565b810181811067ffffffffffffffff82111715611ee457611ee3611e8f565b5b80604052505050565b5f611ef6611920565b9050611f028282611ebc565b919050565b5f80fd5b5f67ffffffffffffffff821115611f2557611f24611e8f565b5b602082029050602081019050919050565b5f611f48611f4384611f0b565b611eed565b90508083825260208201905060208402830185811115611f6b57611f6a611b05565b5b835b81811015611f945780611f808882611a65565b845260208401935050602081019050611f6d565b5050509392505050565b5f82601f830112611fb257611fb1611afd565b5b8135611fc2848260208601611f36565b91505092915050565b611fd4816119e4565b8114611fde575f80fd5b50565b5f81359050611fef81611fcb565b92915050565b5f60a0828403121561200a57612009611e7b565b5b61201460a0611eed565b90505f61202384828501611a65565b5f83015250602082013567ffffffffffffffff81111561204657612045611f07565b5b61205284828501611f9e565b602083015250604061206684828501611fe1565b604083015250606061207a84828501611fe1565b606083015250608061208e84828501611fe1565b60808301525092915050565b5f602082840312156120af576120ae611929565b5b5f82013567ffffffffffffffff8111156120cc576120cb61192d565b5b6120d884828501611ff5565b91505092915050565b600381106120ed575f80fd5b50565b5f813590506120fe816120e1565b92915050565b5f80fd5b5f67ffffffffffffffff82111561212257612121611e8f565b5b61212b82611e7f565b9050602081019050919050565b828183375f83830152505050565b5f61215861215384612108565b611eed565b90508281526020810184848401111561217457612173612104565b5b61217f848285612138565b509392505050565b5f82601f83011261219b5761219a611afd565b5b81356121ab848260208601612146565b91505092915050565b5f608082840312156121c9576121c8611e7b565b5b6121d36080611eed565b90505f6121e2848285016120f0565b5f8301525060206121f584828501611a65565b602083015250604061220984828501611a65565b604083015250606082013567ffffffffffffffff81111561222d5761222c611f07565b5b61223984828501612187565b60608301525092915050565b5f6020828403121561225a57612259611929565b5b5f82013567ffffffffffffffff8111156122775761227661192d565b5b612283848285016121b4565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6122c281611aa4565b81146122cc575f80fd5b50565b5f815190506122dd816122b9565b92915050565b5f602082840312156122f8576122f7611e7b565b5b6123026020611eed565b90505f612311848285016122cf565b5f8301525092915050565b5f6020828403121561233157612330611929565b5b5f61233e848285016122e3565b91505092915050565b5f60408201905061235a5f830185611d71565b6123676020830184611aad565b9392505050565b5f80fd5b5f80fd5b5f80fd5b5f80833560016020038436030381126123965761239561236e565b5b80840192508235915067ffffffffffffffff8211156123b8576123b7612372565b5b6020830192506001820236038313156123d4576123d3612376565b5b509250929050565b5f6123e682611aa4565b91506123f183611aa4565b925082820190508082111561240957612408611d99565b5b92915050565b5f612419826119e4565b9150612424836119e4565b9250828201905067ffffffffffffffff81111561244457612443611d99565b5b92915050565b5f60608201905061245d5f830186611d71565b61246a6020830185611d71565b6124776040830184611aad565b949350505050565b5f6060820190506124925f830186611d71565b61249f6020830185611aad565b6124ac6040830184611aad565b949350505050565b5f6124be826119e4565b91506124c9836119e4565b9250828203905067ffffffffffffffff8111156124e9576124e8611d99565b5b92915050565b5f6124f982611aa4565b915061250483611aa4565b925082820261251281611aa4565b9150828204841483151761252957612528611d99565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61256782611aa4565b915061257283611aa4565b92508261258257612581612530565b5b82820490509291505056fea26469706673582212204de4cb5d7d5e06fceaccdca94ad4ac5583c3395c7ebc0912521a99a8b45c7c4964736f6c634300081a0033";
|
|
635
|
-
var ff = { VITE_ALLOWLIST_INCENTIVE_BASE: "0x5Cd43Ea5541e1D6FF36962E6e6C11f0bf9d573d4", VITE_BOOST_REGISTRY_ADDRESS: "0x5cb8D869f2EE4e3D987Ac7bEB37D6812f5346DFC", VITE_CGDA_INCENTIVE_BASE: "0x147c3aBFF7Ab7867B206A8c652Cd59D3BE41Dc3E", VITE_ERC20_INCENTIVE_BASE: "0xDCfbb7767B281Fd2d39fc7c39A9f89dC61E81f0d", VITE_POINTS_INCENTIVE_BASE: "0x881c78Ba2d10894a8f4f6996C0FB5bA8AE627AAb", VITE_SIMPLE_DENYLIST_BASE: "0x41A7c1aCC75BEccD11B8F586510759883092460F", VITE_BOOST_CORE_ADDRESS: "0xF4905b327904E5797840fd8cD7F300001a34122f", VITE_SIMPLE_ALLOWLIST_BASE: "0x11556926AaA421e96e06a7A679C680813122db7D", VITE_ERC20_VARIABLE_INCENTIVE_BASE: "0xA7b6c33828693d431C64e59A27d985c4DfB19B95", VITE_MANAGED_BUDGET_BASE: "0x0b51f997fa15867134fA34366FCeA63Bee93C087", VITE_SIGNER_VALIDATOR_BASE: "0x749c6fDd62727E11e3200571de7CfBb61DFbA93b", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
636
|
-
const E = class E extends l {
|
|
637
|
-
constructor() {
|
|
638
|
-
super(...arguments), this.abi = B;
|
|
639
|
-
}
|
|
640
|
-
/**
|
|
641
|
-
* Get the owner of the budget
|
|
642
|
-
*
|
|
643
|
-
* @public
|
|
644
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'owner'>} [params]
|
|
645
|
-
* @returns {Promise<Address>}
|
|
646
|
-
*/
|
|
647
|
-
owner(f) {
|
|
648
|
-
return A0(this._config, {
|
|
649
|
-
address: this.assertValidAddress(),
|
|
650
|
-
args: [],
|
|
651
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
652
|
-
...f
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
* The timestamp at which the vesting schedule begins
|
|
657
|
-
*
|
|
658
|
-
* @public
|
|
659
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'start'>} [params]
|
|
660
|
-
* @returns {*}
|
|
661
|
-
*/
|
|
662
|
-
start(f) {
|
|
663
|
-
return E0(this._config, {
|
|
664
|
-
address: this.assertValidAddress(),
|
|
665
|
-
args: [],
|
|
666
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
667
|
-
...f
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
/**
|
|
671
|
-
* The duration of the vesting schedule (in seconds)
|
|
672
|
-
*
|
|
673
|
-
* @public
|
|
674
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'duration'>} [params]
|
|
675
|
-
* @returns {*}
|
|
676
|
-
*/
|
|
677
|
-
duration(f) {
|
|
678
|
-
return h0(this._config, {
|
|
679
|
-
address: this.assertValidAddress(),
|
|
680
|
-
args: [],
|
|
681
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
682
|
-
...f
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* The duration of the cliff period (in seconds)
|
|
687
|
-
*
|
|
688
|
-
* @public
|
|
689
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'cliff'>} [params]
|
|
690
|
-
* @returns {*}
|
|
691
|
-
*/
|
|
692
|
-
cliff(f) {
|
|
693
|
-
return l0(this._config, {
|
|
694
|
-
address: this.assertValidAddress(),
|
|
695
|
-
args: [],
|
|
696
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
697
|
-
...f
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* Allocates assets to the budget.
|
|
702
|
-
* The caller must have already approved the contract to transfer the asset
|
|
703
|
-
* If the asset transfer fails, the allocation will revert
|
|
704
|
-
*
|
|
705
|
-
* @public
|
|
706
|
-
* @async
|
|
707
|
-
* @param {(FungibleTransferPayload)} transfer
|
|
708
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'allocate'>} [params]
|
|
709
|
-
* @returns {Promise<boolean>} - True if the allocation was successful
|
|
710
|
-
*/
|
|
711
|
-
async allocate(f, b) {
|
|
712
|
-
return this.awaitResult(this.allocateRaw(f, b));
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* Allocates assets to the budget.
|
|
716
|
-
* The caller must have already approved the contract to transfer the asset
|
|
717
|
-
* If the asset transfer fails, the allocation will revert
|
|
718
|
-
*
|
|
719
|
-
* @public
|
|
720
|
-
* @async
|
|
721
|
-
* @param {(FungibleTransferPayload)} transfer
|
|
722
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'allocate'>} [params]
|
|
723
|
-
* @returns {Promise<boolean>} - True if the allocation was successful
|
|
724
|
-
*/
|
|
725
|
-
async allocateRaw(f, b) {
|
|
726
|
-
const { request: a, result: e } = await _0(
|
|
727
|
-
this._config,
|
|
728
|
-
{
|
|
729
|
-
address: this.assertValidAddress(),
|
|
730
|
-
args: [t(f)],
|
|
731
|
-
...this.optionallyAttachAccount(),
|
|
732
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
733
|
-
...b
|
|
734
|
-
}
|
|
735
|
-
);
|
|
736
|
-
return { hash: await u0(this._config, a), result: e };
|
|
737
|
-
}
|
|
738
|
-
/**
|
|
739
|
-
* Clawbacks assets from the budget.
|
|
740
|
-
* Only the owner can directly clawback assets from the budget
|
|
741
|
-
* If the amount is zero, the entire balance of the asset will be transferred to the receiver
|
|
742
|
-
* If the asset transfer fails, the reclamation will revert
|
|
743
|
-
*
|
|
744
|
-
* @public
|
|
745
|
-
* @async
|
|
746
|
-
* @param {(FungibleTransferPayload)} transfer
|
|
747
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'clawback'>} [params]
|
|
748
|
-
* @returns {Promise<boolean>} - True if the request was successful
|
|
749
|
-
*/
|
|
750
|
-
async clawback(f, b) {
|
|
751
|
-
return this.awaitResult(this.clawbackRaw(f, b));
|
|
752
|
-
}
|
|
753
|
-
/**
|
|
754
|
-
* Clawbacks assets from the budget.
|
|
755
|
-
* Only the owner can directly clawback assets from the budget
|
|
756
|
-
* If the amount is zero, the entire balance of the asset will be transferred to the receiver
|
|
757
|
-
* If the asset transfer fails, the reclamation will revert
|
|
758
|
-
*
|
|
759
|
-
* @public
|
|
760
|
-
* @async
|
|
761
|
-
* @param {(FungibleTransferPayload)} transfer
|
|
762
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'clawback'>} [params]
|
|
763
|
-
* @returns {Promise<boolean>} - True if the request was successful
|
|
764
|
-
*/
|
|
765
|
-
async clawbackRaw(f, b) {
|
|
766
|
-
const { request: a, result: e } = await I0(
|
|
767
|
-
this._config,
|
|
768
|
-
{
|
|
769
|
-
address: this.assertValidAddress(),
|
|
770
|
-
args: [t(f)],
|
|
771
|
-
...this.optionallyAttachAccount(),
|
|
772
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
773
|
-
...b
|
|
774
|
-
}
|
|
775
|
-
);
|
|
776
|
-
return { hash: await p0(this._config, a), result: e };
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* Disburses assets from the budget to a single recipient
|
|
780
|
-
* If the asset transfer fails, the disbursement will revert
|
|
781
|
-
*
|
|
782
|
-
* @public
|
|
783
|
-
* @async
|
|
784
|
-
* @param {(FungibleTransferPayload)} transfer
|
|
785
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'disburse'>} [params]
|
|
786
|
-
* @returns {Promise<boolean>} - True if the disbursement was successful
|
|
787
|
-
*/
|
|
788
|
-
async disburse(f, b) {
|
|
789
|
-
return this.awaitResult(this.disburseRaw(f, b));
|
|
790
|
-
}
|
|
791
|
-
/**
|
|
792
|
-
* Disburses assets from the budget to a single recipient
|
|
793
|
-
* If the asset transfer fails, the disbursement will revert
|
|
794
|
-
*
|
|
795
|
-
* @public
|
|
796
|
-
* @async
|
|
797
|
-
* @param {(FungibleTransferPayload)} transfer
|
|
798
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'disburse'>} [params]
|
|
799
|
-
* @returns {Promise<boolean>} - True if the disbursement was successful
|
|
800
|
-
*/
|
|
801
|
-
async disburseRaw(f, b) {
|
|
802
|
-
const { request: a, result: e } = await T0(
|
|
803
|
-
this._config,
|
|
804
|
-
{
|
|
805
|
-
address: this.assertValidAddress(),
|
|
806
|
-
args: [t(f)],
|
|
807
|
-
...this.optionallyAttachAccount(),
|
|
808
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
809
|
-
...b
|
|
810
|
-
}
|
|
811
|
-
);
|
|
812
|
-
return { hash: await g0(this._config, a), result: e };
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* Disburses assets from the budget to multiple recipients
|
|
816
|
-
*
|
|
817
|
-
* @public
|
|
818
|
-
* @async
|
|
819
|
-
* @param {Array<FungibleTransferPayload>} transfers
|
|
820
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'disburseBatch'>} [params]
|
|
821
|
-
* @returns {Promise<boolean>} - True if all disbursements were successful
|
|
822
|
-
*/
|
|
823
|
-
async disburseBatch(f, b) {
|
|
824
|
-
return this.awaitResult(this.disburseBatchRaw(f, b));
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* Disburses assets from the budget to multiple recipients
|
|
828
|
-
*
|
|
829
|
-
* @public
|
|
830
|
-
* @async
|
|
831
|
-
* @param {Array<FungibleTransferPayload>} transfers
|
|
832
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'disburseBatch'>} [params]
|
|
833
|
-
* @returns {Promise<boolean>} - True if all disbursements were successful
|
|
834
|
-
*/
|
|
835
|
-
async disburseBatchRaw(f, b) {
|
|
836
|
-
const { request: a, result: e } = await B0(
|
|
837
|
-
this._config,
|
|
838
|
-
{
|
|
839
|
-
address: this.assertValidAddress(),
|
|
840
|
-
args: [f.map(t)],
|
|
841
|
-
...this.optionallyAttachAccount(),
|
|
842
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
843
|
-
...b
|
|
844
|
-
}
|
|
845
|
-
);
|
|
846
|
-
return { hash: await y0(this._config, a), result: e };
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* Set the authorized status of the given accounts
|
|
850
|
-
* The mechanism for managing authorization is left to the implementing contract
|
|
851
|
-
*
|
|
852
|
-
* @public
|
|
853
|
-
* @async
|
|
854
|
-
* @param {Address[]} addresses - The accounts to authorize or deauthorize
|
|
855
|
-
* @param {boolean[]} allowed - The authorization status for the given accounts
|
|
856
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'setAuthorized'>} [params]
|
|
857
|
-
* @returns {Promise<void>}
|
|
858
|
-
*/
|
|
859
|
-
async setAuthorized(f, b, a) {
|
|
860
|
-
return this.awaitResult(this.setAuthorizedRaw(f, b, a));
|
|
861
|
-
}
|
|
862
|
-
/**
|
|
863
|
-
* Set the authorized status of the given accounts
|
|
864
|
-
* The mechanism for managing authorization is left to the implementing contract
|
|
865
|
-
*
|
|
866
|
-
* @public
|
|
867
|
-
* @async
|
|
868
|
-
* @param {Address[]} addresses - The accounts to authorize or deauthorize
|
|
869
|
-
* @param {boolean[]} allowed - The authorization status for the given accounts
|
|
870
|
-
* @param {?WriteParams<typeof vestingBudgetAbi, 'setAuthorized'>} [params]
|
|
871
|
-
* @returns {Promise<void>}
|
|
872
|
-
*/
|
|
873
|
-
async setAuthorizedRaw(f, b, a) {
|
|
874
|
-
const { request: e, result: d } = await D0(
|
|
875
|
-
this._config,
|
|
876
|
-
{
|
|
877
|
-
address: this.assertValidAddress(),
|
|
878
|
-
args: [f, b],
|
|
879
|
-
...this.optionallyAttachAccount(),
|
|
880
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
881
|
-
...a
|
|
882
|
-
}
|
|
883
|
-
);
|
|
884
|
-
return { hash: await C0(this._config, e), result: d };
|
|
885
|
-
}
|
|
886
|
-
/**
|
|
887
|
-
* Check if the given account is authorized to use the budget
|
|
888
|
-
*
|
|
889
|
-
* @public
|
|
890
|
-
* @param {Address} account
|
|
891
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'isAuthorized'>} [params]
|
|
892
|
-
* @returns {Promise<boolean>} - True if the account is authorized
|
|
893
|
-
*/
|
|
894
|
-
isAuthorized(f, b) {
|
|
895
|
-
return S0(this._config, {
|
|
896
|
-
address: this.assertValidAddress(),
|
|
897
|
-
args: [f],
|
|
898
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
899
|
-
...b
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
|
-
* Get the end time of the vesting schedule
|
|
904
|
-
*
|
|
905
|
-
* @public
|
|
906
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'end'>} [params]
|
|
907
|
-
* @returns {Promise<bigint>}
|
|
908
|
-
*/
|
|
909
|
-
end(f) {
|
|
910
|
-
return V0(this._config, {
|
|
911
|
-
address: this.assertValidAddress(),
|
|
912
|
-
args: [],
|
|
913
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
914
|
-
...f
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* Get the total amount of assets allocated to the budget, including any that have been distributed
|
|
919
|
-
* This is equal to the sum of the total current balance and the total distributed amount
|
|
920
|
-
*
|
|
921
|
-
* @public
|
|
922
|
-
* @param {Address} asset - The address of the asset (or the zero address for native assets)
|
|
923
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'total'>} [params]
|
|
924
|
-
* @returns {Promise<bigint>}
|
|
925
|
-
*/
|
|
926
|
-
total(f, b) {
|
|
927
|
-
return R0(this._config, {
|
|
928
|
-
address: this.assertValidAddress(),
|
|
929
|
-
args: [f],
|
|
930
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
931
|
-
...b
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
/**
|
|
935
|
-
* Get the amount of assets available for distribution from the budget as of the current block timestamp
|
|
936
|
-
* This is equal to the total vested amount minus any already distributed
|
|
937
|
-
*
|
|
938
|
-
* @public
|
|
939
|
-
* @param {Address} asset - The address of the asset (or the zero address for native assets)
|
|
940
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'available'>} [params]
|
|
941
|
-
* @returns {Promise<bigint>} - The amount of assets currently available for distribution
|
|
942
|
-
*/
|
|
943
|
-
available(f, b) {
|
|
944
|
-
return w0(this._config, {
|
|
945
|
-
address: this.assertValidAddress(),
|
|
946
|
-
args: [f],
|
|
947
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
948
|
-
...b
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
/**
|
|
952
|
-
* Get the amount of assets that have been distributed from the budget
|
|
953
|
-
*
|
|
954
|
-
* @public
|
|
955
|
-
* @param {Address} asset
|
|
956
|
-
* @param {?ReadParams<typeof vestingBudgetAbi, 'distributed'>} [params]
|
|
957
|
-
* @returns {Promise<bigint>} - The amount of assets distributed
|
|
958
|
-
*/
|
|
959
|
-
distributed(f, b) {
|
|
960
|
-
return x0(this._config, {
|
|
961
|
-
address: this.assertValidAddress(),
|
|
962
|
-
args: [f],
|
|
963
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
964
|
-
...b
|
|
965
|
-
});
|
|
966
|
-
}
|
|
967
|
-
/**
|
|
968
|
-
* @inheritdoc
|
|
969
|
-
*
|
|
970
|
-
* @public
|
|
971
|
-
* @param {?VestingBudgetPayload} [_payload]
|
|
972
|
-
* @param {?DeployableOptions} [_options]
|
|
973
|
-
* @returns {GenericDeployableParams}
|
|
974
|
-
*/
|
|
975
|
-
buildParameters(f, b) {
|
|
976
|
-
var d;
|
|
977
|
-
const [a, e] = this.validateDeploymentConfig(
|
|
978
|
-
f,
|
|
979
|
-
b
|
|
980
|
-
);
|
|
981
|
-
if (!a.owner || a.owner === x) {
|
|
982
|
-
const s = e.account ? e.account.address : e.config ? w(e.config).address : (d = this._account) == null ? void 0 : d.address;
|
|
983
|
-
if (s)
|
|
984
|
-
a.owner = s;
|
|
985
|
-
else
|
|
986
|
-
throw new R();
|
|
987
|
-
}
|
|
988
|
-
return {
|
|
989
|
-
abi: B,
|
|
990
|
-
bytecode: Z0,
|
|
991
|
-
args: [v(a)],
|
|
992
|
-
...this.optionallyAttachAccount(e.account)
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
};
|
|
996
|
-
E.base = ff.VITE_VESTING_BUDGET_BASE, E.registryType = r.BUDGET;
|
|
997
|
-
let S = E;
|
|
998
|
-
const bf = "0x6080604052348015600e575f80fd5b50600180819055506022602660201b60201c565b60b7565b5f6033608e60201b60201c565b905080546001811615604c5763f92ee8a95f526004601cfd5b8160c01c808260011c146089578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b61272e806100c45f395ff3fe608060405260043610610165575f3560e01c8063715018a6116100d0578063c884ef8311610089578063f04e283e11610063578063f04e283e146104f7578063f23a6e6114610513578063f2fde38b1461054f578063fee81cf41461056b57610165565b8063c884ef8314610455578063db09da1214610491578063dcc59b6f146104cd57610165565b8063715018a6146103555780638da5cb5b1461035f578063a4d66daf14610389578063a8c62e76146103b3578063bb1757cf146103dd578063bc197c811461041957610165565b806338d52e0f1161012257806338d52e0f14610257578063439fab9114610281578063474f5a44146102a95780634e7165a2146102e557806354d1f13d14610321578063609d33341461032b57610165565b806301ffc9a71461016957806307621eca146101a557806317d70f7c146101cf578063228cb733146101f9578063256929621461022357806328d6183b1461022d575b5f80fd5b348015610174575f80fd5b5061018f600480360381019061018a919061151b565b6105a7565b60405161019c9190611560565b60405180910390f35b3480156101b0575f80fd5b506101b9610688565b6040516101c69190611591565b60405180910390f35b3480156101da575f80fd5b506101e3610691565b6040516101f09190611591565b60405180910390f35b348015610204575f80fd5b5061020d610697565b60405161021a9190611591565b60405180910390f35b61022b61069d565b005b348015610238575f80fd5b506102416106ee565b60405161024e91906115b9565b60405180910390f35b348015610262575f80fd5b5061026b610715565b604051610278919061164c565b60405180910390f35b34801561028c575f80fd5b506102a760048036038101906102a291906116c6565b61073a565b005b3480156102b4575f80fd5b506102cf60048036038101906102ca91906116c6565b6109e6565b6040516102dc9190611560565b60405180910390f35b3480156102f0575f80fd5b5061030b600480360381019061030691906116c6565b610be2565b6040516103189190611781565b60405180910390f35b610329610cc5565b005b348015610336575f80fd5b5061033f610cfe565b60405161034c9190611781565b60405180910390f35b61035d610d8a565b005b34801561036a575f80fd5b50610373610d9d565b60405161038091906117c1565b60405180910390f35b348015610394575f80fd5b5061039d610dc5565b6040516103aa9190611591565b60405180910390f35b3480156103be575f80fd5b506103c7610dcb565b6040516103d4919061184d565b60405180910390f35b3480156103e8575f80fd5b5061040360048036038101906103fe9190611890565b610dde565b6040516104109190611560565b60405180910390f35b348015610424575f80fd5b5061043f600480360381019061043a9190611942565b61100e565b60405161044c91906115b9565b60405180910390f35b348015610460575f80fd5b5061047b60048036038101906104769190611a19565b611025565b6040516104889190611560565b60405180910390f35b34801561049c575f80fd5b506104b760048036038101906104b29190611890565b611042565b6040516104c49190611560565b60405180910390f35b3480156104d8575f80fd5b506104e1611055565b6040516104ee9190611591565b60405180910390f35b610511600480360381019061050c9190611a19565b61105a565b005b34801561051e575f80fd5b5061053960048036038101906105349190611a6e565b611098565b60405161054691906115b9565b60405180910390f35b61056960048036038101906105649190611a19565b6110ad565b005b348015610576575f80fd5b50610591600480360381019061058c9190611a19565b6110d6565b60405161059e9190611591565b60405180910390f35b5f7f6aa68002000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061067157507f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106815750610680826110ef565b5b9050919050565b5f600154905090565b60055481565b60015481565b5f6106a6611168565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f6aa6800200000000000000000000000000000000000000000000000000000000905090565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f610743611172565b905080546003825580156107755760018160011c14303b1061076c5763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061077f3361119b565b5f838381019061078f9190611d37565b90506001808111156107a4576107a36117da565b5b816020015160018111156107bb576107ba6117da565b5b036107f2576040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f81606001510361082f576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f815f015173ffffffffffffffffffffffffffffffffffffffff1662fdd58e3084604001516040518363ffffffff1660e01b8152600401610871929190611d7e565b602060405180830381865afa15801561088c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108b09190611db9565b9050816060015181101561090657815f01518183606001516040517f5c54305e0000000000000000000000000000000000000000000000000000000081526004016108fd93929190611de4565b60405180910390fd5b815f015160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160200151600360146101000a81548160ff02191690836001811115610972576109716117da565b5b0217905550816040015160058190555081606001516004819055508160800151600690816109a0919061200a565b506109aa3361119b565b505080156109e1576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f6109ef611271565b5f83838101906109ff9190612142565b90505f8160200151806020019051810190610a1a9190611db9565b9050600454811115610a84573382604051602001610a38919061221a565b6040516020818303038152906040526040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401610a7b92919061223a565b60405180910390fd5b8060045f828254610a959190612295565b9250508190555060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a30845f01516005548587602001516040518663ffffffff1660e01b8152600401610b079594939291906122c8565b5f604051808303815f87803b158015610b1e575f80fd5b505af1158015610b30573d5f803e3d5ffd5b50505050815f015173ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16845f0151600554858760200151604051602001610bb29594939291906123d6565b604051602081830303815290604052604051610bce9190611781565b60405180910390a260019250505092915050565b60605f8383810190610bf49190611d37565b90506040518060800160405280600280811115610c1457610c136117da565b5b8152602001825f015173ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff168152602001604051806060016040528084604001518152602001846060015181526020018460800151815250604051602001610c8b919061248c565b604051602081830303815290604052815250604051602001610cad9190612552565b60405160208183030381529060405291505092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b60068054610d0b90611e46565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3790611e46565b8015610d825780601f10610d5957610100808354040283529160200191610d82565b820191905f5260205f20905b815481529060010190602001808311610d6557829003601f168201915b505050505081565b610d92611271565b610d9b5f6112a8565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b60045481565b600360149054906101000a900460ff1681565b5f610de7611271565b5f6001811115610dfa57610df96117da565b5b600360149054906101000a900460ff166001811115610e1c57610e1b6117da565b5b0361100357610e2a8461136e565b610e60576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80815480929190610e7190612572565b9190505550600160025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a3086600554600188886040518763ffffffff1660e01b8152600401610f329695949392919061261e565b5f604051808303815f87803b158015610f49575f80fd5b505af1158015610f5b573d5f803e3d5ffd5b505050508373ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168660055460018888604051602001610fd69695949392919061269c565b604051602081830303815290604052604051610ff29190611781565b60405180910390a260019050611007565b5f90505b9392505050565b5f63bc197c8160e01b905098975050505050505050565b6002602052805f5260405f205f915054906101000a900460ff1681565b5f61104c8461136e565b90509392505050565b5f5481565b611062611271565b63389a75e1600c52805f526020600c20805442111561108857636f5e88185f526004601cfd5b5f815550611095816112a8565b50565b5f63f23a6e6160e01b90509695505050505050565b6110b5611271565b8060601b6110ca57637448fbae5f526004601cfd5b6110d3816112a8565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f7f5970a689000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806111615750611160826113cf565b5b9050919050565b5f6202a300905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6111a3611448565b1561121b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278054156111dd57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35061126e565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146112a6576382b429005f526004601cfd5b565b6112b0611448565b15611315577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b821781555061136b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156113c857506004545f54105b9050919050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061144157506114408261144c565b5b9050919050565b5f90565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6114fa816114c6565b8114611504575f80fd5b50565b5f81359050611515816114f1565b92915050565b5f602082840312156115305761152f6114be565b5b5f61153d84828501611507565b91505092915050565b5f8115159050919050565b61155a81611546565b82525050565b5f6020820190506115735f830184611551565b92915050565b5f819050919050565b61158b81611579565b82525050565b5f6020820190506115a45f830184611582565b92915050565b6115b3816114c6565b82525050565b5f6020820190506115cc5f8301846115aa565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61161461160f61160a846115d2565b6115f1565b6115d2565b9050919050565b5f611625826115fa565b9050919050565b5f6116368261161b565b9050919050565b6116468161162c565b82525050565b5f60208201905061165f5f83018461163d565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261168657611685611665565b5b8235905067ffffffffffffffff8111156116a3576116a2611669565b5b6020830191508360018202830111156116bf576116be61166d565b5b9250929050565b5f80602083850312156116dc576116db6114be565b5b5f83013567ffffffffffffffff8111156116f9576116f86114c2565b5b61170585828601611671565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61175382611711565b61175d818561171b565b935061176d81856020860161172b565b61177681611739565b840191505092915050565b5f6020820190508181035f8301526117998184611749565b905092915050565b5f6117ab826115d2565b9050919050565b6117bb816117a1565b82525050565b5f6020820190506117d45f8301846117b2565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611818576118176117da565b5b50565b5f81905061182882611807565b919050565b5f6118378261181b565b9050919050565b6118478161182d565b82525050565b5f6020820190506118605f83018461183e565b92915050565b61186f816117a1565b8114611879575f80fd5b50565b5f8135905061188a81611866565b92915050565b5f805f604084860312156118a7576118a66114be565b5b5f6118b48682870161187c565b935050602084013567ffffffffffffffff8111156118d5576118d46114c2565b5b6118e186828701611671565b92509250509250925092565b5f8083601f84011261190257611901611665565b5b8235905067ffffffffffffffff81111561191f5761191e611669565b5b60208301915083602082028301111561193b5761193a61166d565b5b9250929050565b5f805f805f805f8060a0898b03121561195e5761195d6114be565b5b5f61196b8b828c0161187c565b985050602061197c8b828c0161187c565b975050604089013567ffffffffffffffff81111561199d5761199c6114c2565b5b6119a98b828c016118ed565b9650965050606089013567ffffffffffffffff8111156119cc576119cb6114c2565b5b6119d88b828c016118ed565b9450945050608089013567ffffffffffffffff8111156119fb576119fa6114c2565b5b611a078b828c01611671565b92509250509295985092959890939650565b5f60208284031215611a2e57611a2d6114be565b5b5f611a3b8482850161187c565b91505092915050565b611a4d81611579565b8114611a57575f80fd5b50565b5f81359050611a6881611a44565b92915050565b5f805f805f8060a08789031215611a8857611a876114be565b5b5f611a9589828a0161187c565b9650506020611aa689828a0161187c565b9550506040611ab789828a01611a5a565b9450506060611ac889828a01611a5a565b935050608087013567ffffffffffffffff811115611ae957611ae86114c2565b5b611af589828a01611671565b92509250509295509295509295565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b3e82611739565b810181811067ffffffffffffffff82111715611b5d57611b5c611b08565b5b80604052505050565b5f611b6f6114b5565b9050611b7b8282611b35565b919050565b5f80fd5b5f611b8e826117a1565b9050919050565b611b9e81611b84565b8114611ba8575f80fd5b50565b5f81359050611bb981611b95565b92915050565b60028110611bcb575f80fd5b50565b5f81359050611bdc81611bbf565b92915050565b5f80fd5b5f67ffffffffffffffff821115611c0057611bff611b08565b5b611c0982611739565b9050602081019050919050565b828183375f83830152505050565b5f611c36611c3184611be6565b611b66565b905082815260208101848484011115611c5257611c51611be2565b5b611c5d848285611c16565b509392505050565b5f82601f830112611c7957611c78611665565b5b8135611c89848260208601611c24565b91505092915050565b5f60a08284031215611ca757611ca6611b04565b5b611cb160a0611b66565b90505f611cc084828501611bab565b5f830152506020611cd384828501611bce565b6020830152506040611ce784828501611a5a565b6040830152506060611cfb84828501611a5a565b606083015250608082013567ffffffffffffffff811115611d1f57611d1e611b80565b5b611d2b84828501611c65565b60808301525092915050565b5f60208284031215611d4c57611d4b6114be565b5b5f82013567ffffffffffffffff811115611d6957611d686114c2565b5b611d7584828501611c92565b91505092915050565b5f604082019050611d915f8301856117b2565b611d9e6020830184611582565b9392505050565b5f81519050611db381611a44565b92915050565b5f60208284031215611dce57611dcd6114be565b5b5f611ddb84828501611da5565b91505092915050565b5f606082019050611df75f8301866117b2565b611e046020830185611582565b611e116040830184611582565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611e5d57607f821691505b602082108103611e7057611e6f611e19565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302611ed27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82611e97565b611edc8683611e97565b95508019841693508086168417925050509392505050565b5f611f0e611f09611f0484611579565b6115f1565b611579565b9050919050565b5f819050919050565b611f2783611ef4565b611f3b611f3382611f15565b848454611ea3565b825550505050565b5f90565b611f4f611f43565b611f5a818484611f1e565b505050565b5b81811015611f7d57611f725f82611f47565b600181019050611f60565b5050565b601f821115611fc257611f9381611e76565b611f9c84611e88565b81016020851015611fab578190505b611fbf611fb785611e88565b830182611f5f565b50505b505050565b5f82821c905092915050565b5f611fe25f1984600802611fc7565b1980831691505092915050565b5f611ffa8383611fd3565b9150826002028217905092915050565b61201382611711565b67ffffffffffffffff81111561202c5761202b611b08565b5b6120368254611e46565b612041828285611f81565b5f60209050601f831160018114612072575f8415612060578287015190505b61206a8582611fef565b8655506120d1565b601f19841661208086611e76565b5f5b828110156120a757848901518255600182019150602085019450602081019050612082565b868310156120c457848901516120c0601f891682611fd3565b8355505b6001600288020188555050505b505050505050565b5f604082840312156120ee576120ed611b04565b5b6120f86040611b66565b90505f6121078482850161187c565b5f83015250602082013567ffffffffffffffff81111561212a57612129611b80565b5b61213684828501611c65565b60208301525092915050565b5f60208284031215612157576121566114be565b5b5f82013567ffffffffffffffff811115612174576121736114c2565b5b612180848285016120d9565b91505092915050565b612192816117a1565b82525050565b5f82825260208201905092915050565b5f6121b282611711565b6121bc8185612198565b93506121cc81856020860161172b565b6121d581611739565b840191505092915050565b5f604083015f8301516121f55f860182612189565b506020830151848203602086015261220d82826121a8565b9150508091505092915050565b5f6020820190508181035f83015261223281846121e0565b905092915050565b5f60408201905061224d5f8301856117b2565b818103602083015261225f8184611749565b90509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61229f82611579565b91506122aa83611579565b92508282039050818111156122c2576122c1612268565b5b92915050565b5f60a0820190506122db5f8301886117b2565b6122e860208301876117b2565b6122f56040830186611582565b6123026060830185611582565b81810360808301526123148184611749565b90509695505050505050565b5f8160601b9050919050565b5f61233682612320565b9050919050565b5f6123478261232c565b9050919050565b61235f61235a8261162c565b61233d565b82525050565b612376612371826117a1565b61233d565b82525050565b5f819050919050565b61239661239182611579565b61237c565b82525050565b5f81905092915050565b5f6123b082611711565b6123ba818561239c565b93506123ca81856020860161172b565b80840191505092915050565b5f6123e1828861234e565b6014820191506123f18287612365565b6014820191506124018286612385565b6020820191506124118285612385565b60208201915061242182846123a6565b91508190509695505050505050565b61243981611579565b82525050565b5f606083015f8301516124545f860182612430565b5060208301516124676020860182612430565b506040830151848203604086015261247f82826121a8565b9150508091505092915050565b5f6020820190508181035f8301526124a4818461243f565b905092915050565b600381106124bd576124bc6117da565b5b50565b5f8190506124cd826124ac565b919050565b5f6124dc826124c0565b9050919050565b6124ec816124d2565b82525050565b5f608083015f8301516125075f8601826124e3565b50602083015161251a6020860182612189565b50604083015161252d6040860182612189565b506060830151848203606086015261254582826121a8565b9150508091505092915050565b5f6020820190508181035f83015261256a81846124f2565b905092915050565b5f61257c82611579565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036125ae576125ad612268565b5b600182019050919050565b5f819050919050565b5f6125dc6125d76125d2846125b9565b6115f1565b611579565b9050919050565b6125ec816125c2565b82525050565b5f6125fd838561171b565b935061260a838584611c16565b61261383611739565b840190509392505050565b5f60a0820190506126315f8301896117b2565b61263e60208301886117b2565b61264b6040830187611582565b61265860608301866125e3565b818103608083015261266b8184866125f2565b9050979650505050505050565b5f612683838561239c565b9350612690838584611c16565b82840190509392505050565b5f6126a7828961234e565b6014820191506126b78288612365565b6014820191506126c78287612385565b6020820191506126d78286612385565b6020820191506126e8828486612678565b915081905097965050505050505056fea2646970667358221220b23b5033068b28787d10db872d5a772893b6d0a7b5ebc1b8c445cac72500628e64736f6c634300081a0033";
|
|
999
|
-
var af = { VITE_ALLOWLIST_INCENTIVE_BASE: "0x5Cd43Ea5541e1D6FF36962E6e6C11f0bf9d573d4", VITE_BOOST_REGISTRY_ADDRESS: "0x5cb8D869f2EE4e3D987Ac7bEB37D6812f5346DFC", VITE_CGDA_INCENTIVE_BASE: "0x147c3aBFF7Ab7867B206A8c652Cd59D3BE41Dc3E", VITE_ERC20_INCENTIVE_BASE: "0xDCfbb7767B281Fd2d39fc7c39A9f89dC61E81f0d", VITE_POINTS_INCENTIVE_BASE: "0x881c78Ba2d10894a8f4f6996C0FB5bA8AE627AAb", VITE_SIMPLE_DENYLIST_BASE: "0x41A7c1aCC75BEccD11B8F586510759883092460F", VITE_BOOST_CORE_ADDRESS: "0xF4905b327904E5797840fd8cD7F300001a34122f", VITE_SIMPLE_ALLOWLIST_BASE: "0x11556926AaA421e96e06a7A679C680813122db7D", VITE_ERC20_VARIABLE_INCENTIVE_BASE: "0xA7b6c33828693d431C64e59A27d985c4DfB19B95", VITE_MANAGED_BUDGET_BASE: "0x0b51f997fa15867134fA34366FCeA63Bee93C087", VITE_SIGNER_VALIDATOR_BASE: "0x749c6fDd62727E11e3200571de7CfBb61DFbA93b", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
1000
|
-
const h = class h extends l {
|
|
1001
|
-
constructor() {
|
|
1002
|
-
super(...arguments), this.abi = y;
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* Description placeholder
|
|
1006
|
-
*
|
|
1007
|
-
* @public
|
|
1008
|
-
* @async
|
|
1009
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'claims'>} [params]
|
|
1010
|
-
* @returns {unknown}
|
|
1011
|
-
*/
|
|
1012
|
-
async claims(f) {
|
|
1013
|
-
return m0(this._config, {
|
|
1014
|
-
address: this.assertValidAddress(),
|
|
1015
|
-
args: [],
|
|
1016
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1017
|
-
...f
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
/**
|
|
1021
|
-
* Description placeholder
|
|
1022
|
-
*
|
|
1023
|
-
* @public
|
|
1024
|
-
* @async
|
|
1025
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'reward'>} [params]
|
|
1026
|
-
* @returns {unknown}
|
|
1027
|
-
*/
|
|
1028
|
-
async reward(f) {
|
|
1029
|
-
return N0(this._config, {
|
|
1030
|
-
address: this.assertValidAddress(),
|
|
1031
|
-
args: [],
|
|
1032
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1033
|
-
...f
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
/**
|
|
1037
|
-
* Description placeholder
|
|
1038
|
-
*
|
|
1039
|
-
* @public
|
|
1040
|
-
* @async
|
|
1041
|
-
* @param {Address} address
|
|
1042
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'claimed'>} [params]
|
|
1043
|
-
* @returns {unknown}
|
|
1044
|
-
*/
|
|
1045
|
-
async claimed(f, b) {
|
|
1046
|
-
return F0(this._config, {
|
|
1047
|
-
address: this.assertValidAddress(),
|
|
1048
|
-
args: [f],
|
|
1049
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1050
|
-
...b
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
/**
|
|
1054
|
-
* Description placeholder
|
|
1055
|
-
*
|
|
1056
|
-
* @public
|
|
1057
|
-
* @async
|
|
1058
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'asset'>} [params]
|
|
1059
|
-
* @returns {unknown}
|
|
1060
|
-
*/
|
|
1061
|
-
async asset(f) {
|
|
1062
|
-
return L0(this._config, {
|
|
1063
|
-
address: this.assertValidAddress(),
|
|
1064
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1065
|
-
...f
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
/**
|
|
1069
|
-
* Description placeholder
|
|
1070
|
-
*
|
|
1071
|
-
* @public
|
|
1072
|
-
* @async
|
|
1073
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'strategy'>} [params]
|
|
1074
|
-
* @returns {Promise<StrategyType>}
|
|
1075
|
-
*/
|
|
1076
|
-
async strategy(f) {
|
|
1077
|
-
return O0(this._config, {
|
|
1078
|
-
address: this.assertValidAddress(),
|
|
1079
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1080
|
-
...f
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
/**
|
|
1084
|
-
* Description placeholder
|
|
1085
|
-
*
|
|
1086
|
-
* @public
|
|
1087
|
-
* @async
|
|
1088
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'limit'>} [params]
|
|
1089
|
-
* @returns {unknown}
|
|
1090
|
-
*/
|
|
1091
|
-
async limit(f) {
|
|
1092
|
-
return P0(this._config, {
|
|
1093
|
-
address: this.assertValidAddress(),
|
|
1094
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1095
|
-
...f
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
/**
|
|
1099
|
-
* Description placeholder
|
|
1100
|
-
*
|
|
1101
|
-
* @public
|
|
1102
|
-
* @async
|
|
1103
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'tokenId'>} [params]
|
|
1104
|
-
* @returns {unknown}
|
|
1105
|
-
*/
|
|
1106
|
-
async tokenId(f) {
|
|
1107
|
-
return v0(this._config, {
|
|
1108
|
-
address: this.assertValidAddress(),
|
|
1109
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1110
|
-
...f
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
/**
|
|
1114
|
-
* Description placeholder
|
|
1115
|
-
*
|
|
1116
|
-
* @public
|
|
1117
|
-
* @async
|
|
1118
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'extraData'>} [params]
|
|
1119
|
-
* @returns {unknown}
|
|
1120
|
-
*/
|
|
1121
|
-
async extraData(f) {
|
|
1122
|
-
return G0(this._config, {
|
|
1123
|
-
address: this.assertValidAddress(),
|
|
1124
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1125
|
-
...f
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
/**
|
|
1129
|
-
* Description placeholder
|
|
1130
|
-
*
|
|
1131
|
-
* @public
|
|
1132
|
-
* @async
|
|
1133
|
-
* @param {ClaimPayload} payload
|
|
1134
|
-
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'claim'>} [params]
|
|
1135
|
-
* @returns {unknown}
|
|
1136
|
-
*/
|
|
1137
|
-
async claim(f, b) {
|
|
1138
|
-
return this.awaitResult(this.claimRaw(f, b));
|
|
1139
|
-
}
|
|
1140
|
-
/**
|
|
1141
|
-
* Description placeholder
|
|
1142
|
-
*
|
|
1143
|
-
* @public
|
|
1144
|
-
* @async
|
|
1145
|
-
* @param {ClaimPayload} payload
|
|
1146
|
-
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'claim'>} [params]
|
|
1147
|
-
* @returns {unknown}
|
|
1148
|
-
*/
|
|
1149
|
-
async claimRaw(f, b) {
|
|
1150
|
-
const { request: a, result: e } = await M0(
|
|
1151
|
-
this._config,
|
|
1152
|
-
{
|
|
1153
|
-
address: this.assertValidAddress(),
|
|
1154
|
-
args: [_(f)],
|
|
1155
|
-
...this.optionallyAttachAccount(),
|
|
1156
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1157
|
-
...b
|
|
1158
|
-
}
|
|
1159
|
-
);
|
|
1160
|
-
return { hash: await U0(this._config, a), result: e };
|
|
1161
|
-
}
|
|
1162
|
-
/**
|
|
1163
|
-
* Description placeholder
|
|
1164
|
-
*
|
|
1165
|
-
* @public
|
|
1166
|
-
* @async
|
|
1167
|
-
* @param {ClaimPayload} payload
|
|
1168
|
-
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'clawback'>} [params]
|
|
1169
|
-
* @returns {unknown}
|
|
1170
|
-
*/
|
|
1171
|
-
async clawback(f, b) {
|
|
1172
|
-
return this.awaitResult(this.clawbackRaw(f, b));
|
|
1173
|
-
}
|
|
1174
|
-
/**
|
|
1175
|
-
* Description placeholder
|
|
1176
|
-
*
|
|
1177
|
-
* @public
|
|
1178
|
-
* @async
|
|
1179
|
-
* @param {ClaimPayload} payload
|
|
1180
|
-
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'clawback'>} [params]
|
|
1181
|
-
* @returns {unknown}
|
|
1182
|
-
*/
|
|
1183
|
-
async clawbackRaw(f, b) {
|
|
1184
|
-
const { request: a, result: e } = await q0(
|
|
1185
|
-
this._config,
|
|
1186
|
-
{
|
|
1187
|
-
address: this.assertValidAddress(),
|
|
1188
|
-
args: [_(f)],
|
|
1189
|
-
...this.optionallyAttachAccount(),
|
|
1190
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1191
|
-
...b
|
|
1192
|
-
}
|
|
1193
|
-
);
|
|
1194
|
-
return { hash: await Y0(this._config, a), result: e };
|
|
1195
|
-
}
|
|
1196
|
-
/**
|
|
1197
|
-
* Description placeholder
|
|
1198
|
-
*
|
|
1199
|
-
* @public
|
|
1200
|
-
* @async
|
|
1201
|
-
* @param {ClaimPayload} payload
|
|
1202
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'isClaimable'>} [params]
|
|
1203
|
-
* @returns {unknown}
|
|
1204
|
-
*/
|
|
1205
|
-
async isClaimable(f, b) {
|
|
1206
|
-
return k0(this._config, {
|
|
1207
|
-
address: this.assertValidAddress(),
|
|
1208
|
-
args: [_(f)],
|
|
1209
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1210
|
-
...b
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
/**
|
|
1214
|
-
* Description placeholder
|
|
1215
|
-
*
|
|
1216
|
-
* @public
|
|
1217
|
-
* @async
|
|
1218
|
-
* @param {ERC1155IncentivePayload} data
|
|
1219
|
-
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'preflight'>} [params]
|
|
1220
|
-
* @returns {unknown}
|
|
1221
|
-
*/
|
|
1222
|
-
async preflight(f, b) {
|
|
1223
|
-
return W0(this._config, {
|
|
1224
|
-
address: this.assertValidAddress(),
|
|
1225
|
-
args: [I(f)],
|
|
1226
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1227
|
-
...b
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
/**
|
|
1231
|
-
* @inheritdoc
|
|
1232
|
-
*
|
|
1233
|
-
* @public
|
|
1234
|
-
* @param {?ERC1155IncentivePayload} [_payload]
|
|
1235
|
-
* @param {?DeployableOptions} [_options]
|
|
1236
|
-
* @returns {GenericDeployableParams}
|
|
1237
|
-
*/
|
|
1238
|
-
buildParameters(f, b) {
|
|
1239
|
-
const [a, e] = this.validateDeploymentConfig(
|
|
1240
|
-
f,
|
|
1241
|
-
b
|
|
1242
|
-
);
|
|
1243
|
-
return {
|
|
1244
|
-
abi: y,
|
|
1245
|
-
bytecode: bf,
|
|
1246
|
-
args: [I(a)],
|
|
1247
|
-
...this.optionallyAttachAccount(e.account)
|
|
1248
|
-
};
|
|
1249
|
-
}
|
|
1250
|
-
};
|
|
1251
|
-
h.base = af.VITE_ERC1155_INCENTIVE_BASE, h.registryType = r.INCENTIVE;
|
|
1252
|
-
let V = h;
|
|
1
|
+
import { BOOST_REGISTRY_ADDRESS as o, BoostRegistry as a } from "./BoostRegistry.js";
|
|
2
|
+
import { BOOST_CORE_ADDRESS as i, BoostCore as n } from "./BoostCore.js";
|
|
3
|
+
import { Boost as l } from "./Boost.js";
|
|
4
|
+
import { BoostCoreNoIdentifierEmitted as s, BudgetMustAuthorizeBoostCore as y, ContractAddressRequiredError as m, DeployableAlreadyDeployedError as c, DeployableBuildParametersUnspecifiedError as A, DeployableMissingPayloadError as f, DeployableUnknownOwnerProvidedError as E, DeployableWagmiConfigurationRequiredError as g, EventActionValidationError as C, FieldValueNotComparableError as P, FieldValueUndefinedError as v, IncentiveNotCloneableError as u, InvalidComponentInterfaceError as b, InvalidNumericalCriteriaError as I, NoContractAddressUponReceiptError as R, NoEventActionStepsProvidedError as S, TooManyEventActionStepsProvidedError as x, UnknownTransferPayloadSupplied as B, UnrecognizedFilterTypeError as T } from "./errors.js";
|
|
5
|
+
import { AssetType as L, ERC1155StrategyType as V, FilterType as w, PrimitiveType as F, RegistryType as M, SignatureType as h, StrategyType as N, awaitResult as O, bytes4 as U, dedupeActionSteps as _, getDeployedContractAddress as G, isEventActionPayloadSimple as z, prepareAllowListIncentivePayload as k, prepareBoostClaimData as q, prepareBoostPayload as W, prepareCGDAIncentivePayload as Y, prepareClaimPayload as j, prepareContractActionPayload as H, prepareERC1155IncentivePayload as J, prepareERC1155Payload as K, prepareERC1155Transfer as Q, prepareERC20IncentivePayload as X, prepareERC20VariableIncentivePayload as Z, prepareERC721MintActionPayload as $, prepareERC721MintActionValidate as ee, prepareEventActionPayload as re, prepareFungiblePayload as oe, prepareFungibleTransfer as ae, prepareManagedBudgetPayload as te, preparePointsIncentivePayload as ie, prepareSignerValidatorClaimDataPayload as ne, prepareSignerValidatorInputParams as pe, prepareSignerValidatorPayload as le, prepareSimpleAllowListPayload as de, prepareSimpleBudgetPayload as se, prepareSimpleDenyListPayload as ye, prepareTransferPayload as me, prepareVestingBudgetPayload as ce } from "./utils.js";
|
|
6
|
+
import { PassthroughAuth as fe } from "./Auth/PassthroughAuth.js";
|
|
7
|
+
import { ActionByComponentInterface as ge, actionFromAddress as Ce } from "./Actions/Action.js";
|
|
8
|
+
import { EventAction as ve } from "./Actions/EventAction.js";
|
|
9
|
+
import { AllowListByComponentInterface as be, allowListFromAddress as Ie } from "./AllowLists/AllowList.js";
|
|
10
|
+
import { LIST_MANAGER_ROLE as Se, SimpleAllowList as xe } from "./AllowLists/SimpleAllowList.js";
|
|
11
|
+
import { SimpleDenyList as Te } from "./AllowLists/SimpleDenyList.js";
|
|
12
|
+
import { BudgetByComponentInterface as Le, budgetFromAddress as Ve } from "./Budgets/Budget.js";
|
|
13
|
+
import { ManagedBudget as Fe, ManagedBudgetRoles as Me, isERC1155TransferPayload as he, isFungibleTransfer as Ne, prepareTransfer as Oe } from "./Budgets/ManagedBudget.js";
|
|
14
|
+
import { Deployable as _e } from "./Deployable/Deployable.js";
|
|
15
|
+
import { Contract as ze } from "./Deployable/Contract.js";
|
|
16
|
+
import { DeployableTarget as qe } from "./Deployable/DeployableTarget.js";
|
|
17
|
+
import { AllowListIncentive as Ye } from "./Incentives/AllowListIncentive.js";
|
|
18
|
+
import { CGDAIncentive as He } from "./Incentives/CGDAIncentive.js";
|
|
19
|
+
import { ERC20Incentive as Ke } from "./Incentives/ERC20Incentive.js";
|
|
20
|
+
import { ERC20VariableIncentive as Xe, IncentiveByComponentInterface as Ze, incentiveFromAddress as $e } from "./Incentives/Incentive.js";
|
|
21
|
+
import { PointsIncentive as rr } from "./Incentives/PointsIncentive.js";
|
|
22
|
+
import { SignerValidator as ar } from "./Validators/SignerValidator.js";
|
|
23
|
+
import { ValidatorByComponentInterface as ir, validatorFromAddress as nr } from "./Validators/Validator.js";
|
|
24
|
+
import { A as lr, c as dr, e as sr, v as yr, f as mr, p as cr, z as Ar, l as fr, M as Er, T as gr, S as Cr } from "./generated-DGpIVcv5.js";
|
|
1253
25
|
export {
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
26
|
+
ge as ActionByComponentInterface,
|
|
27
|
+
be as AllowListByComponentInterface,
|
|
28
|
+
Ye as AllowListIncentive,
|
|
29
|
+
L as AssetType,
|
|
30
|
+
i as BOOST_CORE_ADDRESS,
|
|
31
|
+
o as BOOST_REGISTRY_ADDRESS,
|
|
32
|
+
l as Boost,
|
|
33
|
+
n as BoostCore,
|
|
34
|
+
s as BoostCoreNoIdentifierEmitted,
|
|
35
|
+
a as BoostRegistry,
|
|
36
|
+
Le as BudgetByComponentInterface,
|
|
37
|
+
y as BudgetMustAuthorizeBoostCore,
|
|
38
|
+
He as CGDAIncentive,
|
|
39
|
+
ze as Contract,
|
|
40
|
+
m as ContractAddressRequiredError,
|
|
41
|
+
_e as Deployable,
|
|
42
|
+
c as DeployableAlreadyDeployedError,
|
|
43
|
+
A as DeployableBuildParametersUnspecifiedError,
|
|
44
|
+
f as DeployableMissingPayloadError,
|
|
45
|
+
qe as DeployableTarget,
|
|
46
|
+
E as DeployableUnknownOwnerProvidedError,
|
|
47
|
+
g as DeployableWagmiConfigurationRequiredError,
|
|
48
|
+
V as ERC1155StrategyType,
|
|
49
|
+
Ke as ERC20Incentive,
|
|
50
|
+
Xe as ERC20VariableIncentive,
|
|
51
|
+
ve as EventAction,
|
|
52
|
+
C as EventActionValidationError,
|
|
53
|
+
P as FieldValueNotComparableError,
|
|
54
|
+
v as FieldValueUndefinedError,
|
|
55
|
+
w as FilterType,
|
|
56
|
+
Ze as IncentiveByComponentInterface,
|
|
57
|
+
u as IncentiveNotCloneableError,
|
|
58
|
+
b as InvalidComponentInterfaceError,
|
|
59
|
+
I as InvalidNumericalCriteriaError,
|
|
60
|
+
Se as LIST_MANAGER_ROLE,
|
|
61
|
+
Fe as ManagedBudget,
|
|
62
|
+
Me as ManagedBudgetRoles,
|
|
63
|
+
R as NoContractAddressUponReceiptError,
|
|
64
|
+
S as NoEventActionStepsProvidedError,
|
|
65
|
+
fe as PassthroughAuth,
|
|
66
|
+
rr as PointsIncentive,
|
|
67
|
+
F as PrimitiveType,
|
|
68
|
+
M as RegistryType,
|
|
69
|
+
h as SignatureType,
|
|
70
|
+
ar as SignerValidator,
|
|
71
|
+
xe as SimpleAllowList,
|
|
72
|
+
Te as SimpleDenyList,
|
|
73
|
+
N as StrategyType,
|
|
74
|
+
x as TooManyEventActionStepsProvidedError,
|
|
75
|
+
B as UnknownTransferPayloadSupplied,
|
|
76
|
+
T as UnrecognizedFilterTypeError,
|
|
77
|
+
ir as ValidatorByComponentInterface,
|
|
78
|
+
Ce as actionFromAddress,
|
|
79
|
+
Ie as allowListFromAddress,
|
|
80
|
+
lr as allowListIncentiveAbi,
|
|
81
|
+
O as awaitResult,
|
|
82
|
+
dr as boostCoreAbi,
|
|
83
|
+
sr as boostRegistryAbi,
|
|
84
|
+
Ve as budgetFromAddress,
|
|
85
|
+
U as bytes4,
|
|
86
|
+
yr as cgdaIncentiveAbi,
|
|
87
|
+
_ as dedupeActionSteps,
|
|
88
|
+
mr as erc20IncentiveAbi,
|
|
89
|
+
G as getDeployedContractAddress,
|
|
90
|
+
$e as incentiveFromAddress,
|
|
91
|
+
he as isERC1155TransferPayload,
|
|
92
|
+
z as isEventActionPayloadSimple,
|
|
93
|
+
Ne as isFungibleTransfer,
|
|
94
|
+
cr as managedBudgetAbi,
|
|
95
|
+
Ar as passthroughAuthAbi,
|
|
96
|
+
fr as pointsIncentiveAbi,
|
|
97
|
+
k as prepareAllowListIncentivePayload,
|
|
98
|
+
q as prepareBoostClaimData,
|
|
99
|
+
W as prepareBoostPayload,
|
|
100
|
+
Y as prepareCGDAIncentivePayload,
|
|
101
|
+
j as prepareClaimPayload,
|
|
102
|
+
H as prepareContractActionPayload,
|
|
103
|
+
J as prepareERC1155IncentivePayload,
|
|
104
|
+
K as prepareERC1155Payload,
|
|
105
|
+
Q as prepareERC1155Transfer,
|
|
106
|
+
X as prepareERC20IncentivePayload,
|
|
107
|
+
Z as prepareERC20VariableIncentivePayload,
|
|
108
|
+
$ as prepareERC721MintActionPayload,
|
|
109
|
+
ee as prepareERC721MintActionValidate,
|
|
110
|
+
re as prepareEventActionPayload,
|
|
111
|
+
oe as prepareFungiblePayload,
|
|
112
|
+
ae as prepareFungibleTransfer,
|
|
113
|
+
te as prepareManagedBudgetPayload,
|
|
114
|
+
ie as preparePointsIncentivePayload,
|
|
115
|
+
ne as prepareSignerValidatorClaimDataPayload,
|
|
116
|
+
pe as prepareSignerValidatorInputParams,
|
|
117
|
+
le as prepareSignerValidatorPayload,
|
|
118
|
+
de as prepareSimpleAllowListPayload,
|
|
119
|
+
se as prepareSimpleBudgetPayload,
|
|
120
|
+
ye as prepareSimpleDenyListPayload,
|
|
121
|
+
Oe as prepareTransfer,
|
|
122
|
+
me as prepareTransferPayload,
|
|
123
|
+
ce as prepareVestingBudgetPayload,
|
|
124
|
+
Er as signerValidatorAbi,
|
|
125
|
+
gr as simpleAllowListAbi,
|
|
126
|
+
Cr as simpleDenyListAbi,
|
|
127
|
+
nr as validatorFromAddress
|
|
1355
128
|
};
|