mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 17:46:53 +00:00
parent
e776a5f7ba
commit
ff5ad77e98
@ -16,5 +16,7 @@ SELECT
|
||||
tx_succeeded,
|
||||
proposer,
|
||||
proposal_id,
|
||||
proposal_type
|
||||
proposal_type,
|
||||
proposal_title,
|
||||
proposal_description
|
||||
FROM {{ ref('silver__governance_submit_proposal') }}
|
||||
@ -29,5 +29,13 @@ models:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
- name: PROPOSAL_TYPE
|
||||
description: "{{ doc('proposal_type') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
- name: PROPOSAL_TITLE
|
||||
description: "{{ doc('proposal_title') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
- name: PROPOSAL_DESCRIPTION
|
||||
description: "{{ doc('proposal_description') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
5
models/descriptions/proposal_description.md
Normal file
5
models/descriptions/proposal_description.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs proposal_description %}
|
||||
|
||||
The description or body of the governance proposal.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/descriptions/proposal_title.md
Normal file
5
models/descriptions/proposal_title.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs proposal_title %}
|
||||
|
||||
The title of the governance proposal that was submitted on-chain.
|
||||
|
||||
{% enddocs %}
|
||||
@ -97,6 +97,8 @@ SELECT
|
||||
proposer,
|
||||
p.proposal_id :: NUMBER AS proposal_id,
|
||||
y.proposal_type,
|
||||
tx_body :messages[0] :content :title :: STRING AS proposal_title,
|
||||
tx_body :messages[0] :content :description :: STRING AS proposal_description,
|
||||
_inserted_timestamp
|
||||
FROM
|
||||
proposal_ids p
|
||||
|
||||
@ -62,6 +62,24 @@ models:
|
||||
column_type_list:
|
||||
- STRING
|
||||
- VARCHAR
|
||||
- name: PROPOSAL_TITLE
|
||||
description: "{{ doc('proposal_title') }}"
|
||||
tests:
|
||||
- not_null:
|
||||
where: tx_id <> '515A92D6DE7561E1BCDB11C0D453BFDE87B25F981F8E94AFB848CA97EA65F34A' ## We are missing this transaction body
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- STRING
|
||||
- VARCHAR
|
||||
- name: PROPOSAL_DESCRIPTION
|
||||
description: "{{ doc('proposal_description') }}"
|
||||
tests:
|
||||
- not_null:
|
||||
where: tx_id <> '515A92D6DE7561E1BCDB11C0D453BFDE87B25F981F8E94AFB848CA97EA65F34A' ## We are missing this transaction body
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- STRING
|
||||
- VARCHAR
|
||||
- name: _INSERTED_TIMESTAMP
|
||||
description: "{{ doc('inserted_timestamp') }}"
|
||||
tests:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user