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
cf1ae915
Commit
cf1ae915
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Add E2EGetContact functor
parent
003644bc
No related branches found
No related tags found
2 merge requests
!102
Release 1.0.0
,
!18
Update Bindings
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Sources/ElixxirDAppsSDK/E2E.swift
+3
-0
3 additions, 0 deletions
Sources/ElixxirDAppsSDK/E2E.swift
Sources/ElixxirDAppsSDK/E2EGetContact.swift
+27
-0
27 additions, 0 deletions
Sources/ElixxirDAppsSDK/E2EGetContact.swift
with
30 additions
and
0 deletions
Sources/ElixxirDAppsSDK/E2E.swift
+
3
−
0
View file @
cf1ae915
...
...
@@ -3,6 +3,7 @@ import Bindings
public
struct
E2E
{
public
var
getId
:
E2EGetId
public
var
getReceptionId
:
E2EGetReceptionId
public
var
getContact
:
E2EGetContact
public
var
payloadSize
:
E2EPayloadSize
public
var
partitionSize
:
E2EPartitionSize
...
...
@@ -14,6 +15,7 @@ extension E2E {
E2E
(
getId
:
.
live
(
bindingsE2E
:
bindingsE2E
),
getReceptionId
:
.
live
(
bindingsE2E
:
bindingsE2E
),
getContact
:
.
live
(
bindingsE2E
:
bindingsE2E
),
payloadSize
:
.
live
(
bindingsE2E
:
bindingsE2E
),
partitionSize
:
.
live
(
bindingsE2E
:
bindingsE2E
)
)
...
...
@@ -24,6 +26,7 @@ extension E2E {
public
static
let
unimplemented
=
E2E
(
getId
:
.
unimplemented
,
getReceptionId
:
.
unimplemented
,
getContact
:
.
unimplemented
,
payloadSize
:
.
unimplemented
,
partitionSize
:
.
unimplemented
)
...
...
This diff is collapsed.
Click to expand it.
Sources/ElixxirDAppsSDK/E2EGetContact.swift
0 → 100644
+
27
−
0
View file @
cf1ae915
import
Bindings
import
XCTestDynamicOverlay
public
struct
E2EGetContact
{
public
var
run
:
()
->
Data
public
func
callAsFunction
()
->
Data
{
run
()
}
}
extension
E2EGetContact
{
public
static
func
live
(
bindingsE2E
:
BindingsE2e
)
->
E2EGetContact
{
E2EGetContact
{
guard
let
data
=
bindingsE2E
.
getContact
()
else
{
fatalError
(
"BindingsE2e.getContact returned `nil`"
)
}
return
data
}
}
}
extension
E2EGetContact
{
public
static
let
unimplemented
=
E2EGetContact
(
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