-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ethereum api & sdk provider through dApp (#245)
- Loading branch information
Showing
114 changed files
with
827 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...b3Authentication/Accounts/IWeb3Account.cs → .../Assets/DCL/Web3/Accounts/IWeb3Account.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace DCL.Web3Authentication.Accounts | ||
namespace DCL.Web3.Accounts | ||
{ | ||
public interface IWeb3Account | ||
{ | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...thentication/Accounts/NethereumAccount.cs → ...ets/DCL/Web3/Accounts/NethereumAccount.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
Explorer/Assets/DCL/Web3/Authenticators/DappWeb3Authenticator.DappSignatureResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
namespace DCL.Web3.Authenticators | ||
{ | ||
public partial class DappWeb3Authenticator | ||
{ | ||
[Serializable] | ||
private struct LoginResponse | ||
{ | ||
public string requestId; | ||
public string result; | ||
public string sender; | ||
} | ||
|
||
[Serializable] | ||
private struct MethodResponse<T> | ||
{ | ||
public string requestId; | ||
public T result; | ||
public string sender; | ||
} | ||
} | ||
} |
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
Explorer/Assets/DCL/Web3/Authenticators/DappWeb3Authenticator.EthRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using DCL.Web3.Chains; | ||
using System; | ||
|
||
namespace DCL.Web3.Authenticators | ||
{ | ||
public partial class DappWeb3Authenticator | ||
{ | ||
[Serializable] | ||
private struct AuthorizedEthApiRequest | ||
{ | ||
public string method; | ||
public object[] @params; | ||
public AuthLink[] authChain; | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.