-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179 from PaimaStudios/generic-cde
Generic CDE
- Loading branch information
Showing
36 changed files
with
1,032 additions
and
136 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/** Types generated for queries found in "src/sql/cde-config-erc20-deposit.sql" */ | ||
import { PreparedQuery } from '@pgtyped/query'; | ||
|
||
/** 'GetCdeConfigErc20Deposit' parameters type */ | ||
export type IGetCdeConfigErc20DepositParams = void; | ||
|
||
/** 'GetCdeConfigErc20Deposit' return type */ | ||
export interface IGetCdeConfigErc20DepositResult { | ||
cde_id: number; | ||
deposit_address: string; | ||
} | ||
|
||
/** 'GetCdeConfigErc20Deposit' query type */ | ||
export interface IGetCdeConfigErc20DepositQuery { | ||
params: IGetCdeConfigErc20DepositParams; | ||
result: IGetCdeConfigErc20DepositResult; | ||
} | ||
|
||
const getCdeConfigErc20DepositIR: any = {"usedParamSet":{},"params":[],"statement":"SELECT * FROM cde_config_erc20_deposit"}; | ||
|
||
/** | ||
* Query generated from SQL: | ||
* ``` | ||
* SELECT * FROM cde_config_erc20_deposit | ||
* ``` | ||
*/ | ||
export const getCdeConfigErc20Deposit = new PreparedQuery<IGetCdeConfigErc20DepositParams,IGetCdeConfigErc20DepositResult>(getCdeConfigErc20DepositIR); | ||
|
||
|
||
/** 'GetSpecificCdeConfigErc20Deposit' parameters type */ | ||
export interface IGetSpecificCdeConfigErc20DepositParams { | ||
cde_id: number | null | void; | ||
} | ||
|
||
/** 'GetSpecificCdeConfigErc20Deposit' return type */ | ||
export interface IGetSpecificCdeConfigErc20DepositResult { | ||
cde_id: number; | ||
deposit_address: string; | ||
} | ||
|
||
/** 'GetSpecificCdeConfigErc20Deposit' query type */ | ||
export interface IGetSpecificCdeConfigErc20DepositQuery { | ||
params: IGetSpecificCdeConfigErc20DepositParams; | ||
result: IGetSpecificCdeConfigErc20DepositResult; | ||
} | ||
|
||
const getSpecificCdeConfigErc20DepositIR: any = {"usedParamSet":{"cde_id":true},"params":[{"name":"cde_id","required":false,"transform":{"type":"scalar"},"locs":[{"a":54,"b":60}]}],"statement":"SELECT * FROM cde_config_erc20_deposit\nWHERE cde_id = :cde_id"}; | ||
|
||
/** | ||
* Query generated from SQL: | ||
* ``` | ||
* SELECT * FROM cde_config_erc20_deposit | ||
* WHERE cde_id = :cde_id | ||
* ``` | ||
*/ | ||
export const getSpecificCdeConfigErc20Deposit = new PreparedQuery<IGetSpecificCdeConfigErc20DepositParams,IGetSpecificCdeConfigErc20DepositResult>(getSpecificCdeConfigErc20DepositIR); | ||
|
||
|
||
/** 'RegisterCdeConfigErc20Deposit' parameters type */ | ||
export interface IRegisterCdeConfigErc20DepositParams { | ||
cde_id: number; | ||
deposit_address: string; | ||
} | ||
|
||
/** 'RegisterCdeConfigErc20Deposit' return type */ | ||
export type IRegisterCdeConfigErc20DepositResult = void; | ||
|
||
/** 'RegisterCdeConfigErc20Deposit' query type */ | ||
export interface IRegisterCdeConfigErc20DepositQuery { | ||
params: IRegisterCdeConfigErc20DepositParams; | ||
result: IRegisterCdeConfigErc20DepositResult; | ||
} | ||
|
||
const registerCdeConfigErc20DepositIR: any = {"usedParamSet":{"cde_id":true,"deposit_address":true},"params":[{"name":"cde_id","required":true,"transform":{"type":"scalar"},"locs":[{"a":85,"b":92}]},{"name":"deposit_address","required":true,"transform":{"type":"scalar"},"locs":[{"a":99,"b":115}]}],"statement":"INSERT INTO cde_config_erc20_deposit(\n cde_id,\n deposit_address\n) VALUES (\n :cde_id!,\n :deposit_address!\n)"}; | ||
|
||
/** | ||
* Query generated from SQL: | ||
* ``` | ||
* INSERT INTO cde_config_erc20_deposit( | ||
* cde_id, | ||
* deposit_address | ||
* ) VALUES ( | ||
* :cde_id!, | ||
* :deposit_address! | ||
* ) | ||
* ``` | ||
*/ | ||
export const registerCdeConfigErc20Deposit = new PreparedQuery<IRegisterCdeConfigErc20DepositParams,IRegisterCdeConfigErc20DepositResult>(registerCdeConfigErc20DepositIR); | ||
|
||
|
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,15 @@ | ||
/* @name getCdeConfigErc20Deposit */ | ||
SELECT * FROM cde_config_erc20_deposit; | ||
|
||
/* @name getSpecificCdeConfigErc20Deposit */ | ||
SELECT * FROM cde_config_erc20_deposit | ||
WHERE cde_id = :cde_id; | ||
|
||
/* @name registerCdeConfigErc20Deposit */ | ||
INSERT INTO cde_config_erc20_deposit( | ||
cde_id, | ||
deposit_address | ||
) VALUES ( | ||
:cde_id!, | ||
:deposit_address! | ||
); |
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,95 @@ | ||
/** Types generated for queries found in "src/sql/cde-config-generic.sql" */ | ||
import { PreparedQuery } from '@pgtyped/query'; | ||
|
||
/** 'GetCdeConfigGeneric' parameters type */ | ||
export type IGetCdeConfigGenericParams = void; | ||
|
||
/** 'GetCdeConfigGeneric' return type */ | ||
export interface IGetCdeConfigGenericResult { | ||
cde_id: number; | ||
contract_abi: string; | ||
event_signature: string; | ||
} | ||
|
||
/** 'GetCdeConfigGeneric' query type */ | ||
export interface IGetCdeConfigGenericQuery { | ||
params: IGetCdeConfigGenericParams; | ||
result: IGetCdeConfigGenericResult; | ||
} | ||
|
||
const getCdeConfigGenericIR: any = {"usedParamSet":{},"params":[],"statement":"SELECT * FROM cde_config_generic"}; | ||
|
||
/** | ||
* Query generated from SQL: | ||
* ``` | ||
* SELECT * FROM cde_config_generic | ||
* ``` | ||
*/ | ||
export const getCdeConfigGeneric = new PreparedQuery<IGetCdeConfigGenericParams,IGetCdeConfigGenericResult>(getCdeConfigGenericIR); | ||
|
||
|
||
/** 'GetSpecificCdeConfigGeneric' parameters type */ | ||
export interface IGetSpecificCdeConfigGenericParams { | ||
cde_id: number | null | void; | ||
} | ||
|
||
/** 'GetSpecificCdeConfigGeneric' return type */ | ||
export interface IGetSpecificCdeConfigGenericResult { | ||
cde_id: number; | ||
contract_abi: string; | ||
event_signature: string; | ||
} | ||
|
||
/** 'GetSpecificCdeConfigGeneric' query type */ | ||
export interface IGetSpecificCdeConfigGenericQuery { | ||
params: IGetSpecificCdeConfigGenericParams; | ||
result: IGetSpecificCdeConfigGenericResult; | ||
} | ||
|
||
const getSpecificCdeConfigGenericIR: any = {"usedParamSet":{"cde_id":true},"params":[{"name":"cde_id","required":false,"transform":{"type":"scalar"},"locs":[{"a":48,"b":54}]}],"statement":"SELECT * FROM cde_config_generic\nWHERE cde_id = :cde_id"}; | ||
|
||
/** | ||
* Query generated from SQL: | ||
* ``` | ||
* SELECT * FROM cde_config_generic | ||
* WHERE cde_id = :cde_id | ||
* ``` | ||
*/ | ||
export const getSpecificCdeConfigGeneric = new PreparedQuery<IGetSpecificCdeConfigGenericParams,IGetSpecificCdeConfigGenericResult>(getSpecificCdeConfigGenericIR); | ||
|
||
|
||
/** 'RegisterCdeConfigGeneric' parameters type */ | ||
export interface IRegisterCdeConfigGenericParams { | ||
cde_id: number; | ||
contract_abi: string; | ||
event_signature: string; | ||
} | ||
|
||
/** 'RegisterCdeConfigGeneric' return type */ | ||
export type IRegisterCdeConfigGenericResult = void; | ||
|
||
/** 'RegisterCdeConfigGeneric' query type */ | ||
export interface IRegisterCdeConfigGenericQuery { | ||
params: IRegisterCdeConfigGenericParams; | ||
result: IRegisterCdeConfigGenericResult; | ||
} | ||
|
||
const registerCdeConfigGenericIR: any = {"usedParamSet":{"cde_id":true,"event_signature":true,"contract_abi":true},"params":[{"name":"cde_id","required":true,"transform":{"type":"scalar"},"locs":[{"a":97,"b":104}]},{"name":"event_signature","required":true,"transform":{"type":"scalar"},"locs":[{"a":111,"b":127}]},{"name":"contract_abi","required":true,"transform":{"type":"scalar"},"locs":[{"a":134,"b":147}]}],"statement":"INSERT INTO cde_config_generic(\n cde_id,\n event_signature,\n contract_abi\n) VALUES (\n :cde_id!,\n :event_signature!,\n :contract_abi!\n)"}; | ||
|
||
/** | ||
* Query generated from SQL: | ||
* ``` | ||
* INSERT INTO cde_config_generic( | ||
* cde_id, | ||
* event_signature, | ||
* contract_abi | ||
* ) VALUES ( | ||
* :cde_id!, | ||
* :event_signature!, | ||
* :contract_abi! | ||
* ) | ||
* ``` | ||
*/ | ||
export const registerCdeConfigGeneric = new PreparedQuery<IRegisterCdeConfigGenericParams,IRegisterCdeConfigGenericResult>(registerCdeConfigGenericIR); | ||
|
||
|
Oops, something went wrong.