Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Commits
0f4cb344
Commit
0f4cb344
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Replace CMixWaitForMessageDelivery with CMixWaitForRoundResult
parent
ca86f699
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!102
Release 1.0.0
,
!25
Update Bindings
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Sources/ElixxirDAppsSDK/CMix/CMix.swift
+3
-3
3 additions, 3 deletions
Sources/ElixxirDAppsSDK/CMix/CMix.swift
Sources/ElixxirDAppsSDK/CMix/Functors/CMixWaitForRoundResult.swift
+7
-7
7 additions, 7 deletions
...lixxirDAppsSDK/CMix/Functors/CMixWaitForRoundResult.swift
with
10 additions
and
10 deletions
Sources/ElixxirDAppsSDK/CMix/CMix.swift
+
3
−
3
View file @
0f4cb344
...
@@ -14,7 +14,7 @@ public struct CMix {
...
@@ -14,7 +14,7 @@ public struct CMix {
public
var
waitForNetwork
:
CMixWaitForNetwork
public
var
waitForNetwork
:
CMixWaitForNetwork
public
var
registerClientErrorCallback
:
CMixRegisterClientErrorCallback
public
var
registerClientErrorCallback
:
CMixRegisterClientErrorCallback
public
var
addHealthCallback
:
CMixAddHealthCallback
public
var
addHealthCallback
:
CMixAddHealthCallback
public
var
waitFor
MessageDelivery
:
CMixWaitForMessageDelivery
public
var
waitFor
RoundResult
:
CMixWaitForRoundResult
public
var
connect
:
CMixConnect
public
var
connect
:
CMixConnect
}
}
...
@@ -34,7 +34,7 @@ extension CMix {
...
@@ -34,7 +34,7 @@ extension CMix {
waitForNetwork
:
.
live
(
bindingsCMix
),
waitForNetwork
:
.
live
(
bindingsCMix
),
registerClientErrorCallback
:
.
live
(
bindingsCMix
),
registerClientErrorCallback
:
.
live
(
bindingsCMix
),
addHealthCallback
:
.
live
(
bindingsCMix
),
addHealthCallback
:
.
live
(
bindingsCMix
),
waitFor
MessageDelivery
:
.
live
(
bindingsCMix
),
waitFor
RoundResult
:
.
live
(
bindingsCMix
),
connect
:
.
live
(
bindingsCMix
)
connect
:
.
live
(
bindingsCMix
)
)
)
}
}
...
@@ -55,7 +55,7 @@ extension CMix {
...
@@ -55,7 +55,7 @@ extension CMix {
waitForNetwork
:
.
unimplemented
,
waitForNetwork
:
.
unimplemented
,
registerClientErrorCallback
:
.
unimplemented
,
registerClientErrorCallback
:
.
unimplemented
,
addHealthCallback
:
.
unimplemented
,
addHealthCallback
:
.
unimplemented
,
waitFor
MessageDelivery
:
.
unimplemented
,
waitFor
RoundResult
:
.
unimplemented
,
connect
:
.
unimplemented
connect
:
.
unimplemented
)
)
}
}
This diff is collapsed.
Click to expand it.
Sources/ElixxirDAppsSDK/CMix/Functors/CMixWaitFor
MessageDelivery
.swift
→
Sources/ElixxirDAppsSDK/CMix/Functors/CMixWaitFor
RoundResult
.swift
+
7
−
7
View file @
0f4cb344
import
Bindings
import
Bindings
import
XCTestDynamicOverlay
import
XCTestDynamicOverlay
public
struct
CMixWaitFor
MessageDelivery
{
public
struct
CMixWaitFor
RoundResult
{
public
var
run
:
(
E2ESendReport
,
Int
,
MessageDeliveryCallback
)
throws
->
Void
public
var
run
:
(
E2ESendReport
,
Int
,
MessageDeliveryCallback
)
throws
->
Void
public
func
callAsFunction
(
public
func
callAsFunction
(
...
@@ -13,11 +13,11 @@ public struct CMixWaitForMessageDelivery {
...
@@ -13,11 +13,11 @@ public struct CMixWaitForMessageDelivery {
}
}
}
}
extension
CMixWaitFor
MessageDelivery
{
extension
CMixWaitFor
RoundResult
{
public
static
func
live
(
_
bindingsCMix
:
BindingsCmix
)
->
CMixWaitFor
MessageDelivery
{
public
static
func
live
(
_
bindingsCMix
:
BindingsCmix
)
->
CMixWaitFor
RoundResult
{
CMixWaitFor
MessageDelivery
{
report
,
timeoutMS
,
callback
in
CMixWaitFor
RoundResult
{
report
,
timeoutMS
,
callback
in
try
bindingsCMix
.
wait
(
try
bindingsCMix
.
wait
(
for
MessageDelivery
:
try
report
.
encode
(),
for
RoundResult
:
try
report
.
encode
(),
mdc
:
callback
.
makeBindingsMessageDeliveryCallback
(),
mdc
:
callback
.
makeBindingsMessageDeliveryCallback
(),
timeoutMS
:
timeoutMS
timeoutMS
:
timeoutMS
)
)
...
@@ -25,8 +25,8 @@ extension CMixWaitForMessageDelivery {
...
@@ -25,8 +25,8 @@ extension CMixWaitForMessageDelivery {
}
}
}
}
extension
CMixWaitFor
MessageDelivery
{
extension
CMixWaitFor
RoundResult
{
public
static
let
unimplemented
=
CMixWaitFor
MessageDelivery
(
public
static
let
unimplemented
=
CMixWaitFor
RoundResult
(
run
:
XCTUnimplemented
(
"
\(
Self
.
self
)
"
)
run
:
XCTUnimplemented
(
"
\(
Self
.
self
)
"
)
)
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment