Skip to content

Commit

Permalink
Update contracts (#6)
Browse files Browse the repository at this point in the history
* Remove DomainWalletOracle

* Add new contracts
  • Loading branch information
hwrdtm authored May 2, 2024
1 parent e5478e6 commit 631c2b1
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1,228 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ public class DefaultAdminRoleFunctionBase : FunctionMessage

}

public partial class DomainWalletOracleFunction : DomainWalletOracleFunctionBase { }

[Function("DOMAIN_WALLET_ORACLE", "bytes32")]
public class DomainWalletOracleFunctionBase : FunctionMessage
{

}

public partial class DomainWalletRegistryFunction : DomainWalletRegistryFunctionBase { }

[Function("DOMAIN_WALLET_REGISTRY", "bytes32")]
Expand Down Expand Up @@ -417,15 +409,6 @@ public class DefaultAdminRoleOutputDTOBase : IFunctionOutputDTO
public virtual byte[] ReturnValue1 { get; set; }
}

public partial class DomainWalletOracleOutputDTO : DomainWalletOracleOutputDTOBase { }

[FunctionOutput]
public class DomainWalletOracleOutputDTOBase : IFunctionOutputDTO
{
[Parameter("bytes32", "", 1)]
public virtual byte[] ReturnValue1 { get; set; }
}

public partial class DomainWalletRegistryOutputDTO : DomainWalletRegistryOutputDTOBase { }

[FunctionOutput]
Expand Down
11 changes: 0 additions & 11 deletions LitContracts/ContractResolver/ContractResolverService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,6 @@ public Task<byte[]> DefaultAdminRoleQueryAsync(BlockParameter blockParameter = n
return ContractHandler.QueryAsync<DefaultAdminRoleFunction, byte[]>(null, blockParameter);
}

public Task<byte[]> DomainWalletOracleQueryAsync(DomainWalletOracleFunction domainWalletOracleFunction, BlockParameter blockParameter = null)
{
return ContractHandler.QueryAsync<DomainWalletOracleFunction, byte[]>(domainWalletOracleFunction, blockParameter);
}


public Task<byte[]> DomainWalletOracleQueryAsync(BlockParameter blockParameter = null)
{
return ContractHandler.QueryAsync<DomainWalletOracleFunction, byte[]>(null, blockParameter);
}

public Task<byte[]> DomainWalletRegistryQueryAsync(DomainWalletRegistryFunction domainWalletRegistryFunction, BlockParameter blockParameter = null)
{
return ContractHandler.QueryAsync<DomainWalletRegistryFunction, byte[]>(domainWalletRegistryFunction, blockParameter);
Expand Down
Loading

0 comments on commit 631c2b1

Please sign in to comment.