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
4a9cdd71
Commit
4a9cdd71
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Add E2ESend functor
parent
a9121177
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
+5
-2
5 additions, 2 deletions
Sources/ElixxirDAppsSDK/E2E.swift
Sources/ElixxirDAppsSDK/E2ESend.swift
+27
-0
27 additions, 0 deletions
Sources/ElixxirDAppsSDK/E2ESend.swift
with
32 additions
and
2 deletions
Sources/ElixxirDAppsSDK/E2E.swift
+
5
−
2
View file @
4a9cdd71
...
@@ -12,6 +12,7 @@ public struct E2E {
...
@@ -12,6 +12,7 @@ public struct E2E {
public
var
addPartnerCallback
:
E2EAddPartnerCallback
public
var
addPartnerCallback
:
E2EAddPartnerCallback
public
var
addService
:
E2EAddService
public
var
addService
:
E2EAddService
public
var
removeService
:
E2ERemoveService
public
var
removeService
:
E2ERemoveService
public
var
send
:
E2ESend
// TODO:
// TODO:
}
}
...
@@ -29,7 +30,8 @@ extension E2E {
...
@@ -29,7 +30,8 @@ extension E2E {
partitionSize
:
.
live
(
bindingsE2E
),
partitionSize
:
.
live
(
bindingsE2E
),
addPartnerCallback
:
.
live
(
bindingsE2E
),
addPartnerCallback
:
.
live
(
bindingsE2E
),
addService
:
.
live
(
bindingsE2E
),
addService
:
.
live
(
bindingsE2E
),
removeService
:
.
live
(
bindingsE2E
)
removeService
:
.
live
(
bindingsE2E
),
send
:
.
live
(
bindingsE2E
)
)
)
}
}
}
}
...
@@ -46,6 +48,7 @@ extension E2E {
...
@@ -46,6 +48,7 @@ extension E2E {
partitionSize
:
.
unimplemented
,
partitionSize
:
.
unimplemented
,
addPartnerCallback
:
.
unimplemented
,
addPartnerCallback
:
.
unimplemented
,
addService
:
.
unimplemented
,
addService
:
.
unimplemented
,
removeService
:
.
unimplemented
removeService
:
.
unimplemented
,
send
:
.
unimplemented
)
)
}
}
This diff is collapsed.
Click to expand it.
Sources/ElixxirDAppsSDK/E2ESend.swift
0 → 100644
+
27
−
0
View file @
4a9cdd71
import
Bindings
import
XCTestDynamicOverlay
public
struct
E2ESend
{
public
var
run
:
(
Int
,
Data
,
Data
,
Data
)
throws
->
Data
public
func
callAsFunction
(
messageType
:
Int
,
recipientId
:
Data
,
payload
:
Data
,
e2eParams
:
Data
)
throws
->
Data
{
try
run
(
messageType
,
recipientId
,
payload
,
e2eParams
)
}
}
extension
E2ESend
{
public
static
func
live
(
_
bindingsE2E
:
BindingsE2e
)
->
E2ESend
{
E2ESend
(
run
:
bindingsE2E
.
sendE2E
(
_
:
recipientId
:
payload
:
e2eParams
:))
}
}
extension
E2ESend
{
public
static
let
unimplemented
=
E2ESend
(
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