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 - npm Package Compare versions

Comparing version 1.1.0-alpha0 to 1.1.0

.nyc_output/a3c3eb8f-109a-420e-a5a8-8852562cf092.json

16

CHANGELOG.json

@@ -5,4 +5,16 @@ {

{
"version": "1.1.0-alpha0",
"tag": "@0xcert/ethereum-asset-ledger_v1.1.0-alpha0",
"version": "1.1.0",
"tag": "@0xcert/ethereum-asset-ledger_v1.1.0",
"date": "Tue, 23 Apr 2019 14:00:03 GMT",
"comments": {}
},
{
"version": "1.0.2",
"tag": "@0xcert/ethereum-asset-ledger_v1.0.2",
"date": "Tue, 23 Apr 2019 13:16:49 GMT",
"comments": {}
},
{
"version": "1.0.1",
"tag": "@0xcert/ethereum-asset-ledger_v1.0.1",
"date": "Fri, 22 Mar 2019 09:48:00 GMT",

@@ -9,0 +21,0 @@ "comments": {}

# Change Log - @0xcert/ethereum-asset-ledger
This log was last generated on Fri, 22 Mar 2019 09:48:00 GMT and should not be manually modified.
This log was last generated on Tue, 23 Apr 2019 14:00:03 GMT and should not be manually modified.
## 1.1.0-alpha0
## 1.1.0
Tue, 23 Apr 2019 14:00:03 GMT
*Version update only*
## 1.0.2
Tue, 23 Apr 2019 13:16:49 GMT
*Version update only*
## 1.0.1
Fri, 22 Mar 2019 09:48:00 GMT

@@ -7,0 +17,0 @@

1

dist/core/ledger.d.ts

@@ -38,3 +38,2 @@ import { GenericProvider, Mutation } from '@0xcert/ethereum-generic-provider';

protected getProxyId(): number;
protected normalizeAddress(address: string): string;
}

@@ -47,3 +47,3 @@ "use strict";

constructor(provider, id) {
this._id = this.normalizeAddress(id);
this._id = ethereum_utils_1.normalizeAddress(id);
this._provider = provider;

@@ -59,3 +59,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
return get_abilities_1.default(this, accountId);

@@ -81,3 +81,3 @@ });

return __awaiter(this, void 0, void 0, function* () {
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
return get_balance_1.default(this, accountId);

@@ -103,3 +103,3 @@ });

return __awaiter(this, void 0, void 0, function* () {
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
return get_account_asset_id_at_1.default(this, accountId, index);

@@ -113,3 +113,3 @@ });

}
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
return accountId === (yield get_approved_account_1.default(this, assetId));

@@ -128,3 +128,3 @@ });

}
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
return approve_account_1.default(this, accountId, assetId);

@@ -143,3 +143,3 @@ });

}
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
let bitAbilities = ethereum_utils_1.bigNumberify(0);

@@ -155,3 +155,3 @@ abilities.forEach((ability) => {

const imprint = recipe.imprint || 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855';
const receiverId = this.normalizeAddress(recipe.receiverId);
const receiverId = ethereum_utils_1.normalizeAddress(recipe.receiverId);
return create_asset_1.default(this, receiverId, recipe.id, `0x${imprint}`);

@@ -174,3 +174,3 @@ });

}
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
let bitAbilities = ethereum_utils_1.bigNumberify(0);

@@ -193,4 +193,4 @@ abilities.forEach((ability) => {

}
const senderId = this.normalizeAddress(recipe.senderId);
const receiverId = this.normalizeAddress(recipe.receiverId);
const senderId = ethereum_utils_1.normalizeAddress(recipe.senderId);
const receiverId = ethereum_utils_1.normalizeAddress(recipe.receiverId);
return this.provider.unsafeRecipientIds.indexOf(recipe.receiverId) !== -1

@@ -226,3 +226,3 @@ ? transfer_1.default(this, senderId, receiverId, recipe.id)

}
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
return set_approval_for_all_1.default(this, accountId, true);

@@ -236,3 +236,3 @@ });

}
accountId = this.normalizeAddress(accountId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
return set_approval_for_all_1.default(this, accountId, false);

@@ -246,4 +246,4 @@ });

}
accountId = this.normalizeAddress(accountId);
operatorId = this.normalizeAddress(operatorId);
accountId = ethereum_utils_1.normalizeAddress(accountId);
operatorId = ethereum_utils_1.normalizeAddress(operatorId);
return is_approved_for_all_1.default(this, accountId, operatorId);

@@ -257,7 +257,4 @@ });

}
normalizeAddress(address) {
return ethereum_utils_1.normalizeAddress(address);
}
}
exports.AssetLedger = AssetLedger;
//# sourceMappingURL=ledger.js.map
{
"files": {},
"files": {
"packages/0xcert-ethereum-asset-ledger/CHANGELOG.json": "e7f4ed728733ea63ec9d26419af64db77ad07466",
"packages/0xcert-ethereum-asset-ledger/CHANGELOG.md": "80582453c623e9d07d09eb13e59bd02405f6a791",
"packages/0xcert-ethereum-asset-ledger/README.md": "7f751a931986bff784f467ec1ebb152fe52927b9",
"packages/0xcert-ethereum-asset-ledger/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de",
"packages/0xcert-ethereum-asset-ledger/package.json": "08b95e635c2f4a1e744397186c5f757e7867a1be",
"packages/0xcert-ethereum-asset-ledger/src/core/ledger.ts": "9f089f197049e8b8c54e487fc5c196f88e415cc5",
"packages/0xcert-ethereum-asset-ledger/src/index.ts": "a2d8215cbe69119124b39c6426ce2a59f60e5078",
"packages/0xcert-ethereum-asset-ledger/src/lib/capabilities.ts": "b2b5cac4e71a808dcd945e48c02704e3661106eb",
"packages/0xcert-ethereum-asset-ledger/src/mutations/approve-account.ts": "2d5435d94cabc9de8da70c8370191c93d47cbaff",
"packages/0xcert-ethereum-asset-ledger/src/mutations/create-asset.ts": "f9e3caa8711c88dda062aecdfb91e320adf59292",
"packages/0xcert-ethereum-asset-ledger/src/mutations/deploy.ts": "761ffd14c70fc1ab3844de14fca617671283b66f",
"packages/0xcert-ethereum-asset-ledger/src/mutations/destroy-asset.ts": "178d0e4983018441098620ab90b3e30752858144",
"packages/0xcert-ethereum-asset-ledger/src/mutations/grant-abilities.ts": "325ade3ba0dea51f896c83f4061b6a22ced2eeeb",
"packages/0xcert-ethereum-asset-ledger/src/mutations/revoke-abilities.ts": "d8c85a2f79f431ce5f717c58cb88a44fa69eebf7",
"packages/0xcert-ethereum-asset-ledger/src/mutations/revoke-asset.ts": "97d1f74b8497abd26300d3b6009e78dbd2a67a0d",
"packages/0xcert-ethereum-asset-ledger/src/mutations/safe-transfer.ts": "d48dd52bf82781e9f945b97f30858d22c3ff4fd0",
"packages/0xcert-ethereum-asset-ledger/src/mutations/set-approval-for-all.ts": "669750eb14fe5b2347ff81d4028098f69c770050",
"packages/0xcert-ethereum-asset-ledger/src/mutations/set-enabled.ts": "e3815af250f795509f8e03c798bd89ced6531b4d",
"packages/0xcert-ethereum-asset-ledger/src/mutations/transfer.ts": "75d6f494974d244cd775b6fbf73c39bd05232325",
"packages/0xcert-ethereum-asset-ledger/src/mutations/update-asset.ts": "95d2d6460eb32dbe2a655dd136376215b4e0853b",
"packages/0xcert-ethereum-asset-ledger/src/mutations/update.ts": "f6ea92d3c6d94f2661c8904c5098655775244ebd",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-abilities.ts": "84f02ba18c62c352c5ac3e98e9aba0846342e1b7",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-account-asset-id-at.ts": "01976a25f61456b99670a1804a24dfd30f422ebe",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-approved-account.ts": "c8a8db67c9868c88c1ce9fed90bebee9aa5a2770",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-asset-account.ts": "437c94da5b78a00cf4388f7992d42e1bf0252da1",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-asset-id-at.ts": "7a236e93e3b38c19841195fbdda98bae5bd0d48d",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-asset.ts": "311544c3aeeee8cddfdc3241eb71c16e61e77931",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-balance.ts": "d810422427d786a717df7642fd95968477c19311",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-capabilities.ts": "0b4bf51720c446789e2dfe6f6f5d7d2126d5ea6d",
"packages/0xcert-ethereum-asset-ledger/src/queries/get-info.ts": "e1e5098e7cbb921edaf8e926ab9c1b7f10f01e8d",
"packages/0xcert-ethereum-asset-ledger/src/queries/is-approved-for-all.ts": "a254c58912ab5e0672de4d4771e63bfd0ff29861",
"packages/0xcert-ethereum-asset-ledger/src/queries/is-enabled.ts": "886ec17ab4d8ae71b36e53c17a6363006fee2173",
"packages/0xcert-ethereum-asset-ledger/src/queries/kitty-index-to-approved.ts": "289ff63572cac30f91f1be6e9b8b85bccfe05a41",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/approve-account-instance-method.test.ts": "020536a6486c349fbc2520fadd11fb0c067d11a1",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/approve-operator-instance-method.test.ts": "e89e7c3fd19a689b165ebe6ae7be2e531b5d74d6",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/create-asset-instance-method.test.ts": "4d8e60bc198f2b170806214f41a4205e65da752a",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/deploy-static-method.test.ts": "676ff48823a5f5d395832949c91eff1f04b4a97b",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/destroy-asset-instance-method.test.ts": "1c7f3cfc05d4ea08d5481e2b30b404629a8f24f7",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/disapprove-account-instance-method.test.ts": "01d7b9f16010d757198af7520a82008275b7f60d",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/disapprove-operator-instance-method.test.ts": "2bfb3f935ce87730408e726fda01395f94433919",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-abilities-instance-method.test.ts": "560fd30933f8c55339d5fc01f554ee8287090f10",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-account-asset-id-at-method.test.ts": "7738adfe12e4b67df7312eebb1153e414bda90a2",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-approved-account-instance-method.test.ts": "46d3c0f49425365c94c948f2a003d80893114aa9",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-asset-account-instance-method.test.ts": "4bc890208a87cadc10b72ad4686d20a24389203d",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-asset-id-at-method.test.ts": "1f64e5c15be58d969eee7bafd68b730d10a6617d",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-asset-instance-method.test.ts": "deef0ae4a7dc84f3a9bb2834cc629182f617aa58",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-balance-instance-method.test.ts": "5ef7ae2bbeb2f6b61e53842e4975367dc7664ee9",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-capabilities-instance-method.test.ts": "4332b91a470c0b8d54c9b7a8cb8b47e3553c8811",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-info-instance-method.test.ts": "ec50275f970c847cda842daad653c9c13e3e2742",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/get-transfer-state-instance-method.test.ts": "9e6ba933cbbb784003451674828cd2db213564a6",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/grant-abilities-instance-method.test.ts": "9c8716b83e0cb53004b1c5e22de57c1b76777f45",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/is-approved-account-instance-method.test.ts": "53209ba6502dd06210e2dd0fb0296ca40ce25311",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/is-approved-operator-instance-method.test.ts": "5d25dcc71d51b9975e384c5de5bcdd2822d5b73b",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/revoke-abilities-instance-method.test.ts": "899622f8daa2d20b31bc1b59c8693bf0ff80107e",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/revoke-asset-instance-method.test.ts": "579fdcf0b071eaa31a99fb724685896801754a5d",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/set-transfer-state-instance-method.test.ts": "af29338d905287fb1cec79613529f0902bb79287",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/transfer-asset-instance-method.test.ts": "bcd506777f3f5746bc10457b35d3da481555f00f",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/update-asset-instance-method.test.ts": "5739b4735f213cb2b98c066a24dca505737a2a52",
"packages/0xcert-ethereum-asset-ledger/src/tests/core/ledger/update-instance-method.test.ts": "268402e1c3513b3599a0321e4c3ee205b180f930",
"packages/0xcert-ethereum-asset-ledger/src/tests/index.test.ts": "7caf462a4daf2ab20a250915cba6ff80a0862cfb",
"packages/0xcert-ethereum-asset-ledger/tsconfig.json": "4aeac3c20e45b7e477e82012eb7788f7dbb11bf3",
"packages/0xcert-ethereum-asset-ledger/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66",
"common/config/rush/npm-shrinkwrap.json": "7fa4646b3ff2878f2bdddd39fde12be4e8b17db7"
},
"arguments": "npm run lint && npx nyc npx specron test "
}
{
"name": "@0xcert/ethereum-asset-ledger",
"version": "1.1.0-alpha0",
"version": "1.1.0",
"description": "Asset ledger module for asset management on the Ethereum blockchain.",

@@ -70,4 +70,4 @@ "main": "./dist/index.js",

"devDependencies": {
"@0xcert/ethereum-sandbox": "1.1.0-alpha0",
"@0xcert/ethereum-order-gateway": "1.1.0-alpha0",
"@0xcert/ethereum-sandbox": "1.1.0",
"@0xcert/ethereum-order-gateway": "1.1.0",
"@specron/cli": "^0.5.6",

@@ -83,7 +83,7 @@ "@specron/spec": "^0.5.6",

"dependencies": {
"@0xcert/ethereum-generic-provider": "1.1.0-alpha0",
"@0xcert/ethereum-generic-provider": "1.1.0",
"@0xcert/ethereum-utils": "1.2.0",
"@0xcert/scaffold": "1.1.0-alpha0",
"@0xcert/utils": "1.1.0-alpha0"
"@0xcert/scaffold": "1.1.0",
"@0xcert/utils": "1.1.0"
}
}

@@ -71,3 +71,3 @@ import { GenericProvider, Mutation } from '@0xcert/ethereum-generic-provider';

public constructor(provider: GenericProvider, id: string) {
this._id = this.normalizeAddress(id);
this._id = normalizeAddress(id);
this._provider = provider;

@@ -95,3 +95,3 @@ }

public async getAbilities(accountId: string): Promise<AssetLedgerAbility[]> {
accountId = this.normalizeAddress(accountId);
accountId = normalizeAddress(accountId);

@@ -130,3 +130,3 @@ return getAbilities(this, accountId);

public async getBalance(accountId: string): Promise<string> {
accountId = this.normalizeAddress(accountId);
accountId = normalizeAddress(accountId);

@@ -164,3 +164,3 @@ return getBalance(this, accountId);

public async getAccountAssetIdAt(accountId: string, index: number): Promise<number> {
accountId = this.normalizeAddress(accountId);
accountId = normalizeAddress(accountId);

@@ -180,3 +180,3 @@ return getAccountAssetIdAt(this, accountId, index);

accountId = this.normalizeAddress(accountId as string);
accountId = normalizeAddress(accountId as string);

@@ -203,3 +203,3 @@ return accountId === await getApprovedAccount(this, assetId);

accountId = this.normalizeAddress(accountId as string);
accountId = normalizeAddress(accountId as string);

@@ -227,3 +227,3 @@ return approveAccount(this, accountId, assetId);

accountId = this.normalizeAddress(accountId as string);
accountId = normalizeAddress(accountId as string);

@@ -244,3 +244,3 @@ let bitAbilities = bigNumberify(0);

const imprint = recipe.imprint || 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855';
const receiverId = this.normalizeAddress(recipe.receiverId);
const receiverId = normalizeAddress(recipe.receiverId);

@@ -273,3 +273,3 @@ return createAsset(this, receiverId, recipe.id, `0x${imprint}`);

accountId = this.normalizeAddress(accountId as string);
accountId = normalizeAddress(accountId as string);

@@ -301,4 +301,4 @@ let bitAbilities = bigNumberify(0);

const senderId = this.normalizeAddress(recipe.senderId);
const receiverId = this.normalizeAddress(recipe.receiverId);
const senderId = normalizeAddress(recipe.senderId);
const receiverId = normalizeAddress(recipe.receiverId);

@@ -350,3 +350,3 @@ return this.provider.unsafeRecipientIds.indexOf(recipe.receiverId) !== -1

accountId = this.normalizeAddress(accountId as string);
accountId = normalizeAddress(accountId as string);

@@ -365,3 +365,3 @@ return setApprovalForAll(this, accountId, true);

accountId = this.normalizeAddress(accountId as string);
accountId = normalizeAddress(accountId as string);

@@ -381,4 +381,4 @@ return setApprovalForAll(this, accountId, false);

accountId = this.normalizeAddress(accountId);
operatorId = this.normalizeAddress(operatorId as string);
accountId = normalizeAddress(accountId);
operatorId = normalizeAddress(operatorId as string);

@@ -397,10 +397,2 @@ return isApprovedForAll(this, accountId, operatorId);

/**
* Normalizes the Ethereum address.
* NOTE: This method is here to easily extend the class for related platforms
* such as Wanchain.
*/
protected normalizeAddress(address: string): string {
return normalizeAddress(address);
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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