Skip to content

Update cli tooling from Metaplex master branch#1

Open
RohanKapurDEV wants to merge 268 commits intoGooseFX1:masterfrom
metaplex-foundation:master
Open

Update cli tooling from Metaplex master branch#1
RohanKapurDEV wants to merge 268 commits intoGooseFX1:masterfrom
metaplex-foundation:master

Conversation

@RohanKapurDEV
Copy link

No description provided.

jnuno98 and others added 30 commits November 23, 2021 08:57
* Use shuffling

* Various fixes to differnet clis and battlehardening, plus a new feature to update existing candy machine objects

* Forgot main cache file

* Update updateFromCache.ts

Co-authored-by: Austin Adams <austbot@users.noreply.github.com>
Otherwise pull requests become stuck when the workflow does not run but is
configured as required.
#873)

* Fixed a shit ton of stuff

* fixed ENV

* removed code duplication

* Update js/packages/web/src/components/ArtContent/index.tsx

Co-authored-by: Michael <sebastiyan.michael@outlook.com>

* Fix everything and lint fix too :)

* add styled

Co-authored-by: Michael <sebastiyan.michael@outlook.com>
* test: setup connect-wallet flow

* test: connect and fund wallet utils

* text: redirect requests to mainnet-beta to localnet

* chore: script to build and deploy all metaplex programs

* utils: log more connected wallet info

* test: init store initiating

- does not go through

* Revert "chore: script to build and deploy all metaplex programs"

This reverts commit 54ef01e.

- no longer needed as we are pulling in full test-validator setup next

* chore: adding test-validator setup

- pre-deploys metaplex programs and adds a store owner + 2 creators

* conn: localhost support via network search param

- localhost can now be configured via a URL param which is sufficient
  for testing
- this local option is not exposed to the user as part of the selector
  dropdown
- `endpointParam/maybeEndpoint` dance has been simplified by using
  proper types, i.e. the extra `endpoinParam` var is no longer needed

* components: adding hash query link and using it in navbar

- the stock `<Link>` looses the search query that is behind `#/`, i.e.
  `http://localhost:3000/#/artworks?network=localhost&store=A15Y2eoMNGeX4516TYTaaMErwabCrf9AB9mrzFohdQJz`
- however the store for instance is queried on route changes which means
  we need to keep the query param around
- so far the nav bar links were fixed that way

* userbadge: preserving hash query for local links

* settings: prefering hash query for view profile link

* test: completing/fixing setup scripts

* chore: convert setup to typescript

* setup: add common keypairs

* setup: deriving addresses from one source of truth

* admin: preserve hash for 'Go to initialize'

* setup: optimized test validator startup

* cy: separate wallet init scripts

* cy: init test uses different store owner each time

* init-store: pushing history /admin including location hash

* cy: succesfully running init-store

* common: adding benchmarking tool `timeStart`

* common: benchmarking async actions for loadAccounts and meta

* bench: accounts logging time it takes for account update sub to fulfill

* fix: click-to-copy invalid svg/react properties

* fix: wallet invalid svg/react properties

* cy: complete init-store happy path test

* cy: reorg tests and adding todo cases

* setup: move ledger logic to utils to reuse

* chore: utils/fixtures to stub out coingecko requests

- this speeds up tests and is one step towards running all locally

* chore: util to stub out loading solana token list

* test: activating local coingecko and token list for all tests

* tests: improved finding init store button to click

* chore: disable webpack hotreload while tests are running

* tests: proper test hook isolation

* chore: tests and script reorg

* chore: upgrade phan-wallet-mock dep

* chore: fix include TS folders

* test: utils adding ensure funded store method

* test: add creators success test

* chore: fix TS compile error

* chore: remove obsolete cy commands

* chore: test utils code cleanup

* docs: adding detailed readme

* fix: remove obsolete import
This replaces the vercel metaplex-web CI step which
depended on the build-CI-without-gumdrop package script and
introduces the build-web script targeted specifically for
building the web project on Vercel.
* use correct share value for creators

* update CHANGELOG.md

* Update useCreators.ts

* changed creator reduce to map

Co-authored-by: Austin Adams <austbot@users.noreply.github.com>
… off chain settings resource (#1094)

* Adds a store v2 init implementatioin that allows a uri to point to an off chain settings resource

* adds more tests
This reverts commit f464a89.

Reverting in order to undo changes to query string preservation which
caused links to break in some instances.
Updated image url to use repository local file.
Added black background
* feat(packs): redeeming

* feat: add probability to cards in pack (#32)

* dummy modal component (#33)

* fix an ability to close modal (#34)

* fix: fetch editions on pack page

* fix: re-fetch data on visiting artworks page

fix: pull items page typing

fix: hide initial store modal

fix: build issues

return websockets

drop websockets

clean-up

* refactor: clean-up

* feat: remove packs from homepage (#36)

* feat: merge voucher metadata with pack (#37)

* fix: instruction chunks to optimize packs creation (#38)

* refactor: remove websockets

* fix: build

* refactor: remove unneded fetch

* fix: fetch item that is redeemed

* feat: Add limit of cards per pack (#40)

* fix: revert meta use effect

* feat: update transactions due to program changes

* fix: build and clean-up

* chore: update CHANGELOG.md

* chore: update CHANGELOG

* feat: extend pack details view with voucher (#41)

* feat: redesign pack card (#42)

* feat: updated pack card

* fix: comments fixed

* fix: packs layout on small screens (#43)

* fix: hotfix create art view card (#44)

* feat: remove opening pack after click (#45)

* feat: remove pack card animation (#46)

* feat: remove animation from packs (#47)

* feat: new open pack button (#48)

* fix: less compilation

* refactor: pack page always has editionId (#49)

* feat: implement request cards as a single transaction. (#50)

* fix: build

* feat: create action to request cards (#51)

* fix: auctions cards UI layout (#52)

* feat: modal for redeemed cards (#53)

* feat: redeem pack modal

* fix: small refactor

* fix: comments fixed

* fix: refactor after comments

* feat: implement full pack size claim (#54)

* feat: modal for approve transactions explanation (#55)

* feat: added approve transaction step

* fix: comments fixed

* refactor: remove unused component

* feat: update logic of packs displaying in My Items section (#56)

* feat: Use Context to store pack state (#58)

* fix: import

* fix: styles

* fix: style variable

* fix: fetch pack state after redeem (#59)

* Merge master from foundation

* fix: packs feature flag

* feat: pack page mobile view (#57)

* fix: build

* feat: partially open pack (#62)

* feat: mobile view for claim pack modal (#63)

* feat: provide random oracle in transactions (#64)

* fix: redeemed cards list is wrong (#65)

Co-authored-by: Paul <5280742+kurpav@users.noreply.github.com>
Co-authored-by: ViacheslavMylostyvyi <gamer2forse@gmail.com>
Co-authored-by: Irina Kadushkina <69786983+ikadushkina@users.noreply.github.com>
* fix: fixed fully opened pack

* fix: fixed comments

* fix: remove default proving process

Co-authored-by: Irina <ikadushkina@techflower.io>
* feat(packs): redeeming

* feat: add probability to cards in pack (#32)

* dummy modal component (#33)

* fix an ability to close modal (#34)

* fix: fetch editions on pack page

* fix: re-fetch data on visiting artworks page

fix: pull items page typing

fix: hide initial store modal

fix: build issues

return websockets

drop websockets

clean-up

* refactor: clean-up

* feat: remove packs from homepage (#36)

* feat: merge voucher metadata with pack (#37)

* fix: instruction chunks to optimize packs creation (#38)

* refactor: remove websockets

* fix: build

* refactor: remove unneded fetch

* fix: fetch item that is redeemed

* feat: Add limit of cards per pack (#40)

* fix: revert meta use effect

* feat: update transactions due to program changes

* fix: build and clean-up

* chore: update CHANGELOG.md

* chore: update CHANGELOG

* feat: extend pack details view with voucher (#41)

* feat: redesign pack card (#42)

* feat: updated pack card

* fix: comments fixed

* fix: packs layout on small screens (#43)

* fix: hotfix create art view card (#44)

* feat: remove opening pack after click (#45)

* feat: remove pack card animation (#46)

* feat: remove animation from packs (#47)

* feat: new open pack button (#48)

* fix: less compilation

* refactor: pack page always has editionId (#49)

* feat: implement request cards as a single transaction. (#50)

* fix: build

* feat: create action to request cards (#51)

* fix: auctions cards UI layout (#52)

* feat: modal for redeemed cards (#53)

* feat: redeem pack modal

* fix: small refactor

* fix: comments fixed

* fix: refactor after comments

* feat: implement full pack size claim (#54)

* feat: modal for approve transactions explanation (#55)

* feat: added approve transaction step

* fix: comments fixed

* refactor: remove unused component

* feat: update logic of packs displaying in My Items section (#56)

* feat: Use Context to store pack state (#58)

* fix: import

* fix: styles

* fix: style variable

* fix: fetch pack state after redeem (#59)

* Merge master from foundation

* fix: packs feature flag

* feat: pack page mobile view (#57)

* fix: build

* feat: partially open pack (#62)

* feat: mobile view for claim pack modal (#63)

* feat: provide random oracle in transactions (#64)

* fix: redeemed cards list is wrong (#65)

* feat: update pack opening resume

Co-authored-by: Paul <5280742+kurpav@users.noreply.github.com>
Co-authored-by: ViacheslavMylostyvyi <gamer2forse@gmail.com>
Co-authored-by: Irina Kadushkina <69786983+ikadushkina@users.noreply.github.com>
* fix padding on art selection modal

* fixed amount selection on instant sale

* redirect and reload to home when creating an auction

* changelog
The duplicate declaration of  `randomOracle: StringPublicKey;` is causing issues with yarn build
* feat: update redeem modal layout on packs

* fix: build

* fix: build
* feat: update redeem modal layout on packs

* fix: build

* fix: build

* refactor: update packs context

* Change exports
* Fetch actual proving process before a pack opening
* Fetch final proving process as soon as claim ends

* Revert "feat: update redeem modal layout on packs"

This reverts commit 7ee43c0.

* fix: build

* fix: build
* Update CHANGELOG.md

* Update CHANGELOG.md

* fix: redirect to my items after pack creation

Co-authored-by: Irina <ikadushkina@techflower.io>
* Update CHANGELOG.md

* Update CHANGELOG.md

* fix: added image placeholder

Co-authored-by: Irina <ikadushkina@techflower.io>
yusefnapora and others added 30 commits March 29, 2022 22:53
* Added manual cache creation

* Added back png_min

Co-authored-by: Sammy <41593264+stegaBOB@users.noreply.github.com>
* Use generators in standard way

- for..of iterate over generator instead of manual loop

* Use AsyncGenerator instead of Generator<Promise<..>>

* Fund arweave-sol bundlr wallet once instead of every bundle

- precalculate the total size to upload and fund with that amount

* Fixed bundlr file size calculation

Co-authored-by: Sammy <41593264+stegaBOB@users.noreply.github.com>
Co-authored-by: Dmitrii Goriunov <goriunov@users.noreply.github.com>
* improve logging

* AWS upload log
* improve logging

* CM UI Error handling

* improve error message
* misspells

* misspells
…2052)

This should solve #2013.

Given original metadata (ie `0.json`) like:
```json
{
  "name": "name",
  "symbol": "",
  "description": "desc",
  "image": "image.png",
  "properties": {
    "files": [{ "uri": "image.png", "type": "image/png" }]
  }
}
```
this function used to produce an updated metadata with the arweave image link in the `image` property but would leave the one in `properties.files` intact:
```json
{
  "name": "name",
  "symbol": "",
  "description": "desc",
  "image": "https://arweave.net/foobarbaz?ext=png",
  "properties": {
    "files": [{ "uri": "image.png", "type": "image/png" }]
  }
}
```
but with this change it produces:
```json
{
  "name": "name",
  "symbol": "",
  "description": "desc",
  "image": "https://arweave.net/foobarbaz?ext=png",
  "properties": {
    "files": [{ "uri": "https://arweave.net/foobarbaz?ext=png", "type": "image/png" }]
  }
}
```
* improve logging

* Split up minting into multiple txns and save setup

* Update js/packages/candy-machine-ui/src/Home.tsx

* Fix variable name
Co-authored-by: Noah Gundotra <noahgundotra@noahs-mbp.mynetworksettings.com>
…2058)

* Update nft-storage.ts

Update metadata's properties.file.uri when uploading via arweave-sol (#…2052)

This should solve #2013.

* Update metadata properties.file.uri 

same error as 
Update metadata's properties.file.uri when uploading via arweave-sol (#2052)

This should solve #2013.

* Update metadata properties.file.uri 

same error as 
Update metadata's properties.file.uri when uploading via arweave-sol (#2052)

This should solve #2013.

* Update Metadata properties.file.uri

* method for set FileUri property

* Forgot to run Prettier? yes, sorry

* Update js/packages/cli/src/helpers/upload/pinata.ts

* Update pinata.ts

Co-authored-by: Sammy <41593264+stegaBOB@users.noreply.github.com>
This replaces the nft.storage uploader with one that supports "bundles"
of multiple NFTs. This greatly improves performance by avoiding rate
limits and requiring fewer signatures to authorize uploads.

See nftstorage/metaplex-auth#39 for context.

The existing `batchSize` config param is used to determine how many NFTs
to include in each bundle, with a default of 50 if no `batchSize` is
set, and a maximum of NFTBundle.MAX_ENTRIES (currently 2200).

This PR also adds an `nftStorageGateway` config option that can override
the default HTTP gateway host of `https://nftstorage.link` used in
metadata links, in case the creator has a preferred gateway.

Finally, the `files` array of the final metadata now contains two
entries for each asset file. The first entry, with `cdn = true` is an HTTP
gateway link, while the second, with `cdn = false` is an `ipfs://` URI
that can be used to locate the data using any IPFS peer or gateway. This
should add a bit of resiliency in case the primary gateway should go
down, although that will require clients that know to look for the
alternative `ipfs://` URIs.
* improve logging

* prevent bad txns

* prevent bad txns and update UI often
* Add new subcommand that returns deocded private key

* allow use of encoded priv key instead of passing filename that contains decoded priv key

* change create-key-array to decode_private_key

* make Private lowercase
* improve logging

* reduce txn size by removing unneccesary keypairs
- Previously if the name was wrong it would default to devnet.
- With this change it will use the default if nothing is specified,
  but if something is specified and not found it will throw an
  error.

Testing
- Ran it and observed passing behavior with default specified, a
  valid env specified, and observed the error thrown with an invalid
  env specified.

Co-authored-by: Michael Danenberg <danenbm@users.noreply.github.com>
…#2105)

* Apply asset manifest symbol validation when reading file and allow empty string symbol

* Throw TypeError instead of Error

* Fix lint error

* Default asset manifest symbol to empty string if not defined
…2135)

* Update candy-machine-v2-cli.ts

Fixing common existing issue by throwing error on incorrect env flag during call to `upload`.

Issue on display here: https://solscan.io/account/6FKvsq4ydWFci6nGq9ckbjYMtnmaqAoatz5c9XWjiDuS#solTransfers

* Fix lint

Co-authored-by: Sammy <41593264+stegaBOB@users.noreply.github.com>
* feat: bump @civic/solana-gateway-react to 0.7.0

* chore: yarn install

* fix: GatewayProvider set clusterUrl=rpcUrl

Co-authored-by: Kevin Colgan <kevin@civic.com>
* set and verify collection command

* set and verify collection all command for a hashlist

* Required options

Co-authored-by: Rodrigo Rivera <rrivem@gmail.com>
Co-authored-by: Sammy <41593264+stegaBOB@users.noreply.github.com>
* fix civicpass

* add env validation catch

* linting
* fix

* remove console.logs

* shift

* jest

* fix presale

* fix endDate

* fix

* revert to base package.json

* fix

* fix

* fix

* fix

* fix
* replace with directory

* update readme

* update readme

* update readme

* update readme

* update and add alt

* update

* remove alt

* add descriptions and improve formatting

* improve wording

* typos

* update links

* Update README.md
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.