forked from duneanalytics/spellbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbt_project.yml
1364 lines (1177 loc) · 27.7 KB
/
dbt_project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#Welcome to your Spellbook!
name: "spellbook"
version: "1.0.0"
config-version: 2
quoting:
database: false
schema: false
identifier: false
# This setting configures which "profile" dbt uses for this project.
profile: "spellbook-local"
vars:
DBT_ENV_CUSTOM_ENV_S3_BUCKET: "{{ env_var('DBT_ENV_CUSTOM_ENV_S3_BUCKET', 'local') }}"
ETH_ERC20_ADDRESS: '0x0000000000000000000000000000000000000000'
# These configurations specify where dbt should look for different types of files.
# You don't need to change these!
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_packages"
# Configuring tests
# Full documentation: https://docs.getdbt.com/reference/test-configs
tests:
spellbook:
+store_failures: true # store failures for all tests
# Configureing seeds
# Full documentation: https://docs.getdbt.com/reference/seed-configs
# For configuring individual seeds (e.g. overriding column types) we recommend a yml file nested in the same folder as the seed
# example: seeds/cryptopunks/schema.yml
seeds:
spellbook:
+schema: test_data
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
models:
spellbook:
+post-hook:
- sql: "{{ set_trino_session_property(is_materialized(model), 'writer_scaling_min_data_processed', model.config.get('writer_min_size', '500MB')) }}"
transaction: true
- sql: "{{ set_trino_session_property(is_materialized(model), 'task_scale_writers_enabled', false) }}"
transaction: true
- sql: "{{ optimize_spell(this, model.config.materialized) }}"
transaction: true
- sql: "{{ mark_as_spell(this, model.config.materialized) }}"
transaction: true
+materialized: view
+schema: no_schema # this should be overriden in model specific configs
+view_security: invoker
aave:
+schema: aave
ethereum:
+schema: aave_ethereum
optimism:
+schema: aave_optimism
arbitrum:
+schema: aave_arbitrum
avalanche_c:
+schema: aave_avalanche_c
polygon:
+schema: aave_polygon
fantom:
+schema: aave_fantom
balancer:
+schema: balancer
arbitrum:
+schema: balancer_arbitrum
ethereum:
+schema: balancer_ethereum
polygon:
+schema: balancer_polygon
optimism:
+schema: balancer_optimism
gnosis:
+schema: balancer_gnosis
ens:
+schema: ens
ethereum:
+schema: ens_ethereum
euler:
+schema: euler
ethereum:
+schema: euler_ethereum
evms:
+schema: evms
staking:
+schema: staking
ethereum:
+schema: staking_ethereum
dex:
+schema: dex
ethereum:
+schema: dex_ethereum
optimism:
+schema: dex_optimism
arbitrum:
+schema: dex_arbitrum
avalanche_c:
+schema: dex_avalanche_c
bnb:
+schema: dex_bnb
gnosis:
+schema: dex_gnosis
fantom:
+schema: dex_fantom
airdrop:
+schema: airdrop
+materialized: table
ethereum:
+schema: airdrop_ethereum
optimism:
+schema: airdrop_optimism
arbitrum:
+schema: airdrop_arbitrum
avalanche_c:
+schema: airdrop_avalanche_c
bnb:
+schema: airdrop_bnb
gnosis:
+schema: airdrop_gnosis
giveth:
+schema: giveth
gnosis:
+schema: giveth_gnosis
ellipsis_finance:
+schema: ellipsis_finance
bnb:
+schema: ellipsis_finance_bnb
arbitrum:
+schema: arbitrum
arbitrum:
+schema: arbitrum_arbitrum
pangolin:
+schema: pangolin
avalanche_c:
+schema: pangolin_avalanche_c
ampleforth:
+schema: ampleforth
ethereum:
+schema: ampleforth_ethereum
velodrome:
+schema: velodrome
optimism:
+schema: velodrome_optimism
nft:
+schema: nft
arbitrum:
+schema: nft_arbitrum
avalanche_c:
+schema: nft_avalanche_c
bnb:
+schema: nft_bnb
ethereum:
+schema: nft_ethereum
metadata:
+schema: nft_ethereum_metadata
+materialized: table
+file_format: delta
+tags: "static"
gnosis:
+schema: nft_gnosis
optimism:
+schema: nft_optimism
polygon:
+schema: nft_polygon
fantom:
+schema: nft_fantom
goerli:
+schema: nft_goerli
base:
+schema: nft_base
cex:
+schema: cex
arbitrum:
+schema: cex_arbitrum
avalanche_c:
+schema: cex_avalanche_c
bnb:
+schema: cex_bnb
ethereum:
+schema: cex_ethereum
optimism:
+schema: cex_optimism
polygon:
+schema: cex_polygon
fantom:
+schema: cex_fantom
bitcoin:
+schema: cex_bitcoin
compound:
+schema: compound
ethereum:
+schema: compound_ethereum
gitcoin:
+schema: gitcoin
ethereum:
+schema: gitcoin_ethereum
polygon:
+schema: gitcoin_polygon
blur:
+schema: blur
ethereum:
+schema: blur_ethereum
looksrare:
+schema: looksrare
ethereum:
+schema: looksrare_ethereum
x2y2:
+schema: x2y2
ethereum:
+schema: x2y2_ethereum
xchange:
+schema: xchange
arbitrum:
+schema: xchange_arbitrum
ethereum:
+schema: xchange_ethereum
#optimism:
# +schema: xchange_optimism
polygon:
+schema: xchange_polygon
bnb:
+schema: xchange_bnb
uniswap:
+schema: uniswap
arbitrum:
+schema: uniswap_arbitrum
ethereum:
+schema: uniswap_ethereum
optimism:
+schema: uniswap_optimism
polygon:
+schema: uniswap_polygon
bnb:
+schema: uniswap_bnb
timeswap:
+schema: timeswap
ethereum:
+schema: timeswap_ethereum
arbitrum:
+schema: timeswap_arbitrum
polygon:
+schema: timeswap_polygon
quickswap:
+schema: quickswap
polygon:
+schema: quickswap_polygon
paraswap:
+schema: paraswap
ethereum:
+schema: paraswap_ethereum
avalanche_c:
+schema: paraswap_avalanche_c
fantom:
+schema: paraswap_fantom
arbitrum:
+schema: paraswap_arbitrum
bnb:
+schema: paraswap_bnb
ethereum:
+schema: paraswap_ethereum
optimism:
+schema: paraswap_optimism
polygon:
+schema: paraswap_polygon
nomiswap:
+schema: nomiswap
bnb:
+schema: nomiswap_bnb
zodiac:
+schema: zodiac
ethereum:
+schema: zodiac_ethereum
maverick:
+schema: maverick
ethereum:
+schema: maverick_ethereum
bnb:
+schema: maverick_bnb
daohaus:
+schema: daohaus
ethereum:
+schema: daohaus_ethereum
gnosis:
+schema: daohaus_gnosis
colony:
+schema: colony
gnosis:
+schema: colony_gnosis
sushiswap:
+schema: sushiswap
ethereum:
+schema: sushiswap_ethereum
avalanche_c:
+schema: sushiswap_avalanche_c
gnosis:
+schema: sushiswap_gnosis
arbitrum:
+schema: sushiswap_arbitrum
fantom:
+schema: sushiswap_fantom
optimism:
+schema: sushiswap_optimism
polygon:
+schema: sushiswap_polygon
bnb:
+schema: sushiswap_bnb
zerion:
+schema: zerion
arbitrum:
+schema: zerion_arbitrum
avalanche_c:
+schema: zerion_avalanche_c
bnb:
+schema: zerion_bnb
gnosis:
+schema: zerion_gnosis
optimism:
+schema: zerion_optimism
polygon:
+schema: zerion_polygon
fantom:
+schema: zerion_fantom
openocean:
+schema: openocean
fantom:
+schema: openocean_fantom
avalanche_c:
+schema: openocean_avalanche_c
syndicate:
+schema: syndicate
ethereum:
+schema: syndicate_ethereum
polygon:
+schema: syndicate_polygon
babyswap:
+schema: babyswap
bnb:
+schema: babyswap_bnb
oneplanet:
+schema: oneplanet
polygon:
+schema: oneplanet_polygon
opensea:
+schema: opensea
ethereum:
+schema: opensea_ethereum
polygon:
+schema: opensea_polygon
solana:
+schema: opensea_solana
optimism:
+schema: opensea_optimism
# abi:
# +schema: abi
gas:
+schema: gas
ethereum:
+schema: gas_ethereum
bnb:
+schema: gas_bnb
avalanche_c:
+schema: gas_avalanche_c
optimism:
+schema: gas_optimism
arbitrum:
+schema: gas_arbitrum
polygon:
+schema: gas_polygon
fantom:
+schema: gas_fantom
gnosis:
+schema: gas_gnosis
gmx:
+schema: gmx
arbitrum:
+schema: gmx_arbitrum
avalanche_c:
+schema: gmx_avalanche_c
tigris:
+schema: tigris
arbitrum:
+schema: tigris_arbitrum
polygon:
+schema: tigris_polygon
nomad:
+schema: nomad
ethereum:
+schema: nomad_ethereum
wigoswap:
+schema: wigoswap
fantom:
+schema: wigoswap_fantom
bend_dao:
+schema: bend_dao
ethereum:
+schema: bend_dao_ethereum
seaport:
+schema: seaport
ethereum:
+schema: seaport_ethereum
bnb:
+schema: seaport_bnb
arbitrum:
+schema: seaport_arbitrum
optimism:
+schema: seaport_optimism
avalanche_c:
+schema: seaport_avalanche_c
polygon:
+schema: seaport_polygon
balances:
+schema: balances
ethereum:
+schema: balances_ethereum
dodo:
+schema: dodo
ethereum:
+schema: dodo_ethereum
bnb:
+schema: dodo_bnb
polygon:
+schema: dodo_polygon
arbitrum:
+schema: dodo_arbitrum
optimism:
+schema: dodo_optimism
spookyswap:
+schema: spookyswap
fantom:
+schema: spookyswap_fantom
labels:
+schema: labels
+materialized: table
+file_format: delta
dao:
+schema: dao
addresses:
+schema: addresses
ethereum:
+schema: addresses_ethereum
optimism:
+schema: addresses_optimism
addresses_events:
+schema: addresses_events
arbitrum:
+schema: addresses_events_arbitrum
avalanche_c:
+schema: addresses_events_avalanche_c
bnb:
+schema: addresses_events_bnb
ethereum:
+schema: addresses_events_ethereum
fantom:
+schema: addresses_events_fantom
gnosis:
+schema: addresses_events_gnosis
optimism:
+schema: addresses_events_optimism
polygon:
+schema: addresses_events_polygon
addresses_events_testnets:
+schema: addresses_events_testnets
goerli:
+schema: addresses_events_testnets_goerli
aztec:
+schema: aztec
ethereum:
+schema: aztec_ethereum
tokens:
+schema: tokens
+materialized: table
+file_format: delta
ethereum:
+schema: tokens_ethereum
+materialized: table
+file_format: delta
optimism:
+schema: tokens_optimism
+materialized: table
+file_format: delta
avalanche_c:
+schema: tokens_avalanche_c
+materialized: table
+file_format: delta
bnb:
+schema: tokens_bnb
+materialized: table
+file_format: delta
gnosis:
+schema: tokens_gnosis
+materialized: table
+file_format: delta
arbitrum:
+schema: tokens_arbitrum
+materialized: table
+file_format: delta
polygon:
+schema: tokens_polygon
+materialized: table
+file_format: delta
fantom:
+schema: tokens_fantom
+materialized: table
+file_format: delta
solana:
+schema: tokens_solana
+materialized: table
+file_format: delta
base:
+schema: tokens_base
+materialized: table
+file_format: delta
solana_utils:
+schema: solana_utils
trader_joe:
+schema: trader_joe
avalanche_c:
+schema: trader_joe_avalanche_c
bnb:
+schema: trader_joe_bnb
odos:
+schema: odos
avalanche_c:
+schema: odos_avalanche_c
transfers:
+schema: transfers
ethereum:
+schema: transfers_ethereum
optimism:
+schema: transfers_optimism
bnb:
+schema: transfers_bnb
arbitrum:
+schema: transfers_arbitrum
polygon:
+schema: transfers_polygon
avalanche_c:
+schema: transfers_avalanche_c
fantom:
+schema: transfers_fantom
base:
+schema: transfers_base
sudoswap:
+schema: sudoswap
ethereum:
+schema: sudoswap_ethereum
equalizer_exchange:
+schema: equalizer_exchange
fantom:
+schema: equalizer_exchange_fantom
safe:
+schema: safe
ethereum:
+schema: safe_ethereum
optimism:
+schema: safe_optimism
gnosis:
+schema: safe_gnosis
polygon:
+schema: safe_polygon
bnb:
+schema: safe_bnb
avalanche_c:
+schema: safe_avalanche_c
fantom:
+schema: safe_fantom
arbitrum:
+schema: safe_arbitrum
lifi:
+schema: lifi
fantom:
+schema: lifi_fantom
astaria:
+schema: astaria
ethereum:
+schema: astaria_ethereum
aragon:
+schema: aragon
ethereum:
+schema: aragon_ethereum
gnosis:
+schema: aragon_gnosis
polygon:
+schema: aragon_polygon
base:
+schema: aragon_base
spiritswap:
+schema: spiritswap
fantom:
+schema: spiritswap_fantom
jarvis_network:
+schema: jarvis_network
polygon:
+schema: jarvis_network_polygon
cryptopunks:
+schema: cryptopunks
ethereum:
+schema: cryptopunks_ethereum
spaceid:
+schema: spaceid
bnb:
+schema: spaceid_bnb
spartacus_exchange:
+schema: spartacus_exchange
fantom:
+schema: spartacus_exchange_fantom
tornado_cash:
+schema: tornado_cash
arbitrum:
+schema: tornado_cash_arbitrum
avalanche_c:
+schema: tornado_cash_avalanche_c
bnb:
+schema: tornado_cash_bnb
ethereum:
+schema: tornado_cash_ethereum
gnosis:
+schema: tornado_cash_gnosis
optimism:
+schema: tornado_cash_optimism
polygon:
+schema: tornado_cash_polygon
perpetual:
+schema: perpetual
perpetual_protocol:
+schema: perpetual_protocol
optimism:
+schema: perpetual_protocol_optimism
pika:
+schema: pika
optimism:
+schema: pika_optimism
synthetix:
+schema: synthetix
optimism:
+schema: synthetix_optimism
synapse:
+schema: synapse
arbitrum:
+schema: synapse_arbitrum
avalanche_c:
+schema: synapse_avalanche_c
bnb:
+schema: synapse_bnb
ethereum:
+schema: synapse_ethereum
fantom:
+schema: synapse_fantom
optimism:
+schema: synapse_optimism
polygon:
+schema: synapse_polygon
fiat_dao:
+schema: fiat_dao
ethereum:
+schema: fiat_dao_ethereum
integral:
+schema: integral
arbitrum:
+schema: integral_arbitrum
ethereum:
+schema: integral_ethereum
equalizer:
+schema: equalizer
bnb:
+schema: equalizer_bnb
ethereum:
+schema: equalizer_ethereum
optimism:
+schema: equalizer_optimism
polygon:
+schema: equalizer_polygon
integration_test:
+schema: integration_test
curvefi:
+schema: curvefi
ethereum:
+schema: curvefi_ethereum
optimism:
+schema: curvefi_optimism
avalanche_c:
+schema: curvefi_avalanche_c
fantom:
+schema: curvefi_fantom
cow_protocol:
+schema: cow_protocol
ethereum:
+schema: cow_protocol_ethereum
gnosis:
+schema: cow_protocol_gnosis
ironbank:
+schema: ironbank
ethereum:
+schema: ironbank_ethereum
optimism:
+schema: ironbank_optimism
keep3r_network:
+schema: keep3r_network
ethereum:
+schema: keep3r_network_ethereum
airswap:
+schema: airswap
ethereum:
+schema: airswap_ethereum
apeswap:
+schema: apeswap
ethereum:
+schema: apeswap_ethereum
bnb:
+schema: apeswap_bnb
polygon:
+schema: apeswap_polygon
camelot:
+schema: camelot
arbitrum:
+schema: camelot_arbitrum
chainlink:
+schema: chainlink
arbitrum:
+schema: chainlink_arbitrum
avalanche_c:
+schema: chainlink_avalanche_c
bnb:
+schema: chainlink_bnb
ethereum:
+schema: chainlink_ethereum
fantom:
+schema: chainlink_fantom
gnosis:
+schema: chainlink_gnosis
optimism:
+schema: chainlink_optimism
polygon:
+schema: chainlink_polygon
contracts:
+schema: contracts
optimism:
+schema: contracts_optimism
bnb:
+schema: contracts_bnb
fantom:
+schema: contracts_fantom
clipper:
+schema: clipper
ethereum:
+schema: clipper_ethereum
arbitrum:
+schema: clipper_arbitrum
polygon:
+schema: clipper_polygon
optimism:
+schema: clipper_optimism
reaper:
+schema: reaper
optimism:
+schema: reaper_optimism
biswap:
+schema: biswap
bnb:
+schema: biswap_bnb
defiswap:
+schema: defiswap
ethereum:
+schema: defiswap_ethereum
mdex:
+schema: mdex
bnb:
+schema: mdex_bnb
swapr:
+schema: swapr
ethereum:
+schema: swapr_ethereum
dfx:
+schema: dfx
ethereum:
+schema: dfx_ethereum
yield_yak:
+schema: yield_yak
avalanche_c:
+schema: yield_yak_avalanche_c
shibaswap:
+schema: shibaswap
ethereum:
+schema: shibaswap_ethereum
zigzag:
+schema: zigzag
arbitrum:
+schema: zigzag_arbitrum
pancakeswap:
+schema: pancakeswap
bnb:
+schema: pancakeswap_bnb
ethereum:
+schema: pancakeswap_ethereum
arbitrum:
+schema: pancakeswap_arbitrum
bancor:
+schema: bancor
ethereum:
+schema: bancor_ethereum
carbon_defi:
+schema: carbon_defi
ethereum:
+schema: carbon_defi_ethereum
kyberswap:
+schema: kyberswap
avalanche_c:
+schema: kyberswap_avalanche_c
optimism:
+schema: kyberswap_optimism
ethereum:
+schema: kyberswap_ethereum
arbitrum:
+schema: kyberswap_arbitrum
hubble_exchange:
+schema: hubble_exchange
avalanche_c:
+schema: hubble_exchange_avalanche_c
fraxswap:
+schema: fraxswap
avalanche_c:
+schema: fraxswap_avalanche_c
bnb:
+schema: fraxswap_bnb
polygon:
+schema: fraxswap_polygon
ethereum:
+schema: fraxswap_ethereum
frax_finance:
+schema: frax_finance
+materialized: table
bnb:
+schema: frax_finance_bnb
+materialized: table
mstable:
+schema: mstable
ethereum:
+schema: mstable_ethereum
platypus_finance:
+schema: platypus_finance
avalanche_c:
+schema: platypus_finance_avalanche_c
emdx:
+schema: emdx
avalanche_c:
+schema: emdx_avalanche_c
woofi:
+schema: woofi
avalanche_c:
+schema: woofi_avalanche_c
bnb:
+schema: woofi_bnb
hashflow:
+schema: hashflow
ethereum:
+schema: hashflow_ethereum
avalanche_c:
+schema: hashflow_avalanche_c
bnb:
+schema: hashflow_bnb
nexusmutual:
+schema: nexusmutual
ethereum:
+schema: nexusmutual_ethereum
quix:
+schema: quix
optimism:
+schema: quix_optimism