Global

Members

# ERC20Events

Enum representing the events emitted by an ERC20 contract.

Enum representing the events emitted by an ERC20 contract.

View Source shared/erc20/erc20-constants.ts, line 9

Methods

# Owner() → {MethodDecorator}

Decorator for marking methods that require ownership authorization.

Decorator for marking methods that require ownership authorization. Checks the owner of the token before allowing the method to be executed.

View Source shared/decorators.ts, line 23

A method decorator that checks ownership authorization.

MethodDecorator
Example
```typescript
class TokenContract extends Contract {
  

# decrypt(encryptedText, keyObject)

Util function to decrypt data

Parameters:
Name Type Description
encryptedText BufferSource
keyObject keyObject

View Source shared/crypto.ts, line 322

# encrypt(text, keyObject)

Util function to decrypt data

Parameters:
Name Type Description
text string
keyObject keyObject

View Source shared/crypto.ts, line 308

# getDerivationKey(salt, key)

Util function to derive a key from another key

Parameters:
Name Type Description
salt string
key CryptoKey

Original key

View Source shared/crypto.ts, line 268

# getKey(derivation)

Util function to get the key and IV from the CrytoKey array

Parameters:
Name Type Description
derivation ArrayBuffer

View Source shared/crypto.ts, line 289

# getMaster(data)

Util function to get a random master key

If data is not passed, a random ArrayBuffer will be generated

Parameters:
Name Type Description
data ArrayBuffer

encrytion data

View Source shared/crypto.ts, line 247