You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the app to work with Cantillon, we'll need to implement the worker-api for the following Getters:
Assumptions:
we use the same on-chain account also as our incognito account for offchain workers for simplicity (rust client can use different keypairs for on-chain and off-chain state)
then send request over websocket to : wss://substratee03.scs.ch
return value will be a hex::encode(SCALE::encode(value)). Can only be decoded if type is known:
Balance is a BalanceType
registration is ParticipantIndexType
attestations is Vec<Attestation>
meetup assignment is (MeetupIndexType, Option<Location>, Option<Moment>)
We may want to query public stats too once they are available. See: worker #7
The text was updated successfully, but these errors were encountered:
For the app to work with Cantillon, we'll need to implement the worker-api for the following Getters:
Assumptions:
Rust definitions for
TrustedGetter
:https://github.com/encointer/encointer-worker/blob/35ae50a27b293971f2289d71ef3f81b604ae8d33/stf/src/lib.rs#L112-L117
rust client commands:
encointer-client-teeproxy trusted balance ....
Rustencointer-client-teeproxy trusted get_registration ....
Rustencointer-client-teeproxy trusted get_attestations ....
RustThe
TrustedGetter
has to be wrapped multiple times:TrustedGetterSigned
(by signing it with our incognito account = polkawallet account)ClientRequest
Definitionthen send request over websocket to :
wss://substratee03.scs.ch
return value will be a hex::encode(SCALE::encode(value)). Can only be decoded if type is known:
BalanceType
ParticipantIndexType
Vec<Attestation>
(MeetupIndexType, Option<Location>, Option<Moment>)
We may want to query public stats too once they are available. See:
worker #7
The text was updated successfully, but these errors were encountered: