-
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 token Management controller #536
Add token Management controller #536
Conversation
import { IAccount } from "../accounts/interfaces"; | ||
import { TransactionOnNetwork } from "../networkProviders"; | ||
import { INetworkProvider } from "../networkProviders/interface"; | ||
import { IESDTIssueOutcome } from "../tokenOperations"; |
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.
the tokenOperations
package will be removed and we should not import from there.
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.
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); |
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.
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>; |
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.
Indeed, good to drop this flag.
No description provided.