Skip to content

Commit

Permalink
hack for apalache v0.20.2 (apalache-mc/apalache#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Feb 7, 2022
1 parent 3442342 commit 5583f0b
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions tools/integration-test/spec/typedefs.tla
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
---- MODULE typedefs ----

(*
@typeAlias: PORT_ID = Str;
@typeAlias: CHANNEL_ID = Int;
@typeAlias: ACCOUNT_ID = Int;
@typeAlias: CHAIN_ID = Str;
@typeAlias: PACKET_ID = Int;
@typeAlias: PORT_ID = Str;
@typeAlias: CHANNEL_ID = Int;
@typeAlias: ACCOUNT_ID = Int;
@typeAlias: CHAIN_ID = Str;
@typeAlias: PACKET_ID = Int;
TODO: Fix when to transfer back money to sink zone
@typeAlias: DENOM_ID = Str;
TODO: Fix when to transfer back money to sink zone
@typeAlias: DENOM_ID = Str;
@typeAlias: CHANNEL_ENDPOINT = [
chainId: CHAIN_ID,
portId: PORT_ID,
channelId: CHANNEL_ID
];
@typeAlias: CHANNEL_ENDPOINT = [
chainId: CHAIN_ID,
portId: PORT_ID,
channelId: CHANNEL_ID
];
@typeAlias: CHANNEL = [
source: CHANNEL_ENDPOINT,
target: CHANNEL_ENDPOINT
];
@typeAlias: CHANNEL = [
source: CHANNEL_ENDPOINT,
target: CHANNEL_ENDPOINT
];
@typeAlias: PACKET = [
id: PACKET_ID,
channel: CHANNEL,
from: ACCOUNT_ID,
to: ACCOUNT_ID,
denom: DENOM_ID,
amount: Int
];
@typeAlias: PACKET = [
id: PACKET_ID,
channel: CHANNEL,
from: ACCOUNT_ID,
to: ACCOUNT_ID,
denom: DENOM_ID,
amount: Int
];
@typeAlias: BANK = DENOM_ID -> Int;
@typeAlias: BANK = DENOM_ID -> Int;
@typeAlias: CHAIN = [
id: CHAIN_ID,
@typeAlias: CHAIN = [
id: CHAIN_ID,
ports: Set(PORT_ID),
channel: CHANNEL_ID -> CHANNEL,
activeChannels: Set(CHANNEL_ID),
ports: Set(PORT_ID),
channel: CHANNEL_ID -> CHANNEL,
activeChannels: Set(CHANNEL_ID),
bank: ACCOUNT_ID -> BANK,
supply: BANK,
bank: ACCOUNT_ID -> BANK,
supply: BANK,
localPackets: [
list: PACKET_ID -> PACKET,
pending: Set(PACKET_ID),
expired: Set(PACKET_ID),
success: Set(PACKET_ID)
],
localPackets: [
list: PACKET_ID -> PACKET,
pending: Set(PACKET_ID),
expired: Set(PACKET_ID),
success: Set(PACKET_ID)
],
remotePackets: CHANNEL_ID -> PACKET_ID -> PACKET,
remotePackets: CHANNEL_ID -> PACKET_ID -> PACKET,
ics20: [
portId: PORT_ID,
escrow: CHANNEL_ID -> ACCOUNT_ID,
channel: CHAIN_ID -> CHANNEL_ID
],
ics20: [
portId: PORT_ID,
escrow: CHANNEL_ID -> ACCOUNT_ID,
channel: CHAIN_ID -> CHANNEL_ID
],
nextChannelId: CHANNEL_ID,
nextPacketId: PACKET_ID,
nextAccountId: ACCOUNT_ID
];
nextChannelId: CHANNEL_ID,
nextPacketId: PACKET_ID,
nextAccountId: ACCOUNT_ID
];
*)
typedefs == TRUE

Expand Down

0 comments on commit 5583f0b

Please sign in to comment.