Skip to content

Commit

Permalink
moved runtime call protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych committed Jun 15, 2023
1 parent d674380 commit c8fec67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Sources/Substrate/RuntimeCall/MetadataRuntimeCalls.swift

This file was deleted.

12 changes: 12 additions & 0 deletions Sources/Substrate/RuntimeCall/RuntimeCall.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,15 @@ public enum RuntimeCallCodingError: Error {
case wrongParametersCount(params: [Value<Void>], expected: [(String, RuntimeTypeInfo)])
case parameterNotFound(name: String, inParams: [String: Value<Void>])
}

public protocol SomeMetadataVersionsRuntimeCall: StaticCodableRuntimeCall
where TReturn == [UInt32]
{
init()
}

public protocol SomeMetadataAtVersionRuntimeCall: StaticCodableRuntimeCall
where TReturn == Optional<VersionedMetadata>
{
init(version: UInt32)
}

0 comments on commit c8fec67

Please sign in to comment.