Skip to content

Commit

Permalink
Rename character varying to varchar (consistency across SQL files)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Sep 15, 2024
1 parent 3d49a57 commit 469f05c
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion files/grest/rpc/01_cached_tables/pool_info_cache.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CREATE TABLE grest.pool_info_cache (
owners bigint [],
relays jsonb [],
meta_id bigint,
meta_url character varying,
meta_url varchar,
meta_hash text,
pool_status text,
retiring_epoch word31type
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/address/address_info.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE OR REPLACE FUNCTION grest.address_info(_addresses text [])
RETURNS TABLE (
address varchar,
balance text,
stake_address character varying,
stake_address varchar,
script_address boolean,
utxo_set jsonb
)
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/assets/asset_history.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE OR REPLACE FUNCTION grest.asset_history(_asset_policy text, _asset_name t
RETURNS TABLE (
policy_id text,
asset_name text,
fingerprint character varying,
fingerprint varchar,
minting_txs jsonb []
)
LANGUAGE plpgsql
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/assets/asset_info.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RETURNS TABLE (
policy_id text,
asset_name text,
asset_name_ascii text,
fingerprint character varying,
fingerprint varchar,
minting_tx_hash text,
total_supply text,
mint_cnt bigint,
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/assets/asset_info_bulk.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RETURNS TABLE (
policy_id text,
asset_name text,
asset_name_ascii text,
fingerprint character varying,
fingerprint varchar,
minting_tx_hash text,
total_supply text,
mint_cnt bigint,
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/assets/asset_summary.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE OR REPLACE FUNCTION grest.asset_summary(_asset_policy text, _asset_name t
RETURNS TABLE (
policy_id text,
asset_name text,
fingerprint character varying,
fingerprint varchar,
total_transactions bigint,
staked_wallets bigint,
unstaked_addresses bigint,
Expand Down
4 changes: 2 additions & 2 deletions files/grest/rpc/blocks/blocks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RETURNS TABLE (
block_size word31type,
block_time integer,
tx_count bigint,
vrf_key character varying,
pool character varying,
vrf_key varchar,
pool varchar,
proto_major word31type,
proto_minor word31type,
op_cert_counter word63type,
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/governance/drep_info.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RETURNS TABLE (
active boolean,
expires_epoch_no numeric,
amount text,
url character varying,
url varchar,
hash text
)
LANGUAGE plpgsql
Expand Down
8 changes: 4 additions & 4 deletions files/grest/rpc/governance/drep_metadata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ RETURNS TABLE (
drep_id text,
hex text,
has_script boolean,
url character varying,
url varchar,
hash text,
json jsonb,
bytes text,
warning character varying,
language character varying,
comment character varying,
warning varchar,
language varchar,
comment varchar,
is_valid boolean
)
LANGUAGE plpgsql
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/governance/proposal_votes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RETURNS TABLE (
voter_hex text,
voter_has_script boolean,
vote vote,
meta_url character varying,
meta_url varchar,
meta_hash text
)
LANGUAGE plpgsql
Expand Down
8 changes: 4 additions & 4 deletions files/grest/rpc/governance/voter_proposal_list.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ RETURNS TABLE (
proposal_type govactiontype,
proposal_description jsonb,
deposit text,
return_address character varying,
return_address varchar,
proposed_epoch word31type,
ratified_epoch word31type,
enacted_epoch word31type,
dropped_epoch word31type,
expired_epoch word31type,
expiration word31type,
meta_url character varying,
meta_url varchar,
meta_hash text,
meta_json jsonb,
meta_comment character varying,
meta_language character varying,
meta_comment varchar,
meta_language varchar,
meta_is_valid boolean,
withdrawal jsonb,
param_proposal jsonb
Expand Down
4 changes: 2 additions & 2 deletions files/grest/rpc/pool/pool_delegators.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION grest.pool_delegators(_pool_bech32 text)
RETURNS TABLE (
stake_address character varying,
stake_address varchar,
amount text,
active_epoch_no bigint,
latest_delegation_tx_hash text
Expand Down Expand Up @@ -72,7 +72,7 @@ COMMENT ON FUNCTION grest.pool_delegators IS 'Return information about live dele

CREATE OR REPLACE FUNCTION grest.pool_delegators_list(_pool_bech32 text)
RETURNS TABLE (
stake_address character varying,
stake_address varchar,
amount text
)
LANGUAGE plpgsql
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/pool/pool_delegators_history.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION grest.pool_delegators_history(_pool_bech32 text, _epoch_no word31type DEFAULT NULL)
RETURNS TABLE (
stake_address character varying,
stake_address varchar,
amount text,
epoch_no word31type
)
Expand Down
8 changes: 4 additions & 4 deletions files/grest/rpc/pool/pool_info.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
CREATE OR REPLACE FUNCTION grest.pool_info(_pool_bech32_ids text [])
RETURNS TABLE (
pool_id_bech32 character varying,
pool_id_bech32 varchar,
pool_id_hex text,
active_epoch_no bigint,
vrf_key_hash text,
margin double precision,
fixed_cost text,
pledge text,
deposit text,
reward_addr character varying,
owners character varying [],
reward_addr varchar,
owners varchar [],
relays jsonb [],
meta_url character varying,
meta_url varchar,
meta_hash text,
meta_json jsonb,
pool_status text,
Expand Down
10 changes: 5 additions & 5 deletions files/grest/rpc/pool/pool_list.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
CREATE OR REPLACE FUNCTION grest.pool_list()
RETURNS TABLE (
pool_id_bech32 character varying,
pool_id_bech32 varchar,
pool_id_hex text,
active_epoch_no bigint,
margin double precision,
fixed_cost text,
pledge text,
deposit text,
reward_addr character varying,
owners character varying [],
reward_addr varchar,
owners varchar [],
relays jsonb [],
ticker character varying,
meta_url character varying,
ticker varchar,
meta_url varchar,
meta_hash text,
pool_status text,
retiring_epoch word31type
Expand Down
4 changes: 2 additions & 2 deletions files/grest/rpc/pool/pool_metadata.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION grest.pool_metadata(_pool_bech32_ids text [] DEFAULT null)
RETURNS TABLE (
pool_id_bech32 character varying,
meta_url character varying,
pool_id_bech32 varchar,
meta_url varchar,
meta_hash text,
meta_json jsonb
)
Expand Down
2 changes: 1 addition & 1 deletion files/grest/rpc/pool/pool_relays.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION grest.pool_relays()
RETURNS TABLE (
pool_id_bech32 character varying,
pool_id_bech32 varchar,
relays jsonb
)
LANGUAGE sql STABLE
Expand Down
6 changes: 3 additions & 3 deletions files/grest/rpc/pool/pool_updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ CREATE OR REPLACE FUNCTION grest.pool_updates(_pool_bech32 text DEFAULT NULL)
RETURNS TABLE (
tx_hash text,
block_time integer,
pool_id_bech32 character varying,
pool_id_bech32 varchar,
pool_id_hex text,
active_epoch_no bigint,
vrf_key_hash text,
margin double precision,
fixed_cost text,
pledge text,
reward_addr character varying,
reward_addr varchar,
owners jsonb,
relays jsonb,
meta_url character varying,
meta_url varchar,
meta_hash text,
meta_json jsonb,
update_type text,
Expand Down

0 comments on commit 469f05c

Please sign in to comment.