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
4b44419d
Commit
4b44419d
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Add CMixIsReady function wrapper
parent
fef8136e
No related branches found
No related tags found
2 merge requests
!130
Update Bindings
,
!102
Release 1.0.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Sources/XXClient/CMix/CMix.swift
+3
-0
3 additions, 0 deletions
Sources/XXClient/CMix/CMix.swift
Sources/XXClient/CMix/Functions/CMixIsReady.swift
+24
-0
24 additions, 0 deletions
Sources/XXClient/CMix/Functions/CMixIsReady.swift
with
27 additions
and
0 deletions
Sources/XXClient/CMix/CMix.swift
+
3
−
0
View file @
4b44419d
...
@@ -5,6 +5,7 @@ public struct CMix {
...
@@ -5,6 +5,7 @@ public struct CMix {
public
var
getReceptionRegistrationValidationSignature
:
CMixGetReceptionRegistrationValidationSignature
public
var
getReceptionRegistrationValidationSignature
:
CMixGetReceptionRegistrationValidationSignature
public
var
makeReceptionIdentity
:
CMixMakeReceptionIdentity
public
var
makeReceptionIdentity
:
CMixMakeReceptionIdentity
public
var
isHealthy
:
CMixIsHealthy
public
var
isHealthy
:
CMixIsHealthy
public
var
isReady
:
CMixIsReady
public
var
getNodeRegistrationStatus
:
CMixGetNodeRegistrationStatus
public
var
getNodeRegistrationStatus
:
CMixGetNodeRegistrationStatus
public
var
changeNumberOfNodeRegistrations
:
CMixChangeNumberOfNodeRegistrations
public
var
changeNumberOfNodeRegistrations
:
CMixChangeNumberOfNodeRegistrations
public
var
pauseNodeRegistrations
:
CMixPauseNodeRegistrations
public
var
pauseNodeRegistrations
:
CMixPauseNodeRegistrations
...
@@ -27,6 +28,7 @@ extension CMix {
...
@@ -27,6 +28,7 @@ extension CMix {
getReceptionRegistrationValidationSignature
:
.
live
(
bindingsCMix
),
getReceptionRegistrationValidationSignature
:
.
live
(
bindingsCMix
),
makeReceptionIdentity
:
.
live
(
bindingsCMix
),
makeReceptionIdentity
:
.
live
(
bindingsCMix
),
isHealthy
:
.
live
(
bindingsCMix
),
isHealthy
:
.
live
(
bindingsCMix
),
isReady
:
.
live
(
bindingsCMix
),
getNodeRegistrationStatus
:
.
live
(
bindingsCMix
),
getNodeRegistrationStatus
:
.
live
(
bindingsCMix
),
changeNumberOfNodeRegistrations
:
.
live
(
bindingsCMix
),
changeNumberOfNodeRegistrations
:
.
live
(
bindingsCMix
),
pauseNodeRegistrations
:
.
live
(
bindingsCMix
),
pauseNodeRegistrations
:
.
live
(
bindingsCMix
),
...
@@ -50,6 +52,7 @@ extension CMix {
...
@@ -50,6 +52,7 @@ extension CMix {
getReceptionRegistrationValidationSignature
:
.
unimplemented
,
getReceptionRegistrationValidationSignature
:
.
unimplemented
,
makeReceptionIdentity
:
.
unimplemented
,
makeReceptionIdentity
:
.
unimplemented
,
isHealthy
:
.
unimplemented
,
isHealthy
:
.
unimplemented
,
isReady
:
.
unimplemented
,
getNodeRegistrationStatus
:
.
unimplemented
,
getNodeRegistrationStatus
:
.
unimplemented
,
changeNumberOfNodeRegistrations
:
.
unimplemented
,
changeNumberOfNodeRegistrations
:
.
unimplemented
,
pauseNodeRegistrations
:
.
unimplemented
,
pauseNodeRegistrations
:
.
unimplemented
,
...
...
This diff is collapsed.
Click to expand it.
Sources/XXClient/CMix/Functions/CMixIsReady.swift
0 → 100644
+
24
−
0
View file @
4b44419d
import
Bindings
import
XCTestDynamicOverlay
public
struct
CMixIsReady
{
public
var
run
:
(
Double
)
throws
->
IsReadyInfo
public
func
callAsFunction
(
percent
:
Double
)
throws
->
IsReadyInfo
{
try
run
(
percent
)
}
}
extension
CMixIsReady
{
public
static
func
live
(
_
bindingsCMix
:
BindingsCmix
)
->
CMixIsReady
{
CMixIsReady
{
percent
in
try
IsReadyInfo
.
decode
(
try
bindingsCMix
.
isReady
(
percent
))
}
}
}
extension
CMixIsReady
{
public
static
let
unimplemented
=
CMixIsReady
(
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