-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add delegation controller #533
Conversation
sender: IAccount, | ||
nonce: bigint, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
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, |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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
.
No description provided.