test(pox-4-tests): Rename StackAggregationCommit to StackAggregationCommitAuth

This commit is contained in:
BowTiedRadone
2024-04-03 13:49:26 +03:00
committed by Nikos Baxevanis
parent 43c39605f5
commit f12bcc062a
2 changed files with 6 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ import { RevokeDelegateStxCommand } from "./pox_RevokeDelegateStxCommand";
import { AllowContractCallerCommand } from "./pox_AllowContractCallerCommand";
import { DelegateStackIncreaseCommand } from "./pox_DelegateStackIncreaseCommand";
import { DelegateStackExtendCommand } from "./pox_DelegateStackExtendCommand";
import { StackAggregationCommitCommand } from "./pox_StackAggregationCommitCommand";
import { StackAggregationCommitAuthCommand } from "./pox_StackAggregationCommitAuthCommand";
export function PoxCommands(
wallets: Map<StxAddress, Wallet>,
@@ -75,7 +75,7 @@ export function PoxCommands(
r.amount,
)
),
// StackAggregationCommitCommand
// StackAggregationCommitAuthCommand
fc.record({
wallet: fc.constantFrom(...wallets.values()),
authId: fc.nat(),
@@ -87,7 +87,7 @@ export function PoxCommands(
currentCycle: number;
},
) =>
new StackAggregationCommitCommand(
new StackAggregationCommitAuthCommand(
r.wallet,
r.authId,
r.currentCycle,

View File

@@ -10,7 +10,7 @@ import { expect } from "vitest";
import { Cl } from "@stacks/transactions";
/**
* The `StackAggregationCommitCommand` allows an operator commits partially
* The `StackAggregationCommitAuthCommand` allows an operator commits partially
* stacked STX and allocate a new PoX reward address slot. This allows a
* stacker to lock fewer STX than the minimal threshold in multiple transactions,
* so long as:
@@ -23,13 +23,13 @@ import { Cl } from "@stacks/transactions";
* stackers has to be greater than the uSTX threshold.
* - All of the Stackers must have delegated to the same pox address.
*/
export class StackAggregationCommitCommand implements PoxCommand {
export class StackAggregationCommitAuthCommand implements PoxCommand {
readonly operator: Wallet;
readonly authId: number;
readonly currentCycle: number;
/**
* Constructs a `StackAggregationCommitCommand` to lock uSTX for stacking.
* Constructs a `StackAggregationCommitAuthCommand` to lock uSTX for stacking.
*
* @param operator - Represents the `Operator`'s wallet.
* @param authId - Unique `auth-id` for the authorization.