Giter Site home page Giter Site logo

Comments (6)

linked0 avatar linked0 commented on July 23, 2024

Priority

  • Relations between Conduit, ConduitController, SharedStorefrontLazyMintAdapter
  • Functionality of AssetContractShared

from boa-space-contracts.

linked0 avatar linked0 commented on July 23, 2024

Use Miro when documenting.

from boa-space-contracts.

linked0 avatar linked0 commented on July 23, 2024

You can check the relations Seaport, SharedStorefrontLazyMintAdapter, and AssetContractShared contracts here.

from boa-space-contracts.

linked0 avatar linked0 commented on July 23, 2024

From ProjectOpenSea/seaport#580, we found out that a default Conduit contract is used in the OpenSea, whose address is 0x1E0049783F008A0085193E00003D00cd54003c71.

from boa-space-contracts.

linked0 avatar linked0 commented on July 23, 2024

The summarized information is here, here, and here in our Miro page.

The important thing is as follows, which is the steps for making our conduit.

  1. Create a Conduit with our deployer's address
const conduitKeyOne = `${owner.address}000000000000000000000000`
await conduitController.createConduit(conduitKeyOne, owner.address);
  1. New Conduit contract is deployed for the new key through ConduitController::createConduit
function createConduit(bytes32 conduitKey, address initialOwner)
    returns (address conduit) {
    ...
    // Derive address from deployer, conduit key and creation code hash.
    conduit = address(
        uint160(
            uint256(
                keccak256(
                    abi.encodePacked(
                        bytes1(0xff),
                        address(this),
                        conduitKey,
                        _CONDUIT_CREATION_CODE_HASH
                    )
                )
            )
        )
    );

    // Deploy the conduit via CREATE2 using the conduit key as the salt.
    new Conduit{ salt: conduitKey }();
}
  1. The returned address named conduit in the previous code will be used as a default conduit. The address of the newly deployed Conduit can be calculated with the conduit key.
  2. We should add a user' address as channel to the conduit by calling updateChannel, which should be called only once for a user.
  3. The conduit ends up having a role as an operator for all the NFTs of the user.

from boa-space-contracts.

linked0 avatar linked0 commented on July 23, 2024

Closing this issue because we found out almost all the necessary things about Conduit and prepared how to use it in our project. Later @she110ff will decide whether to use the Conduit or not. I will go forward with issue #19 with the assumption that we will use a default conduit in our project.

@she110ff If you want more things about this issue, please let me know about it.

from boa-space-contracts.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.