Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xcert/ethereum-asset-ledger

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xcert/ethereum-asset-ledger

Ethereum ledger for 0xcert protocol.

  • 0.0.0-alpha4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
increased by14.81%
Maintainers
2
Weekly downloads
 
Created
Source
## Available methods
A list of all available methods.

### Mutations
await ledger.assignAbilities(accountId, abilities);
await ledger.revokeAbilities(accountId, abilities);
await ledger.setEnabled(state);
await ledger.approveAccount(assetId, takerId); // ERC20 ERC721
await ledger.createAsset({ accountId, assetId, proof });
await ledger.updateAsset(assetId, { proof });
await ledger.destroyAsset(assetId);
await ledger.revokeAsset(assetId);
await ledger.update({ uriBase });

### Queries
await ledger.getAbilities(accountId);
await ledger.getCapabilities();
await ledger.getInfo();
await ledger.getSupply();
await ledger.isEnabled();
await ledger.isAprovedAccount(takerId, assetId); // ERC20 ERC721
await ledger.getAprovedAccount(assetId); // ERC20 ERC721
await ledger.getBalance(accountId);
await ledger.getAssetAccount(assetId);
await ledger.getAsset(assetId); // proof, uri, assetId

## TODO
await ledger.transferAsset({ id, to, data? }); // Safe transfer is done, still needs normal transfer based on provider info implementation.
await ledger.setOperator(accountId, bool); // how to name this? 
await ledger.isOperator(ownerId, accountId); 
await ledger.clamTransferAsset(); // ??; transfer where from is not you

TODO

  • deploy contract - kako prebrati ledgerId ko je contract zdeployan

FAQs

Package last updated on 04 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc