├── .gitignore
├── LICENSE
├── MagicSDK.podspec
├── MagicSDK.xcframework
├── Info.plist
├── ios-arm64_armv7
│ └── MagicSDK.framework
│ │ ├── Headers
│ │ ├── MagicSDK-Swift.h
│ │ └── MagicSDK-umbrella.h
│ │ ├── Info.plist
│ │ ├── MagicSDK
│ │ └── Modules
│ │ ├── MagicSDK.swiftmodule
│ │ ├── arm.swiftdoc
│ │ ├── arm.swiftinterface
│ │ ├── arm64-apple-ios.swiftdoc
│ │ ├── arm64-apple-ios.swiftinterface
│ │ ├── arm64.swiftdoc
│ │ ├── arm64.swiftinterface
│ │ ├── armv7-apple-ios.swiftdoc
│ │ ├── armv7-apple-ios.swiftinterface
│ │ ├── armv7.swiftdoc
│ │ └── armv7.swiftinterface
│ │ └── module.modulemap
├── ios-arm64_x86_64-maccatalyst
│ └── MagicSDK.framework
│ │ ├── Headers
│ │ ├── MagicSDK
│ │ ├── Modules
│ │ ├── Resources
│ │ └── Versions
│ │ ├── A
│ │ ├── Headers
│ │ │ ├── MagicSDK-Swift.h
│ │ │ └── MagicSDK-umbrella.h
│ │ ├── MagicSDK
│ │ ├── Modules
│ │ │ ├── MagicSDK.swiftmodule
│ │ │ │ ├── Project
│ │ │ │ │ ├── arm64-apple-ios-macabi.swiftsourceinfo
│ │ │ │ │ ├── arm64.swiftsourceinfo
│ │ │ │ │ ├── x86_64-apple-ios-macabi.swiftsourceinfo
│ │ │ │ │ └── x86_64.swiftsourceinfo
│ │ │ │ ├── arm64-apple-ios-macabi.swiftdoc
│ │ │ │ ├── arm64-apple-ios-macabi.swiftinterface
│ │ │ │ ├── arm64.swiftdoc
│ │ │ │ ├── arm64.swiftinterface
│ │ │ │ ├── x86_64-apple-ios-macabi.swiftdoc
│ │ │ │ ├── x86_64-apple-ios-macabi.swiftinterface
│ │ │ │ ├── x86_64.swiftdoc
│ │ │ │ └── x86_64.swiftinterface
│ │ │ └── module.modulemap
│ │ └── Resources
│ │ │ └── Info.plist
│ │ └── Current
└── ios-i386_x86_64-simulator
│ └── MagicSDK.framework
│ ├── Headers
│ ├── MagicSDK-Swift.h
│ └── MagicSDK-umbrella.h
│ ├── Info.plist
│ ├── MagicSDK
│ ├── Modules
│ ├── MagicSDK.swiftmodule
│ │ ├── Project
│ │ │ ├── i386-apple-ios-simulator.swiftsourceinfo
│ │ │ ├── i386.swiftsourceinfo
│ │ │ ├── x86_64-apple-ios-simulator.swiftsourceinfo
│ │ │ └── x86_64.swiftsourceinfo
│ │ ├── i386-apple-ios-simulator.swiftdoc
│ │ ├── i386-apple-ios-simulator.swiftinterface
│ │ ├── i386.swiftdoc
│ │ ├── i386.swiftinterface
│ │ ├── x86_64-apple-ios-simulator.swiftdoc
│ │ ├── x86_64-apple-ios-simulator.swiftinterface
│ │ ├── x86_64.swiftdoc
│ │ └── x86_64.swiftinterface
│ └── module.modulemap
│ └── _CodeSignature
│ └── CodeResources
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | # OS X
2 | .DS_Store
3 |
4 | # Xcode
5 | .idea/
6 | *.log
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata/
17 | *.xccheckout
18 | profile
19 | *.moved-aside
20 | DerivedData
21 | *.hmap
22 | *.ipa
23 |
24 | # Bundler
25 | .bundle
26 |
27 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
28 | # Carthage/Checkouts
29 |
30 | Carthage/Build
31 |
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
35 | #
36 | # Note: if you ignore the Pods directory, make sure to uncomment
37 | # `pod install` in .travis.yml
38 | #
39 | # Pods/
40 | /.idea/
41 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Magic Labs Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/MagicSDK.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod lib lint MagicSDK.podspec' to ensure this is a
3 | # valid spec before submitting.
4 | #
5 | # Any lines starting with a # are optional, but their use is encouraged
6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
7 | #
8 |
9 | Pod::Spec.new do |s|
10 | s.name = 'MagicSDK'
11 | s.version = '2.4.0'
12 | s.summary = 'MagicSDK IOS SDK'
13 |
14 | # This description is used to generate tags and improve search results.
15 | # * Think: What does it do? Why did you write it? What is the focus?
16 | # * Try to keep it short, snappy and to the point.
17 | # * Write the description between the DESC delimiters below.
18 | # * Finally, don't worry about the indent, CocoaPods strips it!
19 |
20 | s.description = <<-DESC
21 | TODO: Add long description of the pod here.
22 | DESC
23 |
24 | s.homepage = 'https://github.com/magicLabs/magic-ios-pod'
25 | s.license = { :type => 'MIT', :file => 'LICENSE' }
26 | s.author = { 'Jerry Liu' => 'jerry@magic.link' }
27 | s.source = { :git => 'https://github.com/magicLabs/magic-ios-pod.git', :tag => s.version.to_s }
28 | s.swift_version = '5.0'
29 | s.ios.deployment_target = '9.0'
30 | # s.osx.deployment_target = '10.12'
31 | s.vendored_frameworks = "MagicSDK.xcframework"
32 |
33 | s.dependency 'MagicSDK-Web3', '~> 1.0'
34 | s.dependency 'MagicSDK-Web3/ContractABI', '~> 1.0'
35 | s.dependency 'MagicSDK-Web3/PromiseKit', '~> 1.0'
36 | s.dependency 'PromiseKit/CorePromise', '~> 6.13'
37 | s.dependency 'Rollbar', '1.12.14'
38 |
39 | s.pod_target_xcconfig = {
40 | 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
41 | }
42 | s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
43 | end
44 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AvailableLibraries
6 |
7 |
8 | LibraryIdentifier
9 | ios-arm64_armv7
10 | LibraryPath
11 | MagicSDK.framework
12 | SupportedArchitectures
13 |
14 | arm64
15 | armv7
16 |
17 | SupportedPlatform
18 | ios
19 |
20 |
21 | LibraryIdentifier
22 | ios-i386_x86_64-simulator
23 | LibraryPath
24 | MagicSDK.framework
25 | SupportedArchitectures
26 |
27 | i386
28 | x86_64
29 |
30 | SupportedPlatform
31 | ios
32 | SupportedPlatformVariant
33 | simulator
34 |
35 |
36 | LibraryIdentifier
37 | ios-arm64_x86_64-maccatalyst
38 | LibraryPath
39 | MagicSDK.framework
40 | SupportedArchitectures
41 |
42 | arm64
43 | x86_64
44 |
45 | SupportedPlatform
46 | ios
47 | SupportedPlatformVariant
48 | maccatalyst
49 |
50 |
51 | CFBundlePackageType
52 | XFWK
53 | XCFrameworkFormatVersion
54 | 1.0
55 |
56 |
57 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Headers/MagicSDK-Swift.h:
--------------------------------------------------------------------------------
1 | #if 0
2 | #elif defined(__arm64__) && __arm64__
3 | // Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
4 | #ifndef MAGICSDK_SWIFT_H
5 | #define MAGICSDK_SWIFT_H
6 | #pragma clang diagnostic push
7 | #pragma clang diagnostic ignored "-Wgcc-compat"
8 |
9 | #if !defined(__has_include)
10 | # define __has_include(x) 0
11 | #endif
12 | #if !defined(__has_attribute)
13 | # define __has_attribute(x) 0
14 | #endif
15 | #if !defined(__has_feature)
16 | # define __has_feature(x) 0
17 | #endif
18 | #if !defined(__has_warning)
19 | # define __has_warning(x) 0
20 | #endif
21 |
22 | #if __has_include()
23 | # include
24 | #endif
25 |
26 | #pragma clang diagnostic ignored "-Wauto-import"
27 | #include
28 | #include
29 | #include
30 | #include
31 |
32 | #if !defined(SWIFT_TYPEDEFS)
33 | # define SWIFT_TYPEDEFS 1
34 | # if __has_include()
35 | # include
36 | # elif !defined(__cplusplus)
37 | typedef uint_least16_t char16_t;
38 | typedef uint_least32_t char32_t;
39 | # endif
40 | typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
41 | typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
42 | typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
43 | typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
44 | typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
45 | typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
46 | typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
47 | typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
48 | typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
49 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
50 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
51 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
52 | #endif
53 |
54 | #if !defined(SWIFT_PASTE)
55 | # define SWIFT_PASTE_HELPER(x, y) x##y
56 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
57 | #endif
58 | #if !defined(SWIFT_METATYPE)
59 | # define SWIFT_METATYPE(X) Class
60 | #endif
61 | #if !defined(SWIFT_CLASS_PROPERTY)
62 | # if __has_feature(objc_class_property)
63 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
64 | # else
65 | # define SWIFT_CLASS_PROPERTY(...)
66 | # endif
67 | #endif
68 |
69 | #if __has_attribute(objc_runtime_name)
70 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
71 | #else
72 | # define SWIFT_RUNTIME_NAME(X)
73 | #endif
74 | #if __has_attribute(swift_name)
75 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
76 | #else
77 | # define SWIFT_COMPILE_NAME(X)
78 | #endif
79 | #if __has_attribute(objc_method_family)
80 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
81 | #else
82 | # define SWIFT_METHOD_FAMILY(X)
83 | #endif
84 | #if __has_attribute(noescape)
85 | # define SWIFT_NOESCAPE __attribute__((noescape))
86 | #else
87 | # define SWIFT_NOESCAPE
88 | #endif
89 | #if __has_attribute(ns_consumed)
90 | # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
91 | #else
92 | # define SWIFT_RELEASES_ARGUMENT
93 | #endif
94 | #if __has_attribute(warn_unused_result)
95 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
96 | #else
97 | # define SWIFT_WARN_UNUSED_RESULT
98 | #endif
99 | #if __has_attribute(noreturn)
100 | # define SWIFT_NORETURN __attribute__((noreturn))
101 | #else
102 | # define SWIFT_NORETURN
103 | #endif
104 | #if !defined(SWIFT_CLASS_EXTRA)
105 | # define SWIFT_CLASS_EXTRA
106 | #endif
107 | #if !defined(SWIFT_PROTOCOL_EXTRA)
108 | # define SWIFT_PROTOCOL_EXTRA
109 | #endif
110 | #if !defined(SWIFT_ENUM_EXTRA)
111 | # define SWIFT_ENUM_EXTRA
112 | #endif
113 | #if !defined(SWIFT_CLASS)
114 | # if __has_attribute(objc_subclassing_restricted)
115 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
116 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
117 | # else
118 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
119 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
120 | # endif
121 | #endif
122 | #if !defined(SWIFT_RESILIENT_CLASS)
123 | # if __has_attribute(objc_class_stub)
124 | # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
125 | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
126 | # else
127 | # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
128 | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
129 | # endif
130 | #endif
131 |
132 | #if !defined(SWIFT_PROTOCOL)
133 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
134 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
135 | #endif
136 |
137 | #if !defined(SWIFT_EXTENSION)
138 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
139 | #endif
140 |
141 | #if !defined(OBJC_DESIGNATED_INITIALIZER)
142 | # if __has_attribute(objc_designated_initializer)
143 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
144 | # else
145 | # define OBJC_DESIGNATED_INITIALIZER
146 | # endif
147 | #endif
148 | #if !defined(SWIFT_ENUM_ATTR)
149 | # if defined(__has_attribute) && __has_attribute(enum_extensibility)
150 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
151 | # else
152 | # define SWIFT_ENUM_ATTR(_extensibility)
153 | # endif
154 | #endif
155 | #if !defined(SWIFT_ENUM)
156 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
157 | # if __has_feature(generalized_swift_name)
158 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
159 | # else
160 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
161 | # endif
162 | #endif
163 | #if !defined(SWIFT_UNAVAILABLE)
164 | # define SWIFT_UNAVAILABLE __attribute__((unavailable))
165 | #endif
166 | #if !defined(SWIFT_UNAVAILABLE_MSG)
167 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
168 | #endif
169 | #if !defined(SWIFT_AVAILABILITY)
170 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
171 | #endif
172 | #if !defined(SWIFT_WEAK_IMPORT)
173 | # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
174 | #endif
175 | #if !defined(SWIFT_DEPRECATED)
176 | # define SWIFT_DEPRECATED __attribute__((deprecated))
177 | #endif
178 | #if !defined(SWIFT_DEPRECATED_MSG)
179 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
180 | #endif
181 | #if __has_feature(attribute_diagnose_if_objc)
182 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
183 | #else
184 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
185 | #endif
186 | #if !defined(IBSegueAction)
187 | # define IBSegueAction
188 | #endif
189 | #if __has_feature(modules)
190 | #if __has_warning("-Watimport-in-framework-header")
191 | #pragma clang diagnostic ignored "-Watimport-in-framework-header"
192 | #endif
193 | @import ObjectiveC;
194 | #endif
195 |
196 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
197 | #pragma clang diagnostic ignored "-Wduplicate-method-arg"
198 | #if __has_warning("-Wpragma-clang-attribute")
199 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
200 | #endif
201 | #pragma clang diagnostic ignored "-Wunknown-pragmas"
202 | #pragma clang diagnostic ignored "-Wnullability"
203 |
204 | #if __has_attribute(external_source_symbol)
205 | # pragma push_macro("any")
206 | # undef any
207 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MagicSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
208 | # pragma pop_macro("any")
209 | #endif
210 |
211 |
212 | /// An instance of the Magic SDK
213 | SWIFT_CLASS("_TtC8MagicSDK5Magic")
214 | @interface Magic : NSObject
215 | - (nonnull instancetype)init SWIFT_UNAVAILABLE;
216 | + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
217 | @end
218 |
219 | #if __has_attribute(external_source_symbol)
220 | # pragma clang attribute pop
221 | #endif
222 | #pragma clang diagnostic pop
223 | #endif
224 |
225 | #elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
226 | // Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
227 | #ifndef MAGICSDK_SWIFT_H
228 | #define MAGICSDK_SWIFT_H
229 | #pragma clang diagnostic push
230 | #pragma clang diagnostic ignored "-Wgcc-compat"
231 |
232 | #if !defined(__has_include)
233 | # define __has_include(x) 0
234 | #endif
235 | #if !defined(__has_attribute)
236 | # define __has_attribute(x) 0
237 | #endif
238 | #if !defined(__has_feature)
239 | # define __has_feature(x) 0
240 | #endif
241 | #if !defined(__has_warning)
242 | # define __has_warning(x) 0
243 | #endif
244 |
245 | #if __has_include()
246 | # include
247 | #endif
248 |
249 | #pragma clang diagnostic ignored "-Wauto-import"
250 | #include
251 | #include
252 | #include
253 | #include
254 |
255 | #if !defined(SWIFT_TYPEDEFS)
256 | # define SWIFT_TYPEDEFS 1
257 | # if __has_include()
258 | # include
259 | # elif !defined(__cplusplus)
260 | typedef uint_least16_t char16_t;
261 | typedef uint_least32_t char32_t;
262 | # endif
263 | typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
264 | typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
265 | typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
266 | typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
267 | typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
268 | typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
269 | typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
270 | typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
271 | typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
272 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
273 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
274 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
275 | #endif
276 |
277 | #if !defined(SWIFT_PASTE)
278 | # define SWIFT_PASTE_HELPER(x, y) x##y
279 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
280 | #endif
281 | #if !defined(SWIFT_METATYPE)
282 | # define SWIFT_METATYPE(X) Class
283 | #endif
284 | #if !defined(SWIFT_CLASS_PROPERTY)
285 | # if __has_feature(objc_class_property)
286 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
287 | # else
288 | # define SWIFT_CLASS_PROPERTY(...)
289 | # endif
290 | #endif
291 |
292 | #if __has_attribute(objc_runtime_name)
293 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
294 | #else
295 | # define SWIFT_RUNTIME_NAME(X)
296 | #endif
297 | #if __has_attribute(swift_name)
298 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
299 | #else
300 | # define SWIFT_COMPILE_NAME(X)
301 | #endif
302 | #if __has_attribute(objc_method_family)
303 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
304 | #else
305 | # define SWIFT_METHOD_FAMILY(X)
306 | #endif
307 | #if __has_attribute(noescape)
308 | # define SWIFT_NOESCAPE __attribute__((noescape))
309 | #else
310 | # define SWIFT_NOESCAPE
311 | #endif
312 | #if __has_attribute(ns_consumed)
313 | # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
314 | #else
315 | # define SWIFT_RELEASES_ARGUMENT
316 | #endif
317 | #if __has_attribute(warn_unused_result)
318 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
319 | #else
320 | # define SWIFT_WARN_UNUSED_RESULT
321 | #endif
322 | #if __has_attribute(noreturn)
323 | # define SWIFT_NORETURN __attribute__((noreturn))
324 | #else
325 | # define SWIFT_NORETURN
326 | #endif
327 | #if !defined(SWIFT_CLASS_EXTRA)
328 | # define SWIFT_CLASS_EXTRA
329 | #endif
330 | #if !defined(SWIFT_PROTOCOL_EXTRA)
331 | # define SWIFT_PROTOCOL_EXTRA
332 | #endif
333 | #if !defined(SWIFT_ENUM_EXTRA)
334 | # define SWIFT_ENUM_EXTRA
335 | #endif
336 | #if !defined(SWIFT_CLASS)
337 | # if __has_attribute(objc_subclassing_restricted)
338 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
339 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
340 | # else
341 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
342 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
343 | # endif
344 | #endif
345 | #if !defined(SWIFT_RESILIENT_CLASS)
346 | # if __has_attribute(objc_class_stub)
347 | # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
348 | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
349 | # else
350 | # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
351 | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
352 | # endif
353 | #endif
354 |
355 | #if !defined(SWIFT_PROTOCOL)
356 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
357 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
358 | #endif
359 |
360 | #if !defined(SWIFT_EXTENSION)
361 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
362 | #endif
363 |
364 | #if !defined(OBJC_DESIGNATED_INITIALIZER)
365 | # if __has_attribute(objc_designated_initializer)
366 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
367 | # else
368 | # define OBJC_DESIGNATED_INITIALIZER
369 | # endif
370 | #endif
371 | #if !defined(SWIFT_ENUM_ATTR)
372 | # if defined(__has_attribute) && __has_attribute(enum_extensibility)
373 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
374 | # else
375 | # define SWIFT_ENUM_ATTR(_extensibility)
376 | # endif
377 | #endif
378 | #if !defined(SWIFT_ENUM)
379 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
380 | # if __has_feature(generalized_swift_name)
381 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
382 | # else
383 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
384 | # endif
385 | #endif
386 | #if !defined(SWIFT_UNAVAILABLE)
387 | # define SWIFT_UNAVAILABLE __attribute__((unavailable))
388 | #endif
389 | #if !defined(SWIFT_UNAVAILABLE_MSG)
390 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
391 | #endif
392 | #if !defined(SWIFT_AVAILABILITY)
393 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
394 | #endif
395 | #if !defined(SWIFT_WEAK_IMPORT)
396 | # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
397 | #endif
398 | #if !defined(SWIFT_DEPRECATED)
399 | # define SWIFT_DEPRECATED __attribute__((deprecated))
400 | #endif
401 | #if !defined(SWIFT_DEPRECATED_MSG)
402 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
403 | #endif
404 | #if __has_feature(attribute_diagnose_if_objc)
405 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
406 | #else
407 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
408 | #endif
409 | #if !defined(IBSegueAction)
410 | # define IBSegueAction
411 | #endif
412 | #if __has_feature(modules)
413 | #if __has_warning("-Watimport-in-framework-header")
414 | #pragma clang diagnostic ignored "-Watimport-in-framework-header"
415 | #endif
416 | @import ObjectiveC;
417 | #endif
418 |
419 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
420 | #pragma clang diagnostic ignored "-Wduplicate-method-arg"
421 | #if __has_warning("-Wpragma-clang-attribute")
422 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
423 | #endif
424 | #pragma clang diagnostic ignored "-Wunknown-pragmas"
425 | #pragma clang diagnostic ignored "-Wnullability"
426 |
427 | #if __has_attribute(external_source_symbol)
428 | # pragma push_macro("any")
429 | # undef any
430 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MagicSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
431 | # pragma pop_macro("any")
432 | #endif
433 |
434 |
435 | /// An instance of the Magic SDK
436 | SWIFT_CLASS("_TtC8MagicSDK5Magic")
437 | @interface Magic : NSObject
438 | - (nonnull instancetype)init SWIFT_UNAVAILABLE;
439 | + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
440 | @end
441 |
442 | #if __has_attribute(external_source_symbol)
443 | # pragma clang attribute pop
444 | #endif
445 | #pragma clang diagnostic pop
446 | #endif
447 |
448 | #endif
449 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Headers/MagicSDK-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double MagicSDKVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char MagicSDKVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magiclabs/magic-ios-pod/3b376d0e68db6c55cdba4962bb4f903d06268856/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Info.plist
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/MagicSDK:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magiclabs/magic-ios-pod/3b376d0e68db6c55cdba4962bb4f903d06268856/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/MagicSDK
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm.swiftdoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magiclabs/magic-ios-pod/3b376d0e68db6c55cdba4962bb4f903d06268856/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm.swiftdoc
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm.swiftinterface:
--------------------------------------------------------------------------------
1 | // swift-interface-format-version: 1.0
2 | // swift-compiler-version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
3 | // swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MagicSDK
4 | import Foundation
5 | @_exported import MagicSDK
6 | import MagicSDK_Web3
7 | import PromiseKit
8 | import Rollbar
9 | import Swift
10 | import UIKit
11 | import WebKit
12 | import _Concurrency
13 | public struct AnyValue : Swift.Codable {
14 | public let valueType: MagicSDK.AnyValue.ValueType
15 | public enum ValueType {
16 | case string(Swift.String)
17 | case int(Swift.Int)
18 | case bool(Swift.Bool)
19 | case array([MagicSDK.AnyValue])
20 | case `nil`
21 | }
22 | public init(valueType: MagicSDK.AnyValue.ValueType)
23 | public init(from decoder: Swift.Decoder) throws
24 | public enum Error : Swift.Error {
25 | case unsupportedType
26 | public static func == (a: MagicSDK.AnyValue.Error, b: MagicSDK.AnyValue.Error) -> Swift.Bool
27 | public func hash(into hasher: inout Swift.Hasher)
28 | public var hashValue: Swift.Int {
29 | get
30 | }
31 | }
32 | public func encode(to encoder: Swift.Encoder) throws
33 | }
34 | extension MagicSDK.AnyValue : Swift.ExpressibleByStringLiteral {
35 | public typealias StringLiteralType = Swift.String
36 | public init(stringLiteral value: MagicSDK.AnyValue.StringLiteralType)
37 | public typealias ExtendedGraphemeClusterLiteralType = MagicSDK.AnyValue.StringLiteralType
38 | public typealias UnicodeScalarLiteralType = MagicSDK.AnyValue.StringLiteralType
39 | }
40 | extension MagicSDK.AnyValue : Swift.ExpressibleByIntegerLiteral {
41 | public typealias IntegerLiteralType = Swift.Int
42 | public init(integerLiteral value: MagicSDK.AnyValue.IntegerLiteralType)
43 | }
44 | extension MagicSDK.AnyValue : Swift.ExpressibleByBooleanLiteral {
45 | public typealias BooleanLiteralType = Swift.Bool
46 | public init(booleanLiteral value: MagicSDK.AnyValue.BooleanLiteralType)
47 | }
48 | extension MagicSDK.AnyValue : Swift.ExpressibleByArrayLiteral {
49 | public typealias ArrayLiteralElement = MagicSDK.AnyValueRepresentable
50 | public init(array: [MagicSDK.AnyValueRepresentable])
51 | public init(arrayLiteral elements: MagicSDK.AnyValue.ArrayLiteralElement...)
52 | }
53 | extension MagicSDK.AnyValue {
54 | public static func string(_ string: Swift.String) -> MagicSDK.AnyValue
55 | public static func int(_ int: Swift.Int) -> MagicSDK.AnyValue
56 | public static func bool(_ bool: Swift.Bool) -> MagicSDK.AnyValue
57 | public static func array(_ array: [MagicSDK.AnyValueRepresentable]) -> MagicSDK.AnyValue
58 | }
59 | extension MagicSDK.AnyValue {
60 | public var string: Swift.String? {
61 | get
62 | }
63 | public var int: Swift.Int? {
64 | get
65 | }
66 | public var bool: Swift.Bool? {
67 | get
68 | }
69 | public var array: [MagicSDK.AnyValue]? {
70 | get
71 | }
72 | }
73 | extension MagicSDK.AnyValue : MagicSDK.AnyValueConvertible {
74 | public init(anyValue: MagicSDK.AnyValue)
75 | public func anyValue() -> MagicSDK.AnyValue
76 | }
77 | extension MagicSDK.AnyValue.ValueType : Swift.Equatable {
78 | public static func == (lhs: MagicSDK.AnyValue.ValueType, rhs: MagicSDK.AnyValue.ValueType) -> Swift.Bool
79 | }
80 | extension MagicSDK.AnyValue : Swift.Equatable {
81 | public static func == (lhs: MagicSDK.AnyValue, rhs: MagicSDK.AnyValue) -> Swift.Bool
82 | }
83 | extension MagicSDK.AnyValue.ValueType : Swift.Hashable {
84 | public func hash(into hasher: inout Swift.Hasher)
85 | public var hashValue: Swift.Int {
86 | get
87 | }
88 | }
89 | extension MagicSDK.AnyValue : Swift.Hashable {
90 | public func hash(into hasher: inout Swift.Hasher)
91 | public var hashValue: Swift.Int {
92 | get
93 | }
94 | }
95 | public protocol AnyValueRepresentable : Swift.Encodable {
96 | func anyValue() -> MagicSDK.AnyValue
97 | }
98 | public protocol AnyValueInitializable : Swift.Decodable {
99 | init(anyValue: MagicSDK.AnyValue) throws
100 | }
101 | public typealias AnyValueConvertible = MagicSDK.AnyValueInitializable & MagicSDK.AnyValueRepresentable
102 | extension MagicSDK.AnyValueInitializable {
103 | public init(anyValue: MagicSDK.AnyValueRepresentable) throws
104 | }
105 | extension MagicSDK.AnyValueRepresentable {
106 | public func encode(to encoder: Swift.Encoder) throws
107 | }
108 | extension MagicSDK.AnyValueInitializable {
109 | public init(from decoder: Swift.Decoder) throws
110 | }
111 | public enum AnyValueRepresentableError : Swift.Error {
112 | case notRepresentable
113 | public static func == (a: MagicSDK.AnyValueRepresentableError, b: MagicSDK.AnyValueRepresentableError) -> Swift.Bool
114 | public func hash(into hasher: inout Swift.Hasher)
115 | public var hashValue: Swift.Int {
116 | get
117 | }
118 | }
119 | public enum AnyValueInitializableError : Swift.Error {
120 | case notInitializable
121 | public static func == (a: MagicSDK.AnyValueInitializableError, b: MagicSDK.AnyValueInitializableError) -> Swift.Bool
122 | public func hash(into hasher: inout Swift.Hasher)
123 | public var hashValue: Swift.Int {
124 | get
125 | }
126 | }
127 | public struct LoginWithMagicLinkConfiguration : MagicSDK.BaseConfiguration {
128 | public var showUI: Swift.Bool
129 | public var email: Swift.String
130 | public init(showUI: Swift.Bool = true, email: Swift.String)
131 | public func encode(to encoder: Swift.Encoder) throws
132 | public init(from decoder: Swift.Decoder) throws
133 | }
134 | public struct LoginWithSmsConfiguration : MagicSDK.BaseConfiguration {
135 | public var phoneNumber: Swift.String
136 | public init(phoneNumber: Swift.String)
137 | public func encode(to encoder: Swift.Encoder) throws
138 | public init(from decoder: Swift.Decoder) throws
139 | }
140 | @_inheritsConvenienceInitializers public class AuthModule : MagicSDK.BaseModule {
141 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
142 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration) -> PromiseKit.Promise
143 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
144 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
145 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration) -> PromiseKit.Promise
146 | public enum LoginWithMagicLinkEvent : Swift.String {
147 | case emailNotDeliverable
148 | case emailSent
149 | case retry
150 | public init?(rawValue: Swift.String)
151 | public typealias RawValue = Swift.String
152 | public var rawValue: Swift.String {
153 | get
154 | }
155 | }
156 | override public init(rpcProvider: MagicSDK.RpcProvider)
157 | @objc deinit
158 | }
159 | public protocol BaseConfiguration : Swift.Decodable, Swift.Encodable {
160 | }
161 | open class BaseModule {
162 | final public let provider: MagicSDK.RpcProvider
163 | final public let magicEventCenter: MagicSDK.EventCenter
164 | public init(rpcProvider: MagicSDK.RpcProvider)
165 | @objc deinit
166 | }
167 | public func promiseResolver(_ resolver: PromiseKit.Resolver) -> (_ result: MagicSDK_Web3.Web3Response) -> Swift.Void where T : Swift.Decodable, T : Swift.Encodable
168 | public struct EIP712TypedData : Swift.Codable, Swift.Equatable {
169 | public struct `Type` : Swift.Codable, Swift.Equatable {
170 | public static func == (a: MagicSDK.EIP712TypedData.`Type`, b: MagicSDK.EIP712TypedData.`Type`) -> Swift.Bool
171 | public func encode(to encoder: Swift.Encoder) throws
172 | public init(from decoder: Swift.Decoder) throws
173 | }
174 | public struct Domain : Swift.Codable, Swift.Equatable {
175 | public static func == (a: MagicSDK.EIP712TypedData.Domain, b: MagicSDK.EIP712TypedData.Domain) -> Swift.Bool
176 | public func encode(to encoder: Swift.Encoder) throws
177 | public init(from decoder: Swift.Decoder) throws
178 | }
179 | public let types: Swift.Dictionary>
180 | public let primaryType: Swift.String
181 | public let domain: MagicSDK.EIP712TypedData.Domain
182 | public let message: Swift.Dictionary
183 | public init(primaryType: Swift.String, domain: MagicSDK.EIP712TypedData.Domain, types: Swift.Dictionary>, message: Swift.Dictionary)
184 | public static func == (a: MagicSDK.EIP712TypedData, b: MagicSDK.EIP712TypedData) -> Swift.Bool
185 | public func encode(to encoder: Swift.Encoder) throws
186 | public init(from decoder: Swift.Decoder) throws
187 | }
188 | public struct SignTypedDataCallParams : Swift.Codable, Swift.Equatable {
189 | public let account: MagicSDK_Web3.EthereumAddress
190 | public let data: MagicSDK.EIP712TypedData
191 | public init(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData)
192 | public init(from decoder: Swift.Decoder) throws
193 | public func encode(to encoder: Swift.Encoder) throws
194 | public static func == (a: MagicSDK.SignTypedDataCallParams, b: MagicSDK.SignTypedDataCallParams) -> Swift.Bool
195 | }
196 | public struct EIP712TypedDataLegacyFields : Swift.Codable, Swift.Equatable {
197 | public let type: Swift.String
198 | public let name: Swift.String
199 | public let value: Swift.String
200 | public init(type: Swift.String, name: Swift.String, value: Swift.String)
201 | public static func == (a: MagicSDK.EIP712TypedDataLegacyFields, b: MagicSDK.EIP712TypedDataLegacyFields) -> Swift.Bool
202 | public func encode(to encoder: Swift.Encoder) throws
203 | public init(from decoder: Swift.Decoder) throws
204 | }
205 | public struct SignTypedDataLegacyCallParams : Swift.Codable, Swift.Equatable {
206 | public let data: [MagicSDK.EIP712TypedDataLegacyFields]
207 | public let account: MagicSDK_Web3.EthereumAddress
208 | public init(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress)
209 | public init(from decoder: Swift.Decoder) throws
210 | public func encode(to encoder: Swift.Encoder) throws
211 | public static func == (a: MagicSDK.SignTypedDataLegacyCallParams, b: MagicSDK.SignTypedDataLegacyCallParams) -> Swift.Bool
212 | }
213 | @_hasMissingDesignatedInitializers public class EventCenter {
214 | @objc deinit
215 | }
216 | @_hasMissingDesignatedInitializers public class MagicEventPromise {
217 | public func once(eventName: Swift.String, completion: @escaping () -> Swift.Void) -> MagicSDK.MagicEventPromise
218 | public func done(on: Dispatch.DispatchQueue? = conf.Q.return, flags: Dispatch.DispatchWorkItemFlags? = nil, _ body: @escaping (T) throws -> Swift.Void) -> PromiseKit.Promise
219 | @objc deinit
220 | }
221 | public enum JSONValue : Swift.Equatable {
222 | case null
223 | case bool(Swift.Bool)
224 | case number(Swift.Double)
225 | case string(Swift.String)
226 | case array(Swift.Array)
227 | case object(Swift.Dictionary)
228 | public static func == (a: MagicSDK.JSONValue, b: MagicSDK.JSONValue) -> Swift.Bool
229 | }
230 | extension MagicSDK.JSONValue : Swift.Codable {
231 | public func encode(to encoder: Swift.Encoder) throws
232 | public init(from decoder: Swift.Decoder) throws
233 | }
234 | extension MagicSDK.JSONValue : Swift.CustomDebugStringConvertible {
235 | public var debugDescription: Swift.String {
236 | get
237 | }
238 | }
239 | extension MagicSDK.JSONValue {
240 | public var string: Swift.String? {
241 | get
242 | }
243 | public var number: Swift.Double? {
244 | get
245 | }
246 | public var bool: Swift.Bool? {
247 | get
248 | }
249 | public var objec: Swift.Dictionary? {
250 | get
251 | }
252 | public var array: Swift.Array? {
253 | get
254 | }
255 | public var isNull: Swift.Bool {
256 | get
257 | }
258 | public subscript(index: Swift.Int) -> MagicSDK.JSONValue? {
259 | get
260 | }
261 | public subscript(key: Swift.String) -> MagicSDK.JSONValue? {
262 | get
263 | }
264 | }
265 | @objc @_hasMissingDesignatedInitializers public class Magic : ObjectiveC.NSObject {
266 | final public let user: MagicSDK.UserModule
267 | final public let auth: MagicSDK.AuthModule
268 | public var rpcProvider: MagicSDK.RpcProvider
269 | public static var shared: MagicSDK.Magic!
270 | convenience public init(apiKey: Swift.String, network: MagicSDK.EthNetwork, locale: Swift.String = Locale.current.identifier)
271 | convenience public init(apiKey: Swift.String, customNode: MagicSDK.CustomNodeConfiguration, locale: Swift.String = Locale.current.identifier)
272 | convenience public init(apiKey: Swift.String, locale: Swift.String = Locale.current.identifier)
273 | @objc deinit
274 | }
275 | extension MagicSDK_Web3.Web3Response {
276 | public var magicAuthError: MagicSDK.RpcProvider.ProviderError? {
277 | get
278 | }
279 | }
280 | @_hasMissingDesignatedInitializers public class NetworkClient {
281 | public enum Error : Swift.Error {
282 | case unexpectedResponse(Swift.Error?)
283 | case invalidResponseCode
284 | }
285 | public var headers: [Swift.String : Swift.String]
286 | @objc deinit
287 | }
288 | public func generateRandomId() -> Swift.Int
289 | public func btoa(jsonString: Swift.String) -> Swift.String
290 | public func handleRollbarError(_ error: Swift.Error, extraData: Swift.String = "", log: Swift.Bool = true)
291 | @_hasMissingDesignatedInitializers public class RpcProvider : MagicSDK.NetworkClient, MagicSDK_Web3.Web3Provider {
292 | public enum ProviderError : Swift.Error {
293 | case encodingFailed(Swift.Error?)
294 | case decodingFailed(json: Swift.String)
295 | case invalidJsonResponse(json: Swift.String)
296 | case missingPayloadCallback(json: Swift.String)
297 | }
298 | final public let urlBuilder: MagicSDK.URLBuilder
299 | public func send(request: MagicSDK_Web3.RPCRequest, response: @escaping MagicSDK.Web3ResponseCompletion) where Params : Swift.Decodable, Params : Swift.Encodable, Result : Swift.Decodable, Result : Swift.Encodable
300 | @objc deinit
301 | }
302 | public typealias Web3ResponseCompletion = (_ resp: MagicSDK_Web3.Web3Response) -> Swift.Void where Result : Swift.Decodable, Result : Swift.Encodable
303 | public struct URLBuilder {
304 | public let apiKey: Swift.String
305 | }
306 | public struct CustomNodeConfiguration : Swift.Encodable {
307 | public init(rpcUrl: Swift.String, chainId: Swift.Int? = nil)
308 | public func encode(to encoder: Swift.Encoder) throws
309 | }
310 | public class GetIdTokenConfiguration : MagicSDK.BaseConfiguration {
311 | public init(lifespan: Swift.Int = 900)
312 | @objc deinit
313 | public func encode(to encoder: Swift.Encoder) throws
314 | required public init(from decoder: Swift.Decoder) throws
315 | }
316 | public class GenerateIdTokenConfiguration : MagicSDK.BaseConfiguration {
317 | public init(lifespan: Swift.Int = 900, attachment: Swift.String = "none")
318 | @objc deinit
319 | public func encode(to encoder: Swift.Encoder) throws
320 | required public init(from decoder: Swift.Decoder) throws
321 | }
322 | public class UpdateEmailConfiguration : MagicSDK.BaseConfiguration {
323 | public init(email: Swift.String, showUI: Swift.Bool = true)
324 | @objc deinit
325 | public func encode(to encoder: Swift.Encoder) throws
326 | required public init(from decoder: Swift.Decoder) throws
327 | }
328 | @_inheritsConvenienceInitializers public class UserModule : MagicSDK.BaseModule {
329 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
330 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil) -> PromiseKit.Promise
331 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
332 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil) -> PromiseKit.Promise
333 | public func getMetadata(response: @escaping MagicSDK.Web3ResponseCompletion)
334 | public func getMetadata() -> PromiseKit.Promise
335 | public func isLoggedIn(response: @escaping MagicSDK.Web3ResponseCompletion)
336 | public func isLoggedIn() -> PromiseKit.Promise
337 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
338 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration) -> PromiseKit.Promise
339 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
340 | public func logout(response: @escaping MagicSDK.Web3ResponseCompletion)
341 | public func logout() -> PromiseKit.Promise
342 | override public init(rpcProvider: MagicSDK.RpcProvider)
343 | @objc deinit
344 | }
345 | public protocol MagicResponse : Swift.Decodable, Swift.Encodable {
346 | }
347 | public struct UserMetadata : MagicSDK.MagicResponse {
348 | public let issuer: Swift.String?
349 | public let publicAddress: Swift.String?
350 | public let email: Swift.String?
351 | public func encode(to encoder: Swift.Encoder) throws
352 | public init(from decoder: Swift.Decoder) throws
353 | }
354 | extension MagicSDK_Web3.Web3.Eth {
355 | public func getCoinbase(response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
356 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData, response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
357 | public func signTypedDataV1(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress, response: @escaping MagicSDK.Web3ResponseCompletion)
358 | public func signTypedDataV3(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData, response: @escaping MagicSDK.Web3ResponseCompletion)
359 | }
360 | extension MagicSDK_Web3.Web3.Eth {
361 | public func getCoinbase() -> PromiseKit.Promise
362 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData) -> PromiseKit.Promise
363 | public func signTypedDataLegacy(account: MagicSDK_Web3.EthereumAddress, data: [MagicSDK.EIP712TypedDataLegacyFields]) -> PromiseKit.Promise
364 | public func signTypedData(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData) -> PromiseKit.Promise
365 | }
366 | extension MagicSDK_Web3.RPCRequest {
367 | public init(method: Swift.String, params: Params)
368 | }
369 | public enum EthNetwork : Swift.String {
370 | case mainnet
371 | case kovan
372 | case rinkeby
373 | case ropsten
374 | public init?(rawValue: Swift.String)
375 | public typealias RawValue = Swift.String
376 | public var rawValue: Swift.String {
377 | get
378 | }
379 | }
380 | extension MagicSDK.AnyValue.Error : Swift.Equatable {}
381 | extension MagicSDK.AnyValue.Error : Swift.Hashable {}
382 | extension MagicSDK.AnyValueRepresentableError : Swift.Equatable {}
383 | extension MagicSDK.AnyValueRepresentableError : Swift.Hashable {}
384 | extension MagicSDK.AnyValueInitializableError : Swift.Equatable {}
385 | extension MagicSDK.AnyValueInitializableError : Swift.Hashable {}
386 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Equatable {}
387 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Hashable {}
388 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.RawRepresentable {}
389 | extension MagicSDK.EthNetwork : Swift.Equatable {}
390 | extension MagicSDK.EthNetwork : Swift.Hashable {}
391 | extension MagicSDK.EthNetwork : Swift.RawRepresentable {}
392 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm64-apple-ios.swiftdoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magiclabs/magic-ios-pod/3b376d0e68db6c55cdba4962bb4f903d06268856/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm64-apple-ios.swiftdoc
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm64-apple-ios.swiftinterface:
--------------------------------------------------------------------------------
1 | // swift-interface-format-version: 1.0
2 | // swift-compiler-version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
3 | // swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MagicSDK
4 | import Foundation
5 | @_exported import MagicSDK
6 | import MagicSDK_Web3
7 | import PromiseKit
8 | import Rollbar
9 | import Swift
10 | import UIKit
11 | import WebKit
12 | import _Concurrency
13 | public struct AnyValue : Swift.Codable {
14 | public let valueType: MagicSDK.AnyValue.ValueType
15 | public enum ValueType {
16 | case string(Swift.String)
17 | case int(Swift.Int)
18 | case bool(Swift.Bool)
19 | case array([MagicSDK.AnyValue])
20 | case `nil`
21 | }
22 | public init(valueType: MagicSDK.AnyValue.ValueType)
23 | public init(from decoder: Swift.Decoder) throws
24 | public enum Error : Swift.Error {
25 | case unsupportedType
26 | public static func == (a: MagicSDK.AnyValue.Error, b: MagicSDK.AnyValue.Error) -> Swift.Bool
27 | public func hash(into hasher: inout Swift.Hasher)
28 | public var hashValue: Swift.Int {
29 | get
30 | }
31 | }
32 | public func encode(to encoder: Swift.Encoder) throws
33 | }
34 | extension MagicSDK.AnyValue : Swift.ExpressibleByStringLiteral {
35 | public typealias StringLiteralType = Swift.String
36 | public init(stringLiteral value: MagicSDK.AnyValue.StringLiteralType)
37 | public typealias ExtendedGraphemeClusterLiteralType = MagicSDK.AnyValue.StringLiteralType
38 | public typealias UnicodeScalarLiteralType = MagicSDK.AnyValue.StringLiteralType
39 | }
40 | extension MagicSDK.AnyValue : Swift.ExpressibleByIntegerLiteral {
41 | public typealias IntegerLiteralType = Swift.Int
42 | public init(integerLiteral value: MagicSDK.AnyValue.IntegerLiteralType)
43 | }
44 | extension MagicSDK.AnyValue : Swift.ExpressibleByBooleanLiteral {
45 | public typealias BooleanLiteralType = Swift.Bool
46 | public init(booleanLiteral value: MagicSDK.AnyValue.BooleanLiteralType)
47 | }
48 | extension MagicSDK.AnyValue : Swift.ExpressibleByArrayLiteral {
49 | public typealias ArrayLiteralElement = MagicSDK.AnyValueRepresentable
50 | public init(array: [MagicSDK.AnyValueRepresentable])
51 | public init(arrayLiteral elements: MagicSDK.AnyValue.ArrayLiteralElement...)
52 | }
53 | extension MagicSDK.AnyValue {
54 | public static func string(_ string: Swift.String) -> MagicSDK.AnyValue
55 | public static func int(_ int: Swift.Int) -> MagicSDK.AnyValue
56 | public static func bool(_ bool: Swift.Bool) -> MagicSDK.AnyValue
57 | public static func array(_ array: [MagicSDK.AnyValueRepresentable]) -> MagicSDK.AnyValue
58 | }
59 | extension MagicSDK.AnyValue {
60 | public var string: Swift.String? {
61 | get
62 | }
63 | public var int: Swift.Int? {
64 | get
65 | }
66 | public var bool: Swift.Bool? {
67 | get
68 | }
69 | public var array: [MagicSDK.AnyValue]? {
70 | get
71 | }
72 | }
73 | extension MagicSDK.AnyValue : MagicSDK.AnyValueConvertible {
74 | public init(anyValue: MagicSDK.AnyValue)
75 | public func anyValue() -> MagicSDK.AnyValue
76 | }
77 | extension MagicSDK.AnyValue.ValueType : Swift.Equatable {
78 | public static func == (lhs: MagicSDK.AnyValue.ValueType, rhs: MagicSDK.AnyValue.ValueType) -> Swift.Bool
79 | }
80 | extension MagicSDK.AnyValue : Swift.Equatable {
81 | public static func == (lhs: MagicSDK.AnyValue, rhs: MagicSDK.AnyValue) -> Swift.Bool
82 | }
83 | extension MagicSDK.AnyValue.ValueType : Swift.Hashable {
84 | public func hash(into hasher: inout Swift.Hasher)
85 | public var hashValue: Swift.Int {
86 | get
87 | }
88 | }
89 | extension MagicSDK.AnyValue : Swift.Hashable {
90 | public func hash(into hasher: inout Swift.Hasher)
91 | public var hashValue: Swift.Int {
92 | get
93 | }
94 | }
95 | public protocol AnyValueRepresentable : Swift.Encodable {
96 | func anyValue() -> MagicSDK.AnyValue
97 | }
98 | public protocol AnyValueInitializable : Swift.Decodable {
99 | init(anyValue: MagicSDK.AnyValue) throws
100 | }
101 | public typealias AnyValueConvertible = MagicSDK.AnyValueInitializable & MagicSDK.AnyValueRepresentable
102 | extension MagicSDK.AnyValueInitializable {
103 | public init(anyValue: MagicSDK.AnyValueRepresentable) throws
104 | }
105 | extension MagicSDK.AnyValueRepresentable {
106 | public func encode(to encoder: Swift.Encoder) throws
107 | }
108 | extension MagicSDK.AnyValueInitializable {
109 | public init(from decoder: Swift.Decoder) throws
110 | }
111 | public enum AnyValueRepresentableError : Swift.Error {
112 | case notRepresentable
113 | public static func == (a: MagicSDK.AnyValueRepresentableError, b: MagicSDK.AnyValueRepresentableError) -> Swift.Bool
114 | public func hash(into hasher: inout Swift.Hasher)
115 | public var hashValue: Swift.Int {
116 | get
117 | }
118 | }
119 | public enum AnyValueInitializableError : Swift.Error {
120 | case notInitializable
121 | public static func == (a: MagicSDK.AnyValueInitializableError, b: MagicSDK.AnyValueInitializableError) -> Swift.Bool
122 | public func hash(into hasher: inout Swift.Hasher)
123 | public var hashValue: Swift.Int {
124 | get
125 | }
126 | }
127 | public struct LoginWithMagicLinkConfiguration : MagicSDK.BaseConfiguration {
128 | public var showUI: Swift.Bool
129 | public var email: Swift.String
130 | public init(showUI: Swift.Bool = true, email: Swift.String)
131 | public func encode(to encoder: Swift.Encoder) throws
132 | public init(from decoder: Swift.Decoder) throws
133 | }
134 | public struct LoginWithSmsConfiguration : MagicSDK.BaseConfiguration {
135 | public var phoneNumber: Swift.String
136 | public init(phoneNumber: Swift.String)
137 | public func encode(to encoder: Swift.Encoder) throws
138 | public init(from decoder: Swift.Decoder) throws
139 | }
140 | @_inheritsConvenienceInitializers public class AuthModule : MagicSDK.BaseModule {
141 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
142 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration) -> PromiseKit.Promise
143 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
144 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
145 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration) -> PromiseKit.Promise
146 | public enum LoginWithMagicLinkEvent : Swift.String {
147 | case emailNotDeliverable
148 | case emailSent
149 | case retry
150 | public init?(rawValue: Swift.String)
151 | public typealias RawValue = Swift.String
152 | public var rawValue: Swift.String {
153 | get
154 | }
155 | }
156 | override public init(rpcProvider: MagicSDK.RpcProvider)
157 | @objc deinit
158 | }
159 | public protocol BaseConfiguration : Swift.Decodable, Swift.Encodable {
160 | }
161 | open class BaseModule {
162 | final public let provider: MagicSDK.RpcProvider
163 | final public let magicEventCenter: MagicSDK.EventCenter
164 | public init(rpcProvider: MagicSDK.RpcProvider)
165 | @objc deinit
166 | }
167 | public func promiseResolver(_ resolver: PromiseKit.Resolver) -> (_ result: MagicSDK_Web3.Web3Response) -> Swift.Void where T : Swift.Decodable, T : Swift.Encodable
168 | public struct EIP712TypedData : Swift.Codable, Swift.Equatable {
169 | public struct `Type` : Swift.Codable, Swift.Equatable {
170 | public static func == (a: MagicSDK.EIP712TypedData.`Type`, b: MagicSDK.EIP712TypedData.`Type`) -> Swift.Bool
171 | public func encode(to encoder: Swift.Encoder) throws
172 | public init(from decoder: Swift.Decoder) throws
173 | }
174 | public struct Domain : Swift.Codable, Swift.Equatable {
175 | public static func == (a: MagicSDK.EIP712TypedData.Domain, b: MagicSDK.EIP712TypedData.Domain) -> Swift.Bool
176 | public func encode(to encoder: Swift.Encoder) throws
177 | public init(from decoder: Swift.Decoder) throws
178 | }
179 | public let types: Swift.Dictionary>
180 | public let primaryType: Swift.String
181 | public let domain: MagicSDK.EIP712TypedData.Domain
182 | public let message: Swift.Dictionary
183 | public init(primaryType: Swift.String, domain: MagicSDK.EIP712TypedData.Domain, types: Swift.Dictionary>, message: Swift.Dictionary)
184 | public static func == (a: MagicSDK.EIP712TypedData, b: MagicSDK.EIP712TypedData) -> Swift.Bool
185 | public func encode(to encoder: Swift.Encoder) throws
186 | public init(from decoder: Swift.Decoder) throws
187 | }
188 | public struct SignTypedDataCallParams : Swift.Codable, Swift.Equatable {
189 | public let account: MagicSDK_Web3.EthereumAddress
190 | public let data: MagicSDK.EIP712TypedData
191 | public init(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData)
192 | public init(from decoder: Swift.Decoder) throws
193 | public func encode(to encoder: Swift.Encoder) throws
194 | public static func == (a: MagicSDK.SignTypedDataCallParams, b: MagicSDK.SignTypedDataCallParams) -> Swift.Bool
195 | }
196 | public struct EIP712TypedDataLegacyFields : Swift.Codable, Swift.Equatable {
197 | public let type: Swift.String
198 | public let name: Swift.String
199 | public let value: Swift.String
200 | public init(type: Swift.String, name: Swift.String, value: Swift.String)
201 | public static func == (a: MagicSDK.EIP712TypedDataLegacyFields, b: MagicSDK.EIP712TypedDataLegacyFields) -> Swift.Bool
202 | public func encode(to encoder: Swift.Encoder) throws
203 | public init(from decoder: Swift.Decoder) throws
204 | }
205 | public struct SignTypedDataLegacyCallParams : Swift.Codable, Swift.Equatable {
206 | public let data: [MagicSDK.EIP712TypedDataLegacyFields]
207 | public let account: MagicSDK_Web3.EthereumAddress
208 | public init(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress)
209 | public init(from decoder: Swift.Decoder) throws
210 | public func encode(to encoder: Swift.Encoder) throws
211 | public static func == (a: MagicSDK.SignTypedDataLegacyCallParams, b: MagicSDK.SignTypedDataLegacyCallParams) -> Swift.Bool
212 | }
213 | @_hasMissingDesignatedInitializers public class EventCenter {
214 | @objc deinit
215 | }
216 | @_hasMissingDesignatedInitializers public class MagicEventPromise {
217 | public func once(eventName: Swift.String, completion: @escaping () -> Swift.Void) -> MagicSDK.MagicEventPromise
218 | public func done(on: Dispatch.DispatchQueue? = conf.Q.return, flags: Dispatch.DispatchWorkItemFlags? = nil, _ body: @escaping (T) throws -> Swift.Void) -> PromiseKit.Promise
219 | @objc deinit
220 | }
221 | public enum JSONValue : Swift.Equatable {
222 | case null
223 | case bool(Swift.Bool)
224 | case number(Swift.Double)
225 | case string(Swift.String)
226 | case array(Swift.Array)
227 | case object(Swift.Dictionary)
228 | public static func == (a: MagicSDK.JSONValue, b: MagicSDK.JSONValue) -> Swift.Bool
229 | }
230 | extension MagicSDK.JSONValue : Swift.Codable {
231 | public func encode(to encoder: Swift.Encoder) throws
232 | public init(from decoder: Swift.Decoder) throws
233 | }
234 | extension MagicSDK.JSONValue : Swift.CustomDebugStringConvertible {
235 | public var debugDescription: Swift.String {
236 | get
237 | }
238 | }
239 | extension MagicSDK.JSONValue {
240 | public var string: Swift.String? {
241 | get
242 | }
243 | public var number: Swift.Double? {
244 | get
245 | }
246 | public var bool: Swift.Bool? {
247 | get
248 | }
249 | public var objec: Swift.Dictionary? {
250 | get
251 | }
252 | public var array: Swift.Array? {
253 | get
254 | }
255 | public var isNull: Swift.Bool {
256 | get
257 | }
258 | public subscript(index: Swift.Int) -> MagicSDK.JSONValue? {
259 | get
260 | }
261 | public subscript(key: Swift.String) -> MagicSDK.JSONValue? {
262 | get
263 | }
264 | }
265 | @objc @_hasMissingDesignatedInitializers public class Magic : ObjectiveC.NSObject {
266 | final public let user: MagicSDK.UserModule
267 | final public let auth: MagicSDK.AuthModule
268 | public var rpcProvider: MagicSDK.RpcProvider
269 | public static var shared: MagicSDK.Magic!
270 | convenience public init(apiKey: Swift.String, network: MagicSDK.EthNetwork, locale: Swift.String = Locale.current.identifier)
271 | convenience public init(apiKey: Swift.String, customNode: MagicSDK.CustomNodeConfiguration, locale: Swift.String = Locale.current.identifier)
272 | convenience public init(apiKey: Swift.String, locale: Swift.String = Locale.current.identifier)
273 | @objc deinit
274 | }
275 | extension MagicSDK_Web3.Web3Response {
276 | public var magicAuthError: MagicSDK.RpcProvider.ProviderError? {
277 | get
278 | }
279 | }
280 | @_hasMissingDesignatedInitializers public class NetworkClient {
281 | public enum Error : Swift.Error {
282 | case unexpectedResponse(Swift.Error?)
283 | case invalidResponseCode
284 | }
285 | public var headers: [Swift.String : Swift.String]
286 | @objc deinit
287 | }
288 | public func generateRandomId() -> Swift.Int
289 | public func btoa(jsonString: Swift.String) -> Swift.String
290 | public func handleRollbarError(_ error: Swift.Error, extraData: Swift.String = "", log: Swift.Bool = true)
291 | @_hasMissingDesignatedInitializers public class RpcProvider : MagicSDK.NetworkClient, MagicSDK_Web3.Web3Provider {
292 | public enum ProviderError : Swift.Error {
293 | case encodingFailed(Swift.Error?)
294 | case decodingFailed(json: Swift.String)
295 | case invalidJsonResponse(json: Swift.String)
296 | case missingPayloadCallback(json: Swift.String)
297 | }
298 | final public let urlBuilder: MagicSDK.URLBuilder
299 | public func send(request: MagicSDK_Web3.RPCRequest, response: @escaping MagicSDK.Web3ResponseCompletion) where Params : Swift.Decodable, Params : Swift.Encodable, Result : Swift.Decodable, Result : Swift.Encodable
300 | @objc deinit
301 | }
302 | public typealias Web3ResponseCompletion = (_ resp: MagicSDK_Web3.Web3Response) -> Swift.Void where Result : Swift.Decodable, Result : Swift.Encodable
303 | public struct URLBuilder {
304 | public let apiKey: Swift.String
305 | }
306 | public struct CustomNodeConfiguration : Swift.Encodable {
307 | public init(rpcUrl: Swift.String, chainId: Swift.Int? = nil)
308 | public func encode(to encoder: Swift.Encoder) throws
309 | }
310 | public class GetIdTokenConfiguration : MagicSDK.BaseConfiguration {
311 | public init(lifespan: Swift.Int = 900)
312 | @objc deinit
313 | public func encode(to encoder: Swift.Encoder) throws
314 | required public init(from decoder: Swift.Decoder) throws
315 | }
316 | public class GenerateIdTokenConfiguration : MagicSDK.BaseConfiguration {
317 | public init(lifespan: Swift.Int = 900, attachment: Swift.String = "none")
318 | @objc deinit
319 | public func encode(to encoder: Swift.Encoder) throws
320 | required public init(from decoder: Swift.Decoder) throws
321 | }
322 | public class UpdateEmailConfiguration : MagicSDK.BaseConfiguration {
323 | public init(email: Swift.String, showUI: Swift.Bool = true)
324 | @objc deinit
325 | public func encode(to encoder: Swift.Encoder) throws
326 | required public init(from decoder: Swift.Decoder) throws
327 | }
328 | @_inheritsConvenienceInitializers public class UserModule : MagicSDK.BaseModule {
329 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
330 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil) -> PromiseKit.Promise
331 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
332 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil) -> PromiseKit.Promise
333 | public func getMetadata(response: @escaping MagicSDK.Web3ResponseCompletion)
334 | public func getMetadata() -> PromiseKit.Promise
335 | public func isLoggedIn(response: @escaping MagicSDK.Web3ResponseCompletion)
336 | public func isLoggedIn() -> PromiseKit.Promise
337 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
338 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration) -> PromiseKit.Promise
339 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
340 | public func logout(response: @escaping MagicSDK.Web3ResponseCompletion)
341 | public func logout() -> PromiseKit.Promise
342 | override public init(rpcProvider: MagicSDK.RpcProvider)
343 | @objc deinit
344 | }
345 | public protocol MagicResponse : Swift.Decodable, Swift.Encodable {
346 | }
347 | public struct UserMetadata : MagicSDK.MagicResponse {
348 | public let issuer: Swift.String?
349 | public let publicAddress: Swift.String?
350 | public let email: Swift.String?
351 | public func encode(to encoder: Swift.Encoder) throws
352 | public init(from decoder: Swift.Decoder) throws
353 | }
354 | extension MagicSDK_Web3.Web3.Eth {
355 | public func getCoinbase(response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
356 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData, response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
357 | public func signTypedDataV1(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress, response: @escaping MagicSDK.Web3ResponseCompletion)
358 | public func signTypedDataV3(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData, response: @escaping MagicSDK.Web3ResponseCompletion)
359 | }
360 | extension MagicSDK_Web3.Web3.Eth {
361 | public func getCoinbase() -> PromiseKit.Promise
362 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData) -> PromiseKit.Promise
363 | public func signTypedDataLegacy(account: MagicSDK_Web3.EthereumAddress, data: [MagicSDK.EIP712TypedDataLegacyFields]) -> PromiseKit.Promise
364 | public func signTypedData(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData) -> PromiseKit.Promise
365 | }
366 | extension MagicSDK_Web3.RPCRequest {
367 | public init(method: Swift.String, params: Params)
368 | }
369 | public enum EthNetwork : Swift.String {
370 | case mainnet
371 | case kovan
372 | case rinkeby
373 | case ropsten
374 | public init?(rawValue: Swift.String)
375 | public typealias RawValue = Swift.String
376 | public var rawValue: Swift.String {
377 | get
378 | }
379 | }
380 | extension MagicSDK.AnyValue.Error : Swift.Equatable {}
381 | extension MagicSDK.AnyValue.Error : Swift.Hashable {}
382 | extension MagicSDK.AnyValueRepresentableError : Swift.Equatable {}
383 | extension MagicSDK.AnyValueRepresentableError : Swift.Hashable {}
384 | extension MagicSDK.AnyValueInitializableError : Swift.Equatable {}
385 | extension MagicSDK.AnyValueInitializableError : Swift.Hashable {}
386 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Equatable {}
387 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Hashable {}
388 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.RawRepresentable {}
389 | extension MagicSDK.EthNetwork : Swift.Equatable {}
390 | extension MagicSDK.EthNetwork : Swift.Hashable {}
391 | extension MagicSDK.EthNetwork : Swift.RawRepresentable {}
392 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm64.swiftdoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magiclabs/magic-ios-pod/3b376d0e68db6c55cdba4962bb4f903d06268856/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm64.swiftdoc
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/arm64.swiftinterface:
--------------------------------------------------------------------------------
1 | // swift-interface-format-version: 1.0
2 | // swift-compiler-version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
3 | // swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MagicSDK
4 | import Foundation
5 | @_exported import MagicSDK
6 | import MagicSDK_Web3
7 | import PromiseKit
8 | import Rollbar
9 | import Swift
10 | import UIKit
11 | import WebKit
12 | import _Concurrency
13 | public struct AnyValue : Swift.Codable {
14 | public let valueType: MagicSDK.AnyValue.ValueType
15 | public enum ValueType {
16 | case string(Swift.String)
17 | case int(Swift.Int)
18 | case bool(Swift.Bool)
19 | case array([MagicSDK.AnyValue])
20 | case `nil`
21 | }
22 | public init(valueType: MagicSDK.AnyValue.ValueType)
23 | public init(from decoder: Swift.Decoder) throws
24 | public enum Error : Swift.Error {
25 | case unsupportedType
26 | public static func == (a: MagicSDK.AnyValue.Error, b: MagicSDK.AnyValue.Error) -> Swift.Bool
27 | public func hash(into hasher: inout Swift.Hasher)
28 | public var hashValue: Swift.Int {
29 | get
30 | }
31 | }
32 | public func encode(to encoder: Swift.Encoder) throws
33 | }
34 | extension MagicSDK.AnyValue : Swift.ExpressibleByStringLiteral {
35 | public typealias StringLiteralType = Swift.String
36 | public init(stringLiteral value: MagicSDK.AnyValue.StringLiteralType)
37 | public typealias ExtendedGraphemeClusterLiteralType = MagicSDK.AnyValue.StringLiteralType
38 | public typealias UnicodeScalarLiteralType = MagicSDK.AnyValue.StringLiteralType
39 | }
40 | extension MagicSDK.AnyValue : Swift.ExpressibleByIntegerLiteral {
41 | public typealias IntegerLiteralType = Swift.Int
42 | public init(integerLiteral value: MagicSDK.AnyValue.IntegerLiteralType)
43 | }
44 | extension MagicSDK.AnyValue : Swift.ExpressibleByBooleanLiteral {
45 | public typealias BooleanLiteralType = Swift.Bool
46 | public init(booleanLiteral value: MagicSDK.AnyValue.BooleanLiteralType)
47 | }
48 | extension MagicSDK.AnyValue : Swift.ExpressibleByArrayLiteral {
49 | public typealias ArrayLiteralElement = MagicSDK.AnyValueRepresentable
50 | public init(array: [MagicSDK.AnyValueRepresentable])
51 | public init(arrayLiteral elements: MagicSDK.AnyValue.ArrayLiteralElement...)
52 | }
53 | extension MagicSDK.AnyValue {
54 | public static func string(_ string: Swift.String) -> MagicSDK.AnyValue
55 | public static func int(_ int: Swift.Int) -> MagicSDK.AnyValue
56 | public static func bool(_ bool: Swift.Bool) -> MagicSDK.AnyValue
57 | public static func array(_ array: [MagicSDK.AnyValueRepresentable]) -> MagicSDK.AnyValue
58 | }
59 | extension MagicSDK.AnyValue {
60 | public var string: Swift.String? {
61 | get
62 | }
63 | public var int: Swift.Int? {
64 | get
65 | }
66 | public var bool: Swift.Bool? {
67 | get
68 | }
69 | public var array: [MagicSDK.AnyValue]? {
70 | get
71 | }
72 | }
73 | extension MagicSDK.AnyValue : MagicSDK.AnyValueConvertible {
74 | public init(anyValue: MagicSDK.AnyValue)
75 | public func anyValue() -> MagicSDK.AnyValue
76 | }
77 | extension MagicSDK.AnyValue.ValueType : Swift.Equatable {
78 | public static func == (lhs: MagicSDK.AnyValue.ValueType, rhs: MagicSDK.AnyValue.ValueType) -> Swift.Bool
79 | }
80 | extension MagicSDK.AnyValue : Swift.Equatable {
81 | public static func == (lhs: MagicSDK.AnyValue, rhs: MagicSDK.AnyValue) -> Swift.Bool
82 | }
83 | extension MagicSDK.AnyValue.ValueType : Swift.Hashable {
84 | public func hash(into hasher: inout Swift.Hasher)
85 | public var hashValue: Swift.Int {
86 | get
87 | }
88 | }
89 | extension MagicSDK.AnyValue : Swift.Hashable {
90 | public func hash(into hasher: inout Swift.Hasher)
91 | public var hashValue: Swift.Int {
92 | get
93 | }
94 | }
95 | public protocol AnyValueRepresentable : Swift.Encodable {
96 | func anyValue() -> MagicSDK.AnyValue
97 | }
98 | public protocol AnyValueInitializable : Swift.Decodable {
99 | init(anyValue: MagicSDK.AnyValue) throws
100 | }
101 | public typealias AnyValueConvertible = MagicSDK.AnyValueInitializable & MagicSDK.AnyValueRepresentable
102 | extension MagicSDK.AnyValueInitializable {
103 | public init(anyValue: MagicSDK.AnyValueRepresentable) throws
104 | }
105 | extension MagicSDK.AnyValueRepresentable {
106 | public func encode(to encoder: Swift.Encoder) throws
107 | }
108 | extension MagicSDK.AnyValueInitializable {
109 | public init(from decoder: Swift.Decoder) throws
110 | }
111 | public enum AnyValueRepresentableError : Swift.Error {
112 | case notRepresentable
113 | public static func == (a: MagicSDK.AnyValueRepresentableError, b: MagicSDK.AnyValueRepresentableError) -> Swift.Bool
114 | public func hash(into hasher: inout Swift.Hasher)
115 | public var hashValue: Swift.Int {
116 | get
117 | }
118 | }
119 | public enum AnyValueInitializableError : Swift.Error {
120 | case notInitializable
121 | public static func == (a: MagicSDK.AnyValueInitializableError, b: MagicSDK.AnyValueInitializableError) -> Swift.Bool
122 | public func hash(into hasher: inout Swift.Hasher)
123 | public var hashValue: Swift.Int {
124 | get
125 | }
126 | }
127 | public struct LoginWithMagicLinkConfiguration : MagicSDK.BaseConfiguration {
128 | public var showUI: Swift.Bool
129 | public var email: Swift.String
130 | public init(showUI: Swift.Bool = true, email: Swift.String)
131 | public func encode(to encoder: Swift.Encoder) throws
132 | public init(from decoder: Swift.Decoder) throws
133 | }
134 | public struct LoginWithSmsConfiguration : MagicSDK.BaseConfiguration {
135 | public var phoneNumber: Swift.String
136 | public init(phoneNumber: Swift.String)
137 | public func encode(to encoder: Swift.Encoder) throws
138 | public init(from decoder: Swift.Decoder) throws
139 | }
140 | @_inheritsConvenienceInitializers public class AuthModule : MagicSDK.BaseModule {
141 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
142 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration) -> PromiseKit.Promise
143 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
144 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
145 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration) -> PromiseKit.Promise
146 | public enum LoginWithMagicLinkEvent : Swift.String {
147 | case emailNotDeliverable
148 | case emailSent
149 | case retry
150 | public init?(rawValue: Swift.String)
151 | public typealias RawValue = Swift.String
152 | public var rawValue: Swift.String {
153 | get
154 | }
155 | }
156 | override public init(rpcProvider: MagicSDK.RpcProvider)
157 | @objc deinit
158 | }
159 | public protocol BaseConfiguration : Swift.Decodable, Swift.Encodable {
160 | }
161 | open class BaseModule {
162 | final public let provider: MagicSDK.RpcProvider
163 | final public let magicEventCenter: MagicSDK.EventCenter
164 | public init(rpcProvider: MagicSDK.RpcProvider)
165 | @objc deinit
166 | }
167 | public func promiseResolver(_ resolver: PromiseKit.Resolver) -> (_ result: MagicSDK_Web3.Web3Response) -> Swift.Void where T : Swift.Decodable, T : Swift.Encodable
168 | public struct EIP712TypedData : Swift.Codable, Swift.Equatable {
169 | public struct `Type` : Swift.Codable, Swift.Equatable {
170 | public static func == (a: MagicSDK.EIP712TypedData.`Type`, b: MagicSDK.EIP712TypedData.`Type`) -> Swift.Bool
171 | public func encode(to encoder: Swift.Encoder) throws
172 | public init(from decoder: Swift.Decoder) throws
173 | }
174 | public struct Domain : Swift.Codable, Swift.Equatable {
175 | public static func == (a: MagicSDK.EIP712TypedData.Domain, b: MagicSDK.EIP712TypedData.Domain) -> Swift.Bool
176 | public func encode(to encoder: Swift.Encoder) throws
177 | public init(from decoder: Swift.Decoder) throws
178 | }
179 | public let types: Swift.Dictionary>
180 | public let primaryType: Swift.String
181 | public let domain: MagicSDK.EIP712TypedData.Domain
182 | public let message: Swift.Dictionary
183 | public init(primaryType: Swift.String, domain: MagicSDK.EIP712TypedData.Domain, types: Swift.Dictionary>, message: Swift.Dictionary)
184 | public static func == (a: MagicSDK.EIP712TypedData, b: MagicSDK.EIP712TypedData) -> Swift.Bool
185 | public func encode(to encoder: Swift.Encoder) throws
186 | public init(from decoder: Swift.Decoder) throws
187 | }
188 | public struct SignTypedDataCallParams : Swift.Codable, Swift.Equatable {
189 | public let account: MagicSDK_Web3.EthereumAddress
190 | public let data: MagicSDK.EIP712TypedData
191 | public init(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData)
192 | public init(from decoder: Swift.Decoder) throws
193 | public func encode(to encoder: Swift.Encoder) throws
194 | public static func == (a: MagicSDK.SignTypedDataCallParams, b: MagicSDK.SignTypedDataCallParams) -> Swift.Bool
195 | }
196 | public struct EIP712TypedDataLegacyFields : Swift.Codable, Swift.Equatable {
197 | public let type: Swift.String
198 | public let name: Swift.String
199 | public let value: Swift.String
200 | public init(type: Swift.String, name: Swift.String, value: Swift.String)
201 | public static func == (a: MagicSDK.EIP712TypedDataLegacyFields, b: MagicSDK.EIP712TypedDataLegacyFields) -> Swift.Bool
202 | public func encode(to encoder: Swift.Encoder) throws
203 | public init(from decoder: Swift.Decoder) throws
204 | }
205 | public struct SignTypedDataLegacyCallParams : Swift.Codable, Swift.Equatable {
206 | public let data: [MagicSDK.EIP712TypedDataLegacyFields]
207 | public let account: MagicSDK_Web3.EthereumAddress
208 | public init(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress)
209 | public init(from decoder: Swift.Decoder) throws
210 | public func encode(to encoder: Swift.Encoder) throws
211 | public static func == (a: MagicSDK.SignTypedDataLegacyCallParams, b: MagicSDK.SignTypedDataLegacyCallParams) -> Swift.Bool
212 | }
213 | @_hasMissingDesignatedInitializers public class EventCenter {
214 | @objc deinit
215 | }
216 | @_hasMissingDesignatedInitializers public class MagicEventPromise {
217 | public func once(eventName: Swift.String, completion: @escaping () -> Swift.Void) -> MagicSDK.MagicEventPromise
218 | public func done(on: Dispatch.DispatchQueue? = conf.Q.return, flags: Dispatch.DispatchWorkItemFlags? = nil, _ body: @escaping (T) throws -> Swift.Void) -> PromiseKit.Promise
219 | @objc deinit
220 | }
221 | public enum JSONValue : Swift.Equatable {
222 | case null
223 | case bool(Swift.Bool)
224 | case number(Swift.Double)
225 | case string(Swift.String)
226 | case array(Swift.Array)
227 | case object(Swift.Dictionary)
228 | public static func == (a: MagicSDK.JSONValue, b: MagicSDK.JSONValue) -> Swift.Bool
229 | }
230 | extension MagicSDK.JSONValue : Swift.Codable {
231 | public func encode(to encoder: Swift.Encoder) throws
232 | public init(from decoder: Swift.Decoder) throws
233 | }
234 | extension MagicSDK.JSONValue : Swift.CustomDebugStringConvertible {
235 | public var debugDescription: Swift.String {
236 | get
237 | }
238 | }
239 | extension MagicSDK.JSONValue {
240 | public var string: Swift.String? {
241 | get
242 | }
243 | public var number: Swift.Double? {
244 | get
245 | }
246 | public var bool: Swift.Bool? {
247 | get
248 | }
249 | public var objec: Swift.Dictionary? {
250 | get
251 | }
252 | public var array: Swift.Array? {
253 | get
254 | }
255 | public var isNull: Swift.Bool {
256 | get
257 | }
258 | public subscript(index: Swift.Int) -> MagicSDK.JSONValue? {
259 | get
260 | }
261 | public subscript(key: Swift.String) -> MagicSDK.JSONValue? {
262 | get
263 | }
264 | }
265 | @objc @_hasMissingDesignatedInitializers public class Magic : ObjectiveC.NSObject {
266 | final public let user: MagicSDK.UserModule
267 | final public let auth: MagicSDK.AuthModule
268 | public var rpcProvider: MagicSDK.RpcProvider
269 | public static var shared: MagicSDK.Magic!
270 | convenience public init(apiKey: Swift.String, network: MagicSDK.EthNetwork, locale: Swift.String = Locale.current.identifier)
271 | convenience public init(apiKey: Swift.String, customNode: MagicSDK.CustomNodeConfiguration, locale: Swift.String = Locale.current.identifier)
272 | convenience public init(apiKey: Swift.String, locale: Swift.String = Locale.current.identifier)
273 | @objc deinit
274 | }
275 | extension MagicSDK_Web3.Web3Response {
276 | public var magicAuthError: MagicSDK.RpcProvider.ProviderError? {
277 | get
278 | }
279 | }
280 | @_hasMissingDesignatedInitializers public class NetworkClient {
281 | public enum Error : Swift.Error {
282 | case unexpectedResponse(Swift.Error?)
283 | case invalidResponseCode
284 | }
285 | public var headers: [Swift.String : Swift.String]
286 | @objc deinit
287 | }
288 | public func generateRandomId() -> Swift.Int
289 | public func btoa(jsonString: Swift.String) -> Swift.String
290 | public func handleRollbarError(_ error: Swift.Error, extraData: Swift.String = "", log: Swift.Bool = true)
291 | @_hasMissingDesignatedInitializers public class RpcProvider : MagicSDK.NetworkClient, MagicSDK_Web3.Web3Provider {
292 | public enum ProviderError : Swift.Error {
293 | case encodingFailed(Swift.Error?)
294 | case decodingFailed(json: Swift.String)
295 | case invalidJsonResponse(json: Swift.String)
296 | case missingPayloadCallback(json: Swift.String)
297 | }
298 | final public let urlBuilder: MagicSDK.URLBuilder
299 | public func send(request: MagicSDK_Web3.RPCRequest, response: @escaping MagicSDK.Web3ResponseCompletion) where Params : Swift.Decodable, Params : Swift.Encodable, Result : Swift.Decodable, Result : Swift.Encodable
300 | @objc deinit
301 | }
302 | public typealias Web3ResponseCompletion = (_ resp: MagicSDK_Web3.Web3Response) -> Swift.Void where Result : Swift.Decodable, Result : Swift.Encodable
303 | public struct URLBuilder {
304 | public let apiKey: Swift.String
305 | }
306 | public struct CustomNodeConfiguration : Swift.Encodable {
307 | public init(rpcUrl: Swift.String, chainId: Swift.Int? = nil)
308 | public func encode(to encoder: Swift.Encoder) throws
309 | }
310 | public class GetIdTokenConfiguration : MagicSDK.BaseConfiguration {
311 | public init(lifespan: Swift.Int = 900)
312 | @objc deinit
313 | public func encode(to encoder: Swift.Encoder) throws
314 | required public init(from decoder: Swift.Decoder) throws
315 | }
316 | public class GenerateIdTokenConfiguration : MagicSDK.BaseConfiguration {
317 | public init(lifespan: Swift.Int = 900, attachment: Swift.String = "none")
318 | @objc deinit
319 | public func encode(to encoder: Swift.Encoder) throws
320 | required public init(from decoder: Swift.Decoder) throws
321 | }
322 | public class UpdateEmailConfiguration : MagicSDK.BaseConfiguration {
323 | public init(email: Swift.String, showUI: Swift.Bool = true)
324 | @objc deinit
325 | public func encode(to encoder: Swift.Encoder) throws
326 | required public init(from decoder: Swift.Decoder) throws
327 | }
328 | @_inheritsConvenienceInitializers public class UserModule : MagicSDK.BaseModule {
329 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
330 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil) -> PromiseKit.Promise
331 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
332 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil) -> PromiseKit.Promise
333 | public func getMetadata(response: @escaping MagicSDK.Web3ResponseCompletion)
334 | public func getMetadata() -> PromiseKit.Promise
335 | public func isLoggedIn(response: @escaping MagicSDK.Web3ResponseCompletion)
336 | public func isLoggedIn() -> PromiseKit.Promise
337 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
338 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration) -> PromiseKit.Promise
339 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
340 | public func logout(response: @escaping MagicSDK.Web3ResponseCompletion)
341 | public func logout() -> PromiseKit.Promise
342 | override public init(rpcProvider: MagicSDK.RpcProvider)
343 | @objc deinit
344 | }
345 | public protocol MagicResponse : Swift.Decodable, Swift.Encodable {
346 | }
347 | public struct UserMetadata : MagicSDK.MagicResponse {
348 | public let issuer: Swift.String?
349 | public let publicAddress: Swift.String?
350 | public let email: Swift.String?
351 | public func encode(to encoder: Swift.Encoder) throws
352 | public init(from decoder: Swift.Decoder) throws
353 | }
354 | extension MagicSDK_Web3.Web3.Eth {
355 | public func getCoinbase(response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
356 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData, response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
357 | public func signTypedDataV1(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress, response: @escaping MagicSDK.Web3ResponseCompletion)
358 | public func signTypedDataV3(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData, response: @escaping MagicSDK.Web3ResponseCompletion)
359 | }
360 | extension MagicSDK_Web3.Web3.Eth {
361 | public func getCoinbase() -> PromiseKit.Promise
362 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData) -> PromiseKit.Promise
363 | public func signTypedDataLegacy(account: MagicSDK_Web3.EthereumAddress, data: [MagicSDK.EIP712TypedDataLegacyFields]) -> PromiseKit.Promise
364 | public func signTypedData(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData) -> PromiseKit.Promise
365 | }
366 | extension MagicSDK_Web3.RPCRequest {
367 | public init(method: Swift.String, params: Params)
368 | }
369 | public enum EthNetwork : Swift.String {
370 | case mainnet
371 | case kovan
372 | case rinkeby
373 | case ropsten
374 | public init?(rawValue: Swift.String)
375 | public typealias RawValue = Swift.String
376 | public var rawValue: Swift.String {
377 | get
378 | }
379 | }
380 | extension MagicSDK.AnyValue.Error : Swift.Equatable {}
381 | extension MagicSDK.AnyValue.Error : Swift.Hashable {}
382 | extension MagicSDK.AnyValueRepresentableError : Swift.Equatable {}
383 | extension MagicSDK.AnyValueRepresentableError : Swift.Hashable {}
384 | extension MagicSDK.AnyValueInitializableError : Swift.Equatable {}
385 | extension MagicSDK.AnyValueInitializableError : Swift.Hashable {}
386 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Equatable {}
387 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Hashable {}
388 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.RawRepresentable {}
389 | extension MagicSDK.EthNetwork : Swift.Equatable {}
390 | extension MagicSDK.EthNetwork : Swift.Hashable {}
391 | extension MagicSDK.EthNetwork : Swift.RawRepresentable {}
392 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/armv7-apple-ios.swiftdoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magiclabs/magic-ios-pod/3b376d0e68db6c55cdba4962bb4f903d06268856/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/armv7-apple-ios.swiftdoc
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/armv7-apple-ios.swiftinterface:
--------------------------------------------------------------------------------
1 | // swift-interface-format-version: 1.0
2 | // swift-compiler-version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
3 | // swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MagicSDK
4 | import Foundation
5 | @_exported import MagicSDK
6 | import MagicSDK_Web3
7 | import PromiseKit
8 | import Rollbar
9 | import Swift
10 | import UIKit
11 | import WebKit
12 | import _Concurrency
13 | public struct AnyValue : Swift.Codable {
14 | public let valueType: MagicSDK.AnyValue.ValueType
15 | public enum ValueType {
16 | case string(Swift.String)
17 | case int(Swift.Int)
18 | case bool(Swift.Bool)
19 | case array([MagicSDK.AnyValue])
20 | case `nil`
21 | }
22 | public init(valueType: MagicSDK.AnyValue.ValueType)
23 | public init(from decoder: Swift.Decoder) throws
24 | public enum Error : Swift.Error {
25 | case unsupportedType
26 | public static func == (a: MagicSDK.AnyValue.Error, b: MagicSDK.AnyValue.Error) -> Swift.Bool
27 | public func hash(into hasher: inout Swift.Hasher)
28 | public var hashValue: Swift.Int {
29 | get
30 | }
31 | }
32 | public func encode(to encoder: Swift.Encoder) throws
33 | }
34 | extension MagicSDK.AnyValue : Swift.ExpressibleByStringLiteral {
35 | public typealias StringLiteralType = Swift.String
36 | public init(stringLiteral value: MagicSDK.AnyValue.StringLiteralType)
37 | public typealias ExtendedGraphemeClusterLiteralType = MagicSDK.AnyValue.StringLiteralType
38 | public typealias UnicodeScalarLiteralType = MagicSDK.AnyValue.StringLiteralType
39 | }
40 | extension MagicSDK.AnyValue : Swift.ExpressibleByIntegerLiteral {
41 | public typealias IntegerLiteralType = Swift.Int
42 | public init(integerLiteral value: MagicSDK.AnyValue.IntegerLiteralType)
43 | }
44 | extension MagicSDK.AnyValue : Swift.ExpressibleByBooleanLiteral {
45 | public typealias BooleanLiteralType = Swift.Bool
46 | public init(booleanLiteral value: MagicSDK.AnyValue.BooleanLiteralType)
47 | }
48 | extension MagicSDK.AnyValue : Swift.ExpressibleByArrayLiteral {
49 | public typealias ArrayLiteralElement = MagicSDK.AnyValueRepresentable
50 | public init(array: [MagicSDK.AnyValueRepresentable])
51 | public init(arrayLiteral elements: MagicSDK.AnyValue.ArrayLiteralElement...)
52 | }
53 | extension MagicSDK.AnyValue {
54 | public static func string(_ string: Swift.String) -> MagicSDK.AnyValue
55 | public static func int(_ int: Swift.Int) -> MagicSDK.AnyValue
56 | public static func bool(_ bool: Swift.Bool) -> MagicSDK.AnyValue
57 | public static func array(_ array: [MagicSDK.AnyValueRepresentable]) -> MagicSDK.AnyValue
58 | }
59 | extension MagicSDK.AnyValue {
60 | public var string: Swift.String? {
61 | get
62 | }
63 | public var int: Swift.Int? {
64 | get
65 | }
66 | public var bool: Swift.Bool? {
67 | get
68 | }
69 | public var array: [MagicSDK.AnyValue]? {
70 | get
71 | }
72 | }
73 | extension MagicSDK.AnyValue : MagicSDK.AnyValueConvertible {
74 | public init(anyValue: MagicSDK.AnyValue)
75 | public func anyValue() -> MagicSDK.AnyValue
76 | }
77 | extension MagicSDK.AnyValue.ValueType : Swift.Equatable {
78 | public static func == (lhs: MagicSDK.AnyValue.ValueType, rhs: MagicSDK.AnyValue.ValueType) -> Swift.Bool
79 | }
80 | extension MagicSDK.AnyValue : Swift.Equatable {
81 | public static func == (lhs: MagicSDK.AnyValue, rhs: MagicSDK.AnyValue) -> Swift.Bool
82 | }
83 | extension MagicSDK.AnyValue.ValueType : Swift.Hashable {
84 | public func hash(into hasher: inout Swift.Hasher)
85 | public var hashValue: Swift.Int {
86 | get
87 | }
88 | }
89 | extension MagicSDK.AnyValue : Swift.Hashable {
90 | public func hash(into hasher: inout Swift.Hasher)
91 | public var hashValue: Swift.Int {
92 | get
93 | }
94 | }
95 | public protocol AnyValueRepresentable : Swift.Encodable {
96 | func anyValue() -> MagicSDK.AnyValue
97 | }
98 | public protocol AnyValueInitializable : Swift.Decodable {
99 | init(anyValue: MagicSDK.AnyValue) throws
100 | }
101 | public typealias AnyValueConvertible = MagicSDK.AnyValueInitializable & MagicSDK.AnyValueRepresentable
102 | extension MagicSDK.AnyValueInitializable {
103 | public init(anyValue: MagicSDK.AnyValueRepresentable) throws
104 | }
105 | extension MagicSDK.AnyValueRepresentable {
106 | public func encode(to encoder: Swift.Encoder) throws
107 | }
108 | extension MagicSDK.AnyValueInitializable {
109 | public init(from decoder: Swift.Decoder) throws
110 | }
111 | public enum AnyValueRepresentableError : Swift.Error {
112 | case notRepresentable
113 | public static func == (a: MagicSDK.AnyValueRepresentableError, b: MagicSDK.AnyValueRepresentableError) -> Swift.Bool
114 | public func hash(into hasher: inout Swift.Hasher)
115 | public var hashValue: Swift.Int {
116 | get
117 | }
118 | }
119 | public enum AnyValueInitializableError : Swift.Error {
120 | case notInitializable
121 | public static func == (a: MagicSDK.AnyValueInitializableError, b: MagicSDK.AnyValueInitializableError) -> Swift.Bool
122 | public func hash(into hasher: inout Swift.Hasher)
123 | public var hashValue: Swift.Int {
124 | get
125 | }
126 | }
127 | public struct LoginWithMagicLinkConfiguration : MagicSDK.BaseConfiguration {
128 | public var showUI: Swift.Bool
129 | public var email: Swift.String
130 | public init(showUI: Swift.Bool = true, email: Swift.String)
131 | public func encode(to encoder: Swift.Encoder) throws
132 | public init(from decoder: Swift.Decoder) throws
133 | }
134 | public struct LoginWithSmsConfiguration : MagicSDK.BaseConfiguration {
135 | public var phoneNumber: Swift.String
136 | public init(phoneNumber: Swift.String)
137 | public func encode(to encoder: Swift.Encoder) throws
138 | public init(from decoder: Swift.Decoder) throws
139 | }
140 | @_inheritsConvenienceInitializers public class AuthModule : MagicSDK.BaseModule {
141 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
142 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration) -> PromiseKit.Promise
143 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
144 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
145 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration) -> PromiseKit.Promise
146 | public enum LoginWithMagicLinkEvent : Swift.String {
147 | case emailNotDeliverable
148 | case emailSent
149 | case retry
150 | public init?(rawValue: Swift.String)
151 | public typealias RawValue = Swift.String
152 | public var rawValue: Swift.String {
153 | get
154 | }
155 | }
156 | override public init(rpcProvider: MagicSDK.RpcProvider)
157 | @objc deinit
158 | }
159 | public protocol BaseConfiguration : Swift.Decodable, Swift.Encodable {
160 | }
161 | open class BaseModule {
162 | final public let provider: MagicSDK.RpcProvider
163 | final public let magicEventCenter: MagicSDK.EventCenter
164 | public init(rpcProvider: MagicSDK.RpcProvider)
165 | @objc deinit
166 | }
167 | public func promiseResolver(_ resolver: PromiseKit.Resolver) -> (_ result: MagicSDK_Web3.Web3Response) -> Swift.Void where T : Swift.Decodable, T : Swift.Encodable
168 | public struct EIP712TypedData : Swift.Codable, Swift.Equatable {
169 | public struct `Type` : Swift.Codable, Swift.Equatable {
170 | public static func == (a: MagicSDK.EIP712TypedData.`Type`, b: MagicSDK.EIP712TypedData.`Type`) -> Swift.Bool
171 | public func encode(to encoder: Swift.Encoder) throws
172 | public init(from decoder: Swift.Decoder) throws
173 | }
174 | public struct Domain : Swift.Codable, Swift.Equatable {
175 | public static func == (a: MagicSDK.EIP712TypedData.Domain, b: MagicSDK.EIP712TypedData.Domain) -> Swift.Bool
176 | public func encode(to encoder: Swift.Encoder) throws
177 | public init(from decoder: Swift.Decoder) throws
178 | }
179 | public let types: Swift.Dictionary>
180 | public let primaryType: Swift.String
181 | public let domain: MagicSDK.EIP712TypedData.Domain
182 | public let message: Swift.Dictionary
183 | public init(primaryType: Swift.String, domain: MagicSDK.EIP712TypedData.Domain, types: Swift.Dictionary>, message: Swift.Dictionary)
184 | public static func == (a: MagicSDK.EIP712TypedData, b: MagicSDK.EIP712TypedData) -> Swift.Bool
185 | public func encode(to encoder: Swift.Encoder) throws
186 | public init(from decoder: Swift.Decoder) throws
187 | }
188 | public struct SignTypedDataCallParams : Swift.Codable, Swift.Equatable {
189 | public let account: MagicSDK_Web3.EthereumAddress
190 | public let data: MagicSDK.EIP712TypedData
191 | public init(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData)
192 | public init(from decoder: Swift.Decoder) throws
193 | public func encode(to encoder: Swift.Encoder) throws
194 | public static func == (a: MagicSDK.SignTypedDataCallParams, b: MagicSDK.SignTypedDataCallParams) -> Swift.Bool
195 | }
196 | public struct EIP712TypedDataLegacyFields : Swift.Codable, Swift.Equatable {
197 | public let type: Swift.String
198 | public let name: Swift.String
199 | public let value: Swift.String
200 | public init(type: Swift.String, name: Swift.String, value: Swift.String)
201 | public static func == (a: MagicSDK.EIP712TypedDataLegacyFields, b: MagicSDK.EIP712TypedDataLegacyFields) -> Swift.Bool
202 | public func encode(to encoder: Swift.Encoder) throws
203 | public init(from decoder: Swift.Decoder) throws
204 | }
205 | public struct SignTypedDataLegacyCallParams : Swift.Codable, Swift.Equatable {
206 | public let data: [MagicSDK.EIP712TypedDataLegacyFields]
207 | public let account: MagicSDK_Web3.EthereumAddress
208 | public init(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress)
209 | public init(from decoder: Swift.Decoder) throws
210 | public func encode(to encoder: Swift.Encoder) throws
211 | public static func == (a: MagicSDK.SignTypedDataLegacyCallParams, b: MagicSDK.SignTypedDataLegacyCallParams) -> Swift.Bool
212 | }
213 | @_hasMissingDesignatedInitializers public class EventCenter {
214 | @objc deinit
215 | }
216 | @_hasMissingDesignatedInitializers public class MagicEventPromise {
217 | public func once(eventName: Swift.String, completion: @escaping () -> Swift.Void) -> MagicSDK.MagicEventPromise
218 | public func done(on: Dispatch.DispatchQueue? = conf.Q.return, flags: Dispatch.DispatchWorkItemFlags? = nil, _ body: @escaping (T) throws -> Swift.Void) -> PromiseKit.Promise
219 | @objc deinit
220 | }
221 | public enum JSONValue : Swift.Equatable {
222 | case null
223 | case bool(Swift.Bool)
224 | case number(Swift.Double)
225 | case string(Swift.String)
226 | case array(Swift.Array)
227 | case object(Swift.Dictionary)
228 | public static func == (a: MagicSDK.JSONValue, b: MagicSDK.JSONValue) -> Swift.Bool
229 | }
230 | extension MagicSDK.JSONValue : Swift.Codable {
231 | public func encode(to encoder: Swift.Encoder) throws
232 | public init(from decoder: Swift.Decoder) throws
233 | }
234 | extension MagicSDK.JSONValue : Swift.CustomDebugStringConvertible {
235 | public var debugDescription: Swift.String {
236 | get
237 | }
238 | }
239 | extension MagicSDK.JSONValue {
240 | public var string: Swift.String? {
241 | get
242 | }
243 | public var number: Swift.Double? {
244 | get
245 | }
246 | public var bool: Swift.Bool? {
247 | get
248 | }
249 | public var objec: Swift.Dictionary? {
250 | get
251 | }
252 | public var array: Swift.Array? {
253 | get
254 | }
255 | public var isNull: Swift.Bool {
256 | get
257 | }
258 | public subscript(index: Swift.Int) -> MagicSDK.JSONValue? {
259 | get
260 | }
261 | public subscript(key: Swift.String) -> MagicSDK.JSONValue? {
262 | get
263 | }
264 | }
265 | @objc @_hasMissingDesignatedInitializers public class Magic : ObjectiveC.NSObject {
266 | final public let user: MagicSDK.UserModule
267 | final public let auth: MagicSDK.AuthModule
268 | public var rpcProvider: MagicSDK.RpcProvider
269 | public static var shared: MagicSDK.Magic!
270 | convenience public init(apiKey: Swift.String, network: MagicSDK.EthNetwork, locale: Swift.String = Locale.current.identifier)
271 | convenience public init(apiKey: Swift.String, customNode: MagicSDK.CustomNodeConfiguration, locale: Swift.String = Locale.current.identifier)
272 | convenience public init(apiKey: Swift.String, locale: Swift.String = Locale.current.identifier)
273 | @objc deinit
274 | }
275 | extension MagicSDK_Web3.Web3Response {
276 | public var magicAuthError: MagicSDK.RpcProvider.ProviderError? {
277 | get
278 | }
279 | }
280 | @_hasMissingDesignatedInitializers public class NetworkClient {
281 | public enum Error : Swift.Error {
282 | case unexpectedResponse(Swift.Error?)
283 | case invalidResponseCode
284 | }
285 | public var headers: [Swift.String : Swift.String]
286 | @objc deinit
287 | }
288 | public func generateRandomId() -> Swift.Int
289 | public func btoa(jsonString: Swift.String) -> Swift.String
290 | public func handleRollbarError(_ error: Swift.Error, extraData: Swift.String = "", log: Swift.Bool = true)
291 | @_hasMissingDesignatedInitializers public class RpcProvider : MagicSDK.NetworkClient, MagicSDK_Web3.Web3Provider {
292 | public enum ProviderError : Swift.Error {
293 | case encodingFailed(Swift.Error?)
294 | case decodingFailed(json: Swift.String)
295 | case invalidJsonResponse(json: Swift.String)
296 | case missingPayloadCallback(json: Swift.String)
297 | }
298 | final public let urlBuilder: MagicSDK.URLBuilder
299 | public func send(request: MagicSDK_Web3.RPCRequest, response: @escaping MagicSDK.Web3ResponseCompletion) where Params : Swift.Decodable, Params : Swift.Encodable, Result : Swift.Decodable, Result : Swift.Encodable
300 | @objc deinit
301 | }
302 | public typealias Web3ResponseCompletion = (_ resp: MagicSDK_Web3.Web3Response) -> Swift.Void where Result : Swift.Decodable, Result : Swift.Encodable
303 | public struct URLBuilder {
304 | public let apiKey: Swift.String
305 | }
306 | public struct CustomNodeConfiguration : Swift.Encodable {
307 | public init(rpcUrl: Swift.String, chainId: Swift.Int? = nil)
308 | public func encode(to encoder: Swift.Encoder) throws
309 | }
310 | public class GetIdTokenConfiguration : MagicSDK.BaseConfiguration {
311 | public init(lifespan: Swift.Int = 900)
312 | @objc deinit
313 | public func encode(to encoder: Swift.Encoder) throws
314 | required public init(from decoder: Swift.Decoder) throws
315 | }
316 | public class GenerateIdTokenConfiguration : MagicSDK.BaseConfiguration {
317 | public init(lifespan: Swift.Int = 900, attachment: Swift.String = "none")
318 | @objc deinit
319 | public func encode(to encoder: Swift.Encoder) throws
320 | required public init(from decoder: Swift.Decoder) throws
321 | }
322 | public class UpdateEmailConfiguration : MagicSDK.BaseConfiguration {
323 | public init(email: Swift.String, showUI: Swift.Bool = true)
324 | @objc deinit
325 | public func encode(to encoder: Swift.Encoder) throws
326 | required public init(from decoder: Swift.Decoder) throws
327 | }
328 | @_inheritsConvenienceInitializers public class UserModule : MagicSDK.BaseModule {
329 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
330 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil) -> PromiseKit.Promise
331 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
332 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil) -> PromiseKit.Promise
333 | public func getMetadata(response: @escaping MagicSDK.Web3ResponseCompletion)
334 | public func getMetadata() -> PromiseKit.Promise
335 | public func isLoggedIn(response: @escaping MagicSDK.Web3ResponseCompletion)
336 | public func isLoggedIn() -> PromiseKit.Promise
337 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
338 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration) -> PromiseKit.Promise
339 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
340 | public func logout(response: @escaping MagicSDK.Web3ResponseCompletion)
341 | public func logout() -> PromiseKit.Promise
342 | override public init(rpcProvider: MagicSDK.RpcProvider)
343 | @objc deinit
344 | }
345 | public protocol MagicResponse : Swift.Decodable, Swift.Encodable {
346 | }
347 | public struct UserMetadata : MagicSDK.MagicResponse {
348 | public let issuer: Swift.String?
349 | public let publicAddress: Swift.String?
350 | public let email: Swift.String?
351 | public func encode(to encoder: Swift.Encoder) throws
352 | public init(from decoder: Swift.Decoder) throws
353 | }
354 | extension MagicSDK_Web3.Web3.Eth {
355 | public func getCoinbase(response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
356 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData, response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
357 | public func signTypedDataV1(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress, response: @escaping MagicSDK.Web3ResponseCompletion)
358 | public func signTypedDataV3(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData, response: @escaping MagicSDK.Web3ResponseCompletion)
359 | }
360 | extension MagicSDK_Web3.Web3.Eth {
361 | public func getCoinbase() -> PromiseKit.Promise
362 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData) -> PromiseKit.Promise
363 | public func signTypedDataLegacy(account: MagicSDK_Web3.EthereumAddress, data: [MagicSDK.EIP712TypedDataLegacyFields]) -> PromiseKit.Promise
364 | public func signTypedData(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData) -> PromiseKit.Promise
365 | }
366 | extension MagicSDK_Web3.RPCRequest {
367 | public init(method: Swift.String, params: Params)
368 | }
369 | public enum EthNetwork : Swift.String {
370 | case mainnet
371 | case kovan
372 | case rinkeby
373 | case ropsten
374 | public init?(rawValue: Swift.String)
375 | public typealias RawValue = Swift.String
376 | public var rawValue: Swift.String {
377 | get
378 | }
379 | }
380 | extension MagicSDK.AnyValue.Error : Swift.Equatable {}
381 | extension MagicSDK.AnyValue.Error : Swift.Hashable {}
382 | extension MagicSDK.AnyValueRepresentableError : Swift.Equatable {}
383 | extension MagicSDK.AnyValueRepresentableError : Swift.Hashable {}
384 | extension MagicSDK.AnyValueInitializableError : Swift.Equatable {}
385 | extension MagicSDK.AnyValueInitializableError : Swift.Hashable {}
386 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Equatable {}
387 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Hashable {}
388 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.RawRepresentable {}
389 | extension MagicSDK.EthNetwork : Swift.Equatable {}
390 | extension MagicSDK.EthNetwork : Swift.Hashable {}
391 | extension MagicSDK.EthNetwork : Swift.RawRepresentable {}
392 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/armv7.swiftdoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magiclabs/magic-ios-pod/3b376d0e68db6c55cdba4962bb4f903d06268856/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/armv7.swiftdoc
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/MagicSDK.swiftmodule/armv7.swiftinterface:
--------------------------------------------------------------------------------
1 | // swift-interface-format-version: 1.0
2 | // swift-compiler-version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
3 | // swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MagicSDK
4 | import Foundation
5 | @_exported import MagicSDK
6 | import MagicSDK_Web3
7 | import PromiseKit
8 | import Rollbar
9 | import Swift
10 | import UIKit
11 | import WebKit
12 | import _Concurrency
13 | public struct AnyValue : Swift.Codable {
14 | public let valueType: MagicSDK.AnyValue.ValueType
15 | public enum ValueType {
16 | case string(Swift.String)
17 | case int(Swift.Int)
18 | case bool(Swift.Bool)
19 | case array([MagicSDK.AnyValue])
20 | case `nil`
21 | }
22 | public init(valueType: MagicSDK.AnyValue.ValueType)
23 | public init(from decoder: Swift.Decoder) throws
24 | public enum Error : Swift.Error {
25 | case unsupportedType
26 | public static func == (a: MagicSDK.AnyValue.Error, b: MagicSDK.AnyValue.Error) -> Swift.Bool
27 | public func hash(into hasher: inout Swift.Hasher)
28 | public var hashValue: Swift.Int {
29 | get
30 | }
31 | }
32 | public func encode(to encoder: Swift.Encoder) throws
33 | }
34 | extension MagicSDK.AnyValue : Swift.ExpressibleByStringLiteral {
35 | public typealias StringLiteralType = Swift.String
36 | public init(stringLiteral value: MagicSDK.AnyValue.StringLiteralType)
37 | public typealias ExtendedGraphemeClusterLiteralType = MagicSDK.AnyValue.StringLiteralType
38 | public typealias UnicodeScalarLiteralType = MagicSDK.AnyValue.StringLiteralType
39 | }
40 | extension MagicSDK.AnyValue : Swift.ExpressibleByIntegerLiteral {
41 | public typealias IntegerLiteralType = Swift.Int
42 | public init(integerLiteral value: MagicSDK.AnyValue.IntegerLiteralType)
43 | }
44 | extension MagicSDK.AnyValue : Swift.ExpressibleByBooleanLiteral {
45 | public typealias BooleanLiteralType = Swift.Bool
46 | public init(booleanLiteral value: MagicSDK.AnyValue.BooleanLiteralType)
47 | }
48 | extension MagicSDK.AnyValue : Swift.ExpressibleByArrayLiteral {
49 | public typealias ArrayLiteralElement = MagicSDK.AnyValueRepresentable
50 | public init(array: [MagicSDK.AnyValueRepresentable])
51 | public init(arrayLiteral elements: MagicSDK.AnyValue.ArrayLiteralElement...)
52 | }
53 | extension MagicSDK.AnyValue {
54 | public static func string(_ string: Swift.String) -> MagicSDK.AnyValue
55 | public static func int(_ int: Swift.Int) -> MagicSDK.AnyValue
56 | public static func bool(_ bool: Swift.Bool) -> MagicSDK.AnyValue
57 | public static func array(_ array: [MagicSDK.AnyValueRepresentable]) -> MagicSDK.AnyValue
58 | }
59 | extension MagicSDK.AnyValue {
60 | public var string: Swift.String? {
61 | get
62 | }
63 | public var int: Swift.Int? {
64 | get
65 | }
66 | public var bool: Swift.Bool? {
67 | get
68 | }
69 | public var array: [MagicSDK.AnyValue]? {
70 | get
71 | }
72 | }
73 | extension MagicSDK.AnyValue : MagicSDK.AnyValueConvertible {
74 | public init(anyValue: MagicSDK.AnyValue)
75 | public func anyValue() -> MagicSDK.AnyValue
76 | }
77 | extension MagicSDK.AnyValue.ValueType : Swift.Equatable {
78 | public static func == (lhs: MagicSDK.AnyValue.ValueType, rhs: MagicSDK.AnyValue.ValueType) -> Swift.Bool
79 | }
80 | extension MagicSDK.AnyValue : Swift.Equatable {
81 | public static func == (lhs: MagicSDK.AnyValue, rhs: MagicSDK.AnyValue) -> Swift.Bool
82 | }
83 | extension MagicSDK.AnyValue.ValueType : Swift.Hashable {
84 | public func hash(into hasher: inout Swift.Hasher)
85 | public var hashValue: Swift.Int {
86 | get
87 | }
88 | }
89 | extension MagicSDK.AnyValue : Swift.Hashable {
90 | public func hash(into hasher: inout Swift.Hasher)
91 | public var hashValue: Swift.Int {
92 | get
93 | }
94 | }
95 | public protocol AnyValueRepresentable : Swift.Encodable {
96 | func anyValue() -> MagicSDK.AnyValue
97 | }
98 | public protocol AnyValueInitializable : Swift.Decodable {
99 | init(anyValue: MagicSDK.AnyValue) throws
100 | }
101 | public typealias AnyValueConvertible = MagicSDK.AnyValueInitializable & MagicSDK.AnyValueRepresentable
102 | extension MagicSDK.AnyValueInitializable {
103 | public init(anyValue: MagicSDK.AnyValueRepresentable) throws
104 | }
105 | extension MagicSDK.AnyValueRepresentable {
106 | public func encode(to encoder: Swift.Encoder) throws
107 | }
108 | extension MagicSDK.AnyValueInitializable {
109 | public init(from decoder: Swift.Decoder) throws
110 | }
111 | public enum AnyValueRepresentableError : Swift.Error {
112 | case notRepresentable
113 | public static func == (a: MagicSDK.AnyValueRepresentableError, b: MagicSDK.AnyValueRepresentableError) -> Swift.Bool
114 | public func hash(into hasher: inout Swift.Hasher)
115 | public var hashValue: Swift.Int {
116 | get
117 | }
118 | }
119 | public enum AnyValueInitializableError : Swift.Error {
120 | case notInitializable
121 | public static func == (a: MagicSDK.AnyValueInitializableError, b: MagicSDK.AnyValueInitializableError) -> Swift.Bool
122 | public func hash(into hasher: inout Swift.Hasher)
123 | public var hashValue: Swift.Int {
124 | get
125 | }
126 | }
127 | public struct LoginWithMagicLinkConfiguration : MagicSDK.BaseConfiguration {
128 | public var showUI: Swift.Bool
129 | public var email: Swift.String
130 | public init(showUI: Swift.Bool = true, email: Swift.String)
131 | public func encode(to encoder: Swift.Encoder) throws
132 | public init(from decoder: Swift.Decoder) throws
133 | }
134 | public struct LoginWithSmsConfiguration : MagicSDK.BaseConfiguration {
135 | public var phoneNumber: Swift.String
136 | public init(phoneNumber: Swift.String)
137 | public func encode(to encoder: Swift.Encoder) throws
138 | public init(from decoder: Swift.Decoder) throws
139 | }
140 | @_inheritsConvenienceInitializers public class AuthModule : MagicSDK.BaseModule {
141 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
142 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration) -> PromiseKit.Promise
143 | public func loginWithMagicLink(_ configuration: MagicSDK.LoginWithMagicLinkConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
144 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
145 | public func loginWithSMS(_ configuration: MagicSDK.LoginWithSmsConfiguration) -> PromiseKit.Promise
146 | public enum LoginWithMagicLinkEvent : Swift.String {
147 | case emailNotDeliverable
148 | case emailSent
149 | case retry
150 | public init?(rawValue: Swift.String)
151 | public typealias RawValue = Swift.String
152 | public var rawValue: Swift.String {
153 | get
154 | }
155 | }
156 | override public init(rpcProvider: MagicSDK.RpcProvider)
157 | @objc deinit
158 | }
159 | public protocol BaseConfiguration : Swift.Decodable, Swift.Encodable {
160 | }
161 | open class BaseModule {
162 | final public let provider: MagicSDK.RpcProvider
163 | final public let magicEventCenter: MagicSDK.EventCenter
164 | public init(rpcProvider: MagicSDK.RpcProvider)
165 | @objc deinit
166 | }
167 | public func promiseResolver(_ resolver: PromiseKit.Resolver) -> (_ result: MagicSDK_Web3.Web3Response) -> Swift.Void where T : Swift.Decodable, T : Swift.Encodable
168 | public struct EIP712TypedData : Swift.Codable, Swift.Equatable {
169 | public struct `Type` : Swift.Codable, Swift.Equatable {
170 | public static func == (a: MagicSDK.EIP712TypedData.`Type`, b: MagicSDK.EIP712TypedData.`Type`) -> Swift.Bool
171 | public func encode(to encoder: Swift.Encoder) throws
172 | public init(from decoder: Swift.Decoder) throws
173 | }
174 | public struct Domain : Swift.Codable, Swift.Equatable {
175 | public static func == (a: MagicSDK.EIP712TypedData.Domain, b: MagicSDK.EIP712TypedData.Domain) -> Swift.Bool
176 | public func encode(to encoder: Swift.Encoder) throws
177 | public init(from decoder: Swift.Decoder) throws
178 | }
179 | public let types: Swift.Dictionary>
180 | public let primaryType: Swift.String
181 | public let domain: MagicSDK.EIP712TypedData.Domain
182 | public let message: Swift.Dictionary
183 | public init(primaryType: Swift.String, domain: MagicSDK.EIP712TypedData.Domain, types: Swift.Dictionary>, message: Swift.Dictionary)
184 | public static func == (a: MagicSDK.EIP712TypedData, b: MagicSDK.EIP712TypedData) -> Swift.Bool
185 | public func encode(to encoder: Swift.Encoder) throws
186 | public init(from decoder: Swift.Decoder) throws
187 | }
188 | public struct SignTypedDataCallParams : Swift.Codable, Swift.Equatable {
189 | public let account: MagicSDK_Web3.EthereumAddress
190 | public let data: MagicSDK.EIP712TypedData
191 | public init(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData)
192 | public init(from decoder: Swift.Decoder) throws
193 | public func encode(to encoder: Swift.Encoder) throws
194 | public static func == (a: MagicSDK.SignTypedDataCallParams, b: MagicSDK.SignTypedDataCallParams) -> Swift.Bool
195 | }
196 | public struct EIP712TypedDataLegacyFields : Swift.Codable, Swift.Equatable {
197 | public let type: Swift.String
198 | public let name: Swift.String
199 | public let value: Swift.String
200 | public init(type: Swift.String, name: Swift.String, value: Swift.String)
201 | public static func == (a: MagicSDK.EIP712TypedDataLegacyFields, b: MagicSDK.EIP712TypedDataLegacyFields) -> Swift.Bool
202 | public func encode(to encoder: Swift.Encoder) throws
203 | public init(from decoder: Swift.Decoder) throws
204 | }
205 | public struct SignTypedDataLegacyCallParams : Swift.Codable, Swift.Equatable {
206 | public let data: [MagicSDK.EIP712TypedDataLegacyFields]
207 | public let account: MagicSDK_Web3.EthereumAddress
208 | public init(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress)
209 | public init(from decoder: Swift.Decoder) throws
210 | public func encode(to encoder: Swift.Encoder) throws
211 | public static func == (a: MagicSDK.SignTypedDataLegacyCallParams, b: MagicSDK.SignTypedDataLegacyCallParams) -> Swift.Bool
212 | }
213 | @_hasMissingDesignatedInitializers public class EventCenter {
214 | @objc deinit
215 | }
216 | @_hasMissingDesignatedInitializers public class MagicEventPromise {
217 | public func once(eventName: Swift.String, completion: @escaping () -> Swift.Void) -> MagicSDK.MagicEventPromise
218 | public func done(on: Dispatch.DispatchQueue? = conf.Q.return, flags: Dispatch.DispatchWorkItemFlags? = nil, _ body: @escaping (T) throws -> Swift.Void) -> PromiseKit.Promise
219 | @objc deinit
220 | }
221 | public enum JSONValue : Swift.Equatable {
222 | case null
223 | case bool(Swift.Bool)
224 | case number(Swift.Double)
225 | case string(Swift.String)
226 | case array(Swift.Array)
227 | case object(Swift.Dictionary)
228 | public static func == (a: MagicSDK.JSONValue, b: MagicSDK.JSONValue) -> Swift.Bool
229 | }
230 | extension MagicSDK.JSONValue : Swift.Codable {
231 | public func encode(to encoder: Swift.Encoder) throws
232 | public init(from decoder: Swift.Decoder) throws
233 | }
234 | extension MagicSDK.JSONValue : Swift.CustomDebugStringConvertible {
235 | public var debugDescription: Swift.String {
236 | get
237 | }
238 | }
239 | extension MagicSDK.JSONValue {
240 | public var string: Swift.String? {
241 | get
242 | }
243 | public var number: Swift.Double? {
244 | get
245 | }
246 | public var bool: Swift.Bool? {
247 | get
248 | }
249 | public var objec: Swift.Dictionary? {
250 | get
251 | }
252 | public var array: Swift.Array? {
253 | get
254 | }
255 | public var isNull: Swift.Bool {
256 | get
257 | }
258 | public subscript(index: Swift.Int) -> MagicSDK.JSONValue? {
259 | get
260 | }
261 | public subscript(key: Swift.String) -> MagicSDK.JSONValue? {
262 | get
263 | }
264 | }
265 | @objc @_hasMissingDesignatedInitializers public class Magic : ObjectiveC.NSObject {
266 | final public let user: MagicSDK.UserModule
267 | final public let auth: MagicSDK.AuthModule
268 | public var rpcProvider: MagicSDK.RpcProvider
269 | public static var shared: MagicSDK.Magic!
270 | convenience public init(apiKey: Swift.String, network: MagicSDK.EthNetwork, locale: Swift.String = Locale.current.identifier)
271 | convenience public init(apiKey: Swift.String, customNode: MagicSDK.CustomNodeConfiguration, locale: Swift.String = Locale.current.identifier)
272 | convenience public init(apiKey: Swift.String, locale: Swift.String = Locale.current.identifier)
273 | @objc deinit
274 | }
275 | extension MagicSDK_Web3.Web3Response {
276 | public var magicAuthError: MagicSDK.RpcProvider.ProviderError? {
277 | get
278 | }
279 | }
280 | @_hasMissingDesignatedInitializers public class NetworkClient {
281 | public enum Error : Swift.Error {
282 | case unexpectedResponse(Swift.Error?)
283 | case invalidResponseCode
284 | }
285 | public var headers: [Swift.String : Swift.String]
286 | @objc deinit
287 | }
288 | public func generateRandomId() -> Swift.Int
289 | public func btoa(jsonString: Swift.String) -> Swift.String
290 | public func handleRollbarError(_ error: Swift.Error, extraData: Swift.String = "", log: Swift.Bool = true)
291 | @_hasMissingDesignatedInitializers public class RpcProvider : MagicSDK.NetworkClient, MagicSDK_Web3.Web3Provider {
292 | public enum ProviderError : Swift.Error {
293 | case encodingFailed(Swift.Error?)
294 | case decodingFailed(json: Swift.String)
295 | case invalidJsonResponse(json: Swift.String)
296 | case missingPayloadCallback(json: Swift.String)
297 | }
298 | final public let urlBuilder: MagicSDK.URLBuilder
299 | public func send(request: MagicSDK_Web3.RPCRequest, response: @escaping MagicSDK.Web3ResponseCompletion) where Params : Swift.Decodable, Params : Swift.Encodable, Result : Swift.Decodable, Result : Swift.Encodable
300 | @objc deinit
301 | }
302 | public typealias Web3ResponseCompletion = (_ resp: MagicSDK_Web3.Web3Response) -> Swift.Void where Result : Swift.Decodable, Result : Swift.Encodable
303 | public struct URLBuilder {
304 | public let apiKey: Swift.String
305 | }
306 | public struct CustomNodeConfiguration : Swift.Encodable {
307 | public init(rpcUrl: Swift.String, chainId: Swift.Int? = nil)
308 | public func encode(to encoder: Swift.Encoder) throws
309 | }
310 | public class GetIdTokenConfiguration : MagicSDK.BaseConfiguration {
311 | public init(lifespan: Swift.Int = 900)
312 | @objc deinit
313 | public func encode(to encoder: Swift.Encoder) throws
314 | required public init(from decoder: Swift.Decoder) throws
315 | }
316 | public class GenerateIdTokenConfiguration : MagicSDK.BaseConfiguration {
317 | public init(lifespan: Swift.Int = 900, attachment: Swift.String = "none")
318 | @objc deinit
319 | public func encode(to encoder: Swift.Encoder) throws
320 | required public init(from decoder: Swift.Decoder) throws
321 | }
322 | public class UpdateEmailConfiguration : MagicSDK.BaseConfiguration {
323 | public init(email: Swift.String, showUI: Swift.Bool = true)
324 | @objc deinit
325 | public func encode(to encoder: Swift.Encoder) throws
326 | required public init(from decoder: Swift.Decoder) throws
327 | }
328 | @_inheritsConvenienceInitializers public class UserModule : MagicSDK.BaseModule {
329 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
330 | public func getIdToken(_ configuration: MagicSDK.GetIdTokenConfiguration? = nil) -> PromiseKit.Promise
331 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil, response: @escaping MagicSDK.Web3ResponseCompletion)
332 | public func generateIdToken(_ configuration: MagicSDK.GenerateIdTokenConfiguration? = nil) -> PromiseKit.Promise
333 | public func getMetadata(response: @escaping MagicSDK.Web3ResponseCompletion)
334 | public func getMetadata() -> PromiseKit.Promise
335 | public func isLoggedIn(response: @escaping MagicSDK.Web3ResponseCompletion)
336 | public func isLoggedIn() -> PromiseKit.Promise
337 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, response: @escaping MagicSDK.Web3ResponseCompletion)
338 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration) -> PromiseKit.Promise
339 | public func updateEmail(_ configuration: MagicSDK.UpdateEmailConfiguration, eventLog: Swift.Bool) -> MagicSDK.MagicEventPromise
340 | public func logout(response: @escaping MagicSDK.Web3ResponseCompletion)
341 | public func logout() -> PromiseKit.Promise
342 | override public init(rpcProvider: MagicSDK.RpcProvider)
343 | @objc deinit
344 | }
345 | public protocol MagicResponse : Swift.Decodable, Swift.Encodable {
346 | }
347 | public struct UserMetadata : MagicSDK.MagicResponse {
348 | public let issuer: Swift.String?
349 | public let publicAddress: Swift.String?
350 | public let email: Swift.String?
351 | public func encode(to encoder: Swift.Encoder) throws
352 | public init(from decoder: Swift.Decoder) throws
353 | }
354 | extension MagicSDK_Web3.Web3.Eth {
355 | public func getCoinbase(response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
356 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData, response: @escaping MagicSDK_Web3.Web3.Web3ResponseCompletion)
357 | public func signTypedDataV1(data: [MagicSDK.EIP712TypedDataLegacyFields], account: MagicSDK_Web3.EthereumAddress, response: @escaping MagicSDK.Web3ResponseCompletion)
358 | public func signTypedDataV3(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData, response: @escaping MagicSDK.Web3ResponseCompletion)
359 | }
360 | extension MagicSDK_Web3.Web3.Eth {
361 | public func getCoinbase() -> PromiseKit.Promise
362 | public func sign(from: MagicSDK_Web3.EthereumAddress, message: MagicSDK_Web3.EthereumData) -> PromiseKit.Promise
363 | public func signTypedDataLegacy(account: MagicSDK_Web3.EthereumAddress, data: [MagicSDK.EIP712TypedDataLegacyFields]) -> PromiseKit.Promise
364 | public func signTypedData(account: MagicSDK_Web3.EthereumAddress, data: MagicSDK.EIP712TypedData) -> PromiseKit.Promise
365 | }
366 | extension MagicSDK_Web3.RPCRequest {
367 | public init(method: Swift.String, params: Params)
368 | }
369 | public enum EthNetwork : Swift.String {
370 | case mainnet
371 | case kovan
372 | case rinkeby
373 | case ropsten
374 | public init?(rawValue: Swift.String)
375 | public typealias RawValue = Swift.String
376 | public var rawValue: Swift.String {
377 | get
378 | }
379 | }
380 | extension MagicSDK.AnyValue.Error : Swift.Equatable {}
381 | extension MagicSDK.AnyValue.Error : Swift.Hashable {}
382 | extension MagicSDK.AnyValueRepresentableError : Swift.Equatable {}
383 | extension MagicSDK.AnyValueRepresentableError : Swift.Hashable {}
384 | extension MagicSDK.AnyValueInitializableError : Swift.Equatable {}
385 | extension MagicSDK.AnyValueInitializableError : Swift.Hashable {}
386 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Equatable {}
387 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.Hashable {}
388 | extension MagicSDK.AuthModule.LoginWithMagicLinkEvent : Swift.RawRepresentable {}
389 | extension MagicSDK.EthNetwork : Swift.Equatable {}
390 | extension MagicSDK.EthNetwork : Swift.Hashable {}
391 | extension MagicSDK.EthNetwork : Swift.RawRepresentable {}
392 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_armv7/MagicSDK.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module MagicSDK {
2 | umbrella header "MagicSDK-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
8 | module MagicSDK.Swift {
9 | header "MagicSDK-Swift.h"
10 | requires objc
11 | }
12 |
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_x86_64-maccatalyst/MagicSDK.framework/Headers:
--------------------------------------------------------------------------------
1 | Versions/Current/Headers
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_x86_64-maccatalyst/MagicSDK.framework/MagicSDK:
--------------------------------------------------------------------------------
1 | Versions/Current/MagicSDK
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_x86_64-maccatalyst/MagicSDK.framework/Modules:
--------------------------------------------------------------------------------
1 | Versions/Current/Modules
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_x86_64-maccatalyst/MagicSDK.framework/Resources:
--------------------------------------------------------------------------------
1 | Versions/Current/Resources
--------------------------------------------------------------------------------
/MagicSDK.xcframework/ios-arm64_x86_64-maccatalyst/MagicSDK.framework/Versions/A/Headers/MagicSDK-Swift.h:
--------------------------------------------------------------------------------
1 | #if 0
2 | #elif defined(__arm64__) && __arm64__
3 | // Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
4 | #ifndef MAGICSDK_SWIFT_H
5 | #define MAGICSDK_SWIFT_H
6 | #pragma clang diagnostic push
7 | #pragma clang diagnostic ignored "-Wgcc-compat"
8 |
9 | #if !defined(__has_include)
10 | # define __has_include(x) 0
11 | #endif
12 | #if !defined(__has_attribute)
13 | # define __has_attribute(x) 0
14 | #endif
15 | #if !defined(__has_feature)
16 | # define __has_feature(x) 0
17 | #endif
18 | #if !defined(__has_warning)
19 | # define __has_warning(x) 0
20 | #endif
21 |
22 | #if __has_include()
23 | # include
24 | #endif
25 |
26 | #pragma clang diagnostic ignored "-Wauto-import"
27 | #include
28 | #include
29 | #include
30 | #include
31 |
32 | #if !defined(SWIFT_TYPEDEFS)
33 | # define SWIFT_TYPEDEFS 1
34 | # if __has_include()
35 | # include
36 | # elif !defined(__cplusplus)
37 | typedef uint_least16_t char16_t;
38 | typedef uint_least32_t char32_t;
39 | # endif
40 | typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
41 | typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
42 | typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
43 | typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
44 | typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
45 | typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
46 | typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
47 | typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
48 | typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
49 | typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
50 | typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
51 | typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
52 | #endif
53 |
54 | #if !defined(SWIFT_PASTE)
55 | # define SWIFT_PASTE_HELPER(x, y) x##y
56 | # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
57 | #endif
58 | #if !defined(SWIFT_METATYPE)
59 | # define SWIFT_METATYPE(X) Class
60 | #endif
61 | #if !defined(SWIFT_CLASS_PROPERTY)
62 | # if __has_feature(objc_class_property)
63 | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
64 | # else
65 | # define SWIFT_CLASS_PROPERTY(...)
66 | # endif
67 | #endif
68 |
69 | #if __has_attribute(objc_runtime_name)
70 | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
71 | #else
72 | # define SWIFT_RUNTIME_NAME(X)
73 | #endif
74 | #if __has_attribute(swift_name)
75 | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
76 | #else
77 | # define SWIFT_COMPILE_NAME(X)
78 | #endif
79 | #if __has_attribute(objc_method_family)
80 | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
81 | #else
82 | # define SWIFT_METHOD_FAMILY(X)
83 | #endif
84 | #if __has_attribute(noescape)
85 | # define SWIFT_NOESCAPE __attribute__((noescape))
86 | #else
87 | # define SWIFT_NOESCAPE
88 | #endif
89 | #if __has_attribute(ns_consumed)
90 | # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
91 | #else
92 | # define SWIFT_RELEASES_ARGUMENT
93 | #endif
94 | #if __has_attribute(warn_unused_result)
95 | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
96 | #else
97 | # define SWIFT_WARN_UNUSED_RESULT
98 | #endif
99 | #if __has_attribute(noreturn)
100 | # define SWIFT_NORETURN __attribute__((noreturn))
101 | #else
102 | # define SWIFT_NORETURN
103 | #endif
104 | #if !defined(SWIFT_CLASS_EXTRA)
105 | # define SWIFT_CLASS_EXTRA
106 | #endif
107 | #if !defined(SWIFT_PROTOCOL_EXTRA)
108 | # define SWIFT_PROTOCOL_EXTRA
109 | #endif
110 | #if !defined(SWIFT_ENUM_EXTRA)
111 | # define SWIFT_ENUM_EXTRA
112 | #endif
113 | #if !defined(SWIFT_CLASS)
114 | # if __has_attribute(objc_subclassing_restricted)
115 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
116 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
117 | # else
118 | # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
119 | # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
120 | # endif
121 | #endif
122 | #if !defined(SWIFT_RESILIENT_CLASS)
123 | # if __has_attribute(objc_class_stub)
124 | # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
125 | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
126 | # else
127 | # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
128 | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
129 | # endif
130 | #endif
131 |
132 | #if !defined(SWIFT_PROTOCOL)
133 | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
134 | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
135 | #endif
136 |
137 | #if !defined(SWIFT_EXTENSION)
138 | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
139 | #endif
140 |
141 | #if !defined(OBJC_DESIGNATED_INITIALIZER)
142 | # if __has_attribute(objc_designated_initializer)
143 | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
144 | # else
145 | # define OBJC_DESIGNATED_INITIALIZER
146 | # endif
147 | #endif
148 | #if !defined(SWIFT_ENUM_ATTR)
149 | # if defined(__has_attribute) && __has_attribute(enum_extensibility)
150 | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
151 | # else
152 | # define SWIFT_ENUM_ATTR(_extensibility)
153 | # endif
154 | #endif
155 | #if !defined(SWIFT_ENUM)
156 | # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
157 | # if __has_feature(generalized_swift_name)
158 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
159 | # else
160 | # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
161 | # endif
162 | #endif
163 | #if !defined(SWIFT_UNAVAILABLE)
164 | # define SWIFT_UNAVAILABLE __attribute__((unavailable))
165 | #endif
166 | #if !defined(SWIFT_UNAVAILABLE_MSG)
167 | # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
168 | #endif
169 | #if !defined(SWIFT_AVAILABILITY)
170 | # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
171 | #endif
172 | #if !defined(SWIFT_WEAK_IMPORT)
173 | # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
174 | #endif
175 | #if !defined(SWIFT_DEPRECATED)
176 | # define SWIFT_DEPRECATED __attribute__((deprecated))
177 | #endif
178 | #if !defined(SWIFT_DEPRECATED_MSG)
179 | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
180 | #endif
181 | #if __has_feature(attribute_diagnose_if_objc)
182 | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
183 | #else
184 | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
185 | #endif
186 | #if !defined(IBSegueAction)
187 | # define IBSegueAction
188 | #endif
189 | #if __has_feature(modules)
190 | #if __has_warning("-Watimport-in-framework-header")
191 | #pragma clang diagnostic ignored "-Watimport-in-framework-header"
192 | #endif
193 | @import ObjectiveC;
194 | #endif
195 |
196 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
197 | #pragma clang diagnostic ignored "-Wduplicate-method-arg"
198 | #if __has_warning("-Wpragma-clang-attribute")
199 | # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
200 | #endif
201 | #pragma clang diagnostic ignored "-Wunknown-pragmas"
202 | #pragma clang diagnostic ignored "-Wnullability"
203 |
204 | #if __has_attribute(external_source_symbol)
205 | # pragma push_macro("any")
206 | # undef any
207 | # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MagicSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
208 | # pragma pop_macro("any")
209 | #endif
210 |
211 |
212 | /// An instance of the Magic SDK
213 | SWIFT_CLASS("_TtC8MagicSDK5Magic")
214 | @interface Magic : NSObject
215 | - (nonnull instancetype)init SWIFT_UNAVAILABLE;
216 | + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
217 | @end
218 |
219 | #if __has_attribute(external_source_symbol)
220 | # pragma clang attribute pop
221 | #endif
222 | #pragma clang diagnostic pop
223 | #endif
224 |
225 | #elif defined(__x86_64__) && __x86_64__
226 | // Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
227 | #ifndef MAGICSDK_SWIFT_H
228 | #define MAGICSDK_SWIFT_H
229 | #pragma clang diagnostic push
230 | #pragma clang diagnostic ignored "-Wgcc-compat"
231 |
232 | #if !defined(__has_include)
233 | # define __has_include(x) 0
234 | #endif
235 | #if !defined(__has_attribute)
236 | # define __has_attribute(x) 0
237 | #endif
238 | #if !defined(__has_feature)
239 | # define __has_feature(x) 0
240 | #endif
241 | #if !defined(__has_warning)
242 | # define __has_warning(x) 0
243 | #endif
244 |
245 | #if __has_include()
246 | # include
247 | #endif
248 |
249 | #pragma clang diagnostic ignored "-Wauto-import"
250 | #include
251 | #include
252 | #include