Add stubs

This commit is contained in:
Ivan Grachyov 2021-06-12 14:30:58 +03:00
parent 4785abcfdf
commit 3d21ed7eca
2 changed files with 39 additions and 0 deletions

View File

@ -11,6 +11,7 @@
2C1995422674C4B900A8E370 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C1995412674C4B900A8E370 /* ViewController.swift */; };
2C1995442674C4BA00A8E370 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2C1995432674C4BA00A8E370 /* Assets.xcassets */; };
2C1995472674C4BA00A8E370 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2C1995452674C4BA00A8E370 /* Main.storyboard */; };
2C1995562674D0F300A8E370 /* Ethereum.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C1995552674D0F300A8E370 /* Ethereum.swift */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@ -21,6 +22,7 @@
2C1995462674C4BA00A8E370 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
2C1995482674C4BA00A8E370 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2C1995492674C4BA00A8E370 /* Ecrypted_Ink.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Ecrypted_Ink.entitlements; sourceTree = "<group>"; };
2C1995552674D0F300A8E370 /* Ethereum.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Ethereum.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -55,6 +57,7 @@
children = (
2C19953F2674C4B900A8E370 /* AppDelegate.swift */,
2C1995412674C4B900A8E370 /* ViewController.swift */,
2C1995552674D0F300A8E370 /* Ethereum.swift */,
2C1995432674C4BA00A8E370 /* Assets.xcassets */,
2C1995452674C4BA00A8E370 /* Main.storyboard */,
2C1995482674C4BA00A8E370 /* Info.plist */,
@ -155,6 +158,7 @@
files = (
2C1995422674C4B900A8E370 /* ViewController.swift in Sources */,
2C1995402674C4B900A8E370 /* AppDelegate.swift in Sources */,
2C1995562674D0F300A8E370 /* Ethereum.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View File

@ -0,0 +1,35 @@
// Copyright © 2021 Encrypted Ink. All rights reserved.
import Foundation
struct Transaction {
}
struct Account {
}
struct Ethereum {
static func sign(message: String, account: Account) {
}
static func signPersonal(message: String, account: Account) {
}
static func sign(typedData: String, account: Account) {
}
static func sign(transaction: Transaction, account: Account) {
}
static func send(transaction: Transaction, account: Account) {
}
}