Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delegation controller #533

Merged

Conversation

danielailie
Copy link
Contributor

No description provided.

Comment on lines +28 to +29
sender: IAccount,
nonce: bigint,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

async createTransactionForNewDelegationContract(
sender: IAccount,
nonce: bigint,
options: inputs.NewDelegationContractInput,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good naming convention.

@@ -20,7 +21,7 @@ interface IConfig {
additionalGasLimitForDelegationOperations: bigint;
}

interface IValidatorPublicKey {
export interface IValidatorPublicKey {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be exported, this is an internal interface. Can be handled as the other re-defined interfaces.

Comment on lines 341 to 354
createTransactionForWithdrawing(_sender: IAddress, _options: inputs.ManageDelegationContractInput): Transaction {
throw new Error("Method not implemented.");
}
createTransactionForUndelegating(_sender: IAddress, _options: inputs.DelegateActionsInput): Transaction {
throw new Error("Method not implemented.");
}
createTransactionForRedelegatingRewards(
_sender: IAddress,
_options: inputs.ManageDelegationContractInput,
): Transaction {
throw new Error("Method not implemented.");
}
createTransactionForClaimingRewards(
_sender: IAddress,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing issue / newlines.

import { TransactionWatcher } from "../transactionWatcher";
import { DelegationTransactionsFactory } from "./delegationTransactionsFactory";
import { DelegationTransactionsOutcomeParser } from "./delegationTransactionsOutcomeParser";
import * as inputs from "./resources";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inputs vs. resources - what if we also had outputs? Can also be simply, resources.

@danielailie danielailie merged commit b98b5b5 into feat/next Nov 14, 2024
4 checks passed
@danielailie danielailie deleted the TOOL-352-add-delegation-controller-for-entrypoints branch November 14, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants