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
Copy file name to clipboardExpand all lines: crates/contract/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,6 +264,8 @@ stateDiagram-v2
264
264
|`verify_foreign_transaction(request: VerifyForeignTransactionRequestArgs)`| Submits a foreign-chain transaction verification request to the contract. Requires a deposit of 1 yoctonear and that the requested foreign chain is in the contract's supported set. Duplicate submissions of the same request (same caller, domain, chain, and payload) while an earlier one is still pending are queued and all receive the same response when the MPC nodes reply; the queue is bounded — concurrent duplicates beyond that bound are rejected with `PendingRequestQueueFull`. | deferred to promise |`10 Tgas`|`~7 Tgas`|
265
265
|`public_key(domain: Option<DomainId>)`| Read-only function; returns the public key used for the given domain (defaulting to first). |`Result<PublicKey, Error>`|||
266
266
|`derived_public_key(path: String, predecessor: Option<AccountId>, domain: Option<DomainId>)`| Generates a derived public key for a given path and account, for the given domain (defaulting to first). |`Result<PublicKey, Error>`|||
267
+
|`prepay_attestation_storage(account_id: AccountId, grants: u32)`| Prepays attestation-entry storage for `account_id`. One grant permits one stored attestation. Payable and permissionless — anyone may prepay for any account, which is how an operator funds a node whose function-call access key cannot attach a deposit. Requires an attached deposit of exactly `attestation_storage_fee_millinear × grants` (see `config`) and rejects anything else. Nothing is refunded and there is no withdrawal. |`Result<(), Error>`| 30Tgas |~4Tgas |
268
+
|`available_attestation_grants(account_id: AccountId)`| Read-only function; returns the grants `account_id` has available — bought, minus those currently backing a stored attestation. `0` therefore means either "never prepaid" or "prepaid, and the grant is backing an entry"; cross-reference `get_tee_accounts` to distinguish them. |`u32`|||
267
269
268
270
#### SignRequestArgs (Latest version)
269
271
@@ -310,7 +312,7 @@ These functions require the caller to be a participant or candidate.
310
312
|`vote_cancel_keygen(next_domain_id: u64)`| For Initializing state only. Votes to cancel the key generation (identified by the next_domain_id) and revert to the Running state. |`Result<(), Error>`| TBD | TBD |
311
313
|`propose_update(args: ProposeUpdateArgs)`| Proposes an update to the contract, requiring an attached deposit. |`Result<UpdateId, Error>`| TBD | TBD |
312
314
|`vote_update(id: UpdateId)`| Votes on a proposed update. If the threshold is met, the update is executed. |`Result<bool, Error>`| TBD | TBD |
313
-
|`submit_participant_info(proposed_participant_attestation: Attestation, tls_public_key: Ed25519PublicKey)`| Submits the tee participant info for a potential candidate. c.f. TEE section |`Result<(), Error>`| TBD | TBD |
315
+
|`submit_participant_info(proposed_participant_attestation: Attestation, tls_public_key: Ed25519PublicKey)`| Submits the tee participant info for a potential candidate. c.f. TEE section. Storing a new attestation entry consumes one attestation-storage grant, so the account must have one prepaid via `prepay_attestation_storage`; re-submitting for a TLS key the account already owns does not.|`Result<(), Error>`| TBD | TBD |
0 commit comments