@boostxyz/sdk 5.3.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.js +3 -3
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +13 -3
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +216 -193
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +2 -2
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +24 -24
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +3 -3
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.cjs.map +1 -1
- package/dist/Auth/PassthroughAuth.js +14 -14
- package/dist/Boost.cjs.map +1 -1
- package/dist/Boost.js.map +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +247 -0
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +421 -259
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.cjs.map +1 -1
- package/dist/BoostRegistry.js +43 -43
- package/dist/BoostRegistry.js.map +1 -1
- package/dist/Budget-DMbfdTom.cjs +2 -0
- package/dist/{Budget-AoNx7uFd.cjs.map → Budget-DMbfdTom.cjs.map} +1 -1
- package/dist/Budget-DO6sGTIR.js +463 -0
- package/dist/{Budget-DYIV9iNK.js.map → Budget-DO6sGTIR.js.map} +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +2 -2
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.js +53 -53
- package/dist/Budgets/ManagedBudgetWithFees.d.ts +26 -0
- package/dist/Budgets/ManagedBudgetWithFees.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +15 -15
- package/dist/Incentive-Boviez4z.js +1036 -0
- package/dist/Incentive-Boviez4z.js.map +1 -0
- package/dist/Incentive-wM4zizTH.cjs +2 -0
- package/dist/Incentive-wM4zizTH.cjs.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
- package/dist/Incentives/AllowListIncentive.d.ts +9 -1
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +64 -47
- package/dist/Incentives/AllowListIncentive.js.map +1 -1
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
- package/dist/Incentives/CGDAIncentive.d.ts +12 -1
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +64 -33
- package/dist/Incentives/CGDAIncentive.js.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
- package/dist/Incentives/ERC20Incentive.d.ts +37 -1
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +73 -49
- package/dist/Incentives/ERC20Incentive.js.map +1 -1
- package/dist/Incentives/ERC20PeggedIncentive.d.ts +35 -0
- package/dist/Incentives/ERC20PeggedIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts +35 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +25 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +24 -24
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.d.ts +35 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +55 -38
- package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.d.ts +25 -0
- package/dist/Incentives/Incentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.js +2 -2
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.cjs.map +1 -1
- package/dist/Incentives/PointsIncentive.d.ts +8 -0
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +50 -28
- package/dist/Incentives/PointsIncentive.js.map +1 -1
- package/dist/SimpleDenyList-CW4RwwRw.js +133 -0
- package/dist/{SimpleDenyList-ByAr4X1r.js.map → SimpleDenyList-CW4RwwRw.js.map} +1 -1
- package/dist/SimpleDenyList-Cybtz7AK.cjs +2 -0
- package/dist/{SimpleDenyList-CsRXJPwm.cjs.map → SimpleDenyList-Cybtz7AK.cjs.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
- package/dist/Validators/LimitedSignerValidator.js +33 -33
- package/dist/Validators/LimitedSignerValidator.js.map +1 -1
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.js +26 -26
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +3 -3
- package/dist/deployments-CIXw_WKk.cjs +2 -0
- package/dist/deployments-CIXw_WKk.cjs.map +1 -0
- package/dist/{deployments-D0fs26TV.js → deployments-DqjtOTUr.js} +47 -47
- package/dist/{deployments-D0fs26TV.js.map → deployments-DqjtOTUr.js.map} +1 -1
- package/dist/deployments.json +24 -24
- package/dist/generated-DgXPUgXl.cjs +3 -0
- package/dist/generated-DgXPUgXl.cjs.map +1 -0
- package/dist/{generated-Cyvr_Tjx.js → generated-pJZHmRCK.js} +728 -459
- package/dist/generated-pJZHmRCK.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +137 -136
- package/package.json +1 -1
- package/src/Actions/EventAction.ts +108 -27
- package/src/BoostCore.test.ts +124 -2
- package/src/BoostCore.ts +227 -0
- package/src/Incentives/AllowListIncentive.ts +17 -0
- package/src/Incentives/CGDAIncentive.ts +31 -0
- package/src/Incentives/ERC20Incentive.ts +27 -0
- package/src/Incentives/ERC20PeggedIncentive.ts +18 -0
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +26 -0
- package/src/Incentives/ERC20VariableIncentive.ts +18 -0
- package/src/Incentives/PointsIncentive.ts +22 -0
- package/dist/Budget-AoNx7uFd.cjs +0 -2
- package/dist/Budget-DYIV9iNK.js +0 -463
- package/dist/Incentive-BbkfwGOb.cjs +0 -2
- package/dist/Incentive-BbkfwGOb.cjs.map +0 -1
- package/dist/Incentive-qlnv5kQB.js +0 -991
- package/dist/Incentive-qlnv5kQB.js.map +0 -1
- package/dist/SimpleDenyList-ByAr4X1r.js +0 -133
- package/dist/SimpleDenyList-CsRXJPwm.cjs +0 -2
- package/dist/deployments-DoIOqxco.cjs +0 -2
- package/dist/deployments-DoIOqxco.cjs.map +0 -1
- package/dist/generated-Cyvr_Tjx.js.map +0 -1
- package/dist/generated-DtYPHhtX.cjs +0 -3
- package/dist/generated-DtYPHhtX.cjs.map +0 -1
package/dist/BoostCore.d.ts
CHANGED
|
@@ -363,6 +363,61 @@ export declare class BoostCore extends Deployable<[
|
|
|
363
363
|
readonly indexed: false;
|
|
364
364
|
}];
|
|
365
365
|
readonly name: "BoostCreated";
|
|
366
|
+
}, {
|
|
367
|
+
readonly type: "event";
|
|
368
|
+
readonly anonymous: false;
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly name: "boostId";
|
|
371
|
+
readonly internalType: "uint256";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
readonly indexed: true;
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "incentiveId";
|
|
376
|
+
readonly internalType: "uint256";
|
|
377
|
+
readonly type: "uint256";
|
|
378
|
+
readonly indexed: true;
|
|
379
|
+
}, {
|
|
380
|
+
readonly name: "sender";
|
|
381
|
+
readonly internalType: "address";
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
readonly indexed: true;
|
|
384
|
+
}, {
|
|
385
|
+
readonly name: "amount";
|
|
386
|
+
readonly internalType: "uint256";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
readonly indexed: false;
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "fee";
|
|
391
|
+
readonly internalType: "uint256";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
readonly indexed: false;
|
|
394
|
+
}];
|
|
395
|
+
readonly name: "BoostToppedUp";
|
|
396
|
+
}, {
|
|
397
|
+
readonly type: "event";
|
|
398
|
+
readonly anonymous: false;
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly name: "boostId";
|
|
401
|
+
readonly internalType: "uint256";
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
readonly indexed: true;
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "incentiveId";
|
|
406
|
+
readonly internalType: "uint256";
|
|
407
|
+
readonly type: "uint256";
|
|
408
|
+
readonly indexed: true;
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "incentiveAddress";
|
|
411
|
+
readonly internalType: "address";
|
|
412
|
+
readonly type: "address";
|
|
413
|
+
readonly indexed: true;
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "isNewBoost";
|
|
416
|
+
readonly internalType: "bool";
|
|
417
|
+
readonly type: "bool";
|
|
418
|
+
readonly indexed: false;
|
|
419
|
+
}];
|
|
420
|
+
readonly name: "IncentiveAdded";
|
|
366
421
|
}, {
|
|
367
422
|
readonly type: "event";
|
|
368
423
|
readonly anonymous: false;
|
|
@@ -443,6 +498,37 @@ export declare class BoostCore extends Deployable<[
|
|
|
443
498
|
readonly type: "uint64";
|
|
444
499
|
}];
|
|
445
500
|
readonly stateMutability: "view";
|
|
501
|
+
}, {
|
|
502
|
+
readonly type: "function";
|
|
503
|
+
readonly inputs: readonly [{
|
|
504
|
+
readonly name: "boostId";
|
|
505
|
+
readonly internalType: "uint256";
|
|
506
|
+
readonly type: "uint256";
|
|
507
|
+
}, {
|
|
508
|
+
readonly name: "target";
|
|
509
|
+
readonly internalType: "struct BoostLib.Target";
|
|
510
|
+
readonly type: "tuple";
|
|
511
|
+
readonly components: readonly [{
|
|
512
|
+
readonly name: "isBase";
|
|
513
|
+
readonly internalType: "bool";
|
|
514
|
+
readonly type: "bool";
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "instance";
|
|
517
|
+
readonly internalType: "address";
|
|
518
|
+
readonly type: "address";
|
|
519
|
+
}, {
|
|
520
|
+
readonly name: "parameters";
|
|
521
|
+
readonly internalType: "bytes";
|
|
522
|
+
readonly type: "bytes";
|
|
523
|
+
}];
|
|
524
|
+
}];
|
|
525
|
+
readonly name: "addIncentiveToBoost";
|
|
526
|
+
readonly outputs: readonly [{
|
|
527
|
+
readonly name: "newIncentive";
|
|
528
|
+
readonly internalType: "contract AIncentive";
|
|
529
|
+
readonly type: "address";
|
|
530
|
+
}];
|
|
531
|
+
readonly stateMutability: "nonpayable";
|
|
446
532
|
}, {
|
|
447
533
|
readonly type: "function";
|
|
448
534
|
readonly inputs: readonly [];
|
|
@@ -852,6 +938,46 @@ export declare class BoostCore extends Deployable<[
|
|
|
852
938
|
readonly name: "settleProtocolFees";
|
|
853
939
|
readonly outputs: readonly [];
|
|
854
940
|
readonly stateMutability: "nonpayable";
|
|
941
|
+
}, {
|
|
942
|
+
readonly type: "function";
|
|
943
|
+
readonly inputs: readonly [{
|
|
944
|
+
readonly name: "boostId";
|
|
945
|
+
readonly internalType: "uint256";
|
|
946
|
+
readonly type: "uint256";
|
|
947
|
+
}, {
|
|
948
|
+
readonly name: "incentiveId";
|
|
949
|
+
readonly internalType: "uint256";
|
|
950
|
+
readonly type: "uint256";
|
|
951
|
+
}, {
|
|
952
|
+
readonly name: "data_";
|
|
953
|
+
readonly internalType: "bytes";
|
|
954
|
+
readonly type: "bytes";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "budget";
|
|
957
|
+
readonly internalType: "address";
|
|
958
|
+
readonly type: "address";
|
|
959
|
+
}];
|
|
960
|
+
readonly name: "topupIncentiveFromBudget";
|
|
961
|
+
readonly outputs: readonly [];
|
|
962
|
+
readonly stateMutability: "nonpayable";
|
|
963
|
+
}, {
|
|
964
|
+
readonly type: "function";
|
|
965
|
+
readonly inputs: readonly [{
|
|
966
|
+
readonly name: "boostId";
|
|
967
|
+
readonly internalType: "uint256";
|
|
968
|
+
readonly type: "uint256";
|
|
969
|
+
}, {
|
|
970
|
+
readonly name: "incentiveId";
|
|
971
|
+
readonly internalType: "uint256";
|
|
972
|
+
readonly type: "uint256";
|
|
973
|
+
}, {
|
|
974
|
+
readonly name: "data_";
|
|
975
|
+
readonly internalType: "bytes";
|
|
976
|
+
readonly type: "bytes";
|
|
977
|
+
}];
|
|
978
|
+
readonly name: "topupIncentiveFromSender";
|
|
979
|
+
readonly outputs: readonly [];
|
|
980
|
+
readonly stateMutability: "nonpayable";
|
|
855
981
|
}, {
|
|
856
982
|
readonly type: "function";
|
|
857
983
|
readonly inputs: readonly [{
|
|
@@ -1492,6 +1618,21 @@ export declare class BoostCore extends Deployable<[
|
|
|
1492
1618
|
readonly indexed: true;
|
|
1493
1619
|
}];
|
|
1494
1620
|
readonly name: "RolesUpdated";
|
|
1621
|
+
}, {
|
|
1622
|
+
readonly type: "event";
|
|
1623
|
+
readonly anonymous: false;
|
|
1624
|
+
readonly inputs: readonly [{
|
|
1625
|
+
readonly name: "sender";
|
|
1626
|
+
readonly internalType: "address";
|
|
1627
|
+
readonly type: "address";
|
|
1628
|
+
readonly indexed: false;
|
|
1629
|
+
}, {
|
|
1630
|
+
readonly name: "amount";
|
|
1631
|
+
readonly internalType: "uint256";
|
|
1632
|
+
readonly type: "uint256";
|
|
1633
|
+
readonly indexed: false;
|
|
1634
|
+
}];
|
|
1635
|
+
readonly name: "ToppedUp";
|
|
1495
1636
|
}, {
|
|
1496
1637
|
readonly type: "function";
|
|
1497
1638
|
readonly inputs: readonly [];
|
|
@@ -1874,6 +2015,16 @@ export declare class BoostCore extends Deployable<[
|
|
|
1874
2015
|
readonly type: "bool";
|
|
1875
2016
|
}];
|
|
1876
2017
|
readonly stateMutability: "view";
|
|
2018
|
+
}, {
|
|
2019
|
+
readonly type: "function";
|
|
2020
|
+
readonly inputs: readonly [{
|
|
2021
|
+
readonly name: "amount";
|
|
2022
|
+
readonly internalType: "uint256";
|
|
2023
|
+
readonly type: "uint256";
|
|
2024
|
+
}];
|
|
2025
|
+
readonly name: "topup";
|
|
2026
|
+
readonly outputs: readonly [];
|
|
2027
|
+
readonly stateMutability: "nonpayable";
|
|
1877
2028
|
}, {
|
|
1878
2029
|
readonly type: "function";
|
|
1879
2030
|
readonly inputs: readonly [];
|
|
@@ -1904,5 +2055,101 @@ export declare class BoostCore extends Deployable<[
|
|
|
1904
2055
|
* @returns {GenericDeployableParams}
|
|
1905
2056
|
*/
|
|
1906
2057
|
buildParameters(_payload?: [Address, Address, Address], _options?: DeployableOptions): GenericDeployableParams;
|
|
2058
|
+
/**
|
|
2059
|
+
* Prepares and executes a top-up from a Budget, specifying the net top-up amount
|
|
2060
|
+
* that should land in the incentive (the protocol fee is added automatically).
|
|
2061
|
+
*
|
|
2062
|
+
* @public
|
|
2063
|
+
* @async
|
|
2064
|
+
* @param {bigint} boostId The ID of the Boost
|
|
2065
|
+
* @param {bigint} incentiveId The ID of the incentive within that Boost
|
|
2066
|
+
* @param {any} topupPayload A typed struct for the incentive’s top-up parameters
|
|
2067
|
+
* @param {Address} [budget] Optional override budget address (otherwise uses the Boost’s budget)
|
|
2068
|
+
* @param {?WriteParams} [params] Additional transaction overrides
|
|
2069
|
+
* @returns {Promise<{ hash: Hex; result: void }>} The transaction hash and simulation result
|
|
2070
|
+
*/
|
|
2071
|
+
topupIncentiveFromBudgetPreFee(boostId: bigint, incentiveId: bigint, topupAmount: bigint, budget?: Address, params?: WriteParams): Promise<{
|
|
2072
|
+
hash: `0x${string}`;
|
|
2073
|
+
result: void;
|
|
2074
|
+
}>;
|
|
2075
|
+
/**
|
|
2076
|
+
* Prepares and executes a top-up from a Budget, specifying the entire total tokens
|
|
2077
|
+
* (incentive + fee) you want to disburse. We'll back-calculate how many tokens land
|
|
2078
|
+
* in the incentive.
|
|
2079
|
+
*
|
|
2080
|
+
* @public
|
|
2081
|
+
* @async
|
|
2082
|
+
* @param {bigint} boostId The ID of the Boost
|
|
2083
|
+
* @param {bigint} incentiveId The ID of the incentive within that Boost
|
|
2084
|
+
* @param {any} topupPayload A typed struct for the incentive’s top-up parameters
|
|
2085
|
+
* @param {bigint} totalAmount The total tokens to disburse
|
|
2086
|
+
* @param {Address} [budget] Optional override budget address
|
|
2087
|
+
* @param {?WriteParams} [params] Additional transaction overrides
|
|
2088
|
+
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
2089
|
+
*/
|
|
2090
|
+
topupIncentiveFromBudgetPostFee(boostId: bigint, incentiveId: bigint, totalAmount: bigint, budget?: Address, params?: WriteParams): Promise<{
|
|
2091
|
+
hash: `0x${string}`;
|
|
2092
|
+
result: void;
|
|
2093
|
+
}>;
|
|
2094
|
+
/**
|
|
2095
|
+
* Prepares and executes a top-up from the caller (msg.sender), specifying the net top-up
|
|
2096
|
+
* to land in the incentive. We'll add the protocol fee on top automatically.
|
|
2097
|
+
*
|
|
2098
|
+
* @public
|
|
2099
|
+
* @async
|
|
2100
|
+
* @param {bigint} boostId The ID of the Boost
|
|
2101
|
+
* @param {bigint} incentiveId The ID of the incentive within that Boost
|
|
2102
|
+
* @param {any} topupPayload A typed struct for the incentive’s top-up parameters
|
|
2103
|
+
* @param {?WriteParams} [params]
|
|
2104
|
+
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
2105
|
+
*/
|
|
2106
|
+
topupIncentiveFromSenderPreFee(boostId: bigint, incentiveId: bigint, topupAmount: bigint, params?: WriteParams): Promise<{
|
|
2107
|
+
hash: `0x${string}`;
|
|
2108
|
+
result: void;
|
|
2109
|
+
}>;
|
|
2110
|
+
/**
|
|
2111
|
+
* Prepares and executes a top-up from the caller (msg.sender), specifying the total
|
|
2112
|
+
* tokens you’re willing to provide (including fee). We'll back-calculate the net
|
|
2113
|
+
* top-up for the incentive.
|
|
2114
|
+
*
|
|
2115
|
+
* @public
|
|
2116
|
+
* @async
|
|
2117
|
+
* @param {bigint} boostId The ID of the Boost
|
|
2118
|
+
* @param {bigint} incentiveId The ID of the incentive within that Boost
|
|
2119
|
+
* @param {any} topupPayload A typed struct for the incentive’s top-up parameters
|
|
2120
|
+
* @param {bigint} totalAmount The entire tokens (top-up + fee)
|
|
2121
|
+
* @param {?WriteParams} [params]
|
|
2122
|
+
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
2123
|
+
*/
|
|
2124
|
+
topupIncentiveFromSenderPostFee(boostId: bigint, incentiveId: bigint, totalAmount: bigint, params?: WriteParams): Promise<{
|
|
2125
|
+
hash: `0x${string}`;
|
|
2126
|
+
result: void;
|
|
2127
|
+
}>;
|
|
2128
|
+
/**
|
|
2129
|
+
* A lower-level function that actually calls `topupIncentiveFromSender` on-chain,
|
|
2130
|
+
* passing the final total. The contract modifies its internal logic to split net top-up vs. fee.
|
|
2131
|
+
*
|
|
2132
|
+
* @private
|
|
2133
|
+
* @param {bigint} boostId
|
|
2134
|
+
* @param {bigint} incentiveId
|
|
2135
|
+
* @param {Hex} preflightData The raw ABudget.Transfer data from preflight
|
|
2136
|
+
* @param {?WriteParams} [params]
|
|
2137
|
+
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
2138
|
+
*/
|
|
2139
|
+
private topupIncentiveFromSenderRaw;
|
|
2140
|
+
/**
|
|
2141
|
+
* A lower-level function that actually calls `topupIncentiveFromBudget` on-chain,
|
|
2142
|
+
* passing the preflight data plus the final total. The contract itself modifies
|
|
2143
|
+
* the amount to (topup + fee).
|
|
2144
|
+
*
|
|
2145
|
+
* @private
|
|
2146
|
+
* @param {bigint} boostId
|
|
2147
|
+
* @param {bigint} incentiveId
|
|
2148
|
+
* @param {Hex} preflightData The raw ABudget.Transfer (encoded) from preflight
|
|
2149
|
+
* @param {Address} [budget] Optional override for the budget
|
|
2150
|
+
* @param {?WriteParams} [params]
|
|
2151
|
+
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
2152
|
+
*/
|
|
2153
|
+
private topupIncentiveFromBudgetRaw;
|
|
1907
2154
|
}
|
|
1908
2155
|
//# sourceMappingURL=BoostCore.d.ts.map
|
package/dist/BoostCore.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoostCore.d.ts","sourceRoot":"","sources":["../src/BoostCore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"BoostCore.d.ts","sourceRoot":"","sources":["../src/BoostCore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY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