@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,651 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
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;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
50
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
51
|
-
if (!m) return o;
|
|
52
|
-
var i = m.call(o), r, ar = [], e;
|
|
53
|
-
try {
|
|
54
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
55
|
-
}
|
|
56
|
-
catch (error) { e = { error: error }; }
|
|
57
|
-
finally {
|
|
58
|
-
try {
|
|
59
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
60
|
-
}
|
|
61
|
-
finally { if (e) throw e.error; }
|
|
62
|
-
}
|
|
63
|
-
return ar;
|
|
64
|
-
};
|
|
65
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
66
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
67
|
-
if (ar || !(i in from)) {
|
|
68
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
69
|
-
ar[i] = from[i];
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
73
|
-
};
|
|
74
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
-
exports.TokenPolicyCreated = exports.TokenPolicyCap = exports.TokenPolicy = exports.Token = exports.ActionRequest = exports.RuleKey = void 0;
|
|
76
|
-
exports.isRuleKey = isRuleKey;
|
|
77
|
-
exports.isActionRequest = isActionRequest;
|
|
78
|
-
exports.isToken = isToken;
|
|
79
|
-
exports.isTokenPolicy = isTokenPolicy;
|
|
80
|
-
exports.isTokenPolicyCap = isTokenPolicyCap;
|
|
81
|
-
exports.isTokenPolicyCreated = isTokenPolicyCreated;
|
|
82
|
-
var reified_1 = require("../../../../_framework/reified");
|
|
83
|
-
var util_1 = require("../../../../_framework/util");
|
|
84
|
-
var structs_1 = require("../../0x1/option/structs");
|
|
85
|
-
var structs_2 = require("../../0x1/string/structs");
|
|
86
|
-
var structs_3 = require("../../0x1/type-name/structs");
|
|
87
|
-
var structs_4 = require("../balance/structs");
|
|
88
|
-
var structs_5 = require("../object/structs");
|
|
89
|
-
var structs_6 = require("../vec-map/structs");
|
|
90
|
-
var structs_7 = require("../vec-set/structs");
|
|
91
|
-
var bcs_1 = require("@mysten/bcs");
|
|
92
|
-
/* ============================== RuleKey =============================== */
|
|
93
|
-
function isRuleKey(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::token::RuleKey<"); }
|
|
94
|
-
var RuleKey = /** @class */ (function () {
|
|
95
|
-
function RuleKey(typeArgs, fields) {
|
|
96
|
-
this.$typeName = RuleKey.$typeName;
|
|
97
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RuleKey.$typeName], __read(typeArgs), false));
|
|
98
|
-
this.$typeArgs = typeArgs;
|
|
99
|
-
this.isProtected = fields.isProtected;
|
|
100
|
-
}
|
|
101
|
-
RuleKey.reified = function (T) {
|
|
102
|
-
var _this = this;
|
|
103
|
-
return { typeName: RuleKey.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RuleKey.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return RuleKey.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return RuleKey.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return RuleKey.fromBcs(T, data); }, bcs: RuleKey.bcs, fromJSONField: function (field) { return RuleKey.fromJSONField(T, field); }, fromJSON: function (json) { return RuleKey.fromJSON(T, json); }, fromSuiParsedData: function (content) { return RuleKey.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
104
|
-
return [2 /*return*/, RuleKey.fetch(client, T, id)];
|
|
105
|
-
}); }); }, new: function (fields) { return new RuleKey([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
106
|
-
};
|
|
107
|
-
Object.defineProperty(RuleKey, "r", {
|
|
108
|
-
get: function () { return RuleKey.reified; },
|
|
109
|
-
enumerable: false,
|
|
110
|
-
configurable: true
|
|
111
|
-
});
|
|
112
|
-
RuleKey.phantom = function (T) { return (0, reified_1.phantom)(RuleKey.reified(T)); };
|
|
113
|
-
Object.defineProperty(RuleKey, "p", {
|
|
114
|
-
get: function () { return RuleKey.phantom; },
|
|
115
|
-
enumerable: false,
|
|
116
|
-
configurable: true
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(RuleKey, "bcs", {
|
|
119
|
-
get: function () {
|
|
120
|
-
return bcs_1.bcs.struct("RuleKey", {
|
|
121
|
-
is_protected: bcs_1.bcs.bool()
|
|
122
|
-
});
|
|
123
|
-
},
|
|
124
|
-
enumerable: false,
|
|
125
|
-
configurable: true
|
|
126
|
-
});
|
|
127
|
-
;
|
|
128
|
-
RuleKey.fromFields = function (typeArg, fields) { return RuleKey.reified(typeArg).new({ isProtected: (0, reified_1.decodeFromFields)("bool", fields.is_protected) }); };
|
|
129
|
-
RuleKey.fromFieldsWithTypes = function (typeArg, item) {
|
|
130
|
-
if (!isRuleKey(item.type)) {
|
|
131
|
-
throw new Error("not a RuleKey type");
|
|
132
|
-
}
|
|
133
|
-
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
134
|
-
return RuleKey.reified(typeArg).new({ isProtected: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_protected) });
|
|
135
|
-
};
|
|
136
|
-
RuleKey.fromBcs = function (typeArg, data) { return RuleKey.fromFields(typeArg, RuleKey.bcs.parse(data)); };
|
|
137
|
-
RuleKey.prototype.toJSONField = function () {
|
|
138
|
-
return {
|
|
139
|
-
isProtected: this.isProtected,
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
RuleKey.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
143
|
-
RuleKey.fromJSONField = function (typeArg, field) { return RuleKey.reified(typeArg).new({ isProtected: (0, reified_1.decodeFromJSONField)("bool", field.isProtected) }); };
|
|
144
|
-
RuleKey.fromJSON = function (typeArg, json) {
|
|
145
|
-
if (json.$typeName !== RuleKey.$typeName) {
|
|
146
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
147
|
-
}
|
|
148
|
-
;
|
|
149
|
-
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(RuleKey.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
150
|
-
return RuleKey.fromJSONField(typeArg, json);
|
|
151
|
-
};
|
|
152
|
-
RuleKey.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
153
|
-
throw new Error("not an object");
|
|
154
|
-
} if (!isRuleKey(content.type)) {
|
|
155
|
-
throw new Error("object at ".concat(content.fields.id, " is not a RuleKey object"));
|
|
156
|
-
} return RuleKey.fromFieldsWithTypes(typeArg, content); };
|
|
157
|
-
RuleKey.fetch = function (client, typeArg, id) {
|
|
158
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
-
var res;
|
|
160
|
-
var _a, _b;
|
|
161
|
-
return __generator(this, function (_c) {
|
|
162
|
-
switch (_c.label) {
|
|
163
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
164
|
-
case 1:
|
|
165
|
-
res = _c.sent();
|
|
166
|
-
if (res.error) {
|
|
167
|
-
throw new Error("error fetching RuleKey object at id ".concat(id, ": ").concat(res.error.code));
|
|
168
|
-
}
|
|
169
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRuleKey(res.data.bcs.type)) {
|
|
170
|
-
throw new Error("object at id ".concat(id, " is not a RuleKey object"));
|
|
171
|
-
}
|
|
172
|
-
return [2 /*return*/, RuleKey.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
RuleKey.$typeName = "0x2::token::RuleKey";
|
|
178
|
-
RuleKey.$numTypeParams = 1;
|
|
179
|
-
return RuleKey;
|
|
180
|
-
}());
|
|
181
|
-
exports.RuleKey = RuleKey;
|
|
182
|
-
/* ============================== ActionRequest =============================== */
|
|
183
|
-
function isActionRequest(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::token::ActionRequest<"); }
|
|
184
|
-
var ActionRequest = /** @class */ (function () {
|
|
185
|
-
function ActionRequest(typeArgs, fields) {
|
|
186
|
-
this.$typeName = ActionRequest.$typeName;
|
|
187
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ActionRequest.$typeName], __read(typeArgs), false));
|
|
188
|
-
this.$typeArgs = typeArgs;
|
|
189
|
-
this.name = fields.name;
|
|
190
|
-
;
|
|
191
|
-
this.amount = fields.amount;
|
|
192
|
-
;
|
|
193
|
-
this.sender = fields.sender;
|
|
194
|
-
;
|
|
195
|
-
this.recipient = fields.recipient;
|
|
196
|
-
;
|
|
197
|
-
this.spentBalance = fields.spentBalance;
|
|
198
|
-
;
|
|
199
|
-
this.approvals = fields.approvals;
|
|
200
|
-
}
|
|
201
|
-
ActionRequest.reified = function (T) {
|
|
202
|
-
var _this = this;
|
|
203
|
-
return { typeName: ActionRequest.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ActionRequest.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return ActionRequest.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return ActionRequest.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return ActionRequest.fromBcs(T, data); }, bcs: ActionRequest.bcs, fromJSONField: function (field) { return ActionRequest.fromJSONField(T, field); }, fromJSON: function (json) { return ActionRequest.fromJSON(T, json); }, fromSuiParsedData: function (content) { return ActionRequest.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
204
|
-
return [2 /*return*/, ActionRequest.fetch(client, T, id)];
|
|
205
|
-
}); }); }, new: function (fields) { return new ActionRequest([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
206
|
-
};
|
|
207
|
-
Object.defineProperty(ActionRequest, "r", {
|
|
208
|
-
get: function () { return ActionRequest.reified; },
|
|
209
|
-
enumerable: false,
|
|
210
|
-
configurable: true
|
|
211
|
-
});
|
|
212
|
-
ActionRequest.phantom = function (T) { return (0, reified_1.phantom)(ActionRequest.reified(T)); };
|
|
213
|
-
Object.defineProperty(ActionRequest, "p", {
|
|
214
|
-
get: function () { return ActionRequest.phantom; },
|
|
215
|
-
enumerable: false,
|
|
216
|
-
configurable: true
|
|
217
|
-
});
|
|
218
|
-
Object.defineProperty(ActionRequest, "bcs", {
|
|
219
|
-
get: function () {
|
|
220
|
-
return bcs_1.bcs.struct("ActionRequest", {
|
|
221
|
-
name: structs_2.String.bcs, amount: bcs_1.bcs.u64(), sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), recipient: structs_1.Option.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })), spent_balance: structs_1.Option.bcs(structs_4.Balance.bcs), approvals: structs_7.VecSet.bcs(structs_3.TypeName.bcs)
|
|
222
|
-
});
|
|
223
|
-
},
|
|
224
|
-
enumerable: false,
|
|
225
|
-
configurable: true
|
|
226
|
-
});
|
|
227
|
-
;
|
|
228
|
-
ActionRequest.fromFields = function (typeArg, fields) { return ActionRequest.reified(typeArg).new({ name: (0, reified_1.decodeFromFields)(structs_2.String.reified(), fields.name), amount: (0, reified_1.decodeFromFields)("u64", fields.amount), sender: (0, reified_1.decodeFromFields)("address", fields.sender), recipient: (0, reified_1.decodeFromFields)(structs_1.Option.reified("address"), fields.recipient), spentBalance: (0, reified_1.decodeFromFields)(structs_1.Option.reified(structs_4.Balance.reified(typeArg)), fields.spent_balance), approvals: (0, reified_1.decodeFromFields)(structs_7.VecSet.reified(structs_3.TypeName.reified()), fields.approvals) }); };
|
|
229
|
-
ActionRequest.fromFieldsWithTypes = function (typeArg, item) {
|
|
230
|
-
if (!isActionRequest(item.type)) {
|
|
231
|
-
throw new Error("not a ActionRequest type");
|
|
232
|
-
}
|
|
233
|
-
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
234
|
-
return ActionRequest.reified(typeArg).new({ name: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.String.reified(), item.fields.name), amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount), sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), recipient: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Option.reified("address"), item.fields.recipient), spentBalance: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Option.reified(structs_4.Balance.reified(typeArg)), item.fields.spent_balance), approvals: (0, reified_1.decodeFromFieldsWithTypes)(structs_7.VecSet.reified(structs_3.TypeName.reified()), item.fields.approvals) });
|
|
235
|
-
};
|
|
236
|
-
ActionRequest.fromBcs = function (typeArg, data) { return ActionRequest.fromFields(typeArg, ActionRequest.bcs.parse(data)); };
|
|
237
|
-
ActionRequest.prototype.toJSONField = function () {
|
|
238
|
-
return {
|
|
239
|
-
name: this.name, amount: this.amount.toString(), sender: this.sender, recipient: (0, reified_1.fieldToJSON)("0x1::option::Option<address>", this.recipient), spentBalance: (0, reified_1.fieldToJSON)("0x1::option::Option<0x2::balance::Balance<".concat(this.$typeArgs[0], ">>"), this.spentBalance), approvals: this.approvals.toJSONField(),
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
ActionRequest.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
243
|
-
ActionRequest.fromJSONField = function (typeArg, field) { return ActionRequest.reified(typeArg).new({ name: (0, reified_1.decodeFromJSONField)(structs_2.String.reified(), field.name), amount: (0, reified_1.decodeFromJSONField)("u64", field.amount), sender: (0, reified_1.decodeFromJSONField)("address", field.sender), recipient: (0, reified_1.decodeFromJSONField)(structs_1.Option.reified("address"), field.recipient), spentBalance: (0, reified_1.decodeFromJSONField)(structs_1.Option.reified(structs_4.Balance.reified(typeArg)), field.spentBalance), approvals: (0, reified_1.decodeFromJSONField)(structs_7.VecSet.reified(structs_3.TypeName.reified()), field.approvals) }); };
|
|
244
|
-
ActionRequest.fromJSON = function (typeArg, json) {
|
|
245
|
-
if (json.$typeName !== ActionRequest.$typeName) {
|
|
246
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
247
|
-
}
|
|
248
|
-
;
|
|
249
|
-
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ActionRequest.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
250
|
-
return ActionRequest.fromJSONField(typeArg, json);
|
|
251
|
-
};
|
|
252
|
-
ActionRequest.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
253
|
-
throw new Error("not an object");
|
|
254
|
-
} if (!isActionRequest(content.type)) {
|
|
255
|
-
throw new Error("object at ".concat(content.fields.id, " is not a ActionRequest object"));
|
|
256
|
-
} return ActionRequest.fromFieldsWithTypes(typeArg, content); };
|
|
257
|
-
ActionRequest.fetch = function (client, typeArg, id) {
|
|
258
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
259
|
-
var res;
|
|
260
|
-
var _a, _b;
|
|
261
|
-
return __generator(this, function (_c) {
|
|
262
|
-
switch (_c.label) {
|
|
263
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
264
|
-
case 1:
|
|
265
|
-
res = _c.sent();
|
|
266
|
-
if (res.error) {
|
|
267
|
-
throw new Error("error fetching ActionRequest object at id ".concat(id, ": ").concat(res.error.code));
|
|
268
|
-
}
|
|
269
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isActionRequest(res.data.bcs.type)) {
|
|
270
|
-
throw new Error("object at id ".concat(id, " is not a ActionRequest object"));
|
|
271
|
-
}
|
|
272
|
-
return [2 /*return*/, ActionRequest.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
};
|
|
277
|
-
ActionRequest.$typeName = "0x2::token::ActionRequest";
|
|
278
|
-
ActionRequest.$numTypeParams = 1;
|
|
279
|
-
return ActionRequest;
|
|
280
|
-
}());
|
|
281
|
-
exports.ActionRequest = ActionRequest;
|
|
282
|
-
/* ============================== Token =============================== */
|
|
283
|
-
function isToken(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::token::Token<"); }
|
|
284
|
-
var Token = /** @class */ (function () {
|
|
285
|
-
function Token(typeArgs, fields) {
|
|
286
|
-
this.$typeName = Token.$typeName;
|
|
287
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Token.$typeName], __read(typeArgs), false));
|
|
288
|
-
this.$typeArgs = typeArgs;
|
|
289
|
-
this.id = fields.id;
|
|
290
|
-
;
|
|
291
|
-
this.balance = fields.balance;
|
|
292
|
-
}
|
|
293
|
-
Token.reified = function (T) {
|
|
294
|
-
var _this = this;
|
|
295
|
-
return { typeName: Token.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Token.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return Token.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return Token.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return Token.fromBcs(T, data); }, bcs: Token.bcs, fromJSONField: function (field) { return Token.fromJSONField(T, field); }, fromJSON: function (json) { return Token.fromJSON(T, json); }, fromSuiParsedData: function (content) { return Token.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
296
|
-
return [2 /*return*/, Token.fetch(client, T, id)];
|
|
297
|
-
}); }); }, new: function (fields) { return new Token([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
298
|
-
};
|
|
299
|
-
Object.defineProperty(Token, "r", {
|
|
300
|
-
get: function () { return Token.reified; },
|
|
301
|
-
enumerable: false,
|
|
302
|
-
configurable: true
|
|
303
|
-
});
|
|
304
|
-
Token.phantom = function (T) { return (0, reified_1.phantom)(Token.reified(T)); };
|
|
305
|
-
Object.defineProperty(Token, "p", {
|
|
306
|
-
get: function () { return Token.phantom; },
|
|
307
|
-
enumerable: false,
|
|
308
|
-
configurable: true
|
|
309
|
-
});
|
|
310
|
-
Object.defineProperty(Token, "bcs", {
|
|
311
|
-
get: function () {
|
|
312
|
-
return bcs_1.bcs.struct("Token", {
|
|
313
|
-
id: structs_5.UID.bcs, balance: structs_4.Balance.bcs
|
|
314
|
-
});
|
|
315
|
-
},
|
|
316
|
-
enumerable: false,
|
|
317
|
-
configurable: true
|
|
318
|
-
});
|
|
319
|
-
;
|
|
320
|
-
Token.fromFields = function (typeArg, fields) { return Token.reified(typeArg).new({ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id), balance: (0, reified_1.decodeFromFields)(structs_4.Balance.reified(typeArg), fields.balance) }); };
|
|
321
|
-
Token.fromFieldsWithTypes = function (typeArg, item) {
|
|
322
|
-
if (!isToken(item.type)) {
|
|
323
|
-
throw new Error("not a Token type");
|
|
324
|
-
}
|
|
325
|
-
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
326
|
-
return Token.reified(typeArg).new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id), balance: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Balance.reified(typeArg), item.fields.balance) });
|
|
327
|
-
};
|
|
328
|
-
Token.fromBcs = function (typeArg, data) { return Token.fromFields(typeArg, Token.bcs.parse(data)); };
|
|
329
|
-
Token.prototype.toJSONField = function () {
|
|
330
|
-
return {
|
|
331
|
-
id: this.id, balance: this.balance.toJSONField(),
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
Token.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
335
|
-
Token.fromJSONField = function (typeArg, field) { return Token.reified(typeArg).new({ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id), balance: (0, reified_1.decodeFromJSONField)(structs_4.Balance.reified(typeArg), field.balance) }); };
|
|
336
|
-
Token.fromJSON = function (typeArg, json) {
|
|
337
|
-
if (json.$typeName !== Token.$typeName) {
|
|
338
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
339
|
-
}
|
|
340
|
-
;
|
|
341
|
-
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(Token.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
342
|
-
return Token.fromJSONField(typeArg, json);
|
|
343
|
-
};
|
|
344
|
-
Token.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
345
|
-
throw new Error("not an object");
|
|
346
|
-
} if (!isToken(content.type)) {
|
|
347
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Token object"));
|
|
348
|
-
} return Token.fromFieldsWithTypes(typeArg, content); };
|
|
349
|
-
Token.fetch = function (client, typeArg, id) {
|
|
350
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
351
|
-
var res;
|
|
352
|
-
var _a, _b;
|
|
353
|
-
return __generator(this, function (_c) {
|
|
354
|
-
switch (_c.label) {
|
|
355
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
356
|
-
case 1:
|
|
357
|
-
res = _c.sent();
|
|
358
|
-
if (res.error) {
|
|
359
|
-
throw new Error("error fetching Token object at id ".concat(id, ": ").concat(res.error.code));
|
|
360
|
-
}
|
|
361
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isToken(res.data.bcs.type)) {
|
|
362
|
-
throw new Error("object at id ".concat(id, " is not a Token object"));
|
|
363
|
-
}
|
|
364
|
-
return [2 /*return*/, Token.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
Token.$typeName = "0x2::token::Token";
|
|
370
|
-
Token.$numTypeParams = 1;
|
|
371
|
-
return Token;
|
|
372
|
-
}());
|
|
373
|
-
exports.Token = Token;
|
|
374
|
-
/* ============================== TokenPolicy =============================== */
|
|
375
|
-
function isTokenPolicy(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::token::TokenPolicy<"); }
|
|
376
|
-
var TokenPolicy = /** @class */ (function () {
|
|
377
|
-
function TokenPolicy(typeArgs, fields) {
|
|
378
|
-
this.$typeName = TokenPolicy.$typeName;
|
|
379
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicy.$typeName], __read(typeArgs), false));
|
|
380
|
-
this.$typeArgs = typeArgs;
|
|
381
|
-
this.id = fields.id;
|
|
382
|
-
;
|
|
383
|
-
this.spentBalance = fields.spentBalance;
|
|
384
|
-
;
|
|
385
|
-
this.rules = fields.rules;
|
|
386
|
-
}
|
|
387
|
-
TokenPolicy.reified = function (T) {
|
|
388
|
-
var _this = this;
|
|
389
|
-
return { typeName: TokenPolicy.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicy.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return TokenPolicy.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return TokenPolicy.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return TokenPolicy.fromBcs(T, data); }, bcs: TokenPolicy.bcs, fromJSONField: function (field) { return TokenPolicy.fromJSONField(T, field); }, fromJSON: function (json) { return TokenPolicy.fromJSON(T, json); }, fromSuiParsedData: function (content) { return TokenPolicy.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
390
|
-
return [2 /*return*/, TokenPolicy.fetch(client, T, id)];
|
|
391
|
-
}); }); }, new: function (fields) { return new TokenPolicy([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
392
|
-
};
|
|
393
|
-
Object.defineProperty(TokenPolicy, "r", {
|
|
394
|
-
get: function () { return TokenPolicy.reified; },
|
|
395
|
-
enumerable: false,
|
|
396
|
-
configurable: true
|
|
397
|
-
});
|
|
398
|
-
TokenPolicy.phantom = function (T) { return (0, reified_1.phantom)(TokenPolicy.reified(T)); };
|
|
399
|
-
Object.defineProperty(TokenPolicy, "p", {
|
|
400
|
-
get: function () { return TokenPolicy.phantom; },
|
|
401
|
-
enumerable: false,
|
|
402
|
-
configurable: true
|
|
403
|
-
});
|
|
404
|
-
Object.defineProperty(TokenPolicy, "bcs", {
|
|
405
|
-
get: function () {
|
|
406
|
-
return bcs_1.bcs.struct("TokenPolicy", {
|
|
407
|
-
id: structs_5.UID.bcs, spent_balance: structs_4.Balance.bcs, rules: structs_6.VecMap.bcs(structs_2.String.bcs, structs_7.VecSet.bcs(structs_3.TypeName.bcs))
|
|
408
|
-
});
|
|
409
|
-
},
|
|
410
|
-
enumerable: false,
|
|
411
|
-
configurable: true
|
|
412
|
-
});
|
|
413
|
-
;
|
|
414
|
-
TokenPolicy.fromFields = function (typeArg, fields) { return TokenPolicy.reified(typeArg).new({ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id), spentBalance: (0, reified_1.decodeFromFields)(structs_4.Balance.reified(typeArg), fields.spent_balance), rules: (0, reified_1.decodeFromFields)(structs_6.VecMap.reified(structs_2.String.reified(), structs_7.VecSet.reified(structs_3.TypeName.reified())), fields.rules) }); };
|
|
415
|
-
TokenPolicy.fromFieldsWithTypes = function (typeArg, item) {
|
|
416
|
-
if (!isTokenPolicy(item.type)) {
|
|
417
|
-
throw new Error("not a TokenPolicy type");
|
|
418
|
-
}
|
|
419
|
-
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
420
|
-
return TokenPolicy.reified(typeArg).new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id), spentBalance: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Balance.reified(typeArg), item.fields.spent_balance), rules: (0, reified_1.decodeFromFieldsWithTypes)(structs_6.VecMap.reified(structs_2.String.reified(), structs_7.VecSet.reified(structs_3.TypeName.reified())), item.fields.rules) });
|
|
421
|
-
};
|
|
422
|
-
TokenPolicy.fromBcs = function (typeArg, data) { return TokenPolicy.fromFields(typeArg, TokenPolicy.bcs.parse(data)); };
|
|
423
|
-
TokenPolicy.prototype.toJSONField = function () {
|
|
424
|
-
return {
|
|
425
|
-
id: this.id, spentBalance: this.spentBalance.toJSONField(), rules: this.rules.toJSONField(),
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
TokenPolicy.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
429
|
-
TokenPolicy.fromJSONField = function (typeArg, field) { return TokenPolicy.reified(typeArg).new({ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id), spentBalance: (0, reified_1.decodeFromJSONField)(structs_4.Balance.reified(typeArg), field.spentBalance), rules: (0, reified_1.decodeFromJSONField)(structs_6.VecMap.reified(structs_2.String.reified(), structs_7.VecSet.reified(structs_3.TypeName.reified())), field.rules) }); };
|
|
430
|
-
TokenPolicy.fromJSON = function (typeArg, json) {
|
|
431
|
-
if (json.$typeName !== TokenPolicy.$typeName) {
|
|
432
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
433
|
-
}
|
|
434
|
-
;
|
|
435
|
-
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TokenPolicy.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
436
|
-
return TokenPolicy.fromJSONField(typeArg, json);
|
|
437
|
-
};
|
|
438
|
-
TokenPolicy.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
439
|
-
throw new Error("not an object");
|
|
440
|
-
} if (!isTokenPolicy(content.type)) {
|
|
441
|
-
throw new Error("object at ".concat(content.fields.id, " is not a TokenPolicy object"));
|
|
442
|
-
} return TokenPolicy.fromFieldsWithTypes(typeArg, content); };
|
|
443
|
-
TokenPolicy.fetch = function (client, typeArg, id) {
|
|
444
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
445
|
-
var res;
|
|
446
|
-
var _a, _b;
|
|
447
|
-
return __generator(this, function (_c) {
|
|
448
|
-
switch (_c.label) {
|
|
449
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
450
|
-
case 1:
|
|
451
|
-
res = _c.sent();
|
|
452
|
-
if (res.error) {
|
|
453
|
-
throw new Error("error fetching TokenPolicy object at id ".concat(id, ": ").concat(res.error.code));
|
|
454
|
-
}
|
|
455
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTokenPolicy(res.data.bcs.type)) {
|
|
456
|
-
throw new Error("object at id ".concat(id, " is not a TokenPolicy object"));
|
|
457
|
-
}
|
|
458
|
-
return [2 /*return*/, TokenPolicy.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
});
|
|
462
|
-
};
|
|
463
|
-
TokenPolicy.$typeName = "0x2::token::TokenPolicy";
|
|
464
|
-
TokenPolicy.$numTypeParams = 1;
|
|
465
|
-
return TokenPolicy;
|
|
466
|
-
}());
|
|
467
|
-
exports.TokenPolicy = TokenPolicy;
|
|
468
|
-
/* ============================== TokenPolicyCap =============================== */
|
|
469
|
-
function isTokenPolicyCap(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::token::TokenPolicyCap<"); }
|
|
470
|
-
var TokenPolicyCap = /** @class */ (function () {
|
|
471
|
-
function TokenPolicyCap(typeArgs, fields) {
|
|
472
|
-
this.$typeName = TokenPolicyCap.$typeName;
|
|
473
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCap.$typeName], __read(typeArgs), false));
|
|
474
|
-
this.$typeArgs = typeArgs;
|
|
475
|
-
this.id = fields.id;
|
|
476
|
-
;
|
|
477
|
-
this.for = fields.for;
|
|
478
|
-
}
|
|
479
|
-
TokenPolicyCap.reified = function (T) {
|
|
480
|
-
var _this = this;
|
|
481
|
-
return { typeName: TokenPolicyCap.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCap.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return TokenPolicyCap.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return TokenPolicyCap.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return TokenPolicyCap.fromBcs(T, data); }, bcs: TokenPolicyCap.bcs, fromJSONField: function (field) { return TokenPolicyCap.fromJSONField(T, field); }, fromJSON: function (json) { return TokenPolicyCap.fromJSON(T, json); }, fromSuiParsedData: function (content) { return TokenPolicyCap.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
482
|
-
return [2 /*return*/, TokenPolicyCap.fetch(client, T, id)];
|
|
483
|
-
}); }); }, new: function (fields) { return new TokenPolicyCap([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
484
|
-
};
|
|
485
|
-
Object.defineProperty(TokenPolicyCap, "r", {
|
|
486
|
-
get: function () { return TokenPolicyCap.reified; },
|
|
487
|
-
enumerable: false,
|
|
488
|
-
configurable: true
|
|
489
|
-
});
|
|
490
|
-
TokenPolicyCap.phantom = function (T) { return (0, reified_1.phantom)(TokenPolicyCap.reified(T)); };
|
|
491
|
-
Object.defineProperty(TokenPolicyCap, "p", {
|
|
492
|
-
get: function () { return TokenPolicyCap.phantom; },
|
|
493
|
-
enumerable: false,
|
|
494
|
-
configurable: true
|
|
495
|
-
});
|
|
496
|
-
Object.defineProperty(TokenPolicyCap, "bcs", {
|
|
497
|
-
get: function () {
|
|
498
|
-
return bcs_1.bcs.struct("TokenPolicyCap", {
|
|
499
|
-
id: structs_5.UID.bcs, for: structs_5.ID.bcs
|
|
500
|
-
});
|
|
501
|
-
},
|
|
502
|
-
enumerable: false,
|
|
503
|
-
configurable: true
|
|
504
|
-
});
|
|
505
|
-
;
|
|
506
|
-
TokenPolicyCap.fromFields = function (typeArg, fields) { return TokenPolicyCap.reified(typeArg).new({ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id), for: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.for) }); };
|
|
507
|
-
TokenPolicyCap.fromFieldsWithTypes = function (typeArg, item) {
|
|
508
|
-
if (!isTokenPolicyCap(item.type)) {
|
|
509
|
-
throw new Error("not a TokenPolicyCap type");
|
|
510
|
-
}
|
|
511
|
-
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
512
|
-
return TokenPolicyCap.reified(typeArg).new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id), for: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.for) });
|
|
513
|
-
};
|
|
514
|
-
TokenPolicyCap.fromBcs = function (typeArg, data) { return TokenPolicyCap.fromFields(typeArg, TokenPolicyCap.bcs.parse(data)); };
|
|
515
|
-
TokenPolicyCap.prototype.toJSONField = function () {
|
|
516
|
-
return {
|
|
517
|
-
id: this.id, for: this.for,
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
|
-
TokenPolicyCap.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
521
|
-
TokenPolicyCap.fromJSONField = function (typeArg, field) { return TokenPolicyCap.reified(typeArg).new({ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id), for: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.for) }); };
|
|
522
|
-
TokenPolicyCap.fromJSON = function (typeArg, json) {
|
|
523
|
-
if (json.$typeName !== TokenPolicyCap.$typeName) {
|
|
524
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
525
|
-
}
|
|
526
|
-
;
|
|
527
|
-
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TokenPolicyCap.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
528
|
-
return TokenPolicyCap.fromJSONField(typeArg, json);
|
|
529
|
-
};
|
|
530
|
-
TokenPolicyCap.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
531
|
-
throw new Error("not an object");
|
|
532
|
-
} if (!isTokenPolicyCap(content.type)) {
|
|
533
|
-
throw new Error("object at ".concat(content.fields.id, " is not a TokenPolicyCap object"));
|
|
534
|
-
} return TokenPolicyCap.fromFieldsWithTypes(typeArg, content); };
|
|
535
|
-
TokenPolicyCap.fetch = function (client, typeArg, id) {
|
|
536
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
537
|
-
var res;
|
|
538
|
-
var _a, _b;
|
|
539
|
-
return __generator(this, function (_c) {
|
|
540
|
-
switch (_c.label) {
|
|
541
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
542
|
-
case 1:
|
|
543
|
-
res = _c.sent();
|
|
544
|
-
if (res.error) {
|
|
545
|
-
throw new Error("error fetching TokenPolicyCap object at id ".concat(id, ": ").concat(res.error.code));
|
|
546
|
-
}
|
|
547
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTokenPolicyCap(res.data.bcs.type)) {
|
|
548
|
-
throw new Error("object at id ".concat(id, " is not a TokenPolicyCap object"));
|
|
549
|
-
}
|
|
550
|
-
return [2 /*return*/, TokenPolicyCap.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
});
|
|
554
|
-
};
|
|
555
|
-
TokenPolicyCap.$typeName = "0x2::token::TokenPolicyCap";
|
|
556
|
-
TokenPolicyCap.$numTypeParams = 1;
|
|
557
|
-
return TokenPolicyCap;
|
|
558
|
-
}());
|
|
559
|
-
exports.TokenPolicyCap = TokenPolicyCap;
|
|
560
|
-
/* ============================== TokenPolicyCreated =============================== */
|
|
561
|
-
function isTokenPolicyCreated(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::token::TokenPolicyCreated<"); }
|
|
562
|
-
var TokenPolicyCreated = /** @class */ (function () {
|
|
563
|
-
function TokenPolicyCreated(typeArgs, fields) {
|
|
564
|
-
this.$typeName = TokenPolicyCreated.$typeName;
|
|
565
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCreated.$typeName], __read(typeArgs), false));
|
|
566
|
-
this.$typeArgs = typeArgs;
|
|
567
|
-
this.id = fields.id;
|
|
568
|
-
;
|
|
569
|
-
this.isMutable = fields.isMutable;
|
|
570
|
-
}
|
|
571
|
-
TokenPolicyCreated.reified = function (T) {
|
|
572
|
-
var _this = this;
|
|
573
|
-
return { typeName: TokenPolicyCreated.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCreated.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return TokenPolicyCreated.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return TokenPolicyCreated.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return TokenPolicyCreated.fromBcs(T, data); }, bcs: TokenPolicyCreated.bcs, fromJSONField: function (field) { return TokenPolicyCreated.fromJSONField(T, field); }, fromJSON: function (json) { return TokenPolicyCreated.fromJSON(T, json); }, fromSuiParsedData: function (content) { return TokenPolicyCreated.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
574
|
-
return [2 /*return*/, TokenPolicyCreated.fetch(client, T, id)];
|
|
575
|
-
}); }); }, new: function (fields) { return new TokenPolicyCreated([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
576
|
-
};
|
|
577
|
-
Object.defineProperty(TokenPolicyCreated, "r", {
|
|
578
|
-
get: function () { return TokenPolicyCreated.reified; },
|
|
579
|
-
enumerable: false,
|
|
580
|
-
configurable: true
|
|
581
|
-
});
|
|
582
|
-
TokenPolicyCreated.phantom = function (T) { return (0, reified_1.phantom)(TokenPolicyCreated.reified(T)); };
|
|
583
|
-
Object.defineProperty(TokenPolicyCreated, "p", {
|
|
584
|
-
get: function () { return TokenPolicyCreated.phantom; },
|
|
585
|
-
enumerable: false,
|
|
586
|
-
configurable: true
|
|
587
|
-
});
|
|
588
|
-
Object.defineProperty(TokenPolicyCreated, "bcs", {
|
|
589
|
-
get: function () {
|
|
590
|
-
return bcs_1.bcs.struct("TokenPolicyCreated", {
|
|
591
|
-
id: structs_5.ID.bcs, is_mutable: bcs_1.bcs.bool()
|
|
592
|
-
});
|
|
593
|
-
},
|
|
594
|
-
enumerable: false,
|
|
595
|
-
configurable: true
|
|
596
|
-
});
|
|
597
|
-
;
|
|
598
|
-
TokenPolicyCreated.fromFields = function (typeArg, fields) { return TokenPolicyCreated.reified(typeArg).new({ id: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.id), isMutable: (0, reified_1.decodeFromFields)("bool", fields.is_mutable) }); };
|
|
599
|
-
TokenPolicyCreated.fromFieldsWithTypes = function (typeArg, item) {
|
|
600
|
-
if (!isTokenPolicyCreated(item.type)) {
|
|
601
|
-
throw new Error("not a TokenPolicyCreated type");
|
|
602
|
-
}
|
|
603
|
-
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
604
|
-
return TokenPolicyCreated.reified(typeArg).new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.id), isMutable: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_mutable) });
|
|
605
|
-
};
|
|
606
|
-
TokenPolicyCreated.fromBcs = function (typeArg, data) { return TokenPolicyCreated.fromFields(typeArg, TokenPolicyCreated.bcs.parse(data)); };
|
|
607
|
-
TokenPolicyCreated.prototype.toJSONField = function () {
|
|
608
|
-
return {
|
|
609
|
-
id: this.id, isMutable: this.isMutable,
|
|
610
|
-
};
|
|
611
|
-
};
|
|
612
|
-
TokenPolicyCreated.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
613
|
-
TokenPolicyCreated.fromJSONField = function (typeArg, field) { return TokenPolicyCreated.reified(typeArg).new({ id: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.id), isMutable: (0, reified_1.decodeFromJSONField)("bool", field.isMutable) }); };
|
|
614
|
-
TokenPolicyCreated.fromJSON = function (typeArg, json) {
|
|
615
|
-
if (json.$typeName !== TokenPolicyCreated.$typeName) {
|
|
616
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
617
|
-
}
|
|
618
|
-
;
|
|
619
|
-
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TokenPolicyCreated.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
620
|
-
return TokenPolicyCreated.fromJSONField(typeArg, json);
|
|
621
|
-
};
|
|
622
|
-
TokenPolicyCreated.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
623
|
-
throw new Error("not an object");
|
|
624
|
-
} if (!isTokenPolicyCreated(content.type)) {
|
|
625
|
-
throw new Error("object at ".concat(content.fields.id, " is not a TokenPolicyCreated object"));
|
|
626
|
-
} return TokenPolicyCreated.fromFieldsWithTypes(typeArg, content); };
|
|
627
|
-
TokenPolicyCreated.fetch = function (client, typeArg, id) {
|
|
628
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
629
|
-
var res;
|
|
630
|
-
var _a, _b;
|
|
631
|
-
return __generator(this, function (_c) {
|
|
632
|
-
switch (_c.label) {
|
|
633
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
634
|
-
case 1:
|
|
635
|
-
res = _c.sent();
|
|
636
|
-
if (res.error) {
|
|
637
|
-
throw new Error("error fetching TokenPolicyCreated object at id ".concat(id, ": ").concat(res.error.code));
|
|
638
|
-
}
|
|
639
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTokenPolicyCreated(res.data.bcs.type)) {
|
|
640
|
-
throw new Error("object at id ".concat(id, " is not a TokenPolicyCreated object"));
|
|
641
|
-
}
|
|
642
|
-
return [2 /*return*/, TokenPolicyCreated.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
643
|
-
}
|
|
644
|
-
});
|
|
645
|
-
});
|
|
646
|
-
};
|
|
647
|
-
TokenPolicyCreated.$typeName = "0x2::token::TokenPolicyCreated";
|
|
648
|
-
TokenPolicyCreated.$numTypeParams = 1;
|
|
649
|
-
return TokenPolicyCreated;
|
|
650
|
-
}());
|
|
651
|
-
exports.TokenPolicyCreated = TokenPolicyCreated;
|