-
Notifications
You must be signed in to change notification settings - Fork 60
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
{WIP} add abstraction over builders for 1.5 and 2.0 #489
{WIP} add abstraction over builders for 1.5 and 2.0 #489
Conversation
src/utils/cspr-network.ts
Outdated
.byHash(contractHash) | ||
.entryPoint('redelegate') | ||
.chainName(networkName) | ||
// .amount(amountMotes) |
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.
Accidental comment?
src/utils/cspr-network.ts
Outdated
.buildFor1_5(); | ||
} | ||
|
||
return new Error('Need to provide contract 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.
Let's change to Auction contract hash is required when creating a transaction on Casper Network 1.5.x
src/utils/cspr-network.ts
Outdated
amountMotes: string | BigNumber, | ||
deployCost: number, | ||
ttl: number, | ||
contractHash?: string |
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.
Let's rename to auctionContractHash
src/utils/cspr-network.ts
Outdated
.buildFor1_5(); | ||
} | ||
|
||
return new Error('Need to provide contract 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.
Let's change to Auction contract hash is required when creating a transaction on Casper Network 1.5.x
src/utils/cspr-network.ts
Outdated
amountMotes: string | BigNumber, | ||
deployCost: number, | ||
ttl: number, | ||
contractHash?: string |
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.
Let's rename to auctionContractHash
return await this.rpcClient.getTransactionByDeployHash( | ||
hash.deploy.toHex() | ||
); | ||
} |
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 suppose this section should go inside the version 2 condition and the getDeploy
RPC method to be used for 1.5.x
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.
@eugenebelov please check my comments
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.
@eugenebelov could you please also add return types to all methods
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.
@eugenebelov generic createTransaction
method is missing
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.
@eugenebelov see my comments
No description provided.