This repository was archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Trying to update operators from the market contract #130
Labels
Comments
emmanueldenloye
added a commit
that referenced
this issue
Feb 5, 2021
This should resolve issue #130
lambdahands
added a commit
that referenced
this issue
Feb 26, 2021
* populate tzip-16 contract data when contracts are originated The spec only requires that the 'description' and 'interfaces' fields to be defined IIRC * Remove update operators from market contract This should resolve issue #130 * remove dead code * Update metadata definition given Eugene's comments * replaced nested code with async/await syntax * feat: Update client/package.json version, use in splash page * take out nested try/catch block * remove more dead code * form JSON correctly * update faucet storage in contracts/src/nft-contracts-tzip16.ts * move example metadata definition from ligo to typescript * feat: Scaffold notifications, file upload as thunk * update contracts given Michael/Eli's suggestions (will update tests) * modify tests to reflect changes in contract's entrypoints * feat: Upload artifact files on token creation submit * more cleanup as per Michael's comments * take out tzip12 contracts and related files/tests * take out old contracts in `contracts/bin` * combine market_case_1.ts/market_case_1.test.ts -> nft_market.test.ts also put some important code into beforeEach block * wip: Upgrade to edonet * wip: Bypass typescript, 'edo2net' in wallet requestPermissions for Thanos * fix - incorrectly used error fa2_insufficient_balance should be fa2_token_undefined * Put required price and amount given in the "WRONG_TEZ_PRICE" error. * make sure tez doesn't get stuck on Sell/Cancel entry-points * Transfers of zero amount MUST be treated as normal transfers. In case of a zero amount transfer, the token_id validity remains unverified. This has been addressed. * wrap entrypoint name in parentheses * include tz files * chore: Remove unused environment variables from bin/dev-*/env scripts * fix: Resolve issues with notification delivery * fix(temp): Workaround edonet compatibility issues by referring to edo2net in client * feat: Initial video NFT upload & display * feat: Play/pause video on hover in token grid * chore: Cleanup unused actions, IPFS form display * fix: Readd bootstrap functions that were cleared during contracts/ refactor * fix: Work around edo2net edge case that broke sandbox * fix: Use createReadStream for non-pinata uploads * fix: Fix token_metadata_map -> token_info regression * doc: Update delphinet -> edonet in README * Fix wallet connect (#203) * Fix issue where already connected wallets would not auto reconnect * fix: Fix redux warning, resolve disconnect issue, fix FOUC on reconnect * refactor: Move wallet reconnect attempt state out of component and into system SDK Co-authored-by: Philip Diaz <philip@tqgroup.io> * Fixing yarn log:api to follow api-server and not bcd api * fix: Update max request size in local nginx gateway * chore: Bump server package.json version * updated shield Co-authored-by: Emmanuel Denloye-Ito <eod8tb@virginia.edu> Co-authored-by: Joshua Dechant <josh@codecrafting.org> Co-authored-by: Gregory Rocco <gregoryrocco@MBPSprueSupreme.nyc.rr.com>
lambdahands
added a commit
that referenced
this issue
Mar 10, 2021
* populate tzip-16 contract data when contracts are originated The spec only requires that the 'description' and 'interfaces' fields to be defined IIRC * Remove update operators from market contract This should resolve issue #130 * remove dead code * Update metadata definition given Eugene's comments * replaced nested code with async/await syntax * feat: Update client/package.json version, use in splash page * take out nested try/catch block * remove more dead code * form JSON correctly * update faucet storage in contracts/src/nft-contracts-tzip16.ts * move example metadata definition from ligo to typescript * feat: Scaffold notifications, file upload as thunk * update contracts given Michael/Eli's suggestions (will update tests) * modify tests to reflect changes in contract's entrypoints * feat: Upload artifact files on token creation submit * more cleanup as per Michael's comments * take out tzip12 contracts and related files/tests * take out old contracts in `contracts/bin` * combine market_case_1.ts/market_case_1.test.ts -> nft_market.test.ts also put some important code into beforeEach block * wip: Upgrade to edonet * wip: Bypass typescript, 'edo2net' in wallet requestPermissions for Thanos * fix - incorrectly used error fa2_insufficient_balance should be fa2_token_undefined * Put required price and amount given in the "WRONG_TEZ_PRICE" error. * make sure tez doesn't get stuck on Sell/Cancel entry-points * Transfers of zero amount MUST be treated as normal transfers. In case of a zero amount transfer, the token_id validity remains unverified. This has been addressed. * wrap entrypoint name in parentheses * include tz files * chore: Remove unused environment variables from bin/dev-*/env scripts * fix: Resolve issues with notification delivery * fix(temp): Workaround edonet compatibility issues by referring to edo2net in client * feat: Initial video NFT upload & display * feat: Play/pause video on hover in token grid * chore: Cleanup unused actions, IPFS form display * fix: Readd bootstrap functions that were cleared during contracts/ refactor * fix: Work around edo2net edge case that broke sandbox * fix: Use createReadStream for non-pinata uploads * fix: Fix token_metadata_map -> token_info regression * doc: Update delphinet -> edonet in README * Fix wallet connect (#203) * Fix issue where already connected wallets would not auto reconnect * fix: Fix redux warning, resolve disconnect issue, fix FOUC on reconnect * refactor: Move wallet reconnect attempt state out of component and into system SDK Co-authored-by: Philip Diaz <philip@tqgroup.io> * Fixing yarn log:api to follow api-server and not bcd api * fix: Update max request size in local nginx gateway * chore: Bump server package.json version * Implement Fixed Price Contract on asset details page #121 * Update config schema * Add bootstrapping for fixed price contract * remove unnecessary batch params * feat: Add retry/cancel behavior for modal error states * Show for sale items in user's collection * Wait for confirmations before updating NFT state; connect user's wallet on Buy when not already connected Co-authored-by: Emmanuel Denloye-Ito <eod8tb@virginia.edu> Co-authored-by: Philip Diaz <philip@tqgroup.io> Co-authored-by: lambdahands <lambdahands@users.noreply.github.com> Co-authored-by: Philip Diaz <philip.diaz@tqtezos.com>
lambdahands
pushed a commit
that referenced
this issue
Mar 10, 2021
commit e81669d Merge: 9864539 31727b0 Author: Philip Diaz <philip.diaz@tqtezos.com> Date: Wed Mar 10 14:59:33 2021 -0500 Merge remote-tracking branch 'origin/v0.2.1' into develop commit 9864539 Author: Joshua Dechant <josh@codecrafting.org> Date: Wed Mar 10 14:52:19 2021 -0500 Implement Fixed Price Contract on asset details page (#216) * populate tzip-16 contract data when contracts are originated The spec only requires that the 'description' and 'interfaces' fields to be defined IIRC * Remove update operators from market contract This should resolve issue #130 * remove dead code * Update metadata definition given Eugene's comments * replaced nested code with async/await syntax * feat: Update client/package.json version, use in splash page * take out nested try/catch block * remove more dead code * form JSON correctly * update faucet storage in contracts/src/nft-contracts-tzip16.ts * move example metadata definition from ligo to typescript * feat: Scaffold notifications, file upload as thunk * update contracts given Michael/Eli's suggestions (will update tests) * modify tests to reflect changes in contract's entrypoints * feat: Upload artifact files on token creation submit * more cleanup as per Michael's comments * take out tzip12 contracts and related files/tests * take out old contracts in `contracts/bin` * combine market_case_1.ts/market_case_1.test.ts -> nft_market.test.ts also put some important code into beforeEach block * wip: Upgrade to edonet * wip: Bypass typescript, 'edo2net' in wallet requestPermissions for Thanos * fix - incorrectly used error fa2_insufficient_balance should be fa2_token_undefined * Put required price and amount given in the "WRONG_TEZ_PRICE" error. * make sure tez doesn't get stuck on Sell/Cancel entry-points * Transfers of zero amount MUST be treated as normal transfers. In case of a zero amount transfer, the token_id validity remains unverified. This has been addressed. * wrap entrypoint name in parentheses * include tz files * chore: Remove unused environment variables from bin/dev-*/env scripts * fix: Resolve issues with notification delivery * fix(temp): Workaround edonet compatibility issues by referring to edo2net in client * feat: Initial video NFT upload & display * feat: Play/pause video on hover in token grid * chore: Cleanup unused actions, IPFS form display * fix: Readd bootstrap functions that were cleared during contracts/ refactor * fix: Work around edo2net edge case that broke sandbox * fix: Use createReadStream for non-pinata uploads * fix: Fix token_metadata_map -> token_info regression * doc: Update delphinet -> edonet in README * Fix wallet connect (#203) * Fix issue where already connected wallets would not auto reconnect * fix: Fix redux warning, resolve disconnect issue, fix FOUC on reconnect * refactor: Move wallet reconnect attempt state out of component and into system SDK Co-authored-by: Philip Diaz <philip@tqgroup.io> * Fixing yarn log:api to follow api-server and not bcd api * fix: Update max request size in local nginx gateway * chore: Bump server package.json version * Implement Fixed Price Contract on asset details page #121 * Update config schema * Add bootstrapping for fixed price contract * remove unnecessary batch params * feat: Add retry/cancel behavior for modal error states * Show for sale items in user's collection * Wait for confirmations before updating NFT state; connect user's wallet on Buy when not already connected Co-authored-by: Emmanuel Denloye-Ito <eod8tb@virginia.edu> Co-authored-by: Philip Diaz <philip@tqgroup.io> Co-authored-by: lambdahands <lambdahands@users.noreply.github.com> Co-authored-by: Philip Diaz <philip.diaz@tqtezos.com> commit d7174e5 Author: Rick Love <rick@toldpro.com> Date: Mon Mar 8 10:39:21 2021 -0600 Reset Wallet Selection on Permission Failure (#222) * Reset Wallet Selection on Permission Failure * Remove console log commit 62a7591 Author: Rick Love <rick@toldpro.com> Date: Mon Mar 8 10:39:11 2021 -0600 FIX Image Upload Preview Size (#225) commit a0f6ce6 Merge: ad23055 3ced760 Author: Philip Diaz <philip.diaz@tqtezos.com> Date: Fri Mar 5 10:37:56 2021 -0500 Merge branch 'master' into develop commit 31727b0 Author: Gregory Rocco <gregoryrocco@MBPSprueSupreme.fios-router.home> Date: Thu Mar 4 14:06:22 2021 -0500 updated shield to reflect version commit ad23055 Author: lambdahands <lambdahands@users.noreply.github.com> Date: Wed Mar 3 16:43:12 2021 -0500 feat: Originate contract via minter-sdk contracts/bin/ code (#215) * feat: Originate contract via minter-sdk contracts/bin/ code * feat: Use public minter-sdk raw content url * refactor: Update bootstrap-contracts-config script with clearer functions * chore: Remove star imports from bootstrap-contracts-config commit d13a4b8 Author: lambdahands <lambdahands@users.noreply.github.com> Date: Wed Mar 3 11:38:17 2021 -0500 fix(doc): Update README with correct Pinata apiSecret field (#214) commit 4df1556 Author: Emmanuel Denloye-Ito <eod8tb@virginia.edu> Date: Wed Mar 3 11:24:31 2021 -0500 Auction and fixed price contracts (#213) * feat: Commit contracts/ changes from fixed-price and auction work This commit moves changes merged from emmanuel/fixed-price sale as well as eli/english-auction into a clean branch on top of develop. * chore: Update yarn.lock * token_metadata_map -> token_info * recompile contracts Co-authored-by: Philip Diaz <philip.diaz@tqtezos.com> commit 09a3d0a Author: Filipe Farinha <filipe@ktorn.com> Date: Thu Mar 4 00:24:03 2021 +0800 Added placeholder Pinata API keys. (#208) commit 4cf40d7 Merge: 6736474 6432b72 Author: Philip Diaz <philip.diaz@tqtezos.com> Date: Mon Mar 1 14:11:32 2021 -0500 Merge branch 'develop' of github.com:tqtezos/minter into develop commit 6736474 Author: Eli Guenzburger <eli3720@gmail.com> Date: Thu Feb 4 23:07:25 2021 -0500 added english auction commit 6432b72 Author: Eli Guenzburger <eli3720@gmail.com> Date: Thu Feb 4 23:07:25 2021 -0500 added english auction
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
add_operator_nft \ remove_operator_nft inside market contract does not make sense
(edited)
12:24
What happens here is that market contract tries to control operator on behalf of some owner. This operation should always fail. Only owner himself can add or remove some other address as his operator
12:25
In other words if SENDER not the same as owner , FA2 update_operators will fail
https://github.com/tqtezos/minter/blob/develop/contracts/ligo/src/fixed_price_sale_market.mligo#L92
https://github.com/tqtezos/minter/blob/develop/contracts/ligo/src/fixed_price_sale_market.mligo#L99
The text was updated successfully, but these errors were encountered: