Giter VIP home page Giter VIP logo

sdk-v2's People

Contributors

0xbunta avatar 0xhiroshi avatar 0xshisui avatar broocelr avatar dependabot[bot] avatar george-lr avatar hexacroes avatar kenlr avatar niratodev avatar perryrare avatar rarebodhi avatar sunwrobert avatar wjpg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sdk-v2's Issues

Remove `contracts-exchange-v2` as dependency

Please describe your problem
I don't think there's a good reason for this package to require contracts-exchange-v2 as a dependency. It then requires all consumers of this package to also install a bunch of contract related libraries that serve no purpose in a FE/client repo, and it's really only used for types right now (has no functionality).

Describe the solution you'd like
I would recommend moving this to a dev dependency, then calling typechain on the contracts on those, all utilizing devDependencies

Additional context
The reason I brought this up is because we are currently using this package as a dependency and there's currently a security vulnerability in one of the downstream dependencies @openzeppelin/contracts

image

Then thought that it was weird for this package to be relying on that in the first place

Multicall

Create maker order functions will require several on chain read operations (approvals check, royalties, strategy fees) so we need a multicall support in order to reduce the number of rpc requests.

https://www.npmjs.com/package/@0xsequence/multicall provides the best interface to work with ethers, however I have some concerns about the package size.

Update `transferItemsAcrossCollection` helper args

In order to improve devX: make transferItemsAcrossCollection accept an array of objects, that it then deconstructs into the format required by the contract. I.e.

  {
    to: "0x000",
    transferData: [
      {
        collection: "0x000",
        assetType: "XYZ",
        itemIds: ["1", "2", "3"],
        amounts: ["1", "1", "1"],
      },
      {
        collection: "0x001",
        assetType: "XYZ",
        itemIds: ["1"],
        amounts: ["1"],
      },
    ]
  };

Support node >= 19

Any reason that this SDK only supports node 18 and lower? Kind of restricting when installing this as a dependency

#156

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.