1.23.4 • Published 3 months ago

@velocitycareerlabs/contract-permissions v1.23.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

Example of the usage on your localhost with the blockchain-dev container.

const { generateKeyPair } = require('@velocitycareerlabs/crypto');
const ethers = require('ethers');
/* eslint-disable no-console */
const { initPermissions } = require('../index');

const { privateKey } = generateKeyPair();
const wallet = new ethers.Wallet(privateKey);
const contractAddress = '0xf755e1ca66be12f177178e7ea696969e0a55bb64';
const gasLimit = 470000;

const permissions = initPermissions({
  privateKey,
  contractAddress,
  rpcUrl: 'http://localhost:8545',
  gasLimit,
});

(async () => {
  try {
    await permissions.addPrimary(publicKeyAddress, permissioningAddress, rotationAddress );
    console.info('initialStatus', initialStatus);
  } catch (error) {
    console.error('Revocation Registry Error', error);
  }
})();
1.23.4

4 months ago

1.23.3

4 months ago

1.23.2

6 months ago

1.23.1

6 months ago

1.23.0

7 months ago

1.22.0

8 months ago

1.21.0

10 months ago

1.21.1

9 months ago

1.19.1

1 year ago

1.20.0

12 months ago

1.19.0

1 year ago

1.18.1

1 year ago

1.18.0

1 year ago

1.17.1

1 year ago

1.17.0

1 year ago

1.16.1

1 year ago

1.16.0

1 year ago