Full changelog coming soon. For now, here are the most important changes for doing major migrations:
OpenSeaPort::computeFees()
No longer accepts afees
parameter, relying solely onasset
.
Version 1.0 introduces bundling for semi-fungible and fungible assets, serialized asset collections, a smaller bundle size, and more, along with many bug fixes.
Breaking directory changes
- Many constants inside of
/utils
have been moved to/constants
. - Other utils have been moved to
/utils/utils
Breaking type changes
profile_img_url
in theOpenSeaAccount
type has been renamed toprofileImgUrl
OpenSeaPort::computeFees()
now returns a new type,ComputedFees
, which expands "BPS" to "BasisPoints" for each of its member keys
Breaking interface changes
OpenSeaPort::computeFees()
now takes in a single asset, and returns a new and more consistent type,ComputedFees
schemaName
has been moved out of main method calls and into theAsset
typeOpenSeaAPI::getAsset()
now accepts named arguments, consistent with other methodsOpenSeaPort::createFactorySellOrders
now accepts anassets
parameter consistent with the otherAsset
type parameters in other methodsOpenSeaPort::getTokenBalance()
no longer defaults to the WETH address if notokenAddress
is set. And it accepts aschemaName
parameter instead of an ABIOpenSeaPort::approveNonFungibleToken()
has been renamed toapproveSemiOrNonFungibleToken()
, though it always worked for semi-fungible tokens like ERC-1155
Removed deprecations:
OpenSeaPort::transferOne()
, replaced byOpenSeaPort::transfer()
tokenId
andtokenAddress
parameters for most SDK methods, replaced by creating anAsset
type and passing that in
Version 0.6 introduces some major new features, including trading fungible and semi-fungible assets (including ERC-20 and ERC-1155 assets). These have been architected to maximize backwards compatibility, but there were a few breaking changes:
- The
Asset
type now hasversion
instead ofnftVersion
as a property - Similarly, the
NFTVersion
type has been renamedTokenStandardVersion
computeFees
now takes in a single, annotated OpenSeaAsset as a parameter instead of a list of assets- In
isAssetTransferrable
,didOwnerApprove
was renamed touseProxy
Non-breaking changes with deprecation notices:
getFungibleTokens
has been deprecated. Useapi.getPaymentTokens
- Methods now show a deprecation warning when used with
tokenId
ortokenAddress
as arguments, instead of usingasset
orassets
(of typeAsset
/Asset[]
)