Skip to content

Commit

Permalink
Ramp fix (#931)
Browse files Browse the repository at this point in the history
* Fixes to stabilize the head (#927)

* contribution edits

* condition to run tests fixed

* typo fix

* use deploy key for push

* bot makes push instead of actor

* fixed syntax

* setup ssh keys added

* different way for setting up ssh

* only play mode tests

* reverted ssh setup method

* run workflow on dev not main!

* revert pre commit check branch and change post push action branch to dev

* added ssh key for checkout

* removed tests for faster iteration

* put back publish dlls

* check if latest commit isn't from github actions to avoid recursive actions

* small syntax fix

* small syntax fix 2

* replace conditional fix for loop issue with commit skip ci keyword in message

* put tests back in

* on push workflow call now back to from main

* test again

* reverted actor from bot to user and removed ssh setup

* revert post push workflow file target back to main

* chore: fix typos (#918)

Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Metamask SDK fixes (#922)

* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* Sign verify and WebGL login logout issue fixed for metamask

---------

Co-authored-by: robGG1997 <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Package built-in dependencies fix (#925)

* Package built-in dependencies fix

* Added polling and timeout to GetTransaction method
Introduced DelayUtil

---------

Co-authored-by: oleksandr <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Ramp fix

Fixed ramp via conditional compilation to avoid changing the folder structure of samples.

* Amending

Cleaner implementation of compilation directives

* Amend

Amend

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
  • Loading branch information
9 people committed Jan 16, 2025
1 parent 7fa3fb1 commit d31e4b4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define RAMP_AVAILABLE
using ChainSafe.Gaming.Evm.JsonRpc;
using ChainSafe.Gaming.UnityPackage;
using ChainSafe.Gaming.Wallets;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using System;
using System.Collections.Generic;
using ChainSafe.Gaming.Exchangers.Ramp;
using ChainSafe.Gaming.MultiCall;
using ChainSafe.Gaming.UnityPackage;
using ChainSafe.GamingSdk.Gelato.Types;
using UnityEngine;

public enum ServiceType
{
#if RAMP_AVAILABLE
Ramp,
#endif
Gelato,
Multicall
}
Expand All @@ -18,7 +19,9 @@ public class DisableGameObjectIfServiceNotActive : MonoBehaviour
[SerializeField] private ServiceType serviceType;
private readonly Dictionary<ServiceType, Type> _typesDictionary = new()
{
{ServiceType.Ramp, typeof(IRampExchanger)},
#if RAMP_AVAILABLE
{ServiceType.Ramp, typeof(ChainSafe.Gaming.Exchangers.Ramp.IRampExchanger)},
#endif
{ServiceType.Gelato, typeof(IGelato)},
{ServiceType.Multicall, typeof(IMultiCall)}
};
Expand All @@ -27,6 +30,5 @@ private void Awake()
{
gameObject.SetActive(Web3Accessor.Web3.ServiceProvider.GetService(_typesDictionary[serviceType]) != null);
}


}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define RAMP_AVAILABLE
using ChainSafe.Gaming.Evm.JsonRpc;
using ChainSafe.Gaming.UnityPackage;
using ChainSafe.Gaming.Wallets;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using System;
using System.Collections.Generic;
using ChainSafe.Gaming.Exchangers.Ramp;
using ChainSafe.Gaming.MultiCall;
using ChainSafe.Gaming.UnityPackage;
using ChainSafe.GamingSdk.Gelato.Types;
using UnityEngine;

public enum ServiceType
{
#if RAMP_AVAILABLE
Ramp,
#endif
Gelato,
Multicall
}
Expand All @@ -18,7 +19,9 @@ public class DisableGameObjectIfServiceNotActive : MonoBehaviour
[SerializeField] private ServiceType serviceType;
private readonly Dictionary<ServiceType, Type> _typesDictionary = new()
{
{ServiceType.Ramp, typeof(IRampExchanger)},
#if RAMP_AVAILABLE
{ServiceType.Ramp, typeof(ChainSafe.Gaming.Exchangers.Ramp.IRampExchanger)},
#endif
{ServiceType.Gelato, typeof(IGelato)},
{ServiceType.Multicall, typeof(IMultiCall)}
};
Expand Down

0 comments on commit d31e4b4

Please sign in to comment.