You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/en/cookbook/near.mdx
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,13 @@ dataSources:
62
62
source:
63
63
account: app.good-morning.near # This data source will monitor this account
64
64
startBlock: 10662188# Required for NEAR
65
+
accounts:
66
+
prefixes:
67
+
- app
68
+
- good
69
+
suffixes:
70
+
- morning.near
71
+
- morning.testnet
65
72
mapping:
66
73
apiVersion: 0.0.5
67
74
language: wasm/assemblyscript
@@ -75,6 +82,10 @@ dataSources:
75
82
- NEAR subgraphs introduce a new `kind` of data source (`near`)
76
83
- The `network` should correspond to a network on the hosting Graph Node. On the Hosted Service, NEAR's mainnet is `near-mainnet`, and NEAR's testnet is `near-testnet`
77
84
- NEAR data sources introduce an optional `source.account` field, which is a human-readable ID corresponding to a [NEAR account](https://docs.near.org/docs/concepts/account). This can be an account or a sub-account.
85
+
- NEAR data sources introduce an optional `source.accounts` field, which contains optional suffixes and prefixes.
86
+
At least prefix or suffix must be specified, they will match the any account starting or ending with the list of values respectively.
87
+
For the provided example it would match: [app|good].*[morning.near|morning.testnet]. If only a list of prefixes or suffixes is necessary
0 commit comments