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 token Management controller #536

Merged
merged 7 commits into from
Nov 18, 2024

Conversation

danielailie
Copy link
Contributor

No description provided.

Base automatically changed from TOOL-356-add-smart-contracts-controller to feat/next November 18, 2024 08:06
@danielailie danielailie changed the base branch from feat/next to main November 18, 2024 08:06
@danielailie danielailie changed the base branch from main to feat/next November 18, 2024 08:06
src/testutils/networkProviders.ts Outdated Show resolved Hide resolved
src/tokenManagement/tokenManagementTransactionsFactory.ts Outdated Show resolved Hide resolved
src/tokenManagement/tokenManagementTransactionsFactory.ts Outdated Show resolved Hide resolved
src/tokenManagement/tokenManagementTransactionsFactory.ts Outdated Show resolved Hide resolved
src/tokenManagement/tokenManagementTransactionsFactory.ts Outdated Show resolved Hide resolved
src/tokenManagement/tokenManagementTransactionsFactory.ts Outdated Show resolved Hide resolved
src/tokenManagement/tokenManagementTransactionsFactory.ts Outdated Show resolved Hide resolved
import { IAccount } from "../accounts/interfaces";
import { TransactionOnNetwork } from "../networkProviders";
import { INetworkProvider } from "../networkProviders/interface";
import { IESDTIssueOutcome } from "../tokenOperations";
Copy link
Contributor

Choose a reason for hiding this comment

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

the tokenOperations package will be removed and we should not import from there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will to this when I will remove the package

@@ -15,7 +15,7 @@ export class ContractController {
this.provider = provider;
this.transactionCompletionAwaiter = new TransactionWatcher({
getTransaction: async (hash: string) => {
return await provider.getTransaction(hash, true);
return await provider.getTransaction(hash);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we pass the network provider directly?

@@ -39,7 +33,7 @@ export function createMainnetProvider(): INetworkProvider {
export interface INetworkProvider {
getNetworkConfig(): Promise<INetworkConfig>;
getAccount(address: IAddress): Promise<IAccountOnNetwork>;
getTransaction(txHash: string, withProcessStatus?: boolean): Promise<ITransactionOnNetwork>;
getTransaction(txHash: string): Promise<TransactionOnNetwork>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Indeed, good to drop this flag.

@danielailie danielailie merged commit 49d3204 into feat/next Nov 18, 2024
4 checks passed
@danielailie danielailie deleted the TOOL-360-add-token-management-controller branch November 18, 2024 11:40
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