.find uses some of the tools that I (bjartek) have made to develop and test cadence code.
- overflow is beeing used for testing and running manual
storylines
This repo is the backend code, there are two other repos in this solutions namely
- find-lookup a serverless function to lookup names from web2
- find-web the frontend code
There are a lot of transactions in the transactions folder in .find. These can be grouped as follows:
- buyNFTForSale
- delistAllNFTSale
- delistNFTSale
- listNFTForSale
This direct offer variant will escrow funds in the owners account so that we know they have enough and can pay
- bidMarketDirectOfferEscrowed
- cancelMarketDirectOfferEscrowed
- fulfillMarketDirectOfferEscrowed
- retractOfferMarketDirectOfferEscrowed
- increaseBidMarketDirectOfferEscrowed
This auction variant will escrow funds in the owners account so that we know they have enough and can pay
- cancelMarketAuctionEscrowed
- bidMarketAuctionEscrowed
- fulfillMarketAuctionEscrowed
- fulfillMarketAuctionEscrowedFromBidder
- increaseBidMarketAuctionEscrowed
- listNFTForAuctionEscrowed
A specialized version of auctions that can work with the struct rules for dapper utlity coin.
- increaseBidMarketAuctionSoft
- fulfillMarketAuctionSoft
- cancelMarketAuctionSoft
- bidMarketAuctionSoft
- listNFTForAuctionSoft
A specialized version of directOffers that can work with the struct rules for dapper utlity coin.
- bidMarketDirectOfferSoft
- acceptDirectOfferSoft
- cancelMarketDirectOfferSoft
- fulfillMarketDirectOfferSoft
- retractOfferMarketDirectOfferSoft
- increaseBidMarketDirectOfferSoft
These will seldom be used in other places then .find
- bidName
- startNameAuction
- cancelNameAuction
- cancelNameBid
- delistAllNameSale
- delistNameSale
- fulfillName
- fulfillNameAuction
- fulfillNameAuctionBidder
- increaseNameBid
- listNameForAuction
- listNameForSale
- rejectNameDirectOffer
- buyAddon
- mintDandy
- moveNameTO
- register
- registerGift
- removeCurratedCollection
- removeMarketOption
- removeRelatedAccount
- removeTenantRule
- renewName
- createCharity
- createProfile
- editProfile
- sendCharity
- sendFT
- setMainName
- setPrivateMode
- setProfile
- setRelatedAccount
- storeCuratedCollections
- addCuratedCollection
- alterMarketOption
In order to run the tests for .find we recommend using (gotestsum)[https://github.com/gotestyourself/gotestsum] with the following invocation
gotestsum -f testname --hide-summary output
There are also some tasks or storylines that you might want to run/modify if you want to experiment with how .find works
Take a look in the tasks folder and run a task with the form
go run tasks/demo/main.go
.find uses a feature in overflow to convert the transactions/scripts in this repo into a json file that is then published to npm.
This flow will be integrated into CI but right now it works like this
make client
will run the logic to generate the file lib/find.jsonmake minor|patch|major
will bump the semantic version of the lib/package.json filemake publish
will publish this file to NPM
In the frontend code this module is then used as an NPM import and used with FCL in a transaction like this
We are planning to look at flow-cadut in the future