All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Temp fix for web3 TS issue
- Bug fixes
- Update is unlockable and download to use project id
- Matic support
- Update methods to use project ID. If you were previously relying on contract address you will need to update your code.
- xDai support
- Minting wizard
- Add Web3 params to purchase
- Add royalty function
- Get royalty function
- Updated sale method
- Updated purchase method
- Add currency methods
- Add currency param to get resale items method
- Adding approve erc20 method
- Add sort and seller options to getResaleItems
- Add useAuth, account option to get user showcases
- Add file and description to create showcase
- Update modify showcase
- Add get all collectibles for user
- Add gem methods
- Adding Gem staking methods
- Adding
once
method to PollTx - Remove rounding of Cargo Credits
- Add estimate gas function
- Adding super721 contract
- Adding page, limit to get vendors api method
- Adding
method
to mint params
- Accounting for cargo credit decimal values
- Add showcaseId param to ERC-1155 methods
- Update add to showcase method to accept contractAddress.
- Adding support for ERC-1155 purchase and sale
- Update get resale items method to accept collection address
- Introducing LAB mehods which are experimental in nature
- Adding LAB_createConsecutiveSale method
- Adding LAB_consecutivePurchase method
- Updating eslintrc
- Save signature to local storage w/ account address
- Support ownerAddress when getting tokens by contract
- Add unapprovedFn to sell function
- Change args to object for getContractMetadata function
- Transactions are added automatically to PollTx
- No longer need to call
cargo.init
. Initialization is done in the constructor and now you only need to callcargo.enable
- Contract ABIs are fetched as needed rather than upfront.
- Contract ABIs are stored in localstorage to mitigate the need to request them from the server unnecessarily.
- web3 has been added as a peer dependency
- Cargo class is now a named import rather than default.
- Emitter class in now a new named import.
- Return new transaction hash in addition to all pending transactions in 'pending' pollTx event
- Update PollTx event 'pendingUpdated' to 'pending'
- Do not emit pending from completed event in PollTx.
- Update PollTx completed event emit an addition argument which is the updated list of pending transactions.
- Added typescript types to output
- Replaced awesome typescript loader with babel preset and tsc
- Bug where batch mint function did not return transaction hash
- Added getOwnedTokensByContract method that supports pagination. Metamask not required.
- Added getContractsWithStake to return all Cargo contracts that a given address owns tokens in.
- Added createBatchTokenContract api method
- Updated getMintedTokens api method to use v2. This supports pagination. The response shape has changed.
- Update getSignature method to use web3.personal.sign
- Add batch mint arguments to mint api method
- Added getTokensMetadata to get metadata for a group of tokens
- Update eslint package
- Added getResaleItemsByCrateId to get all resale items in a crate for the given crate ID.
- Initialize PollTx in the init function
- Update cargo.request to take a rawUrl option
- Added groupResaleItems util function
- Fixed bug where wallets like Opera on android do not return accounts array after calling enable()
- Added the PollTx class to easily watch and respond to status of submitted transactions.
- Refactored initialization method. Module now exports unitialized
Cargo
class. Options are now passed into the class constructor.
- Removed ability to pass options to
init
function. - Library no longer exports an already initialized Cargo class. Users now need to initialize cargo via
new Cargo()
.