Creates a metadata object. By default, set the upgradeable attribute, and uset all others.
Whether the contract is upgradeable
Whether other contracts can read this contract's data (without calling one of its pure functions)
Whether the contract is payable
Whether the contract is payable by other smart contracts
StaticByteStaticByteUse toBytes instead.
Converts the metadata to the protocol-friendly representation.
Adjust the metadata (the payable attribute), when preparing the deployment transaction.
Adjust the metadata (the payableBySc attribute), when preparing the deployment transaction.
Adjust the metadata (the readable attribute), when preparing the deployment transaction.
Adjust the metadata (the upgradeable attribute), when preparing the deployment transaction.
Converts the metadata to a pretty, plain JavaScript object.
Converts the metadata to a hex-encoded string.
StaticnewUse newFromBytes instead. Creates a metadata object from a buffer.
StaticnewNamed constructor Creates a metadata object from a buffer. Also checks that data has correct length (2 bytes)
The metadata of a Smart Contract, as an abstraction.