mirror of
https://github.com/FlipsideCrypto/terra-models.git
synced 2026-02-06 15:46:43 +00:00
new documentations
This commit is contained in:
parent
64f7b4d006
commit
c179dee895
@ -89,4 +89,45 @@ models:
|
||||
- float
|
||||
- NUMBER
|
||||
|
||||
|
||||
- name: from_decimal
|
||||
description: "{{ doc('from_decimal') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- NUMBER
|
||||
|
||||
- name: to_amount
|
||||
description: "{{ doc('to_amount') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- NUMBER
|
||||
- FLOAT
|
||||
- DECIMAL
|
||||
|
||||
- name: to_currency
|
||||
description: "{{ doc('to_currency') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- STRING
|
||||
- VARCHAR
|
||||
|
||||
- name: to_decimal
|
||||
description: "{{ doc('to_decimal') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- NUMBER
|
||||
|
||||
- name: pool_ids
|
||||
description: "{{ doc('pool_ids') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- STRING
|
||||
- VARCHAR
|
||||
|
||||
5
models/descriptions/pool_ids.md
Normal file
5
models/descriptions/pool_ids.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs pool_ids %}
|
||||
|
||||
Identifier for the pool within the module
|
||||
|
||||
{% enddocs %}
|
||||
5
models/descriptions/to_amount.md
Normal file
5
models/descriptions/to_amount.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs to_amount %}
|
||||
|
||||
The amount that the user sent to be swapped for another currency.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/descriptions/to_currency.md
Normal file
5
models/descriptions/to_currency.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs to_currency %}
|
||||
|
||||
The currency that the user sent to be swapped for another currency.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/descriptions/to_decimal.md
Normal file
5
models/descriptions/to_decimal.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs to_decimal %}
|
||||
|
||||
Divide the swap_to_amount by POW(10, swap_to_decimal) to get the amount the user received.
|
||||
|
||||
{% enddocs %}
|
||||
@ -99,13 +99,13 @@ models:
|
||||
- NUMBER
|
||||
|
||||
- name: to_amount
|
||||
description: "{{ doc('To_amount') }}"
|
||||
description: "{{ doc('to_amount') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- NUMBER
|
||||
- FLOAT
|
||||
- DOUBLE
|
||||
- DECIMAL
|
||||
|
||||
- name: to_currency
|
||||
description: "{{ doc('to_currency') }}"
|
||||
@ -132,10 +132,10 @@ models:
|
||||
column_type_list:
|
||||
- timestamp_ntz
|
||||
|
||||
- name: pool_ids
|
||||
description: "{{ doc('pool_ids')}}"
|
||||
- name: pool_ids
|
||||
description: "{{ doc('pool_ids') }}"
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- NUMBER
|
||||
- FLOAT
|
||||
- STRING
|
||||
- VARCHAR
|
||||
|
||||
Loading…
Reference in New Issue
Block a user