Some checks failed
CodeQL / Analyze (push) Waiting to run
Docker Build & Push Simapp (main) / docker-build (push) Waiting to run
golangci-lint / lint (push) Waiting to run
Tests / Code Coverage / build (amd64) (push) Waiting to run
Tests / Code Coverage / build (arm64) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[additional-args:-tags="test_e2e" name:e2e path:./e2e]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:08-wasm path:./modules/light-clients/08-wasm]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:ibc-go path:.]) (push) Waiting to run
Deploy to GitHub Pages / Deploy to GitHub Pages (push) Has been cancelled
Buf-Push / push (push) Has been cancelled
36 lines
959 B
Text
36 lines
959 B
Text
-------------------------- MODULE account ----------------------------
|
|
|
|
(**
|
|
The accounts interface; please ignore the definition bodies.
|
|
*)
|
|
|
|
EXTENDS identifiers
|
|
|
|
CONSTANT
|
|
AccountIds
|
|
|
|
\* a non-account
|
|
NullAccount == "NullAccount"
|
|
|
|
\* All accounts
|
|
Accounts == { NullAccount }
|
|
|
|
\* Make an escrow account for the given port and channel
|
|
MakeEscrowAccount(port, channel) == NullAccount
|
|
|
|
\* Make an account from the account id
|
|
MakeAccount(accountId) == NullAccount
|
|
|
|
\* Type constraints for accounts
|
|
AccountTypeOK ==
|
|
/\ NullAccount \in Accounts
|
|
/\ \A p \in Identifiers, c \in Identifiers:
|
|
MakeEscrowAccount(p, c) \in Accounts
|
|
/\ \A a \in Identifiers:
|
|
MakeAccount(a) \in Accounts
|
|
|
|
=============================================================================
|
|
\* Modification History
|
|
\* Last modified Thu Nov 19 18:21:10 CET 2020 by c
|
|
\* Last modified Thu Nov 05 14:44:18 CET 2020 by andrey
|
|
\* Created Thu Nov 05 13:22:40 CET 2020 by andrey
|