version: 2
models:
  - name: defi__fact_swaps
    description: Records of all transactions that have occurred on Osmosis, dating back to the genesis block. The columns blockchain, chain_id, and tx_status will be deprecating soon. 
    columns:
      - name: BLOCK_ID
        description: "{{ doc('block_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: BLOCK_TIMESTAMP
        description: "{{ doc('block_timestamp') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: TX_ID
        description: "{{ doc('tx_id') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
      - name: TX_SUCCEEDED
        description: "{{ doc('tx_succeeded') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
      - name: TRADER
        description: "{{ doc('trader') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
      - name: FROM_AMOUNT
        description: "{{ doc('from_amount') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
      - name: FROM_CURRENCY
        description: "{{ doc('from_currency') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
      - name: FROM_DECIMAL
        description: "{{ doc('from_decimal') }}"
      - name: TO_AMOUNT
        description: "{{ doc('to_amount') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
      - name: TO_CURRENCY
        description: "{{ doc('to_currency') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
      - name: TO_DECIMAL
        description: "{{ doc('to_decimal') }}"
      - name: POOL_IDS
        description: "{{ doc('pool_id') }}"
        tests: 
          - dbt_expectations.expect_column_to_exist
