Skip to content

Commit 3243232

Browse files
committed
imp: finalize spec
1 parent bc90286 commit 3243232

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec/IBC_V2/app/ics-027-gmp/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Implementations maintain GMP account mappings in module state. Fields of `Module
101101
```typescript
102102
interface ModuleState {
103103
accounts: Map<AccountIdentifierHash, string> // derived account or contract address
104-
accountIdentifiers: Map<string, AccountIdentifier> // optional reverse lookup
104+
accountIdentifiers: Map<string, AccountIdentifier> // reverse lookup
105105
}
106106
```
107107

@@ -161,14 +161,14 @@ When a GMP packet is received on `gmpport`:
161161
```typescript
162162
function onRecvPacket(packet: Packet, payload: Payload): bytes {
163163
// validate port/version/encoding
164-
abortTransactionUnless(payload.version == "ics27-2")
165-
abortTransactionUnless(payload.sourcePort == "gmpport")
166-
abortTransactionUnless(payload.destPort == "gmpport")
167-
abortTransactionUnless(isSupportedEncoding(payload.encoding))
164+
assert(payload.version == "ics27-2")
165+
assert(payload.sourcePort == "gmpport")
166+
assert(payload.destPort == "gmpport")
167+
assert(isSupportedEncoding(payload.encoding))
168168

169169
// decode and validate packet data
170170
GMPPacketData data = decode(payload.value, payload.encoding)
171-
abortTransactionUnless(validate(data))
171+
assert(validate(data))
172172

173173
// derive or create the GMP account
174174
AccountIdentifier id = AccountIdentifier{
@@ -215,8 +215,8 @@ The protocol reserves the `encoding` field for future additions and allows desti
215215
## Example Implementations
216216

217217
- ibc-go GMP module: https://github.com/cosmos/ibc-go
218-
- solidity-ibc-eureka GMP contracts: https://github.com/cosmos/solidity-ibc-eureka
219-
- solana-ibc-eureka GMP program: https://github.com/cosmos/solidity-ibc-eureka
218+
- solidity GMP contract: https://github.com/cosmos/solidity-ibc-eureka
219+
- solana GMP program: https://github.com/cosmos/solidity-ibc-eureka
220220

221221
## Open Questions
222222

@@ -225,7 +225,7 @@ The protocol reserves the `encoding` field for future additions and allows desti
225225

226226
## History
227227

228-
- 2024-2025: Proof-of-concept implementations across Cosmos SDK, EVM, and Solana
228+
- 2025: Proof-of-concept implementations across Cosmos SDK, EVM, and Solana
229229
- 2026-01-26: Initial draft of ICS27-GMP specification
230230

231231
## Copyright

0 commit comments

Comments
 (0)