This pull request includes several changes to the src/vms/pvm/etna-builder/builder.ts file and its related test files. The primary focus is on refactoring the code to replace the usage of SpendOptions with individual parameters and improving code readability. Additionally, a minor typo was corrected in src/vms/common/models.ts.
Changes
Removal of spendOptions prop.
Add changeAddressesBytes common builder prop. Defaults to use the fromAddressesBytes.
Add memo common builder prop. Defaults to empty Uint8Array.
Add minIssuanceTime common builder prop. Defaults to current unix time in seconds.
Renamed newImportTxtoAddresses prop to toAddressesBytes.
Any usage of spendOptions.locktime or spendOptions.threshold need removed. Those props didn't do anything in the builder, and therefore caused confusion.
This pull request includes several changes to the
src/vms/pvm/etna-builder/builder.ts
file and its related test files. The primary focus is on refactoring the code to replace the usage ofSpendOptions
with individual parameters and improving code readability. Additionally, a minor typo was corrected insrc/vms/common/models.ts
.Changes
spendOptions
prop.changeAddressesBytes
common builder prop. Defaults to use thefromAddressesBytes
.memo
common builder prop. Defaults to empty Uint8Array.minIssuanceTime
common builder prop. Defaults to current unix time in seconds.newImportTx
toAddresses
prop totoAddressesBytes
.Migration
spendOptions.changeAddresses
->changeAddressesBytes
.spendOptions.memo
->memo
.spendOptions.minIssuanceTime
->minIssuanceTime
.toAddresses
->toAddressesBytes
.Any usage of
spendOptions.locktime
orspendOptions.threshold
need removed. Those props didn't do anything in the builder, and therefore caused confusion.