Managing Participants
Participants are registered accounts with LogicLab with a fully available context state. They can be used to invoke logic functions or interact with other Participants through a logic call. They are indexed by a unique username and are saved by default
Register Participants
Register a new Participant with the given username and a random address.
- Syntax
>> register [username]
- Example
>> register Rahul
participant 'Rahul' created with address '0xb1107436395807a00c0d673134d48956315a0c65af620a95a6ada9470fef276e'
Register a new Participant with the given username and a specified address.
- Syntax
>> register [username] as [address]
- Example
>> register Rahul as 0xa0d30a4c05814fa132a3bff1a974b1ff457b48a6b0553248b9d58cfe3820af37
participant 'Rahul' created with address '0xa0d30a4c05814fa132a3bff1a974b1ff457b48a6b0553248b9d58cfe3820af37'
List Participants
List all registered participants
- Syntax
>> users
- Example
>> users
1] Manish [0xf53b821f2155c03592ffff397780ffae644f908aed1ecb8e84a12fa961ed0363]
2] Rahul [0xb1107436395807a00c0d673134d48956315a0c65af620a95a6ada9470fef276e]
Inspect Participants
Inspect the contents of the Participant State of given username
- Syntax
>> get users.[username]
- Example
>> get users.Rahul
Rahul [0xb1107436395807a00c0d673134d48956315a0c65af620a95a6ada9470fef276e]
Delete Participants
Delete a Participant with the given username.
- Syntax
>> wipe users.[username]
- Example
>> wipe users.Rahul
participant 'Rahul' removed
Designating Participants
Designated Participants are specially designated participants for being the default Sender and/or Receiver for logic call where applicable. The referenced Participant must exist and be registered with the Lab environment (refer to Participants Section). Designated Participants are saved and available across multiple sessions.
Designate Participants as Sender/Receiver
Designate the participant with username as the default sender or receiver
- Syntax
>> set designated.[sender|receiver] [username]
- Example
>> set designated.sender Manish
'Manish' has been designated as the sender
>> set designated.receiver Rahul
participant Rahul does not exist
View Designated Sender/Receiver
View the designated participant for the default sender or receiver
- Syntax
>> get designated.[sender|receiver]
- Example
>> get designated.sender
'Manish' is the designated sender
>> get designated.receiver
no designated receiver