@typus/typus-sdk 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/lib/config.json +0 -189
- package/lib/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -82
- package/lib/src/_dependencies/source/0x1/ascii/structs.js +0 -280
- package/lib/src/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -50
- package/lib/src/_dependencies/source/0x1/bit-vector/structs.js +0 -193
- package/lib/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0x1/fixed-point32/structs.js +0 -167
- package/lib/src/_dependencies/source/0x1/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x1/index.js +0 -5
- package/lib/src/_dependencies/source/0x1/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x1/init.js +0 -41
- package/lib/src/_dependencies/source/0x1/option/structs.d.ts +0 -46
- package/lib/src/_dependencies/source/0x1/option/structs.js +0 -198
- package/lib/src/_dependencies/source/0x1/string/structs.d.ts +0 -44
- package/lib/src/_dependencies/source/0x1/string/structs.js +0 -191
- package/lib/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -48
- package/lib/src/_dependencies/source/0x1/type-name/structs.js +0 -168
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -5
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -39
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -277
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -377
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -102
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -353
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -65
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -175
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -65
- package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -175
- package/lib/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -442
- package/lib/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -565
- package/lib/src/_dependencies/source/0x2/bag/structs.d.ts +0 -56
- package/lib/src/_dependencies/source/0x2/bag/structs.js +0 -170
- package/lib/src/_dependencies/source/0x2/balance/structs.d.ts +0 -79
- package/lib/src/_dependencies/source/0x2/balance/structs.js +0 -260
- package/lib/src/_dependencies/source/0x2/bcs/structs.d.ts +0 -44
- package/lib/src/_dependencies/source/0x2/bcs/structs.js +0 -191
- package/lib/src/_dependencies/source/0x2/bls12381/structs.d.ts +0 -155
- package/lib/src/_dependencies/source/0x2/bls12381/structs.js +0 -434
- package/lib/src/_dependencies/source/0x2/borrow/structs.d.ts +0 -104
- package/lib/src/_dependencies/source/0x2/borrow/structs.js +0 -267
- package/lib/src/_dependencies/source/0x2/clock/structs.d.ts +0 -56
- package/lib/src/_dependencies/source/0x2/clock/structs.js +0 -170
- package/lib/src/_dependencies/source/0x2/coin/structs.d.ts +0 -379
- package/lib/src/_dependencies/source/0x2/coin/structs.js +0 -648
- package/lib/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -178
- package/lib/src/_dependencies/source/0x2/deny-list/structs.js +0 -290
- package/lib/src/_dependencies/source/0x2/display/structs.d.ts +0 -228
- package/lib/src/_dependencies/source/0x2/display/structs.js +0 -362
- package/lib/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -63
- package/lib/src/_dependencies/source/0x2/dynamic-field/structs.js +0 -174
- package/lib/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -42
- package/lib/src/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -172
- package/lib/src/_dependencies/source/0x2/groth16/structs.d.ts +0 -186
- package/lib/src/_dependencies/source/0x2/groth16/structs.js +0 -464
- package/lib/src/_dependencies/source/0x2/group-ops/structs.d.ts +0 -44
- package/lib/src/_dependencies/source/0x2/group-ops/structs.js +0 -193
- package/lib/src/_dependencies/source/0x2/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x2/index.js +0 -5
- package/lib/src/_dependencies/source/0x2/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x2/init.js +0 -150
- package/lib/src/_dependencies/source/0x2/kiosk/structs.d.ts +0 -565
- package/lib/src/_dependencies/source/0x2/kiosk/structs.js +0 -1033
- package/lib/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -112
- package/lib/src/_dependencies/source/0x2/kiosk-extension/structs.js +0 -263
- package/lib/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -144
- package/lib/src/_dependencies/source/0x2/linked-table/structs.js +0 -272
- package/lib/src/_dependencies/source/0x2/object/structs.d.ts +0 -83
- package/lib/src/_dependencies/source/0x2/object/structs.js +0 -256
- package/lib/src/_dependencies/source/0x2/object-bag/structs.d.ts +0 -56
- package/lib/src/_dependencies/source/0x2/object-bag/structs.js +0 -170
- package/lib/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -56
- package/lib/src/_dependencies/source/0x2/object-table/structs.js +0 -172
- package/lib/src/_dependencies/source/0x2/package/structs.d.ts +0 -262
- package/lib/src/_dependencies/source/0x2/package/structs.js +0 -478
- package/lib/src/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -101
- package/lib/src/_dependencies/source/0x2/priority-queue/structs.js +0 -292
- package/lib/src/_dependencies/source/0x2/random/structs.d.ts +0 -190
- package/lib/src/_dependencies/source/0x2/random/structs.js +0 -383
- package/lib/src/_dependencies/source/0x2/sui/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0x2/sui/structs.js +0 -167
- package/lib/src/_dependencies/source/0x2/table/structs.d.ts +0 -56
- package/lib/src/_dependencies/source/0x2/table/structs.js +0 -172
- package/lib/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -63
- package/lib/src/_dependencies/source/0x2/table-vec/structs.js +0 -194
- package/lib/src/_dependencies/source/0x2/token/structs.d.ts +0 -424
- package/lib/src/_dependencies/source/0x2/token/structs.js +0 -651
- package/lib/src/_dependencies/source/0x2/transfer/structs.d.ts +0 -52
- package/lib/src/_dependencies/source/0x2/transfer/structs.js +0 -172
- package/lib/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -345
- package/lib/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -665
- package/lib/src/_dependencies/source/0x2/tx-context/structs.d.ts +0 -68
- package/lib/src/_dependencies/source/0x2/tx-context/structs.js +0 -199
- package/lib/src/_dependencies/source/0x2/url/structs.d.ts +0 -48
- package/lib/src/_dependencies/source/0x2/url/structs.js +0 -168
- package/lib/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -101
- package/lib/src/_dependencies/source/0x2/vec-map/structs.js +0 -286
- package/lib/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -45
- package/lib/src/_dependencies/source/0x2/vec-set/structs.js +0 -196
- package/lib/src/_dependencies/source/0x2/versioned/structs.d.ts +0 -104
- package/lib/src/_dependencies/source/0x2/versioned/structs.js +0 -261
- package/lib/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -105
- package/lib/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -179
- package/lib/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -69
- package/lib/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -173
- package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -5
- package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -30
- package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -50
- package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -168
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -5
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -33
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -167
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -112
- package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -265
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -463
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -669
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -137
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -401
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -226
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -402
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -383
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -566
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -5
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -73
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -591
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -774
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +0 -152
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -272
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -138
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -276
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -261
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -471
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -306
- package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -563
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -598
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -789
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -5
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -61
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -85
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -258
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -433
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -562
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -63
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -194
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1006
- package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -1331
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1458
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -1706
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -5
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -129
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1201
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -1643
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1374
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -971
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -395
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -750
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -994
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -933
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -77
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -179
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -4562
- package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -3796
- package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -5
- package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -83
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -192
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -333
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -382
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -68
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -176
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -843
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -959
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -167
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -5
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -79
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -146
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -274
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +0 -2272
- package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -2830
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -719
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -711
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -5
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -43
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -81
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -200
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -53
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -171
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -115
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -212
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -50
- package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -168
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -5
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -36
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -79
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -256
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -85
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -258
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -169
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +0 -44
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +0 -191
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +0 -44
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +0 -191
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +0 -72
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +0 -193
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +0 -45
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +0 -196
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +0 -140
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +0 -348
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +0 -52
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +0 -168
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +0 -58
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +0 -195
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +0 -158
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +0 -298
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +0 -52
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +0 -168
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +0 -75
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +0 -196
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +0 -80
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +0 -174
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +0 -5
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +0 -90
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +0 -46
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +0 -168
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +0 -177
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +0 -438
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +0 -141
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +0 -297
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +0 -101
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +0 -283
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +0 -79
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +0 -256
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +0 -50
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +0 -168
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +0 -269
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +0 -303
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +0 -85
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +0 -258
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +0 -145
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +0 -372
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +0 -143
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +0 -349
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +0 -122
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +0 -209
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +0 -79
- package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +0 -256
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +0 -279
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +0 -295
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +0 -105
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +0 -260
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +0 -66
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +0 -170
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +0 -200
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +0 -259
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +0 -67
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +0 -196
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +0 -167
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +0 -71
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +0 -198
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +0 -45
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +0 -196
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +0 -47
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +0 -169
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +0 -2
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +0 -5
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +0 -2
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +0 -84
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +0 -46
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +0 -168
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +0 -84
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +0 -174
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +0 -153
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +0 -173
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +0 -44
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +0 -191
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +0 -351
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +0 -264
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +0 -167
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +0 -110
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +0 -288
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +0 -75
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +0 -192
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +0 -167
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +0 -72
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +0 -172
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +0 -41
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +0 -167
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +0 -47
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +0 -169
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +0 -50
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +0 -168
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +0 -269
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +0 -363
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +0 -79
- package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +0 -256
- package/lib/src/_framework/init-source.d.ts +0 -1
- package/lib/src/_framework/init-source.js +0 -64
- package/lib/src/_framework/loader.d.ts +0 -17
- package/lib/src/_framework/loader.js +0 -99
- package/lib/src/_framework/reified.d.ts +0 -100
- package/lib/src/_framework/reified.js +0 -263
- package/lib/src/_framework/util.d.ts +0 -53
- package/lib/src/_framework/util.js +0 -251
- package/lib/src/airdrop/authority-entry.d.ts +0 -22
- package/lib/src/airdrop/authority-entry.js +0 -137
- package/lib/src/airdrop/index.d.ts +0 -3
- package/lib/src/airdrop/index.js +0 -19
- package/lib/src/airdrop/user-entry.d.ts +0 -10
- package/lib/src/airdrop/user-entry.js +0 -16
- package/lib/src/airdrop/view-function.d.ts +0 -9
- package/lib/src/airdrop/view-function.js +0 -73
- package/lib/src/auto-bid/index.d.ts +0 -2
- package/lib/src/auto-bid/index.js +0 -18
- package/lib/src/auto-bid/user-entry.d.ts +0 -45
- package/lib/src/auto-bid/user-entry.js +0 -203
- package/lib/src/auto-bid/view-function.d.ts +0 -43
- package/lib/src/auto-bid/view-function.js +0 -347
- package/lib/src/constants/constant.d.ts +0 -22
- package/lib/src/constants/constant.js +0 -29
- package/lib/src/constants/index.d.ts +0 -2
- package/lib/src/constants/index.js +0 -18
- package/lib/src/constants/token.d.ts +0 -51
- package/lib/src/constants/token.js +0 -178
- package/lib/src/index.d.ts +0 -11
- package/lib/src/index.js +0 -27
- package/lib/src/leaderboard/authority-entry.d.ts +0 -22
- package/lib/src/leaderboard/authority-entry.js +0 -90
- package/lib/src/leaderboard/index.d.ts +0 -2
- package/lib/src/leaderboard/index.js +0 -18
- package/lib/src/leaderboard/view-function.d.ts +0 -20
- package/lib/src/leaderboard/view-function.js +0 -93
- package/lib/src/tails-exp-dice/api.d.ts +0 -1
- package/lib/src/tails-exp-dice/api.js +0 -76
- package/lib/src/tails-exp-dice/fetch.d.ts +0 -81
- package/lib/src/tails-exp-dice/fetch.js +0 -346
- package/lib/src/tails-exp-dice/index.d.ts +0 -4
- package/lib/src/tails-exp-dice/index.js +0 -20
- package/lib/src/tails-exp-dice/user-entry.d.ts +0 -70
- package/lib/src/tails-exp-dice/user-entry.js +0 -249
- package/lib/src/tails-exp-dice/view-function.d.ts +0 -8
- package/lib/src/tails-exp-dice/view-function.js +0 -130
- package/lib/src/tails-staking/authority-entry.d.ts +0 -182
- package/lib/src/tails-staking/authority-entry.js +0 -247
- package/lib/src/tails-staking/index.d.ts +0 -3
- package/lib/src/tails-staking/index.js +0 -19
- package/lib/src/tails-staking/user-entry.d.ts +0 -157
- package/lib/src/tails-staking/user-entry.js +0 -416
- package/lib/src/tails-staking/view-function.d.ts +0 -20
- package/lib/src/tails-staking/view-function.js +0 -122
- package/lib/src/typus-dov-single-v2/entry/authority-entry.d.ts +0 -70
- package/lib/src/typus-dov-single-v2/entry/authority-entry.js +0 -167
- package/lib/src/typus-dov-single-v2/entry/index.d.ts +0 -3
- package/lib/src/typus-dov-single-v2/entry/index.js +0 -19
- package/lib/src/typus-dov-single-v2/entry/mfud-user-entry.d.ts +0 -126
- package/lib/src/typus-dov-single-v2/entry/mfud-user-entry.js +0 -425
- package/lib/src/typus-dov-single-v2/entry/user-entry.d.ts +0 -212
- package/lib/src/typus-dov-single-v2/entry/user-entry.js +0 -448
- package/lib/src/typus-dov-single-v2/function/bidding.d.ts +0 -151
- package/lib/src/typus-dov-single-v2/function/bidding.js +0 -833
- package/lib/src/typus-dov-single-v2/function/index.d.ts +0 -3
- package/lib/src/typus-dov-single-v2/function/index.js +0 -19
- package/lib/src/typus-dov-single-v2/function/token.d.ts +0 -21
- package/lib/src/typus-dov-single-v2/function/token.js +0 -38
- package/lib/src/typus-dov-single-v2/function/vault.d.ts +0 -8
- package/lib/src/typus-dov-single-v2/function/vault.js +0 -23
- package/lib/src/typus-dov-single-v2/history/index.d.ts +0 -2
- package/lib/src/typus-dov-single-v2/history/index.js +0 -18
- package/lib/src/typus-dov-single-v2/history/user-history.d.ts +0 -36
- package/lib/src/typus-dov-single-v2/history/user-history.js +0 -999
- package/lib/src/typus-dov-single-v2/history/vault-history.d.ts +0 -123
- package/lib/src/typus-dov-single-v2/history/vault-history.js +0 -403
- package/lib/src/typus-dov-single-v2/index.d.ts +0 -4
- package/lib/src/typus-dov-single-v2/index.js +0 -20
- package/lib/src/typus-dov-single-v2/view-function.d.ts +0 -212
- package/lib/src/typus-dov-single-v2/view-function.js +0 -578
- package/lib/src/typus-nft/fetch.d.ts +0 -69
- package/lib/src/typus-nft/fetch.js +0 -565
- package/lib/src/typus-nft/index.d.ts +0 -2
- package/lib/src/typus-nft/index.js +0 -18
- package/lib/src/typus-nft/user-entry.d.ts +0 -38
- package/lib/src/typus-nft/user-entry.js +0 -173
- package/lib/src/typus-perp/admin/functions.d.ts +0 -51
- package/lib/src/typus-perp/admin/functions.js +0 -100
- package/lib/src/typus-perp/admin/structs.d.ts +0 -425
- package/lib/src/typus-perp/admin/structs.js +0 -802
- package/lib/src/typus-perp/fetch.d.ts +0 -57
- package/lib/src/typus-perp/fetch.js +0 -400
- package/lib/src/typus-perp/index.d.ts +0 -3
- package/lib/src/typus-perp/index.js +0 -14
- package/lib/src/typus-perp/init.d.ts +0 -2
- package/lib/src/typus-perp/init.js +0 -120
- package/lib/src/typus-perp/lp-pool/functions.d.ts +0 -283
- package/lib/src/typus-perp/lp-pool/functions.js +0 -418
- package/lib/src/typus-perp/lp-pool/structs.d.ts +0 -2538
- package/lib/src/typus-perp/lp-pool/structs.js +0 -3515
- package/lib/src/typus-perp/math/functions.d.ts +0 -18
- package/lib/src/typus-perp/math/functions.js +0 -40
- package/lib/src/typus-perp/oracle/functions.d.ts +0 -14
- package/lib/src/typus-perp/oracle/functions.js +0 -22
- package/lib/src/typus-perp/oracle/structs.d.ts +0 -102
- package/lib/src/typus-perp/oracle/structs.js +0 -353
- package/lib/src/typus-perp/position/functions.d.ts +0 -339
- package/lib/src/typus-perp/position/functions.js +0 -564
- package/lib/src/typus-perp/position/structs.d.ts +0 -1144
- package/lib/src/typus-perp/position/structs.js +0 -1485
- package/lib/src/typus-perp/readVec.d.ts +0 -3
- package/lib/src/typus-perp/readVec.js +0 -117
- package/lib/src/typus-perp/stake-pool/functions.d.ts +0 -169
- package/lib/src/typus-perp/stake-pool/functions.js +0 -258
- package/lib/src/typus-perp/stake-pool/structs.d.ts +0 -2071
- package/lib/src/typus-perp/stake-pool/structs.js +0 -3515
- package/lib/src/typus-perp/symbol/functions.d.ts +0 -10
- package/lib/src/typus-perp/symbol/functions.js +0 -20
- package/lib/src/typus-perp/symbol/structs.d.ts +0 -76
- package/lib/src/typus-perp/symbol/structs.js +0 -216
- package/lib/src/typus-perp/tlp/functions.d.ts +0 -20
- package/lib/src/typus-perp/tlp/functions.js +0 -35
- package/lib/src/typus-perp/tlp/structs.d.ts +0 -88
- package/lib/src/typus-perp/tlp/structs.js +0 -329
- package/lib/src/typus-perp/token-interface/functions.d.ts +0 -12
- package/lib/src/typus-perp/token-interface/functions.js +0 -20
- package/lib/src/typus-perp/trading/functions.d.ts +0 -427
- package/lib/src/typus-perp/trading/functions.js +0 -612
- package/lib/src/typus-perp/trading/structs.d.ts +0 -2631
- package/lib/src/typus-perp/trading/structs.js +0 -4067
- package/lib/src/typus-perp/treasury-caps/functions.d.ts +0 -10
- package/lib/src/typus-perp/treasury-caps/functions.js +0 -32
- package/lib/src/typus-perp/treasury-caps/structs.d.ts +0 -50
- package/lib/src/typus-perp/treasury-caps/structs.js +0 -204
- package/lib/src/typus-perp/user/order.d.ts +0 -70
- package/lib/src/typus-perp/user/order.js +0 -206
- package/lib/src/typus-perp/user/orderWithBidReceipt.d.ts +0 -62
- package/lib/src/typus-perp/user/orderWithBidReceipt.js +0 -149
- package/lib/src/typus-perp/user/tlp.d.ts +0 -93
- package/lib/src/typus-perp/user/tlp.js +0 -268
- package/lib/src/user/index.d.ts +0 -1
- package/lib/src/user/index.js +0 -17
- package/lib/src/user/view-function.d.ts +0 -8
- package/lib/src/user/view-function.js +0 -71
- package/lib/src/utils/api/defillama/index.d.ts +0 -1
- package/lib/src/utils/api/defillama/index.js +0 -17
- package/lib/src/utils/api/defillama/tvl.d.ts +0 -1
- package/lib/src/utils/api/defillama/tvl.js +0 -58
- package/lib/src/utils/api/index.d.ts +0 -3
- package/lib/src/utils/api/index.js +0 -19
- package/lib/src/utils/api/price.d.ts +0 -4
- package/lib/src/utils/api/price.js +0 -208
- package/lib/src/utils/api/sentio/index.d.ts +0 -2
- package/lib/src/utils/api/sentio/index.js +0 -18
- package/lib/src/utils/api/sentio/leader-board.d.ts +0 -7
- package/lib/src/utils/api/sentio/leader-board.js +0 -103
- package/lib/src/utils/api/sentio/reward-generated.d.ts +0 -16
- package/lib/src/utils/api/sentio/reward-generated.js +0 -511
- package/lib/src/utils/index.d.ts +0 -5
- package/lib/src/utils/index.js +0 -21
- package/lib/src/utils/load_env.d.ts +0 -1
- package/lib/src/utils/load_env.js +0 -9
- package/lib/src/utils/mint.d.ts +0 -2
- package/lib/src/utils/mint.js +0 -57
- package/lib/src/utils/pyth/constant.d.ts +0 -49
- package/lib/src/utils/pyth/constant.js +0 -70
- package/lib/src/utils/pyth/index.d.ts +0 -2
- package/lib/src/utils/pyth/index.js +0 -18
- package/lib/src/utils/pyth/pythClient.d.ts +0 -12
- package/lib/src/utils/pyth/pythClient.js +0 -80
- package/lib/src/utils/tools.d.ts +0 -6
- package/lib/src/utils/tools.js +0 -45
|
@@ -1,999 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
39
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
40
|
-
if (!m) return o;
|
|
41
|
-
var i = m.call(o), r, ar = [], e;
|
|
42
|
-
try {
|
|
43
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
44
|
-
}
|
|
45
|
-
catch (error) { e = { error: error }; }
|
|
46
|
-
finally {
|
|
47
|
-
try {
|
|
48
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
49
|
-
}
|
|
50
|
-
finally { if (e) throw e.error; }
|
|
51
|
-
}
|
|
52
|
-
return ar;
|
|
53
|
-
};
|
|
54
|
-
var __values = (this && this.__values) || function(o) {
|
|
55
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
56
|
-
if (m) return m.call(o);
|
|
57
|
-
if (o && typeof o.length === "number") return {
|
|
58
|
-
next: function () {
|
|
59
|
-
if (o && i >= o.length) o = void 0;
|
|
60
|
-
return { value: o && o[i++], done: !o };
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
64
|
-
};
|
|
65
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
66
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
67
|
-
};
|
|
68
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
69
|
-
exports.getUserEvents = getUserEvents;
|
|
70
|
-
exports.getAutoBidEvents = getAutoBidEvents;
|
|
71
|
-
exports.parseTxHistory = parseTxHistory;
|
|
72
|
-
exports.getFromSentio = getFromSentio;
|
|
73
|
-
exports.getNewBidFromSentio = getNewBidFromSentio;
|
|
74
|
-
exports.getExerciseFromSentio = getExerciseFromSentio;
|
|
75
|
-
exports.getDepositorCashFlows = getDepositorCashFlows;
|
|
76
|
-
var token_1 = require("src/constants/token");
|
|
77
|
-
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
78
|
-
function getUserEvents(provider, sender, cursor) {
|
|
79
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
80
|
-
var senderFilter, hasNextPage, datas, result;
|
|
81
|
-
return __generator(this, function (_a) {
|
|
82
|
-
switch (_a.label) {
|
|
83
|
-
case 0:
|
|
84
|
-
senderFilter = {
|
|
85
|
-
Sender: sender,
|
|
86
|
-
};
|
|
87
|
-
hasNextPage = true;
|
|
88
|
-
datas = [];
|
|
89
|
-
_a.label = 1;
|
|
90
|
-
case 1:
|
|
91
|
-
if (!hasNextPage) return [3 /*break*/, 3];
|
|
92
|
-
return [4 /*yield*/, provider.queryEvents({
|
|
93
|
-
query: senderFilter,
|
|
94
|
-
order: "ascending",
|
|
95
|
-
cursor: cursor,
|
|
96
|
-
})];
|
|
97
|
-
case 2:
|
|
98
|
-
result = _a.sent();
|
|
99
|
-
// console.log(result);
|
|
100
|
-
hasNextPage = result.hasNextPage;
|
|
101
|
-
cursor = result.nextCursor;
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
datas = datas.concat(result.data);
|
|
104
|
-
return [3 /*break*/, 1];
|
|
105
|
-
case 3: return [2 /*return*/, [datas, cursor]];
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function getAutoBidEvents(provider, originPackage, startTimeMs) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
-
var moduleFilter, hasNextPage, cursor, datas, result;
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
switch (_a.label) {
|
|
115
|
-
case 0:
|
|
116
|
-
moduleFilter = {
|
|
117
|
-
MoveModule: { package: originPackage, module: "auto_bid" },
|
|
118
|
-
};
|
|
119
|
-
hasNextPage = true;
|
|
120
|
-
cursor = undefined;
|
|
121
|
-
datas = [];
|
|
122
|
-
_a.label = 1;
|
|
123
|
-
case 1:
|
|
124
|
-
if (!hasNextPage) return [3 /*break*/, 3];
|
|
125
|
-
return [4 /*yield*/, provider.queryEvents({
|
|
126
|
-
query: moduleFilter,
|
|
127
|
-
order: "descending",
|
|
128
|
-
cursor: cursor,
|
|
129
|
-
})];
|
|
130
|
-
case 2:
|
|
131
|
-
result = _a.sent();
|
|
132
|
-
// console.log(result);
|
|
133
|
-
hasNextPage = result.hasNextPage;
|
|
134
|
-
cursor = result.nextCursor;
|
|
135
|
-
// @ts-ignore
|
|
136
|
-
datas = datas.concat(result.data);
|
|
137
|
-
if (hasNextPage && Number(result.data[result.data.length - 1].timestampMs) < startTimeMs) {
|
|
138
|
-
return [3 /*break*/, 3];
|
|
139
|
-
}
|
|
140
|
-
return [3 /*break*/, 1];
|
|
141
|
-
case 3: return [2 /*return*/, datas];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
function parseTxHistory(datas, originPackage, vaults) {
|
|
147
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
var results;
|
|
149
|
-
var _this = this;
|
|
150
|
-
return __generator(this, function (_a) {
|
|
151
|
-
switch (_a.label) {
|
|
152
|
-
case 0: return [4 /*yield*/, datas
|
|
153
|
-
.filter(function (event) {
|
|
154
|
-
var type = event.type;
|
|
155
|
-
return (event.packageId == originPackage ||
|
|
156
|
-
type.includes("typus_nft::First") ||
|
|
157
|
-
type.includes("typus_nft::ExpUpEvent") ||
|
|
158
|
-
type.includes("tails_staking"));
|
|
159
|
-
})
|
|
160
|
-
.sort(function (a, b) {
|
|
161
|
-
// From Old to New!
|
|
162
|
-
if (a.timestampMs == b.timestampMs) {
|
|
163
|
-
return Number(a.id.eventSeq) - Number(b.id.eventSeq);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return Number(a.timestampMs) - Number(b.timestampMs);
|
|
167
|
-
}
|
|
168
|
-
})
|
|
169
|
-
.reduce(function (promise, event) { return __awaiter(_this, void 0, void 0, function () {
|
|
170
|
-
var txHistory, functionType, action, Action, Amount, Index, Period, Vault, RiskLevel, Tails, Exp, d_token, b_token, o_token, token, amount, i, i, i, token, amount, token, amount, amount, token, amount, token, amount, token, amount, b_token_name, b_token_amount, i_token_name, i_token_amount, token, amount, token, amount, deposit_amount, deposit_amount, balance, balance, profit, profit, token, amount, amount, token, amount, size, token, amount, token, amount, size, bidder_balance;
|
|
171
|
-
var _a, _b, _c;
|
|
172
|
-
var _d;
|
|
173
|
-
return __generator(this, function (_e) {
|
|
174
|
-
switch (_e.label) {
|
|
175
|
-
case 0: return [4 /*yield*/, promise];
|
|
176
|
-
case 1:
|
|
177
|
-
txHistory = _e.sent();
|
|
178
|
-
functionType = (_d = new RegExp("^([^::]+)::([^::]+)::([^<]+)").exec(event.type)) === null || _d === void 0 ? void 0 : _d.slice(1, 4);
|
|
179
|
-
action = functionType[2];
|
|
180
|
-
Tails = undefined;
|
|
181
|
-
Index = event.parsedJson.index || event.parsedJson.vault_index;
|
|
182
|
-
if (Index) {
|
|
183
|
-
_a = __read(parseVaultInfo(vaults, Index, action, event.parsedJson.log), 6), Period = _a[0], Vault = _a[1], RiskLevel = _a[2], d_token = _a[3], b_token = _a[4], o_token = _a[5];
|
|
184
|
-
}
|
|
185
|
-
switch (action) {
|
|
186
|
-
// new version events
|
|
187
|
-
case "StakeTailsEvent":
|
|
188
|
-
Action = "Stake";
|
|
189
|
-
Amount = "0.05 SUI";
|
|
190
|
-
Tails = "#".concat(event.parsedJson.log[0]);
|
|
191
|
-
break;
|
|
192
|
-
case "UnstakeTailsEvent":
|
|
193
|
-
Action = "Unstake";
|
|
194
|
-
Tails = "#".concat(event.parsedJson.log[0]);
|
|
195
|
-
break;
|
|
196
|
-
case "DailySignUpEvent":
|
|
197
|
-
Action = "Check In";
|
|
198
|
-
Tails = event.parsedJson.tails.map(function (num) { return "#".concat(num); }).join(" ");
|
|
199
|
-
Exp = event.parsedJson.log[0];
|
|
200
|
-
break;
|
|
201
|
-
case "TransferTailsEvent":
|
|
202
|
-
Action = "Transfer";
|
|
203
|
-
Amount = "0.01 SUI";
|
|
204
|
-
Tails = "#".concat(event.parsedJson.log[0]);
|
|
205
|
-
break;
|
|
206
|
-
case "ExpUpEvent":
|
|
207
|
-
if (event.parsedJson.log) {
|
|
208
|
-
Action = "Train Tail";
|
|
209
|
-
Tails = "#".concat(event.parsedJson.log[0]);
|
|
210
|
-
Exp = event.parsedJson.log[1];
|
|
211
|
-
if (Number(Exp) == 0) {
|
|
212
|
-
return [2 /*return*/, txHistory];
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
break;
|
|
216
|
-
case "LevelUpEvent":
|
|
217
|
-
if (event.parsedJson.log) {
|
|
218
|
-
Action = "Level Up to Level ".concat(event.parsedJson.log[1]);
|
|
219
|
-
Tails = "#".concat(event.parsedJson.log[0]);
|
|
220
|
-
}
|
|
221
|
-
break;
|
|
222
|
-
case "ClaimProfitSharingEvent":
|
|
223
|
-
if (event.parsedJson.profit_asset) {
|
|
224
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.profit_asset.name);
|
|
225
|
-
amount = Number(event.parsedJson.log[0]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
226
|
-
Action = "Harvest Dice Profit";
|
|
227
|
-
Tails = event.parsedJson.tails.map(function (num) { return "#".concat(num); }).join(" ");
|
|
228
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
229
|
-
}
|
|
230
|
-
break;
|
|
231
|
-
// old version events
|
|
232
|
-
case "StakeNftEvent":
|
|
233
|
-
Action = "Stake";
|
|
234
|
-
Amount = "0.05 SUI";
|
|
235
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
236
|
-
break;
|
|
237
|
-
case "UnstakeNftEvent":
|
|
238
|
-
Action = "Unstake";
|
|
239
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
240
|
-
break;
|
|
241
|
-
case "ExpUpEvent":
|
|
242
|
-
i = txHistory.findIndex(function (x) { return x.txDigest == event.id.txDigest && x.Action != "First Deposit" && x.Action != "Stake"; });
|
|
243
|
-
if (i != -1 && txHistory[i].Tails == undefined) {
|
|
244
|
-
txHistory[i].Tails = "#".concat(event.parsedJson.number);
|
|
245
|
-
txHistory[i].Exp = event.parsedJson.exp_earn;
|
|
246
|
-
return [2 /*return*/, txHistory];
|
|
247
|
-
}
|
|
248
|
-
else if (event.id.eventSeq == 0) {
|
|
249
|
-
Action = "Collect EXP";
|
|
250
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
251
|
-
Exp = event.parsedJson.exp_earn;
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
return [2 /*return*/, txHistory];
|
|
255
|
-
}
|
|
256
|
-
break;
|
|
257
|
-
case "TransferNftEvent":
|
|
258
|
-
Action = "Transfer";
|
|
259
|
-
Amount = "0.01 SUI";
|
|
260
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
261
|
-
break;
|
|
262
|
-
case "DailyAttendEvent":
|
|
263
|
-
i = txHistory.findIndex(function (x) { return x.txDigest == event.id.txDigest && x.Action == "Collect EXP"; });
|
|
264
|
-
if (i != -1) {
|
|
265
|
-
txHistory[i].Action = "Check In";
|
|
266
|
-
return [2 /*return*/, txHistory];
|
|
267
|
-
}
|
|
268
|
-
break;
|
|
269
|
-
case "FirstDepositEvent":
|
|
270
|
-
Action = "First Deposit";
|
|
271
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
272
|
-
Exp = event.parsedJson.exp_earn;
|
|
273
|
-
break;
|
|
274
|
-
case "FirstBidEvent":
|
|
275
|
-
Action = "First Bid";
|
|
276
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
277
|
-
Exp = event.parsedJson.exp_earn;
|
|
278
|
-
break;
|
|
279
|
-
case "LevelUpEvent":
|
|
280
|
-
Action = "Level Up to Level ".concat(event.parsedJson.level);
|
|
281
|
-
if (event.parsedJson.number) {
|
|
282
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
return [2 /*return*/, txHistory];
|
|
287
|
-
}
|
|
288
|
-
case "DepositEvent":
|
|
289
|
-
case "WithdrawEvent":
|
|
290
|
-
case "UnsubscribeEvent":
|
|
291
|
-
case "ClaimEvent":
|
|
292
|
-
case "CompoundEvent":
|
|
293
|
-
case "HarvestEvent":
|
|
294
|
-
i = txHistory.findIndex(function (x) { return x.txDigest == event.id.txDigest && x.Action == "Collect EXP"; });
|
|
295
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
296
|
-
amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
|
|
297
|
-
Action = action.slice(0, action.length - 5);
|
|
298
|
-
if (Action == "Harvest") {
|
|
299
|
-
Action = "Harvest Reward";
|
|
300
|
-
}
|
|
301
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
302
|
-
Index = Index;
|
|
303
|
-
if (i != -1) {
|
|
304
|
-
txHistory[i].Action = Action;
|
|
305
|
-
txHistory[i].Amount = Amount;
|
|
306
|
-
txHistory[i].Vault = Vault;
|
|
307
|
-
txHistory[i].RiskLevel = RiskLevel;
|
|
308
|
-
txHistory[i].Index = Index;
|
|
309
|
-
return [2 /*return*/, txHistory];
|
|
310
|
-
}
|
|
311
|
-
break;
|
|
312
|
-
case "RaiseFundEvent":
|
|
313
|
-
Index = event.parsedJson.log[0];
|
|
314
|
-
_b = __read(parseVaultInfo(vaults, Index, action, event.parsedJson.log), 6), Period = _b[0], Vault = _b[1], RiskLevel = _b[2], d_token = _b[3], b_token = _b[4], o_token = _b[5];
|
|
315
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
316
|
-
if (event.parsedJson.log[4] > 0) {
|
|
317
|
-
// deposit
|
|
318
|
-
Action = "Deposit";
|
|
319
|
-
amount = Number(event.parsedJson.log[4]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
320
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
321
|
-
}
|
|
322
|
-
else if (event.parsedJson.log[5] > 0) {
|
|
323
|
-
// compound
|
|
324
|
-
Action = "Compound";
|
|
325
|
-
amount = Number(event.parsedJson.log[5]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
326
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
327
|
-
}
|
|
328
|
-
break;
|
|
329
|
-
case "ReduceFundEvent":
|
|
330
|
-
Index = event.parsedJson.log[0];
|
|
331
|
-
_c = __read(parseVaultInfo(vaults, Index, action, event.parsedJson.log), 6), Period = _c[0], Vault = _c[1], RiskLevel = _c[2], d_token = _c[3], b_token = _c[4], o_token = _c[5];
|
|
332
|
-
if (event.parsedJson.log[4] > 0) {
|
|
333
|
-
// withdraw
|
|
334
|
-
Action = "Withdraw";
|
|
335
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.d_token.name);
|
|
336
|
-
amount = Number(event.parsedJson.log[4]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
337
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
338
|
-
txHistory.push({
|
|
339
|
-
Index: Index,
|
|
340
|
-
Period: Period,
|
|
341
|
-
Action: Action,
|
|
342
|
-
Amount: Amount,
|
|
343
|
-
Vault: Vault,
|
|
344
|
-
RiskLevel: RiskLevel,
|
|
345
|
-
Tails: Tails,
|
|
346
|
-
Exp: Exp,
|
|
347
|
-
Date: new Date(Number(event.timestampMs)),
|
|
348
|
-
txDigest: event.id.txDigest,
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
if (event.parsedJson.log[5] > 0) {
|
|
352
|
-
// unsubscribe
|
|
353
|
-
Action = "Unsubscribe";
|
|
354
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.d_token.name);
|
|
355
|
-
amount = Number(event.parsedJson.log[5]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
356
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
357
|
-
txHistory.push({
|
|
358
|
-
Index: Index,
|
|
359
|
-
Period: Period,
|
|
360
|
-
Action: Action,
|
|
361
|
-
Amount: Amount,
|
|
362
|
-
Vault: Vault,
|
|
363
|
-
RiskLevel: RiskLevel,
|
|
364
|
-
Tails: Tails,
|
|
365
|
-
Exp: Exp,
|
|
366
|
-
Date: new Date(Number(event.timestampMs)),
|
|
367
|
-
txDigest: event.id.txDigest,
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
if (event.parsedJson.log[9] > 0) {
|
|
371
|
-
// claim
|
|
372
|
-
Action = "Claim";
|
|
373
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.d_token.name);
|
|
374
|
-
amount = Number(event.parsedJson.log[9]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
375
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
376
|
-
txHistory.push({
|
|
377
|
-
Index: Index,
|
|
378
|
-
Period: Period,
|
|
379
|
-
Action: Action,
|
|
380
|
-
Amount: Amount,
|
|
381
|
-
Vault: Vault,
|
|
382
|
-
RiskLevel: RiskLevel,
|
|
383
|
-
Tails: Tails,
|
|
384
|
-
Exp: Exp,
|
|
385
|
-
Date: new Date(Number(event.timestampMs)),
|
|
386
|
-
txDigest: event.id.txDigest,
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
if (event.parsedJson.log[6] > 0 && event.parsedJson.log[10] > 0) {
|
|
390
|
-
// Harvest d token and i token
|
|
391
|
-
Action = "Harvest Reward";
|
|
392
|
-
b_token_name = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.b_token.name);
|
|
393
|
-
b_token_amount = Number(event.parsedJson.log[6]) / Math.pow(10, (0, token_1.assetToDecimal)(b_token_name));
|
|
394
|
-
i_token_name = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.i_token.name);
|
|
395
|
-
i_token_amount = Number(event.parsedJson.log[10]) / Math.pow(10, (0, token_1.assetToDecimal)(i_token_name));
|
|
396
|
-
Amount = "".concat((0, bignumber_js_1.default)(b_token_amount).toFixed(), " ").concat(b_token_name, "\n").concat((0, bignumber_js_1.default)(i_token_amount).toFixed(), " ").concat(i_token_name);
|
|
397
|
-
// var amount =
|
|
398
|
-
// Number(event.parsedJson!.log[6]) / 10 ** assetToDecimal(token)!
|
|
399
|
-
// Number(event.parsedJson!.log[10]) / 10 ** assetToDecimal(token)!;
|
|
400
|
-
// Amount = `${BigNumber(amount).toFixed()} ${token}`;
|
|
401
|
-
txHistory.push({
|
|
402
|
-
Index: Index,
|
|
403
|
-
Period: Period,
|
|
404
|
-
Action: Action,
|
|
405
|
-
Amount: Amount,
|
|
406
|
-
Vault: Vault,
|
|
407
|
-
RiskLevel: RiskLevel,
|
|
408
|
-
Tails: Tails,
|
|
409
|
-
Exp: Exp,
|
|
410
|
-
Date: new Date(Number(event.timestampMs)),
|
|
411
|
-
txDigest: event.id.txDigest,
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
if (event.parsedJson.log[6] > 0) {
|
|
416
|
-
// harvest
|
|
417
|
-
Action = "Harvest Reward";
|
|
418
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.b_token.name);
|
|
419
|
-
amount = Number(event.parsedJson.log[6]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
420
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
421
|
-
txHistory.push({
|
|
422
|
-
Index: Index,
|
|
423
|
-
Period: Period,
|
|
424
|
-
Action: Action,
|
|
425
|
-
Amount: Amount,
|
|
426
|
-
Vault: Vault,
|
|
427
|
-
RiskLevel: RiskLevel,
|
|
428
|
-
Tails: Tails,
|
|
429
|
-
Exp: Exp,
|
|
430
|
-
Date: new Date(Number(event.timestampMs)),
|
|
431
|
-
txDigest: event.id.txDigest,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
if (event.parsedJson.log[10] > 0) {
|
|
435
|
-
// redeem
|
|
436
|
-
Action = "Harvest Reward";
|
|
437
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.i_token.name);
|
|
438
|
-
amount = Number(event.parsedJson.log[10]) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
439
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
440
|
-
txHistory.push({
|
|
441
|
-
Index: Index,
|
|
442
|
-
Period: Period,
|
|
443
|
-
Action: Action,
|
|
444
|
-
Amount: Amount,
|
|
445
|
-
Vault: Vault,
|
|
446
|
-
RiskLevel: RiskLevel,
|
|
447
|
-
Tails: Tails,
|
|
448
|
-
Exp: Exp,
|
|
449
|
-
Date: new Date(Number(event.timestampMs)),
|
|
450
|
-
txDigest: event.id.txDigest,
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
return [2 /*return*/, txHistory];
|
|
455
|
-
case "NewStrategyEventV2":
|
|
456
|
-
Action = "Create Strategy";
|
|
457
|
-
deposit_amount = Number(event.parsedJson.deposit_amount) / Math.pow(10, (0, token_1.assetToDecimal)(b_token));
|
|
458
|
-
Amount = "".concat((0, bignumber_js_1.default)(deposit_amount).toFixed(), " ").concat(b_token);
|
|
459
|
-
break;
|
|
460
|
-
case "UpdateStrategyEvent":
|
|
461
|
-
Action = "Update Strategy";
|
|
462
|
-
deposit_amount = Number(event.parsedJson.deposit_amount) / Math.pow(10, (0, token_1.assetToDecimal)(b_token));
|
|
463
|
-
Amount = "".concat((0, bignumber_js_1.default)(deposit_amount).toFixed(), " ").concat(b_token);
|
|
464
|
-
break;
|
|
465
|
-
case "CloseStrategyEventV2":
|
|
466
|
-
Action = "Close Strategy";
|
|
467
|
-
if (b_token == d_token) {
|
|
468
|
-
balance = (Number(event.parsedJson.u64_padding[0]) + Number(event.parsedJson.u64_padding[1])) /
|
|
469
|
-
Math.pow(10, (0, token_1.assetToDecimal)(b_token));
|
|
470
|
-
Amount = "".concat((0, bignumber_js_1.default)(balance).toFixed(), " ").concat(b_token);
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
balance = Number(event.parsedJson.u64_padding[0]) / Math.pow(10, (0, token_1.assetToDecimal)(b_token));
|
|
474
|
-
profit = Number(event.parsedJson.u64_padding[1]) / Math.pow(10, (0, token_1.assetToDecimal)(d_token));
|
|
475
|
-
Amount = "".concat((0, bignumber_js_1.default)(balance).toFixed(), " ").concat(b_token, "\n").concat((0, bignumber_js_1.default)(profit).toFixed(), " ").concat(d_token);
|
|
476
|
-
}
|
|
477
|
-
break;
|
|
478
|
-
case "WithdrawProfitEvent":
|
|
479
|
-
Action = "Harvest Gain";
|
|
480
|
-
profit = Number(event.parsedJson.profit) / Math.pow(10, (0, token_1.assetToDecimal)(d_token));
|
|
481
|
-
Amount = "".concat((0, bignumber_js_1.default)(profit).toFixed(), " ").concat(d_token);
|
|
482
|
-
break;
|
|
483
|
-
case "RedeemEvent":
|
|
484
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
485
|
-
amount = Number(event.parsedJson.amount) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
486
|
-
Action = "Harvest Reward";
|
|
487
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
488
|
-
Index = Index;
|
|
489
|
-
break;
|
|
490
|
-
case "TransferBidReceiptEvent":
|
|
491
|
-
amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
|
|
492
|
-
Action = "Transfer Receipt";
|
|
493
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(o_token);
|
|
494
|
-
break;
|
|
495
|
-
case "ExerciseEvent":
|
|
496
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
497
|
-
amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
|
|
498
|
-
Action = "Exercise";
|
|
499
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
500
|
-
if (event.parsedJson.u64_padding[0]) {
|
|
501
|
-
size = Number(event.parsedJson.u64_padding[0]) / Math.pow(10, (0, token_1.assetToDecimal)(o_token));
|
|
502
|
-
Action = "Exercise ".concat(size, " ").concat(o_token);
|
|
503
|
-
}
|
|
504
|
-
if (event.sender != event.parsedJson.signer) {
|
|
505
|
-
Action = "Auto " + Action;
|
|
506
|
-
}
|
|
507
|
-
break;
|
|
508
|
-
case "RefundEvent":
|
|
509
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
510
|
-
amount = Number(event.parsedJson.amount) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
511
|
-
Action = "Rebate";
|
|
512
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
513
|
-
break;
|
|
514
|
-
// case "ClaimProfitSharingEvent":
|
|
515
|
-
// var token = typeArgToAsset("0x" + event.parsedJson!.token.name);
|
|
516
|
-
// var amount = Number(event.parsedJson!.value) / 10 ** assetToDecimal(token)!;
|
|
517
|
-
// Action = "Claim Profit Sharing";
|
|
518
|
-
// Amount = `${BigNumber(amount).toFixed()} ${token}`;
|
|
519
|
-
// Tails = `#${event.parsedJson!.number}`;
|
|
520
|
-
// break;
|
|
521
|
-
case "ClaimProfitSharingEventV2":
|
|
522
|
-
token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
|
|
523
|
-
amount = Number(event.parsedJson.value) / Math.pow(10, (0, token_1.assetToDecimal)(token));
|
|
524
|
-
// dice_profit, exp_profit
|
|
525
|
-
// TODO: filter amount != 0
|
|
526
|
-
switch (event.parsedJson.name) {
|
|
527
|
-
case "dice_profit":
|
|
528
|
-
Action = "Harvest Dice Profit";
|
|
529
|
-
break;
|
|
530
|
-
case "exp_profit":
|
|
531
|
-
Action = "Harvest Leaderboard Prize";
|
|
532
|
-
break;
|
|
533
|
-
}
|
|
534
|
-
Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
|
|
535
|
-
Tails = "#".concat(event.parsedJson.number);
|
|
536
|
-
break;
|
|
537
|
-
case "NewBidEvent":
|
|
538
|
-
o_token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.o_token.name);
|
|
539
|
-
b_token = (0, token_1.typeArgToAsset)("0x" + event.parsedJson.b_token.name);
|
|
540
|
-
size = Number(event.parsedJson.size) / Math.pow(10, (0, token_1.assetToDecimal)(o_token));
|
|
541
|
-
bidder_balance = Number(event.parsedJson.bidder_balance) / Math.pow(10, (0, token_1.assetToDecimal)(b_token));
|
|
542
|
-
Action = action.slice(0, action.length - 5) + " ".concat(size, " ").concat(o_token);
|
|
543
|
-
Amount = "".concat((0, bignumber_js_1.default)(bidder_balance).toFixed(), " ").concat(b_token);
|
|
544
|
-
if (event.sender != event.parsedJson.signer) {
|
|
545
|
-
Action = "Auto " + Action;
|
|
546
|
-
}
|
|
547
|
-
break;
|
|
548
|
-
default:
|
|
549
|
-
return [2 /*return*/, txHistory];
|
|
550
|
-
}
|
|
551
|
-
txHistory.push({
|
|
552
|
-
Index: Index,
|
|
553
|
-
Period: Period,
|
|
554
|
-
Action: Action,
|
|
555
|
-
Amount: Amount,
|
|
556
|
-
Vault: Vault,
|
|
557
|
-
RiskLevel: RiskLevel,
|
|
558
|
-
Tails: Tails,
|
|
559
|
-
Exp: Exp,
|
|
560
|
-
Date: new Date(Number(event.timestampMs)),
|
|
561
|
-
txDigest: event.id.txDigest,
|
|
562
|
-
});
|
|
563
|
-
return [2 /*return*/, txHistory];
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
}); }, Promise.resolve(new Array()))];
|
|
567
|
-
case 1:
|
|
568
|
-
results = _a.sent();
|
|
569
|
-
return [2 /*return*/, results.filter(function (result) { return result.Action; })];
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
function getFromSentio(event, userAddress, startTimestamp) {
|
|
575
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
576
|
-
var apiUrl, headers, requestData, jsonData, response, data;
|
|
577
|
-
return __generator(this, function (_a) {
|
|
578
|
-
switch (_a.label) {
|
|
579
|
-
case 0:
|
|
580
|
-
apiUrl = "https://app.sentio.xyz/api/v1/analytics/typus/typus_v2/sql/execute";
|
|
581
|
-
headers = {
|
|
582
|
-
"api-key": "tz3JJ6stG7Fux6ueRSRA5mdpC9U0lozI3",
|
|
583
|
-
"Content-Type": "application/json",
|
|
584
|
-
};
|
|
585
|
-
requestData = {
|
|
586
|
-
sqlQuery: {
|
|
587
|
-
sql: "\n SELECT *\n FROM ".concat(event, "\n WHERE distinct_id = \"").concat(userAddress, "\" && timestamp >= ").concat(startTimestamp, "\n ORDER BY timestamp DESC;\n "),
|
|
588
|
-
size: 1000,
|
|
589
|
-
},
|
|
590
|
-
};
|
|
591
|
-
jsonData = JSON.stringify(requestData);
|
|
592
|
-
return [4 /*yield*/, fetch(apiUrl, {
|
|
593
|
-
method: "POST",
|
|
594
|
-
headers: headers,
|
|
595
|
-
body: jsonData,
|
|
596
|
-
})];
|
|
597
|
-
case 1:
|
|
598
|
-
response = _a.sent();
|
|
599
|
-
return [4 /*yield*/, response.json()];
|
|
600
|
-
case 2:
|
|
601
|
-
data = _a.sent();
|
|
602
|
-
return [2 /*return*/, data.result.rows];
|
|
603
|
-
}
|
|
604
|
-
});
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
function getNewBidFromSentio(vaults, userAddress, startTimestamp) {
|
|
608
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
609
|
-
var apiUrl, headers, requestData, jsonData, response, data;
|
|
610
|
-
return __generator(this, function (_a) {
|
|
611
|
-
switch (_a.label) {
|
|
612
|
-
case 0:
|
|
613
|
-
apiUrl = "https://app.sentio.xyz/api/v1/analytics/typus/typus_v2/sql/execute";
|
|
614
|
-
headers = {
|
|
615
|
-
"api-key": "tz3JJ6stG7Fux6ueRSRA5mdpC9U0lozI3",
|
|
616
|
-
"Content-Type": "application/json",
|
|
617
|
-
};
|
|
618
|
-
requestData = {
|
|
619
|
-
sqlQuery: {
|
|
620
|
-
sql: "\n SELECT *\n FROM NewBid N\n LEFT JOIN (\n SELECT number, distinct_id, exp_earn, transaction_hash, log_index\n FROM ExpUp\n ) S ON N.transaction_hash = S.transaction_hash && N.log_index + 1 = S.log_index\n WHERE N.distinct_id = \"".concat(userAddress, "\" && N.timestamp >= ").concat(startTimestamp, "\n ORDER BY N.timestamp DESC;\n "),
|
|
621
|
-
size: 1000,
|
|
622
|
-
},
|
|
623
|
-
};
|
|
624
|
-
jsonData = JSON.stringify(requestData);
|
|
625
|
-
return [4 /*yield*/, fetch(apiUrl, {
|
|
626
|
-
method: "POST",
|
|
627
|
-
headers: headers,
|
|
628
|
-
body: jsonData,
|
|
629
|
-
})];
|
|
630
|
-
case 1:
|
|
631
|
-
response = _a.sent();
|
|
632
|
-
return [4 /*yield*/, response.json()];
|
|
633
|
-
case 2:
|
|
634
|
-
data = _a.sent();
|
|
635
|
-
return [2 /*return*/, data.result.rows.map(function (x) {
|
|
636
|
-
var _a = __read(parseVaultInfo(vaults, x.index, "NewBidEvent"), 6), Period = _a[0], Vault = _a[1], RiskLevel = _a[2], d_token = _a[3], b_token = _a[4], o_token = _a[5];
|
|
637
|
-
if (x.number == "0" && x.exp_earn == "0") {
|
|
638
|
-
x.number = undefined;
|
|
639
|
-
x.exp_earn = undefined;
|
|
640
|
-
}
|
|
641
|
-
var txHistory = {
|
|
642
|
-
Index: x.index,
|
|
643
|
-
Period: Period,
|
|
644
|
-
Vault: Vault,
|
|
645
|
-
RiskLevel: RiskLevel,
|
|
646
|
-
Action: "Auto Bid" + " ".concat(x.size, " ").concat(x.o_token),
|
|
647
|
-
Amount: x.bidder_balance + " ".concat(x.b_token),
|
|
648
|
-
Tails: x.number,
|
|
649
|
-
Exp: x.exp_earn,
|
|
650
|
-
Date: new Date(Number(x.ts_ms)),
|
|
651
|
-
txDigest: x.transaction_hash,
|
|
652
|
-
};
|
|
653
|
-
return txHistory;
|
|
654
|
-
})];
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
function getExerciseFromSentio(vaults, userAddress, startTimestamp) {
|
|
660
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
661
|
-
var apiUrl, headers, requestData, jsonData, response, data;
|
|
662
|
-
return __generator(this, function (_a) {
|
|
663
|
-
switch (_a.label) {
|
|
664
|
-
case 0:
|
|
665
|
-
apiUrl = "https://app.sentio.xyz/api/v1/analytics/typus/typus_v2/sql/execute";
|
|
666
|
-
headers = {
|
|
667
|
-
"api-key": "tz3JJ6stG7Fux6ueRSRA5mdpC9U0lozI3",
|
|
668
|
-
"Content-Type": "application/json",
|
|
669
|
-
};
|
|
670
|
-
requestData = {
|
|
671
|
-
sqlQuery: {
|
|
672
|
-
sql: "\n SELECT *\n FROM Exercise N\n WHERE N.distinct_id = \"".concat(userAddress, "\" && N.timestamp >= ").concat(startTimestamp, "\n ORDER BY N.timestamp DESC;\n "),
|
|
673
|
-
size: 1000,
|
|
674
|
-
},
|
|
675
|
-
};
|
|
676
|
-
jsonData = JSON.stringify(requestData);
|
|
677
|
-
return [4 /*yield*/, fetch(apiUrl, {
|
|
678
|
-
method: "POST",
|
|
679
|
-
headers: headers,
|
|
680
|
-
body: jsonData,
|
|
681
|
-
})];
|
|
682
|
-
case 1:
|
|
683
|
-
response = _a.sent();
|
|
684
|
-
return [4 /*yield*/, response.json()];
|
|
685
|
-
case 2:
|
|
686
|
-
data = _a.sent();
|
|
687
|
-
return [2 /*return*/, data.result.rows.map(function (x) {
|
|
688
|
-
var _a = __read(parseVaultInfo(vaults, x.index, "ExerciseEvent"), 6), Period = _a[0], Vault = _a[1], RiskLevel = _a[2], d_token = _a[3], b_token = _a[4], o_token = _a[5];
|
|
689
|
-
// console.log(x);
|
|
690
|
-
var Action = "Auto Exercise";
|
|
691
|
-
if (x.raw_share) {
|
|
692
|
-
var size = Number(x.raw_share) / Math.pow(10, (0, token_1.assetToDecimal)(o_token));
|
|
693
|
-
Action = "Auto Exercise ".concat(size, " ").concat(o_token);
|
|
694
|
-
}
|
|
695
|
-
var txHistory = {
|
|
696
|
-
Index: x.index,
|
|
697
|
-
Period: Period,
|
|
698
|
-
Vault: Vault,
|
|
699
|
-
RiskLevel: RiskLevel,
|
|
700
|
-
Action: Action,
|
|
701
|
-
Amount: "".concat(x.amount, " ").concat(x.coin_symbol),
|
|
702
|
-
Tails: x.number,
|
|
703
|
-
Exp: x.exp_earn,
|
|
704
|
-
Date: new Date(x.timestamp),
|
|
705
|
-
txDigest: x.transaction_hash,
|
|
706
|
-
};
|
|
707
|
-
return txHistory;
|
|
708
|
-
})];
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
function parseVaultInfo(vaults, Index, action, eventLog) {
|
|
714
|
-
var v = vaults[Index];
|
|
715
|
-
var Period;
|
|
716
|
-
var Vault;
|
|
717
|
-
var RiskLevel;
|
|
718
|
-
var d_token;
|
|
719
|
-
var b_token;
|
|
720
|
-
var o_token;
|
|
721
|
-
var period;
|
|
722
|
-
if (v) {
|
|
723
|
-
switch (v.info.period) {
|
|
724
|
-
case "0":
|
|
725
|
-
period = "Daily";
|
|
726
|
-
break;
|
|
727
|
-
case "1":
|
|
728
|
-
period = "Weekly";
|
|
729
|
-
break;
|
|
730
|
-
case "2":
|
|
731
|
-
period = "Monthly";
|
|
732
|
-
break;
|
|
733
|
-
case "3":
|
|
734
|
-
period = "Hourly";
|
|
735
|
-
break;
|
|
736
|
-
case "4":
|
|
737
|
-
period = "10 Minutes";
|
|
738
|
-
break;
|
|
739
|
-
default:
|
|
740
|
-
period = "";
|
|
741
|
-
break;
|
|
742
|
-
}
|
|
743
|
-
Period = period;
|
|
744
|
-
var optionType = void 0;
|
|
745
|
-
switch (v.info.optionType) {
|
|
746
|
-
case "0":
|
|
747
|
-
switch (action) {
|
|
748
|
-
case "DepositEvent":
|
|
749
|
-
case "WithdrawEvent":
|
|
750
|
-
case "UnsubscribeEvent":
|
|
751
|
-
case "ClaimEvent":
|
|
752
|
-
case "CompoundEvent":
|
|
753
|
-
case "HarvestEvent":
|
|
754
|
-
case "RedeemEvent":
|
|
755
|
-
case "ReduceFundEvent":
|
|
756
|
-
case "RaiseFundEvent":
|
|
757
|
-
optionType = "Covered Call";
|
|
758
|
-
break;
|
|
759
|
-
default:
|
|
760
|
-
optionType = "Call";
|
|
761
|
-
break;
|
|
762
|
-
}
|
|
763
|
-
break;
|
|
764
|
-
case "1":
|
|
765
|
-
switch (action) {
|
|
766
|
-
case "DepositEvent":
|
|
767
|
-
case "WithdrawEvent":
|
|
768
|
-
case "UnsubscribeEvent":
|
|
769
|
-
case "ClaimEvent":
|
|
770
|
-
case "CompoundEvent":
|
|
771
|
-
case "HarvestEvent":
|
|
772
|
-
case "RedeemEvent":
|
|
773
|
-
case "ReduceFundEvent":
|
|
774
|
-
case "RaiseFundEvent":
|
|
775
|
-
optionType = "Put Selling";
|
|
776
|
-
break;
|
|
777
|
-
default:
|
|
778
|
-
optionType = "Put";
|
|
779
|
-
break;
|
|
780
|
-
}
|
|
781
|
-
break;
|
|
782
|
-
case "2":
|
|
783
|
-
optionType = "Call Spread";
|
|
784
|
-
break;
|
|
785
|
-
case "3":
|
|
786
|
-
optionType = "Put Spread";
|
|
787
|
-
break;
|
|
788
|
-
case "4":
|
|
789
|
-
optionType = "Capped Call";
|
|
790
|
-
break;
|
|
791
|
-
case "5":
|
|
792
|
-
optionType = "Capped Put";
|
|
793
|
-
break;
|
|
794
|
-
case "6":
|
|
795
|
-
switch (action) {
|
|
796
|
-
case "DepositEvent":
|
|
797
|
-
case "WithdrawEvent":
|
|
798
|
-
case "UnsubscribeEvent":
|
|
799
|
-
case "ClaimEvent":
|
|
800
|
-
case "CompoundEvent":
|
|
801
|
-
case "HarvestEvent":
|
|
802
|
-
case "RedeemEvent":
|
|
803
|
-
case "ReduceFundEvent":
|
|
804
|
-
case "RaiseFundEvent":
|
|
805
|
-
// for depositor
|
|
806
|
-
optionType = "Call Selling";
|
|
807
|
-
break;
|
|
808
|
-
default:
|
|
809
|
-
// for bidder
|
|
810
|
-
optionType = "Capped Call";
|
|
811
|
-
break;
|
|
812
|
-
}
|
|
813
|
-
break;
|
|
814
|
-
default:
|
|
815
|
-
optionType = "";
|
|
816
|
-
break;
|
|
817
|
-
}
|
|
818
|
-
switch (v.config.riskLevel) {
|
|
819
|
-
case "1":
|
|
820
|
-
RiskLevel = "Conservative";
|
|
821
|
-
break;
|
|
822
|
-
case "2":
|
|
823
|
-
RiskLevel = "Moderate";
|
|
824
|
-
break;
|
|
825
|
-
case "3":
|
|
826
|
-
RiskLevel = "Aggressive";
|
|
827
|
-
break;
|
|
828
|
-
default:
|
|
829
|
-
RiskLevel = "";
|
|
830
|
-
break;
|
|
831
|
-
}
|
|
832
|
-
Vault = "".concat(v.info.settlementBaseName, " ").concat(period, " ").concat(optionType);
|
|
833
|
-
d_token = (0, token_1.typeArgToAsset)("0x" + v.info.depositToken);
|
|
834
|
-
b_token = (0, token_1.typeArgToAsset)("0x" + v.info.bidToken);
|
|
835
|
-
o_token = (0, token_1.typeArgToAsset)("0x" + v.info.settlementBase);
|
|
836
|
-
}
|
|
837
|
-
return [Period, Vault, RiskLevel, d_token, b_token, o_token];
|
|
838
|
-
}
|
|
839
|
-
function getDepositorCashFlows(userHistory) {
|
|
840
|
-
var e_1, _a, e_2, _b, e_3, _c;
|
|
841
|
-
var _d, _e, _f, _g, _h;
|
|
842
|
-
var depositorCashFlows = new Map();
|
|
843
|
-
try {
|
|
844
|
-
for (var userHistory_1 = __values(userHistory), userHistory_1_1 = userHistory_1.next(); !userHistory_1_1.done; userHistory_1_1 = userHistory_1.next()) {
|
|
845
|
-
var history_1 = userHistory_1_1.value;
|
|
846
|
-
var index = history_1.Index;
|
|
847
|
-
if (history_1.Action.startsWith("Harvest Reward")) {
|
|
848
|
-
var historyAmounts = (_d = history_1.Amount) === null || _d === void 0 ? void 0 : _d.split("\n");
|
|
849
|
-
try {
|
|
850
|
-
for (var historyAmounts_1 = (e_2 = void 0, __values(historyAmounts)), historyAmounts_1_1 = historyAmounts_1.next(); !historyAmounts_1_1.done; historyAmounts_1_1 = historyAmounts_1.next()) {
|
|
851
|
-
var historyAmount = historyAmounts_1_1.value;
|
|
852
|
-
var _j = __read(historyAmount.split(" "), 2), amount = _j[0], token = _j[1];
|
|
853
|
-
if (depositorCashFlows.has(index)) {
|
|
854
|
-
var depositorCashFlow = depositorCashFlows.get(index);
|
|
855
|
-
var totalHarvest = depositorCashFlow.totalHarvest;
|
|
856
|
-
if (totalHarvest.has(token)) {
|
|
857
|
-
var sum = totalHarvest.get(token);
|
|
858
|
-
totalHarvest.set(token, sum + Number(amount));
|
|
859
|
-
}
|
|
860
|
-
else {
|
|
861
|
-
totalHarvest.set(token, Number(amount));
|
|
862
|
-
}
|
|
863
|
-
depositorCashFlow.totalHarvest = totalHarvest;
|
|
864
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
865
|
-
}
|
|
866
|
-
else {
|
|
867
|
-
var totalHarvest = new Map();
|
|
868
|
-
totalHarvest.set(token, Number(amount));
|
|
869
|
-
var depositorCashFlow = {
|
|
870
|
-
D_TOKEN: undefined,
|
|
871
|
-
totalDeposit: 0,
|
|
872
|
-
totalWithdraw: 0,
|
|
873
|
-
totalClaim: 0,
|
|
874
|
-
totalCompound: 0,
|
|
875
|
-
netDeposit: undefined,
|
|
876
|
-
totalHarvest: totalHarvest,
|
|
877
|
-
};
|
|
878
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
883
|
-
finally {
|
|
884
|
-
try {
|
|
885
|
-
if (historyAmounts_1_1 && !historyAmounts_1_1.done && (_b = historyAmounts_1.return)) _b.call(historyAmounts_1);
|
|
886
|
-
}
|
|
887
|
-
finally { if (e_2) throw e_2.error; }
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
else if (history_1.Action.startsWith("Deposit")) {
|
|
891
|
-
var _k = __read((_e = history_1.Amount) === null || _e === void 0 ? void 0 : _e.split(" "), 2), amount = _k[0], token = _k[1];
|
|
892
|
-
if (depositorCashFlows.has(index)) {
|
|
893
|
-
var depositorCashFlow = depositorCashFlows.get(index);
|
|
894
|
-
depositorCashFlow.D_TOKEN = token;
|
|
895
|
-
depositorCashFlow.totalDeposit += Number(amount);
|
|
896
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
897
|
-
}
|
|
898
|
-
else {
|
|
899
|
-
var depositorCashFlow = {
|
|
900
|
-
D_TOKEN: token,
|
|
901
|
-
totalDeposit: Number(amount),
|
|
902
|
-
totalWithdraw: 0,
|
|
903
|
-
totalClaim: 0,
|
|
904
|
-
totalCompound: 0,
|
|
905
|
-
netDeposit: undefined,
|
|
906
|
-
totalHarvest: new Map(),
|
|
907
|
-
};
|
|
908
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
else if (history_1.Action.startsWith("Withdraw")) {
|
|
912
|
-
var _l = __read((_f = history_1.Amount) === null || _f === void 0 ? void 0 : _f.split(" "), 2), amount = _l[0], token = _l[1];
|
|
913
|
-
if (depositorCashFlows.has(index)) {
|
|
914
|
-
var depositorCashFlow = depositorCashFlows.get(index);
|
|
915
|
-
depositorCashFlow.D_TOKEN = token;
|
|
916
|
-
depositorCashFlow.totalWithdraw += Number(amount);
|
|
917
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
918
|
-
}
|
|
919
|
-
else {
|
|
920
|
-
var depositorCashFlow = {
|
|
921
|
-
D_TOKEN: token,
|
|
922
|
-
totalDeposit: 0,
|
|
923
|
-
totalWithdraw: Number(amount),
|
|
924
|
-
totalClaim: 0,
|
|
925
|
-
totalCompound: 0,
|
|
926
|
-
netDeposit: undefined,
|
|
927
|
-
totalHarvest: new Map(),
|
|
928
|
-
};
|
|
929
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
else if (history_1.Action == "Claim") {
|
|
933
|
-
var _m = __read((_g = history_1.Amount) === null || _g === void 0 ? void 0 : _g.split(" "), 2), amount = _m[0], token = _m[1];
|
|
934
|
-
if (depositorCashFlows.has(index)) {
|
|
935
|
-
var depositorCashFlow = depositorCashFlows.get(index);
|
|
936
|
-
depositorCashFlow.D_TOKEN = token;
|
|
937
|
-
depositorCashFlow.totalClaim += Number(amount);
|
|
938
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
939
|
-
}
|
|
940
|
-
else {
|
|
941
|
-
var depositorCashFlow = {
|
|
942
|
-
D_TOKEN: token,
|
|
943
|
-
totalDeposit: 0,
|
|
944
|
-
totalWithdraw: 0,
|
|
945
|
-
totalClaim: Number(amount),
|
|
946
|
-
totalCompound: 0,
|
|
947
|
-
netDeposit: undefined,
|
|
948
|
-
totalHarvest: new Map(),
|
|
949
|
-
};
|
|
950
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
else if (history_1.Action == "Compound") {
|
|
954
|
-
var _o = __read((_h = history_1.Amount) === null || _h === void 0 ? void 0 : _h.split(" "), 2), amount = _o[0], token = _o[1];
|
|
955
|
-
if (depositorCashFlows.has(index)) {
|
|
956
|
-
var depositorCashFlow = depositorCashFlows.get(index);
|
|
957
|
-
depositorCashFlow.D_TOKEN = token;
|
|
958
|
-
depositorCashFlow.totalCompound += Number(amount);
|
|
959
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
960
|
-
}
|
|
961
|
-
else {
|
|
962
|
-
var depositorCashFlow = {
|
|
963
|
-
D_TOKEN: token,
|
|
964
|
-
totalDeposit: 0,
|
|
965
|
-
totalWithdraw: 0,
|
|
966
|
-
totalClaim: 0,
|
|
967
|
-
totalCompound: Number(amount),
|
|
968
|
-
netDeposit: undefined,
|
|
969
|
-
totalHarvest: new Map(),
|
|
970
|
-
};
|
|
971
|
-
depositorCashFlows.set(index, depositorCashFlow);
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
977
|
-
finally {
|
|
978
|
-
try {
|
|
979
|
-
if (userHistory_1_1 && !userHistory_1_1.done && (_a = userHistory_1.return)) _a.call(userHistory_1);
|
|
980
|
-
}
|
|
981
|
-
finally { if (e_1) throw e_1.error; }
|
|
982
|
-
}
|
|
983
|
-
try {
|
|
984
|
-
// console.log(depositorCashFlows);
|
|
985
|
-
for (var _p = __values(depositorCashFlows.entries()), _q = _p.next(); !_q.done; _q = _p.next()) {
|
|
986
|
-
var _r = __read(_q.value, 2), index = _r[0], share = _r[1];
|
|
987
|
-
share.netDeposit = share.totalDeposit + share.totalCompound - share.totalWithdraw - share.totalClaim;
|
|
988
|
-
depositorCashFlows.set(index, share);
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
992
|
-
finally {
|
|
993
|
-
try {
|
|
994
|
-
if (_q && !_q.done && (_c = _p.return)) _c.call(_p);
|
|
995
|
-
}
|
|
996
|
-
finally { if (e_3) throw e_3.error; }
|
|
997
|
-
}
|
|
998
|
-
return depositorCashFlows;
|
|
999
|
-
}
|