SignalingContract class
Dart binding for Signaling smart contract
Constructors
- SignalingContract({required Web3Client client, required DeployedContract contract, EthPrivateKey? credentials})
Properties
- client → Web3Client
-
final
- contract → DeployedContract
-
final
- credentials → EthPrivateKey?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAnswer(
EthereumAddress answerer, EthereumAddress offerer) → Future - getAnswer - View function
-
getOffer(
EthereumAddress offerer) → Future - getOffer - View function
-
initialize(
EthereumAddress owner) → Future< String> - initialize - Transaction function
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
owner(
) → Future< EthereumAddress> - owner - View function
-
proxiableUUID(
) → Future - proxiableUUID - View function
-
renounceOwnership(
) → Future< String> - renounceOwnership - Transaction function
-
setAnswer(
Uint8List answer, EthereumAddress offerer) → Future< String> - setAnswer - Transaction function
-
setOffer(
Uint8List offer) → Future< String> - setOffer - Transaction function
-
toString(
) → String -
A string representation of this object.
inherited
-
transferOwnership(
EthereumAddress newOwner) → Future< String> - transferOwnership - Transaction function
-
upgradeInterfaceVersion(
) → Future< String> - UPGRADE_INTERFACE_VERSION - View function
-
upgradeToAndCall(
EthereumAddress newImplementation, Uint8List data) → Future< String> - upgradeToAndCall - Transaction function
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
connect(
{required Web3Client client, required EthereumAddress contractAddress, EthPrivateKey? credentials}) → Future< SignalingContract> - Factory constructor to connect to existing contract
-
deploy(
{required Web3Client client, required EthPrivateKey credentials, List constructorParams = const [], int? chainId}) → Future< SignalingContract> - Deploy new contract instance
Constants
- contractAbi → const String
- contractBytecode → const String