0.2.1 • Published 7 days ago
@colony/tokens v0.2.1
🪙 Colony token contract bindings
@colony/tokens
This package contains pre-compiled Colony token contract bindings. They can be used to take advantage of the extra functionality of the Colony Tokens (e.g. minting via the Colony or gasless transactions). The getTokenClient
function will try to auto-detect the token type at the given address and instantiates the corresponding token class.
import { providers } from 'ethers';
import { getTokenClient } from '@colony/tokens';
import { Tokens } from '@colony/core';
const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.Gnosis);
// Immediately executing async function
(async function() {
// Pass in a Signer instead to do transactions
const token = await getTokenClient(Tokens.Gnosis.CLNY, provider);
// Only tokens deployed with Colony have the `locked()` method
const tokenIsLocked = await token.locked();
})();
Building
To build this package, run pnpm run build
in this directory. See the general development instructions for more information.
Contributing
All contributions are welcome. Please read the Contributing Guidelines and review our Code of Conduct before submitting a PR.
License
GPL-3.0
0.0.0-snapshot-20240502155445
8 days ago
0.0.0-snapshot-20240503122240
7 days ago
0.2.1
4 months ago
0.2.0
5 months ago
0.1.3-next.1
10 months ago
0.2.0-next.2
7 months ago
0.1.3-next.0
11 months ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago