From b7333aa4551be8917c1908b1a354f8835dd545c2 Mon Sep 17 00:00:00 2001 From: Jack Forgash Date: Thu, 17 Aug 2023 18:02:11 -0600 Subject: [PATCH] upd docs --- macros/udfs/create_udtf_call_contract_block_height.yml | 5 ++++- macros/udfs/create_udtf_call_contract_finality.yml | 5 ++++- models/descriptions/__overview__.md | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/macros/udfs/create_udtf_call_contract_block_height.yml b/macros/udfs/create_udtf_call_contract_block_height.yml index b8a8167..03babb0 100644 --- a/macros/udfs/create_udtf_call_contract_block_height.yml +++ b/macros/udfs/create_udtf_call_contract_block_height.yml @@ -2,7 +2,10 @@ version: 2 macros: - name: create_UDTF_CALL_CONTRACT_FUNCTION_BY_HEIGHT - description: Creates the Snowflake function `UDTF_CALL_CONTRACT_FUNCTION` with a height parameter input + description: > + Creates the Snowflake function `UDTF_CALL_CONTRACT_FUNCTION` with a height parameter input to + call a contract method via the [public NEAR RPC endpoint](https://docs.near.org/api/rpc/setup), modeled after the official documentation, [here](https://docs.near.org/api/rpc/contracts#call-a-contract-function). + See examples on the main docs landing page. arguments: - name: CONTRACT_ADDRESS type: string diff --git a/macros/udfs/create_udtf_call_contract_finality.yml b/macros/udfs/create_udtf_call_contract_finality.yml index 3881831..cd8f77f 100644 --- a/macros/udfs/create_udtf_call_contract_finality.yml +++ b/macros/udfs/create_udtf_call_contract_finality.yml @@ -2,7 +2,10 @@ version: 2 macros: - name: create_UDTF_CALL_CONTRACT_FUNCTION - description: Creates the Snowflake function `UDTF_CALL_CONTRACT_FUNCTION` assuming `final` finality. See the documentation overview page for links to NEAR docs. + description: > + Creates the Snowflake function `UDTF_CALL_CONTRACT_FUNCTION` to + call a contract method via the [public NEAR RPC endpoint](https://docs.near.org/api/rpc/setup), modeled after the official documentation, [here](https://docs.near.org/api/rpc/contracts#call-a-contract-function). + See examples on the main docs landing page. arguments: - name: CONTRACT_ADDRESS type: string diff --git a/models/descriptions/__overview__.md b/models/descriptions/__overview__.md index 9181331..b330c14 100644 --- a/models/descriptions/__overview__.md +++ b/models/descriptions/__overview__.md @@ -54,7 +54,7 @@ There is more information on how to use dbt docs in the last section of this doc - [github_activity](https://github.com/forgxyz/developer_report_near) ### Custom Functions -- `NEAR`.`CORE`.`UDTF_CALL_CONTRACT_FUNCTION` +- [udtf_call_contract_function](#!/macro/macro.near.create_UDTF_CALL_CONTRACT_FUNCTION_BY_HEIGHT) Call a contract method via the [public NEAR RPC endpoint](https://docs.near.org/api/rpc/setup), modeled after the official documentation, [here](https://docs.near.org/api/rpc/contracts#call-a-contract-function).