Skip to content

Conversation

@andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Apr 9, 2022

  • erdjs does not depend on axios and fs anymore. Changed the way an AbiRegistry is created. Removed function Code.fromFile() (was relying on fs).
  • Removed boundaryAdapters (simplification).
  • Removed smartContract.getOwner() (surprising behavior of function, usage not recommended).
  • Removed opaque, quite redundant verification (ErrTransactionNotSigned).
  • Removed transaction.awaitHashed() (lacks use-case).
  • Removed transaction.awaitSigned() (it isn't useful in relation with any of our signing providers).
  • Removed opaque side-effect (contract address computed upon signing the deploy transaction - not applicable when using our signing providers, anyway).
  • Removed not used interfaces (e.g. ISignable is not needed in erdjs, but in walletcore).
  • Removed not used fields: contract.code, contract.codeMetadata.
  • Removed interaction.getContract(). Add interaction.getContractAddress().
  • Removed not-needed interface IResultsParser.
  • Removed not needed function: Code.nothing().

@andreibancioiu andreibancioiu self-assigned this Apr 9, 2022
@andreibancioiu andreibancioiu changed the title Cleanup and minor improvements Breaking changes: cleanup and minor improvements prior release (step 1) Apr 9, 2022
@bogdan-rosianu bogdan-rosianu self-requested a review April 11, 2022 08:45
bogdan-rosianu
bogdan-rosianu previously approved these changes Apr 11, 2022
* Gets the address of the Smart Contract.
*/
getAddress(): Address;
getAddress(): IBech32Address;
Copy link
Contributor

Choose a reason for hiding this comment

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

Q - why do we have IBech32 as opposed to an interface for the address?

Copy link
Contributor Author

@andreibancioiu andreibancioiu Apr 11, 2022

Choose a reason for hiding this comment

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

It was named this way in order to avoid an eventual ambiguity. That is, IBech32Address only has the bech32() method, without pubkey() and hex(), thus being a bit more "portable" between different domains (e.g. walletcore, network-providers and so on) - some of which don't know how to encode / decode an address.

We can change this, though. IAddress?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to IAddress.

ccorcoveanu
ccorcoveanu previously approved these changes Apr 11, 2022
bogdan-rosianu
bogdan-rosianu previously approved these changes Apr 11, 2022
ccorcoveanu
ccorcoveanu previously approved these changes Apr 11, 2022
@andreibancioiu andreibancioiu merged commit 73a3d05 into main Apr 11, 2022
@andreibancioiu andreibancioiu deleted the improvements-01 branch April 11, 2022 12:50
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.

4 participants