@typus/typus-perp-sdk 1.0.0 → 1.0.2
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/dist/src/_framework/init-loader.js +4 -32
- package/dist/src/fetch.d.ts +8 -4
- package/dist/src/fetch.js +107 -110
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +0 -2
- package/dist/src/typus_perp/admin/structs.d.ts +4 -4
- package/dist/src/typus_perp/error/functions.d.ts +3 -0
- package/dist/src/typus_perp/error/functions.js +12 -0
- package/dist/src/typus_perp/escrow/structs.d.ts +1 -1
- package/dist/src/typus_perp/index.js +4 -4
- package/dist/src/typus_perp/init.js +0 -1
- package/dist/src/typus_perp/lp-pool/structs.d.ts +26 -26
- package/dist/src/typus_perp/oracle/structs.d.ts +2 -2
- package/dist/src/typus_perp/position/structs.d.ts +25 -7
- package/dist/src/typus_perp/position/structs.js +12 -0
- package/dist/src/typus_perp/symbol/structs.d.ts +1 -1
- package/dist/src/typus_perp/tlp/structs.d.ts +2 -2
- package/dist/src/typus_perp/trading/structs.d.ts +35 -139
- package/dist/src/typus_perp/trading/structs.js +7 -173
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
- package/dist/src/typus_stake_pool/admin/structs.d.ts +4 -4
- package/dist/src/typus_stake_pool/index.js +4 -4
- package/dist/src/typus_stake_pool/init.js +2 -2
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +16 -16
- package/dist/src/typus_stake_pool/stake-pool/functions.js +28 -28
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +202 -202
- package/dist/src/typus_stake_pool/stake-pool/structs.js +404 -404
- package/dist/src/user/history.js +4 -4
- package/package.json +1 -1
- package/dist/src/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -56
- package/dist/src/_dependencies/source/0x1/bit-vector/structs.js +0 -268
- package/dist/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x1/fixed-point32/structs.js +0 -222
- package/dist/src/_dependencies/source/0x1/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x1/init.js +0 -55
- package/dist/src/_dependencies/source/0x1/uq32-32/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x1/uq32-32/structs.js +0 -222
- package/dist/src/_dependencies/source/0x1/uq64-64/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x1/uq64-64/structs.js +0 -222
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -5
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -8
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -50
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -350
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -794
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -111
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -389
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -70
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -252
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -70
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -252
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -464
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -904
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
- package/dist/src/_dependencies/source/0x2/bcs/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0x2/bcs/structs.js +0 -256
- package/dist/src/_dependencies/source/0x2/bls12381/structs.d.ts +0 -214
- package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -790
- package/dist/src/_dependencies/source/0x2/borrow/structs.d.ts +0 -113
- package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -398
- package/dist/src/_dependencies/source/0x2/clock/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/clock/structs.js +0 -235
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
- package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
- package/dist/src/_dependencies/source/0x2/config/structs.d.ts +0 -179
- package/dist/src/_dependencies/source/0x2/config/structs.js +0 -567
- package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -430
- package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -1166
- package/dist/src/_dependencies/source/0x2/display/structs.d.ts +0 -241
- package/dist/src/_dependencies/source/0x2/display/structs.js +0 -578
- package/dist/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0x2/dynamic-field/structs.js +0 -256
- package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -47
- package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -236
- package/dist/src/_dependencies/source/0x2/groth16/structs.d.ts +0 -204
- package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -706
- package/dist/src/_dependencies/source/0x2/group-ops/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0x2/group-ops/structs.js +0 -267
- package/dist/src/_dependencies/source/0x2/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x2/init.js +0 -171
- package/dist/src/_dependencies/source/0x2/kiosk/structs.d.ts +0 -606
- package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1719
- package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -121
- package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.js +0 -394
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x2/object-bag/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/object-bag/structs.js +0 -229
- package/dist/src/_dependencies/source/0x2/package/structs.d.ts +0 -280
- package/dist/src/_dependencies/source/0x2/package/structs.js +0 -762
- package/dist/src/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -111
- package/dist/src/_dependencies/source/0x2/priority-queue/structs.js +0 -440
- package/dist/src/_dependencies/source/0x2/random/structs.d.ts +0 -204
- package/dist/src/_dependencies/source/0x2/random/structs.js +0 -596
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -449
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
- package/dist/src/_dependencies/source/0x2/transfer/structs.d.ts +0 -57
- package/dist/src/_dependencies/source/0x2/transfer/structs.js +0 -246
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
- package/dist/src/_dependencies/source/0x2/tx-context/structs.d.ts +0 -74
- package/dist/src/_dependencies/source/0x2/tx-context/structs.js +0 -286
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -53
- package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/versioned/structs.d.ts +0 -113
- package/dist/src/_dependencies/source/0x2/versioned/structs.js +0 -389
- package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -110
- package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -260
- package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -74
- package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -242
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -6
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -40
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -55
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -4
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -7
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -43
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -222
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -121
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -395
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -489
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -1084
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -456
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -239
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -653
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -405
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -899
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -102
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -699
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -1459
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -430
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +0 -1071
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +0 -2261
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -279
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -733
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -328
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -892
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -628
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -1324
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -9
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -12
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -72
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -94
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -376
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -454
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -881
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1117
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -2387
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1524
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -3008
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -10
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -13
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -145
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1267
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -2820
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1412
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -1646
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -425
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -1223
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -1156
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -1828
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -82
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -264
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -5022
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -7585
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -6
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -263
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -347
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -591
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -73
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -258
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -876
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -1721
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -222
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -89
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -155
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -444
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -745
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -1221
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -53
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -87
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -287
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -58
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -240
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -121
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -323
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -55
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -223
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +0 -289
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +0 -453
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +0 -114
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +0 -378
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +0 -71
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +0 -235
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +0 -209
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +0 -377
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +0 -73
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +0 -275
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +0 -222
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +0 -77
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +0 -281
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +0 -51
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +0 -270
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +0 -52
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +0 -234
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +0 -6
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +0 -95
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +0 -51
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +0 -223
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +0 -89
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +0 -247
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +0 -158
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +0 -242
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +0 -256
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +0 -360
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +0 -396
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +0 -222
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +0 -120
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +0 -425
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +0 -81
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +0 -257
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +0 -222
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +0 -77
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +0 -241
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +0 -222
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +0 -52
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +0 -234
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +0 -55
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +0 -223
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +0 -282
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +0 -560
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +0 -130
- package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +0 -506
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -6
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -46
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -364
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -94
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -376
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -233
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +0 -256
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +0 -256
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +0 -77
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +0 -260
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +0 -51
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +0 -270
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +0 -153
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +0 -519
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +0 -57
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +0 -223
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +0 -63
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +0 -270
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +0 -168
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +0 -470
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +0 -57
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +0 -223
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +0 -81
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +0 -275
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +0 -85
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +0 -247
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +0 -6
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +0 -100
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +0 -51
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +0 -223
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +0 -194
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +0 -662
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +0 -151
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +0 -459
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +0 -110
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +0 -416
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +0 -364
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +0 -55
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +0 -223
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +0 -278
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +0 -459
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +0 -94
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +0 -376
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +0 -159
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +0 -553
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +0 -156
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +0 -520
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +0 -128
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +0 -312
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +0 -364
- package/dist/src/readVec.d.ts +0 -3
- package/dist/src/readVec.js +0 -118
|
@@ -1,1166 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
-
var ownKeys = function(o) {
|
|
31
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
-
var ar = [];
|
|
33
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
-
return ar;
|
|
35
|
-
};
|
|
36
|
-
return ownKeys(o);
|
|
37
|
-
};
|
|
38
|
-
return function (mod) {
|
|
39
|
-
if (mod && mod.__esModule) return mod;
|
|
40
|
-
var result = {};
|
|
41
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
-
__setModuleDefault(result, mod);
|
|
43
|
-
return result;
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
46
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
47
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
48
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
49
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
50
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
51
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
52
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
56
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
57
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
58
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
59
|
-
function step(op) {
|
|
60
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
61
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
62
|
-
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;
|
|
63
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
64
|
-
switch (op[0]) {
|
|
65
|
-
case 0: case 1: t = op; break;
|
|
66
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
67
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
68
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
69
|
-
default:
|
|
70
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
71
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
72
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
73
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
74
|
-
if (t[2]) _.ops.pop();
|
|
75
|
-
_.trys.pop(); continue;
|
|
76
|
-
}
|
|
77
|
-
op = body.call(thisArg, _);
|
|
78
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
79
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
83
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
84
|
-
if (!m) return o;
|
|
85
|
-
var i = m.call(o), r, ar = [], e;
|
|
86
|
-
try {
|
|
87
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
88
|
-
}
|
|
89
|
-
catch (error) { e = { error: error }; }
|
|
90
|
-
finally {
|
|
91
|
-
try {
|
|
92
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
93
|
-
}
|
|
94
|
-
finally { if (e) throw e.error; }
|
|
95
|
-
}
|
|
96
|
-
return ar;
|
|
97
|
-
};
|
|
98
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
99
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
100
|
-
if (ar || !(i in from)) {
|
|
101
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
102
|
-
ar[i] = from[i];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
106
|
-
};
|
|
107
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
108
|
-
exports.PerTypeList = exports.PerTypeConfigCreated = exports.GlobalPauseKey = exports.DenyList = exports.ConfigWriteCap = exports.ConfigKey = exports.AddressKey = void 0;
|
|
109
|
-
exports.isAddressKey = isAddressKey;
|
|
110
|
-
exports.isConfigKey = isConfigKey;
|
|
111
|
-
exports.isConfigWriteCap = isConfigWriteCap;
|
|
112
|
-
exports.isDenyList = isDenyList;
|
|
113
|
-
exports.isGlobalPauseKey = isGlobalPauseKey;
|
|
114
|
-
exports.isPerTypeConfigCreated = isPerTypeConfigCreated;
|
|
115
|
-
exports.isPerTypeList = isPerTypeList;
|
|
116
|
-
var reified = __importStar(require("../../../../_framework/reified"));
|
|
117
|
-
var reified_1 = require("../../../../_framework/reified");
|
|
118
|
-
var util_1 = require("../../../../_framework/util");
|
|
119
|
-
var structs_1 = require("../bag/structs");
|
|
120
|
-
var index_1 = require("../index");
|
|
121
|
-
var structs_2 = require("../object/structs");
|
|
122
|
-
var structs_3 = require("../table/structs");
|
|
123
|
-
var structs_4 = require("../vec-set/structs");
|
|
124
|
-
var bcs_1 = require("@mysten/sui/bcs");
|
|
125
|
-
var utils_1 = require("@mysten/sui/utils");
|
|
126
|
-
/* ============================== AddressKey =============================== */
|
|
127
|
-
function isAddressKey(type) {
|
|
128
|
-
type = (0, util_1.compressSuiType)(type);
|
|
129
|
-
return type === "".concat(index_1.PKG_V26, "::deny_list::AddressKey");
|
|
130
|
-
}
|
|
131
|
-
var AddressKey = /** @class */ (function () {
|
|
132
|
-
function AddressKey(typeArgs, fields) {
|
|
133
|
-
this.__StructClass = true;
|
|
134
|
-
this.$typeName = AddressKey.$typeName;
|
|
135
|
-
this.$isPhantom = AddressKey.$isPhantom;
|
|
136
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddressKey.$typeName], __read(typeArgs), false));
|
|
137
|
-
this.$typeArgs = typeArgs;
|
|
138
|
-
this.pos0 = fields.pos0;
|
|
139
|
-
}
|
|
140
|
-
AddressKey.reified = function () {
|
|
141
|
-
var _this = this;
|
|
142
|
-
return {
|
|
143
|
-
typeName: AddressKey.$typeName,
|
|
144
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddressKey.$typeName], [], false)),
|
|
145
|
-
typeArgs: [],
|
|
146
|
-
isPhantom: AddressKey.$isPhantom,
|
|
147
|
-
reifiedTypeArgs: [],
|
|
148
|
-
fromFields: function (fields) { return AddressKey.fromFields(fields); },
|
|
149
|
-
fromFieldsWithTypes: function (item) { return AddressKey.fromFieldsWithTypes(item); },
|
|
150
|
-
fromBcs: function (data) { return AddressKey.fromBcs(data); },
|
|
151
|
-
bcs: AddressKey.bcs,
|
|
152
|
-
fromJSONField: function (field) { return AddressKey.fromJSONField(field); },
|
|
153
|
-
fromJSON: function (json) { return AddressKey.fromJSON(json); },
|
|
154
|
-
fromSuiParsedData: function (content) { return AddressKey.fromSuiParsedData(content); },
|
|
155
|
-
fromSuiObjectData: function (content) { return AddressKey.fromSuiObjectData(content); },
|
|
156
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
157
|
-
return [2 /*return*/, AddressKey.fetch(client, id)];
|
|
158
|
-
}); }); },
|
|
159
|
-
new: function (fields) {
|
|
160
|
-
return new AddressKey([], fields);
|
|
161
|
-
},
|
|
162
|
-
kind: "StructClassReified",
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
Object.defineProperty(AddressKey, "r", {
|
|
166
|
-
get: function () {
|
|
167
|
-
return AddressKey.reified();
|
|
168
|
-
},
|
|
169
|
-
enumerable: false,
|
|
170
|
-
configurable: true
|
|
171
|
-
});
|
|
172
|
-
AddressKey.phantom = function () {
|
|
173
|
-
return (0, reified_1.phantom)(AddressKey.reified());
|
|
174
|
-
};
|
|
175
|
-
Object.defineProperty(AddressKey, "p", {
|
|
176
|
-
get: function () {
|
|
177
|
-
return AddressKey.phantom();
|
|
178
|
-
},
|
|
179
|
-
enumerable: false,
|
|
180
|
-
configurable: true
|
|
181
|
-
});
|
|
182
|
-
Object.defineProperty(AddressKey, "bcs", {
|
|
183
|
-
get: function () {
|
|
184
|
-
return bcs_1.bcs.struct("AddressKey", {
|
|
185
|
-
pos0: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
|
|
186
|
-
});
|
|
187
|
-
},
|
|
188
|
-
enumerable: false,
|
|
189
|
-
configurable: true
|
|
190
|
-
});
|
|
191
|
-
AddressKey.fromFields = function (fields) {
|
|
192
|
-
return AddressKey.reified().new({ pos0: (0, reified_1.decodeFromFields)("address", fields.pos0) });
|
|
193
|
-
};
|
|
194
|
-
AddressKey.fromFieldsWithTypes = function (item) {
|
|
195
|
-
if (!isAddressKey(item.type)) {
|
|
196
|
-
throw new Error("not a AddressKey type");
|
|
197
|
-
}
|
|
198
|
-
return AddressKey.reified().new({ pos0: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.pos0) });
|
|
199
|
-
};
|
|
200
|
-
AddressKey.fromBcs = function (data) {
|
|
201
|
-
return AddressKey.fromFields(AddressKey.bcs.parse(data));
|
|
202
|
-
};
|
|
203
|
-
AddressKey.prototype.toJSONField = function () {
|
|
204
|
-
return {
|
|
205
|
-
pos0: this.pos0,
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
AddressKey.prototype.toJSON = function () {
|
|
209
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
210
|
-
};
|
|
211
|
-
AddressKey.fromJSONField = function (field) {
|
|
212
|
-
return AddressKey.reified().new({ pos0: (0, reified_1.decodeFromJSONField)("address", field.pos0) });
|
|
213
|
-
};
|
|
214
|
-
AddressKey.fromJSON = function (json) {
|
|
215
|
-
if (json.$typeName !== AddressKey.$typeName) {
|
|
216
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
217
|
-
}
|
|
218
|
-
return AddressKey.fromJSONField(json);
|
|
219
|
-
};
|
|
220
|
-
AddressKey.fromSuiParsedData = function (content) {
|
|
221
|
-
if (content.dataType !== "moveObject") {
|
|
222
|
-
throw new Error("not an object");
|
|
223
|
-
}
|
|
224
|
-
if (!isAddressKey(content.type)) {
|
|
225
|
-
throw new Error("object at ".concat(content.fields.id, " is not a AddressKey object"));
|
|
226
|
-
}
|
|
227
|
-
return AddressKey.fromFieldsWithTypes(content);
|
|
228
|
-
};
|
|
229
|
-
AddressKey.fromSuiObjectData = function (data) {
|
|
230
|
-
if (data.bcs) {
|
|
231
|
-
if (data.bcs.dataType !== "moveObject" || !isAddressKey(data.bcs.type)) {
|
|
232
|
-
throw new Error("object at is not a AddressKey object");
|
|
233
|
-
}
|
|
234
|
-
return AddressKey.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
235
|
-
}
|
|
236
|
-
if (data.content) {
|
|
237
|
-
return AddressKey.fromSuiParsedData(data.content);
|
|
238
|
-
}
|
|
239
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
240
|
-
};
|
|
241
|
-
AddressKey.fetch = function (client, id) {
|
|
242
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
-
var res;
|
|
244
|
-
var _a, _b;
|
|
245
|
-
return __generator(this, function (_c) {
|
|
246
|
-
switch (_c.label) {
|
|
247
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
248
|
-
case 1:
|
|
249
|
-
res = _c.sent();
|
|
250
|
-
if (res.error) {
|
|
251
|
-
throw new Error("error fetching AddressKey object at id ".concat(id, ": ").concat(res.error.code));
|
|
252
|
-
}
|
|
253
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddressKey(res.data.bcs.type)) {
|
|
254
|
-
throw new Error("object at id ".concat(id, " is not a AddressKey object"));
|
|
255
|
-
}
|
|
256
|
-
return [2 /*return*/, AddressKey.fromSuiObjectData(res.data)];
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
AddressKey.$typeName = "".concat(index_1.PKG_V26, "::deny_list::AddressKey");
|
|
262
|
-
AddressKey.$numTypeParams = 0;
|
|
263
|
-
AddressKey.$isPhantom = [];
|
|
264
|
-
return AddressKey;
|
|
265
|
-
}());
|
|
266
|
-
exports.AddressKey = AddressKey;
|
|
267
|
-
/* ============================== ConfigKey =============================== */
|
|
268
|
-
function isConfigKey(type) {
|
|
269
|
-
type = (0, util_1.compressSuiType)(type);
|
|
270
|
-
return type === "".concat(index_1.PKG_V26, "::deny_list::ConfigKey");
|
|
271
|
-
}
|
|
272
|
-
var ConfigKey = /** @class */ (function () {
|
|
273
|
-
function ConfigKey(typeArgs, fields) {
|
|
274
|
-
this.__StructClass = true;
|
|
275
|
-
this.$typeName = ConfigKey.$typeName;
|
|
276
|
-
this.$isPhantom = ConfigKey.$isPhantom;
|
|
277
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ConfigKey.$typeName], __read(typeArgs), false));
|
|
278
|
-
this.$typeArgs = typeArgs;
|
|
279
|
-
this.perTypeIndex = fields.perTypeIndex;
|
|
280
|
-
this.perTypeKey = fields.perTypeKey;
|
|
281
|
-
}
|
|
282
|
-
ConfigKey.reified = function () {
|
|
283
|
-
var _this = this;
|
|
284
|
-
return {
|
|
285
|
-
typeName: ConfigKey.$typeName,
|
|
286
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ConfigKey.$typeName], [], false)),
|
|
287
|
-
typeArgs: [],
|
|
288
|
-
isPhantom: ConfigKey.$isPhantom,
|
|
289
|
-
reifiedTypeArgs: [],
|
|
290
|
-
fromFields: function (fields) { return ConfigKey.fromFields(fields); },
|
|
291
|
-
fromFieldsWithTypes: function (item) { return ConfigKey.fromFieldsWithTypes(item); },
|
|
292
|
-
fromBcs: function (data) { return ConfigKey.fromBcs(data); },
|
|
293
|
-
bcs: ConfigKey.bcs,
|
|
294
|
-
fromJSONField: function (field) { return ConfigKey.fromJSONField(field); },
|
|
295
|
-
fromJSON: function (json) { return ConfigKey.fromJSON(json); },
|
|
296
|
-
fromSuiParsedData: function (content) { return ConfigKey.fromSuiParsedData(content); },
|
|
297
|
-
fromSuiObjectData: function (content) { return ConfigKey.fromSuiObjectData(content); },
|
|
298
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
299
|
-
return [2 /*return*/, ConfigKey.fetch(client, id)];
|
|
300
|
-
}); }); },
|
|
301
|
-
new: function (fields) {
|
|
302
|
-
return new ConfigKey([], fields);
|
|
303
|
-
},
|
|
304
|
-
kind: "StructClassReified",
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
Object.defineProperty(ConfigKey, "r", {
|
|
308
|
-
get: function () {
|
|
309
|
-
return ConfigKey.reified();
|
|
310
|
-
},
|
|
311
|
-
enumerable: false,
|
|
312
|
-
configurable: true
|
|
313
|
-
});
|
|
314
|
-
ConfigKey.phantom = function () {
|
|
315
|
-
return (0, reified_1.phantom)(ConfigKey.reified());
|
|
316
|
-
};
|
|
317
|
-
Object.defineProperty(ConfigKey, "p", {
|
|
318
|
-
get: function () {
|
|
319
|
-
return ConfigKey.phantom();
|
|
320
|
-
},
|
|
321
|
-
enumerable: false,
|
|
322
|
-
configurable: true
|
|
323
|
-
});
|
|
324
|
-
Object.defineProperty(ConfigKey, "bcs", {
|
|
325
|
-
get: function () {
|
|
326
|
-
return bcs_1.bcs.struct("ConfigKey", {
|
|
327
|
-
per_type_index: bcs_1.bcs.u64(),
|
|
328
|
-
per_type_key: bcs_1.bcs.vector(bcs_1.bcs.u8()),
|
|
329
|
-
});
|
|
330
|
-
},
|
|
331
|
-
enumerable: false,
|
|
332
|
-
configurable: true
|
|
333
|
-
});
|
|
334
|
-
ConfigKey.fromFields = function (fields) {
|
|
335
|
-
return ConfigKey.reified().new({
|
|
336
|
-
perTypeIndex: (0, reified_1.decodeFromFields)("u64", fields.per_type_index),
|
|
337
|
-
perTypeKey: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.per_type_key),
|
|
338
|
-
});
|
|
339
|
-
};
|
|
340
|
-
ConfigKey.fromFieldsWithTypes = function (item) {
|
|
341
|
-
if (!isConfigKey(item.type)) {
|
|
342
|
-
throw new Error("not a ConfigKey type");
|
|
343
|
-
}
|
|
344
|
-
return ConfigKey.reified().new({
|
|
345
|
-
perTypeIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.per_type_index),
|
|
346
|
-
perTypeKey: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.per_type_key),
|
|
347
|
-
});
|
|
348
|
-
};
|
|
349
|
-
ConfigKey.fromBcs = function (data) {
|
|
350
|
-
return ConfigKey.fromFields(ConfigKey.bcs.parse(data));
|
|
351
|
-
};
|
|
352
|
-
ConfigKey.prototype.toJSONField = function () {
|
|
353
|
-
return {
|
|
354
|
-
perTypeIndex: this.perTypeIndex.toString(),
|
|
355
|
-
perTypeKey: (0, reified_1.fieldToJSON)("vector<u8>", this.perTypeKey),
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
ConfigKey.prototype.toJSON = function () {
|
|
359
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
360
|
-
};
|
|
361
|
-
ConfigKey.fromJSONField = function (field) {
|
|
362
|
-
return ConfigKey.reified().new({
|
|
363
|
-
perTypeIndex: (0, reified_1.decodeFromJSONField)("u64", field.perTypeIndex),
|
|
364
|
-
perTypeKey: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.perTypeKey),
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
ConfigKey.fromJSON = function (json) {
|
|
368
|
-
if (json.$typeName !== ConfigKey.$typeName) {
|
|
369
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
370
|
-
}
|
|
371
|
-
return ConfigKey.fromJSONField(json);
|
|
372
|
-
};
|
|
373
|
-
ConfigKey.fromSuiParsedData = function (content) {
|
|
374
|
-
if (content.dataType !== "moveObject") {
|
|
375
|
-
throw new Error("not an object");
|
|
376
|
-
}
|
|
377
|
-
if (!isConfigKey(content.type)) {
|
|
378
|
-
throw new Error("object at ".concat(content.fields.id, " is not a ConfigKey object"));
|
|
379
|
-
}
|
|
380
|
-
return ConfigKey.fromFieldsWithTypes(content);
|
|
381
|
-
};
|
|
382
|
-
ConfigKey.fromSuiObjectData = function (data) {
|
|
383
|
-
if (data.bcs) {
|
|
384
|
-
if (data.bcs.dataType !== "moveObject" || !isConfigKey(data.bcs.type)) {
|
|
385
|
-
throw new Error("object at is not a ConfigKey object");
|
|
386
|
-
}
|
|
387
|
-
return ConfigKey.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
388
|
-
}
|
|
389
|
-
if (data.content) {
|
|
390
|
-
return ConfigKey.fromSuiParsedData(data.content);
|
|
391
|
-
}
|
|
392
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
393
|
-
};
|
|
394
|
-
ConfigKey.fetch = function (client, id) {
|
|
395
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
396
|
-
var res;
|
|
397
|
-
var _a, _b;
|
|
398
|
-
return __generator(this, function (_c) {
|
|
399
|
-
switch (_c.label) {
|
|
400
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
401
|
-
case 1:
|
|
402
|
-
res = _c.sent();
|
|
403
|
-
if (res.error) {
|
|
404
|
-
throw new Error("error fetching ConfigKey object at id ".concat(id, ": ").concat(res.error.code));
|
|
405
|
-
}
|
|
406
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isConfigKey(res.data.bcs.type)) {
|
|
407
|
-
throw new Error("object at id ".concat(id, " is not a ConfigKey object"));
|
|
408
|
-
}
|
|
409
|
-
return [2 /*return*/, ConfigKey.fromSuiObjectData(res.data)];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
};
|
|
414
|
-
ConfigKey.$typeName = "".concat(index_1.PKG_V26, "::deny_list::ConfigKey");
|
|
415
|
-
ConfigKey.$numTypeParams = 0;
|
|
416
|
-
ConfigKey.$isPhantom = [];
|
|
417
|
-
return ConfigKey;
|
|
418
|
-
}());
|
|
419
|
-
exports.ConfigKey = ConfigKey;
|
|
420
|
-
/* ============================== ConfigWriteCap =============================== */
|
|
421
|
-
function isConfigWriteCap(type) {
|
|
422
|
-
type = (0, util_1.compressSuiType)(type);
|
|
423
|
-
return type === "".concat(index_1.PKG_V26, "::deny_list::ConfigWriteCap");
|
|
424
|
-
}
|
|
425
|
-
var ConfigWriteCap = /** @class */ (function () {
|
|
426
|
-
function ConfigWriteCap(typeArgs, fields) {
|
|
427
|
-
this.__StructClass = true;
|
|
428
|
-
this.$typeName = ConfigWriteCap.$typeName;
|
|
429
|
-
this.$isPhantom = ConfigWriteCap.$isPhantom;
|
|
430
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ConfigWriteCap.$typeName], __read(typeArgs), false));
|
|
431
|
-
this.$typeArgs = typeArgs;
|
|
432
|
-
this.dummyField = fields.dummyField;
|
|
433
|
-
}
|
|
434
|
-
ConfigWriteCap.reified = function () {
|
|
435
|
-
var _this = this;
|
|
436
|
-
return {
|
|
437
|
-
typeName: ConfigWriteCap.$typeName,
|
|
438
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ConfigWriteCap.$typeName], [], false)),
|
|
439
|
-
typeArgs: [],
|
|
440
|
-
isPhantom: ConfigWriteCap.$isPhantom,
|
|
441
|
-
reifiedTypeArgs: [],
|
|
442
|
-
fromFields: function (fields) { return ConfigWriteCap.fromFields(fields); },
|
|
443
|
-
fromFieldsWithTypes: function (item) { return ConfigWriteCap.fromFieldsWithTypes(item); },
|
|
444
|
-
fromBcs: function (data) { return ConfigWriteCap.fromBcs(data); },
|
|
445
|
-
bcs: ConfigWriteCap.bcs,
|
|
446
|
-
fromJSONField: function (field) { return ConfigWriteCap.fromJSONField(field); },
|
|
447
|
-
fromJSON: function (json) { return ConfigWriteCap.fromJSON(json); },
|
|
448
|
-
fromSuiParsedData: function (content) { return ConfigWriteCap.fromSuiParsedData(content); },
|
|
449
|
-
fromSuiObjectData: function (content) { return ConfigWriteCap.fromSuiObjectData(content); },
|
|
450
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
451
|
-
return [2 /*return*/, ConfigWriteCap.fetch(client, id)];
|
|
452
|
-
}); }); },
|
|
453
|
-
new: function (fields) {
|
|
454
|
-
return new ConfigWriteCap([], fields);
|
|
455
|
-
},
|
|
456
|
-
kind: "StructClassReified",
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
Object.defineProperty(ConfigWriteCap, "r", {
|
|
460
|
-
get: function () {
|
|
461
|
-
return ConfigWriteCap.reified();
|
|
462
|
-
},
|
|
463
|
-
enumerable: false,
|
|
464
|
-
configurable: true
|
|
465
|
-
});
|
|
466
|
-
ConfigWriteCap.phantom = function () {
|
|
467
|
-
return (0, reified_1.phantom)(ConfigWriteCap.reified());
|
|
468
|
-
};
|
|
469
|
-
Object.defineProperty(ConfigWriteCap, "p", {
|
|
470
|
-
get: function () {
|
|
471
|
-
return ConfigWriteCap.phantom();
|
|
472
|
-
},
|
|
473
|
-
enumerable: false,
|
|
474
|
-
configurable: true
|
|
475
|
-
});
|
|
476
|
-
Object.defineProperty(ConfigWriteCap, "bcs", {
|
|
477
|
-
get: function () {
|
|
478
|
-
return bcs_1.bcs.struct("ConfigWriteCap", {
|
|
479
|
-
dummy_field: bcs_1.bcs.bool(),
|
|
480
|
-
});
|
|
481
|
-
},
|
|
482
|
-
enumerable: false,
|
|
483
|
-
configurable: true
|
|
484
|
-
});
|
|
485
|
-
ConfigWriteCap.fromFields = function (fields) {
|
|
486
|
-
return ConfigWriteCap.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) });
|
|
487
|
-
};
|
|
488
|
-
ConfigWriteCap.fromFieldsWithTypes = function (item) {
|
|
489
|
-
if (!isConfigWriteCap(item.type)) {
|
|
490
|
-
throw new Error("not a ConfigWriteCap type");
|
|
491
|
-
}
|
|
492
|
-
return ConfigWriteCap.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
|
|
493
|
-
};
|
|
494
|
-
ConfigWriteCap.fromBcs = function (data) {
|
|
495
|
-
return ConfigWriteCap.fromFields(ConfigWriteCap.bcs.parse(data));
|
|
496
|
-
};
|
|
497
|
-
ConfigWriteCap.prototype.toJSONField = function () {
|
|
498
|
-
return {
|
|
499
|
-
dummyField: this.dummyField,
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
ConfigWriteCap.prototype.toJSON = function () {
|
|
503
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
504
|
-
};
|
|
505
|
-
ConfigWriteCap.fromJSONField = function (field) {
|
|
506
|
-
return ConfigWriteCap.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) });
|
|
507
|
-
};
|
|
508
|
-
ConfigWriteCap.fromJSON = function (json) {
|
|
509
|
-
if (json.$typeName !== ConfigWriteCap.$typeName) {
|
|
510
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
511
|
-
}
|
|
512
|
-
return ConfigWriteCap.fromJSONField(json);
|
|
513
|
-
};
|
|
514
|
-
ConfigWriteCap.fromSuiParsedData = function (content) {
|
|
515
|
-
if (content.dataType !== "moveObject") {
|
|
516
|
-
throw new Error("not an object");
|
|
517
|
-
}
|
|
518
|
-
if (!isConfigWriteCap(content.type)) {
|
|
519
|
-
throw new Error("object at ".concat(content.fields.id, " is not a ConfigWriteCap object"));
|
|
520
|
-
}
|
|
521
|
-
return ConfigWriteCap.fromFieldsWithTypes(content);
|
|
522
|
-
};
|
|
523
|
-
ConfigWriteCap.fromSuiObjectData = function (data) {
|
|
524
|
-
if (data.bcs) {
|
|
525
|
-
if (data.bcs.dataType !== "moveObject" || !isConfigWriteCap(data.bcs.type)) {
|
|
526
|
-
throw new Error("object at is not a ConfigWriteCap object");
|
|
527
|
-
}
|
|
528
|
-
return ConfigWriteCap.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
529
|
-
}
|
|
530
|
-
if (data.content) {
|
|
531
|
-
return ConfigWriteCap.fromSuiParsedData(data.content);
|
|
532
|
-
}
|
|
533
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
534
|
-
};
|
|
535
|
-
ConfigWriteCap.fetch = function (client, 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 ConfigWriteCap 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" || !isConfigWriteCap(res.data.bcs.type)) {
|
|
548
|
-
throw new Error("object at id ".concat(id, " is not a ConfigWriteCap object"));
|
|
549
|
-
}
|
|
550
|
-
return [2 /*return*/, ConfigWriteCap.fromSuiObjectData(res.data)];
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
});
|
|
554
|
-
};
|
|
555
|
-
ConfigWriteCap.$typeName = "".concat(index_1.PKG_V26, "::deny_list::ConfigWriteCap");
|
|
556
|
-
ConfigWriteCap.$numTypeParams = 0;
|
|
557
|
-
ConfigWriteCap.$isPhantom = [];
|
|
558
|
-
return ConfigWriteCap;
|
|
559
|
-
}());
|
|
560
|
-
exports.ConfigWriteCap = ConfigWriteCap;
|
|
561
|
-
/* ============================== DenyList =============================== */
|
|
562
|
-
function isDenyList(type) {
|
|
563
|
-
type = (0, util_1.compressSuiType)(type);
|
|
564
|
-
return type === "".concat(index_1.PKG_V26, "::deny_list::DenyList");
|
|
565
|
-
}
|
|
566
|
-
var DenyList = /** @class */ (function () {
|
|
567
|
-
function DenyList(typeArgs, fields) {
|
|
568
|
-
this.__StructClass = true;
|
|
569
|
-
this.$typeName = DenyList.$typeName;
|
|
570
|
-
this.$isPhantom = DenyList.$isPhantom;
|
|
571
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DenyList.$typeName], __read(typeArgs), false));
|
|
572
|
-
this.$typeArgs = typeArgs;
|
|
573
|
-
this.id = fields.id;
|
|
574
|
-
this.lists = fields.lists;
|
|
575
|
-
}
|
|
576
|
-
DenyList.reified = function () {
|
|
577
|
-
var _this = this;
|
|
578
|
-
return {
|
|
579
|
-
typeName: DenyList.$typeName,
|
|
580
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DenyList.$typeName], [], false)),
|
|
581
|
-
typeArgs: [],
|
|
582
|
-
isPhantom: DenyList.$isPhantom,
|
|
583
|
-
reifiedTypeArgs: [],
|
|
584
|
-
fromFields: function (fields) { return DenyList.fromFields(fields); },
|
|
585
|
-
fromFieldsWithTypes: function (item) { return DenyList.fromFieldsWithTypes(item); },
|
|
586
|
-
fromBcs: function (data) { return DenyList.fromBcs(data); },
|
|
587
|
-
bcs: DenyList.bcs,
|
|
588
|
-
fromJSONField: function (field) { return DenyList.fromJSONField(field); },
|
|
589
|
-
fromJSON: function (json) { return DenyList.fromJSON(json); },
|
|
590
|
-
fromSuiParsedData: function (content) { return DenyList.fromSuiParsedData(content); },
|
|
591
|
-
fromSuiObjectData: function (content) { return DenyList.fromSuiObjectData(content); },
|
|
592
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
593
|
-
return [2 /*return*/, DenyList.fetch(client, id)];
|
|
594
|
-
}); }); },
|
|
595
|
-
new: function (fields) {
|
|
596
|
-
return new DenyList([], fields);
|
|
597
|
-
},
|
|
598
|
-
kind: "StructClassReified",
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
Object.defineProperty(DenyList, "r", {
|
|
602
|
-
get: function () {
|
|
603
|
-
return DenyList.reified();
|
|
604
|
-
},
|
|
605
|
-
enumerable: false,
|
|
606
|
-
configurable: true
|
|
607
|
-
});
|
|
608
|
-
DenyList.phantom = function () {
|
|
609
|
-
return (0, reified_1.phantom)(DenyList.reified());
|
|
610
|
-
};
|
|
611
|
-
Object.defineProperty(DenyList, "p", {
|
|
612
|
-
get: function () {
|
|
613
|
-
return DenyList.phantom();
|
|
614
|
-
},
|
|
615
|
-
enumerable: false,
|
|
616
|
-
configurable: true
|
|
617
|
-
});
|
|
618
|
-
Object.defineProperty(DenyList, "bcs", {
|
|
619
|
-
get: function () {
|
|
620
|
-
return bcs_1.bcs.struct("DenyList", {
|
|
621
|
-
id: structs_2.UID.bcs,
|
|
622
|
-
lists: structs_1.Bag.bcs,
|
|
623
|
-
});
|
|
624
|
-
},
|
|
625
|
-
enumerable: false,
|
|
626
|
-
configurable: true
|
|
627
|
-
});
|
|
628
|
-
DenyList.fromFields = function (fields) {
|
|
629
|
-
return DenyList.reified().new({
|
|
630
|
-
id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
|
|
631
|
-
lists: (0, reified_1.decodeFromFields)(structs_1.Bag.reified(), fields.lists),
|
|
632
|
-
});
|
|
633
|
-
};
|
|
634
|
-
DenyList.fromFieldsWithTypes = function (item) {
|
|
635
|
-
if (!isDenyList(item.type)) {
|
|
636
|
-
throw new Error("not a DenyList type");
|
|
637
|
-
}
|
|
638
|
-
return DenyList.reified().new({
|
|
639
|
-
id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
|
|
640
|
-
lists: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Bag.reified(), item.fields.lists),
|
|
641
|
-
});
|
|
642
|
-
};
|
|
643
|
-
DenyList.fromBcs = function (data) {
|
|
644
|
-
return DenyList.fromFields(DenyList.bcs.parse(data));
|
|
645
|
-
};
|
|
646
|
-
DenyList.prototype.toJSONField = function () {
|
|
647
|
-
return {
|
|
648
|
-
id: this.id,
|
|
649
|
-
lists: this.lists.toJSONField(),
|
|
650
|
-
};
|
|
651
|
-
};
|
|
652
|
-
DenyList.prototype.toJSON = function () {
|
|
653
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
654
|
-
};
|
|
655
|
-
DenyList.fromJSONField = function (field) {
|
|
656
|
-
return DenyList.reified().new({
|
|
657
|
-
id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
|
|
658
|
-
lists: (0, reified_1.decodeFromJSONField)(structs_1.Bag.reified(), field.lists),
|
|
659
|
-
});
|
|
660
|
-
};
|
|
661
|
-
DenyList.fromJSON = function (json) {
|
|
662
|
-
if (json.$typeName !== DenyList.$typeName) {
|
|
663
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
664
|
-
}
|
|
665
|
-
return DenyList.fromJSONField(json);
|
|
666
|
-
};
|
|
667
|
-
DenyList.fromSuiParsedData = function (content) {
|
|
668
|
-
if (content.dataType !== "moveObject") {
|
|
669
|
-
throw new Error("not an object");
|
|
670
|
-
}
|
|
671
|
-
if (!isDenyList(content.type)) {
|
|
672
|
-
throw new Error("object at ".concat(content.fields.id, " is not a DenyList object"));
|
|
673
|
-
}
|
|
674
|
-
return DenyList.fromFieldsWithTypes(content);
|
|
675
|
-
};
|
|
676
|
-
DenyList.fromSuiObjectData = function (data) {
|
|
677
|
-
if (data.bcs) {
|
|
678
|
-
if (data.bcs.dataType !== "moveObject" || !isDenyList(data.bcs.type)) {
|
|
679
|
-
throw new Error("object at is not a DenyList object");
|
|
680
|
-
}
|
|
681
|
-
return DenyList.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
682
|
-
}
|
|
683
|
-
if (data.content) {
|
|
684
|
-
return DenyList.fromSuiParsedData(data.content);
|
|
685
|
-
}
|
|
686
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
687
|
-
};
|
|
688
|
-
DenyList.fetch = function (client, id) {
|
|
689
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
690
|
-
var res;
|
|
691
|
-
var _a, _b;
|
|
692
|
-
return __generator(this, function (_c) {
|
|
693
|
-
switch (_c.label) {
|
|
694
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
695
|
-
case 1:
|
|
696
|
-
res = _c.sent();
|
|
697
|
-
if (res.error) {
|
|
698
|
-
throw new Error("error fetching DenyList object at id ".concat(id, ": ").concat(res.error.code));
|
|
699
|
-
}
|
|
700
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDenyList(res.data.bcs.type)) {
|
|
701
|
-
throw new Error("object at id ".concat(id, " is not a DenyList object"));
|
|
702
|
-
}
|
|
703
|
-
return [2 /*return*/, DenyList.fromSuiObjectData(res.data)];
|
|
704
|
-
}
|
|
705
|
-
});
|
|
706
|
-
});
|
|
707
|
-
};
|
|
708
|
-
DenyList.$typeName = "".concat(index_1.PKG_V26, "::deny_list::DenyList");
|
|
709
|
-
DenyList.$numTypeParams = 0;
|
|
710
|
-
DenyList.$isPhantom = [];
|
|
711
|
-
return DenyList;
|
|
712
|
-
}());
|
|
713
|
-
exports.DenyList = DenyList;
|
|
714
|
-
/* ============================== GlobalPauseKey =============================== */
|
|
715
|
-
function isGlobalPauseKey(type) {
|
|
716
|
-
type = (0, util_1.compressSuiType)(type);
|
|
717
|
-
return type === "".concat(index_1.PKG_V26, "::deny_list::GlobalPauseKey");
|
|
718
|
-
}
|
|
719
|
-
var GlobalPauseKey = /** @class */ (function () {
|
|
720
|
-
function GlobalPauseKey(typeArgs, fields) {
|
|
721
|
-
this.__StructClass = true;
|
|
722
|
-
this.$typeName = GlobalPauseKey.$typeName;
|
|
723
|
-
this.$isPhantom = GlobalPauseKey.$isPhantom;
|
|
724
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([GlobalPauseKey.$typeName], __read(typeArgs), false));
|
|
725
|
-
this.$typeArgs = typeArgs;
|
|
726
|
-
this.dummyField = fields.dummyField;
|
|
727
|
-
}
|
|
728
|
-
GlobalPauseKey.reified = function () {
|
|
729
|
-
var _this = this;
|
|
730
|
-
return {
|
|
731
|
-
typeName: GlobalPauseKey.$typeName,
|
|
732
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([GlobalPauseKey.$typeName], [], false)),
|
|
733
|
-
typeArgs: [],
|
|
734
|
-
isPhantom: GlobalPauseKey.$isPhantom,
|
|
735
|
-
reifiedTypeArgs: [],
|
|
736
|
-
fromFields: function (fields) { return GlobalPauseKey.fromFields(fields); },
|
|
737
|
-
fromFieldsWithTypes: function (item) { return GlobalPauseKey.fromFieldsWithTypes(item); },
|
|
738
|
-
fromBcs: function (data) { return GlobalPauseKey.fromBcs(data); },
|
|
739
|
-
bcs: GlobalPauseKey.bcs,
|
|
740
|
-
fromJSONField: function (field) { return GlobalPauseKey.fromJSONField(field); },
|
|
741
|
-
fromJSON: function (json) { return GlobalPauseKey.fromJSON(json); },
|
|
742
|
-
fromSuiParsedData: function (content) { return GlobalPauseKey.fromSuiParsedData(content); },
|
|
743
|
-
fromSuiObjectData: function (content) { return GlobalPauseKey.fromSuiObjectData(content); },
|
|
744
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
745
|
-
return [2 /*return*/, GlobalPauseKey.fetch(client, id)];
|
|
746
|
-
}); }); },
|
|
747
|
-
new: function (fields) {
|
|
748
|
-
return new GlobalPauseKey([], fields);
|
|
749
|
-
},
|
|
750
|
-
kind: "StructClassReified",
|
|
751
|
-
};
|
|
752
|
-
};
|
|
753
|
-
Object.defineProperty(GlobalPauseKey, "r", {
|
|
754
|
-
get: function () {
|
|
755
|
-
return GlobalPauseKey.reified();
|
|
756
|
-
},
|
|
757
|
-
enumerable: false,
|
|
758
|
-
configurable: true
|
|
759
|
-
});
|
|
760
|
-
GlobalPauseKey.phantom = function () {
|
|
761
|
-
return (0, reified_1.phantom)(GlobalPauseKey.reified());
|
|
762
|
-
};
|
|
763
|
-
Object.defineProperty(GlobalPauseKey, "p", {
|
|
764
|
-
get: function () {
|
|
765
|
-
return GlobalPauseKey.phantom();
|
|
766
|
-
},
|
|
767
|
-
enumerable: false,
|
|
768
|
-
configurable: true
|
|
769
|
-
});
|
|
770
|
-
Object.defineProperty(GlobalPauseKey, "bcs", {
|
|
771
|
-
get: function () {
|
|
772
|
-
return bcs_1.bcs.struct("GlobalPauseKey", {
|
|
773
|
-
dummy_field: bcs_1.bcs.bool(),
|
|
774
|
-
});
|
|
775
|
-
},
|
|
776
|
-
enumerable: false,
|
|
777
|
-
configurable: true
|
|
778
|
-
});
|
|
779
|
-
GlobalPauseKey.fromFields = function (fields) {
|
|
780
|
-
return GlobalPauseKey.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) });
|
|
781
|
-
};
|
|
782
|
-
GlobalPauseKey.fromFieldsWithTypes = function (item) {
|
|
783
|
-
if (!isGlobalPauseKey(item.type)) {
|
|
784
|
-
throw new Error("not a GlobalPauseKey type");
|
|
785
|
-
}
|
|
786
|
-
return GlobalPauseKey.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
|
|
787
|
-
};
|
|
788
|
-
GlobalPauseKey.fromBcs = function (data) {
|
|
789
|
-
return GlobalPauseKey.fromFields(GlobalPauseKey.bcs.parse(data));
|
|
790
|
-
};
|
|
791
|
-
GlobalPauseKey.prototype.toJSONField = function () {
|
|
792
|
-
return {
|
|
793
|
-
dummyField: this.dummyField,
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
GlobalPauseKey.prototype.toJSON = function () {
|
|
797
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
798
|
-
};
|
|
799
|
-
GlobalPauseKey.fromJSONField = function (field) {
|
|
800
|
-
return GlobalPauseKey.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) });
|
|
801
|
-
};
|
|
802
|
-
GlobalPauseKey.fromJSON = function (json) {
|
|
803
|
-
if (json.$typeName !== GlobalPauseKey.$typeName) {
|
|
804
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
805
|
-
}
|
|
806
|
-
return GlobalPauseKey.fromJSONField(json);
|
|
807
|
-
};
|
|
808
|
-
GlobalPauseKey.fromSuiParsedData = function (content) {
|
|
809
|
-
if (content.dataType !== "moveObject") {
|
|
810
|
-
throw new Error("not an object");
|
|
811
|
-
}
|
|
812
|
-
if (!isGlobalPauseKey(content.type)) {
|
|
813
|
-
throw new Error("object at ".concat(content.fields.id, " is not a GlobalPauseKey object"));
|
|
814
|
-
}
|
|
815
|
-
return GlobalPauseKey.fromFieldsWithTypes(content);
|
|
816
|
-
};
|
|
817
|
-
GlobalPauseKey.fromSuiObjectData = function (data) {
|
|
818
|
-
if (data.bcs) {
|
|
819
|
-
if (data.bcs.dataType !== "moveObject" || !isGlobalPauseKey(data.bcs.type)) {
|
|
820
|
-
throw new Error("object at is not a GlobalPauseKey object");
|
|
821
|
-
}
|
|
822
|
-
return GlobalPauseKey.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
823
|
-
}
|
|
824
|
-
if (data.content) {
|
|
825
|
-
return GlobalPauseKey.fromSuiParsedData(data.content);
|
|
826
|
-
}
|
|
827
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
828
|
-
};
|
|
829
|
-
GlobalPauseKey.fetch = function (client, id) {
|
|
830
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
831
|
-
var res;
|
|
832
|
-
var _a, _b;
|
|
833
|
-
return __generator(this, function (_c) {
|
|
834
|
-
switch (_c.label) {
|
|
835
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
836
|
-
case 1:
|
|
837
|
-
res = _c.sent();
|
|
838
|
-
if (res.error) {
|
|
839
|
-
throw new Error("error fetching GlobalPauseKey object at id ".concat(id, ": ").concat(res.error.code));
|
|
840
|
-
}
|
|
841
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isGlobalPauseKey(res.data.bcs.type)) {
|
|
842
|
-
throw new Error("object at id ".concat(id, " is not a GlobalPauseKey object"));
|
|
843
|
-
}
|
|
844
|
-
return [2 /*return*/, GlobalPauseKey.fromSuiObjectData(res.data)];
|
|
845
|
-
}
|
|
846
|
-
});
|
|
847
|
-
});
|
|
848
|
-
};
|
|
849
|
-
GlobalPauseKey.$typeName = "".concat(index_1.PKG_V26, "::deny_list::GlobalPauseKey");
|
|
850
|
-
GlobalPauseKey.$numTypeParams = 0;
|
|
851
|
-
GlobalPauseKey.$isPhantom = [];
|
|
852
|
-
return GlobalPauseKey;
|
|
853
|
-
}());
|
|
854
|
-
exports.GlobalPauseKey = GlobalPauseKey;
|
|
855
|
-
/* ============================== PerTypeConfigCreated =============================== */
|
|
856
|
-
function isPerTypeConfigCreated(type) {
|
|
857
|
-
type = (0, util_1.compressSuiType)(type);
|
|
858
|
-
return type === "".concat(index_1.PKG_V26, "::deny_list::PerTypeConfigCreated");
|
|
859
|
-
}
|
|
860
|
-
var PerTypeConfigCreated = /** @class */ (function () {
|
|
861
|
-
function PerTypeConfigCreated(typeArgs, fields) {
|
|
862
|
-
this.__StructClass = true;
|
|
863
|
-
this.$typeName = PerTypeConfigCreated.$typeName;
|
|
864
|
-
this.$isPhantom = PerTypeConfigCreated.$isPhantom;
|
|
865
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([PerTypeConfigCreated.$typeName], __read(typeArgs), false));
|
|
866
|
-
this.$typeArgs = typeArgs;
|
|
867
|
-
this.key = fields.key;
|
|
868
|
-
this.configId = fields.configId;
|
|
869
|
-
}
|
|
870
|
-
PerTypeConfigCreated.reified = function () {
|
|
871
|
-
var _this = this;
|
|
872
|
-
return {
|
|
873
|
-
typeName: PerTypeConfigCreated.$typeName,
|
|
874
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([PerTypeConfigCreated.$typeName], [], false)),
|
|
875
|
-
typeArgs: [],
|
|
876
|
-
isPhantom: PerTypeConfigCreated.$isPhantom,
|
|
877
|
-
reifiedTypeArgs: [],
|
|
878
|
-
fromFields: function (fields) { return PerTypeConfigCreated.fromFields(fields); },
|
|
879
|
-
fromFieldsWithTypes: function (item) { return PerTypeConfigCreated.fromFieldsWithTypes(item); },
|
|
880
|
-
fromBcs: function (data) { return PerTypeConfigCreated.fromBcs(data); },
|
|
881
|
-
bcs: PerTypeConfigCreated.bcs,
|
|
882
|
-
fromJSONField: function (field) { return PerTypeConfigCreated.fromJSONField(field); },
|
|
883
|
-
fromJSON: function (json) { return PerTypeConfigCreated.fromJSON(json); },
|
|
884
|
-
fromSuiParsedData: function (content) { return PerTypeConfigCreated.fromSuiParsedData(content); },
|
|
885
|
-
fromSuiObjectData: function (content) { return PerTypeConfigCreated.fromSuiObjectData(content); },
|
|
886
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
887
|
-
return [2 /*return*/, PerTypeConfigCreated.fetch(client, id)];
|
|
888
|
-
}); }); },
|
|
889
|
-
new: function (fields) {
|
|
890
|
-
return new PerTypeConfigCreated([], fields);
|
|
891
|
-
},
|
|
892
|
-
kind: "StructClassReified",
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
Object.defineProperty(PerTypeConfigCreated, "r", {
|
|
896
|
-
get: function () {
|
|
897
|
-
return PerTypeConfigCreated.reified();
|
|
898
|
-
},
|
|
899
|
-
enumerable: false,
|
|
900
|
-
configurable: true
|
|
901
|
-
});
|
|
902
|
-
PerTypeConfigCreated.phantom = function () {
|
|
903
|
-
return (0, reified_1.phantom)(PerTypeConfigCreated.reified());
|
|
904
|
-
};
|
|
905
|
-
Object.defineProperty(PerTypeConfigCreated, "p", {
|
|
906
|
-
get: function () {
|
|
907
|
-
return PerTypeConfigCreated.phantom();
|
|
908
|
-
},
|
|
909
|
-
enumerable: false,
|
|
910
|
-
configurable: true
|
|
911
|
-
});
|
|
912
|
-
Object.defineProperty(PerTypeConfigCreated, "bcs", {
|
|
913
|
-
get: function () {
|
|
914
|
-
return bcs_1.bcs.struct("PerTypeConfigCreated", {
|
|
915
|
-
key: ConfigKey.bcs,
|
|
916
|
-
config_id: structs_2.ID.bcs,
|
|
917
|
-
});
|
|
918
|
-
},
|
|
919
|
-
enumerable: false,
|
|
920
|
-
configurable: true
|
|
921
|
-
});
|
|
922
|
-
PerTypeConfigCreated.fromFields = function (fields) {
|
|
923
|
-
return PerTypeConfigCreated.reified().new({
|
|
924
|
-
key: (0, reified_1.decodeFromFields)(ConfigKey.reified(), fields.key),
|
|
925
|
-
configId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.config_id),
|
|
926
|
-
});
|
|
927
|
-
};
|
|
928
|
-
PerTypeConfigCreated.fromFieldsWithTypes = function (item) {
|
|
929
|
-
if (!isPerTypeConfigCreated(item.type)) {
|
|
930
|
-
throw new Error("not a PerTypeConfigCreated type");
|
|
931
|
-
}
|
|
932
|
-
return PerTypeConfigCreated.reified().new({
|
|
933
|
-
key: (0, reified_1.decodeFromFieldsWithTypes)(ConfigKey.reified(), item.fields.key),
|
|
934
|
-
configId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.config_id),
|
|
935
|
-
});
|
|
936
|
-
};
|
|
937
|
-
PerTypeConfigCreated.fromBcs = function (data) {
|
|
938
|
-
return PerTypeConfigCreated.fromFields(PerTypeConfigCreated.bcs.parse(data));
|
|
939
|
-
};
|
|
940
|
-
PerTypeConfigCreated.prototype.toJSONField = function () {
|
|
941
|
-
return {
|
|
942
|
-
key: this.key.toJSONField(),
|
|
943
|
-
configId: this.configId,
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
PerTypeConfigCreated.prototype.toJSON = function () {
|
|
947
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
948
|
-
};
|
|
949
|
-
PerTypeConfigCreated.fromJSONField = function (field) {
|
|
950
|
-
return PerTypeConfigCreated.reified().new({
|
|
951
|
-
key: (0, reified_1.decodeFromJSONField)(ConfigKey.reified(), field.key),
|
|
952
|
-
configId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.configId),
|
|
953
|
-
});
|
|
954
|
-
};
|
|
955
|
-
PerTypeConfigCreated.fromJSON = function (json) {
|
|
956
|
-
if (json.$typeName !== PerTypeConfigCreated.$typeName) {
|
|
957
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
958
|
-
}
|
|
959
|
-
return PerTypeConfigCreated.fromJSONField(json);
|
|
960
|
-
};
|
|
961
|
-
PerTypeConfigCreated.fromSuiParsedData = function (content) {
|
|
962
|
-
if (content.dataType !== "moveObject") {
|
|
963
|
-
throw new Error("not an object");
|
|
964
|
-
}
|
|
965
|
-
if (!isPerTypeConfigCreated(content.type)) {
|
|
966
|
-
throw new Error("object at ".concat(content.fields.id, " is not a PerTypeConfigCreated object"));
|
|
967
|
-
}
|
|
968
|
-
return PerTypeConfigCreated.fromFieldsWithTypes(content);
|
|
969
|
-
};
|
|
970
|
-
PerTypeConfigCreated.fromSuiObjectData = function (data) {
|
|
971
|
-
if (data.bcs) {
|
|
972
|
-
if (data.bcs.dataType !== "moveObject" || !isPerTypeConfigCreated(data.bcs.type)) {
|
|
973
|
-
throw new Error("object at is not a PerTypeConfigCreated object");
|
|
974
|
-
}
|
|
975
|
-
return PerTypeConfigCreated.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
976
|
-
}
|
|
977
|
-
if (data.content) {
|
|
978
|
-
return PerTypeConfigCreated.fromSuiParsedData(data.content);
|
|
979
|
-
}
|
|
980
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
981
|
-
};
|
|
982
|
-
PerTypeConfigCreated.fetch = function (client, id) {
|
|
983
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
984
|
-
var res;
|
|
985
|
-
var _a, _b;
|
|
986
|
-
return __generator(this, function (_c) {
|
|
987
|
-
switch (_c.label) {
|
|
988
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
989
|
-
case 1:
|
|
990
|
-
res = _c.sent();
|
|
991
|
-
if (res.error) {
|
|
992
|
-
throw new Error("error fetching PerTypeConfigCreated object at id ".concat(id, ": ").concat(res.error.code));
|
|
993
|
-
}
|
|
994
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPerTypeConfigCreated(res.data.bcs.type)) {
|
|
995
|
-
throw new Error("object at id ".concat(id, " is not a PerTypeConfigCreated object"));
|
|
996
|
-
}
|
|
997
|
-
return [2 /*return*/, PerTypeConfigCreated.fromSuiObjectData(res.data)];
|
|
998
|
-
}
|
|
999
|
-
});
|
|
1000
|
-
});
|
|
1001
|
-
};
|
|
1002
|
-
PerTypeConfigCreated.$typeName = "".concat(index_1.PKG_V26, "::deny_list::PerTypeConfigCreated");
|
|
1003
|
-
PerTypeConfigCreated.$numTypeParams = 0;
|
|
1004
|
-
PerTypeConfigCreated.$isPhantom = [];
|
|
1005
|
-
return PerTypeConfigCreated;
|
|
1006
|
-
}());
|
|
1007
|
-
exports.PerTypeConfigCreated = PerTypeConfigCreated;
|
|
1008
|
-
/* ============================== PerTypeList =============================== */
|
|
1009
|
-
function isPerTypeList(type) {
|
|
1010
|
-
type = (0, util_1.compressSuiType)(type);
|
|
1011
|
-
return type === "".concat(index_1.PKG_V26, "::deny_list::PerTypeList");
|
|
1012
|
-
}
|
|
1013
|
-
var PerTypeList = /** @class */ (function () {
|
|
1014
|
-
function PerTypeList(typeArgs, fields) {
|
|
1015
|
-
this.__StructClass = true;
|
|
1016
|
-
this.$typeName = PerTypeList.$typeName;
|
|
1017
|
-
this.$isPhantom = PerTypeList.$isPhantom;
|
|
1018
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([PerTypeList.$typeName], __read(typeArgs), false));
|
|
1019
|
-
this.$typeArgs = typeArgs;
|
|
1020
|
-
this.id = fields.id;
|
|
1021
|
-
this.deniedCount = fields.deniedCount;
|
|
1022
|
-
this.deniedAddresses = fields.deniedAddresses;
|
|
1023
|
-
}
|
|
1024
|
-
PerTypeList.reified = function () {
|
|
1025
|
-
var _this = this;
|
|
1026
|
-
return {
|
|
1027
|
-
typeName: PerTypeList.$typeName,
|
|
1028
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([PerTypeList.$typeName], [], false)),
|
|
1029
|
-
typeArgs: [],
|
|
1030
|
-
isPhantom: PerTypeList.$isPhantom,
|
|
1031
|
-
reifiedTypeArgs: [],
|
|
1032
|
-
fromFields: function (fields) { return PerTypeList.fromFields(fields); },
|
|
1033
|
-
fromFieldsWithTypes: function (item) { return PerTypeList.fromFieldsWithTypes(item); },
|
|
1034
|
-
fromBcs: function (data) { return PerTypeList.fromBcs(data); },
|
|
1035
|
-
bcs: PerTypeList.bcs,
|
|
1036
|
-
fromJSONField: function (field) { return PerTypeList.fromJSONField(field); },
|
|
1037
|
-
fromJSON: function (json) { return PerTypeList.fromJSON(json); },
|
|
1038
|
-
fromSuiParsedData: function (content) { return PerTypeList.fromSuiParsedData(content); },
|
|
1039
|
-
fromSuiObjectData: function (content) { return PerTypeList.fromSuiObjectData(content); },
|
|
1040
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1041
|
-
return [2 /*return*/, PerTypeList.fetch(client, id)];
|
|
1042
|
-
}); }); },
|
|
1043
|
-
new: function (fields) {
|
|
1044
|
-
return new PerTypeList([], fields);
|
|
1045
|
-
},
|
|
1046
|
-
kind: "StructClassReified",
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
Object.defineProperty(PerTypeList, "r", {
|
|
1050
|
-
get: function () {
|
|
1051
|
-
return PerTypeList.reified();
|
|
1052
|
-
},
|
|
1053
|
-
enumerable: false,
|
|
1054
|
-
configurable: true
|
|
1055
|
-
});
|
|
1056
|
-
PerTypeList.phantom = function () {
|
|
1057
|
-
return (0, reified_1.phantom)(PerTypeList.reified());
|
|
1058
|
-
};
|
|
1059
|
-
Object.defineProperty(PerTypeList, "p", {
|
|
1060
|
-
get: function () {
|
|
1061
|
-
return PerTypeList.phantom();
|
|
1062
|
-
},
|
|
1063
|
-
enumerable: false,
|
|
1064
|
-
configurable: true
|
|
1065
|
-
});
|
|
1066
|
-
Object.defineProperty(PerTypeList, "bcs", {
|
|
1067
|
-
get: function () {
|
|
1068
|
-
return bcs_1.bcs.struct("PerTypeList", {
|
|
1069
|
-
id: structs_2.UID.bcs,
|
|
1070
|
-
denied_count: structs_3.Table.bcs,
|
|
1071
|
-
denied_addresses: structs_3.Table.bcs,
|
|
1072
|
-
});
|
|
1073
|
-
},
|
|
1074
|
-
enumerable: false,
|
|
1075
|
-
configurable: true
|
|
1076
|
-
});
|
|
1077
|
-
PerTypeList.fromFields = function (fields) {
|
|
1078
|
-
return PerTypeList.reified().new({
|
|
1079
|
-
id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
|
|
1080
|
-
deniedCount: (0, reified_1.decodeFromFields)(structs_3.Table.reified(reified.phantom("address"), reified.phantom("u64")), fields.denied_count),
|
|
1081
|
-
deniedAddresses: (0, reified_1.decodeFromFields)(structs_3.Table.reified(reified.phantom(reified.vector("u8")), reified.phantom(structs_4.VecSet.reified("address"))), fields.denied_addresses),
|
|
1082
|
-
});
|
|
1083
|
-
};
|
|
1084
|
-
PerTypeList.fromFieldsWithTypes = function (item) {
|
|
1085
|
-
if (!isPerTypeList(item.type)) {
|
|
1086
|
-
throw new Error("not a PerTypeList type");
|
|
1087
|
-
}
|
|
1088
|
-
return PerTypeList.reified().new({
|
|
1089
|
-
id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
|
|
1090
|
-
deniedCount: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.Table.reified(reified.phantom("address"), reified.phantom("u64")), item.fields.denied_count),
|
|
1091
|
-
deniedAddresses: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.Table.reified(reified.phantom(reified.vector("u8")), reified.phantom(structs_4.VecSet.reified("address"))), item.fields.denied_addresses),
|
|
1092
|
-
});
|
|
1093
|
-
};
|
|
1094
|
-
PerTypeList.fromBcs = function (data) {
|
|
1095
|
-
return PerTypeList.fromFields(PerTypeList.bcs.parse(data));
|
|
1096
|
-
};
|
|
1097
|
-
PerTypeList.prototype.toJSONField = function () {
|
|
1098
|
-
return {
|
|
1099
|
-
id: this.id,
|
|
1100
|
-
deniedCount: this.deniedCount.toJSONField(),
|
|
1101
|
-
deniedAddresses: this.deniedAddresses.toJSONField(),
|
|
1102
|
-
};
|
|
1103
|
-
};
|
|
1104
|
-
PerTypeList.prototype.toJSON = function () {
|
|
1105
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
1106
|
-
};
|
|
1107
|
-
PerTypeList.fromJSONField = function (field) {
|
|
1108
|
-
return PerTypeList.reified().new({
|
|
1109
|
-
id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
|
|
1110
|
-
deniedCount: (0, reified_1.decodeFromJSONField)(structs_3.Table.reified(reified.phantom("address"), reified.phantom("u64")), field.deniedCount),
|
|
1111
|
-
deniedAddresses: (0, reified_1.decodeFromJSONField)(structs_3.Table.reified(reified.phantom(reified.vector("u8")), reified.phantom(structs_4.VecSet.reified("address"))), field.deniedAddresses),
|
|
1112
|
-
});
|
|
1113
|
-
};
|
|
1114
|
-
PerTypeList.fromJSON = function (json) {
|
|
1115
|
-
if (json.$typeName !== PerTypeList.$typeName) {
|
|
1116
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
1117
|
-
}
|
|
1118
|
-
return PerTypeList.fromJSONField(json);
|
|
1119
|
-
};
|
|
1120
|
-
PerTypeList.fromSuiParsedData = function (content) {
|
|
1121
|
-
if (content.dataType !== "moveObject") {
|
|
1122
|
-
throw new Error("not an object");
|
|
1123
|
-
}
|
|
1124
|
-
if (!isPerTypeList(content.type)) {
|
|
1125
|
-
throw new Error("object at ".concat(content.fields.id, " is not a PerTypeList object"));
|
|
1126
|
-
}
|
|
1127
|
-
return PerTypeList.fromFieldsWithTypes(content);
|
|
1128
|
-
};
|
|
1129
|
-
PerTypeList.fromSuiObjectData = function (data) {
|
|
1130
|
-
if (data.bcs) {
|
|
1131
|
-
if (data.bcs.dataType !== "moveObject" || !isPerTypeList(data.bcs.type)) {
|
|
1132
|
-
throw new Error("object at is not a PerTypeList object");
|
|
1133
|
-
}
|
|
1134
|
-
return PerTypeList.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
1135
|
-
}
|
|
1136
|
-
if (data.content) {
|
|
1137
|
-
return PerTypeList.fromSuiParsedData(data.content);
|
|
1138
|
-
}
|
|
1139
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
1140
|
-
};
|
|
1141
|
-
PerTypeList.fetch = function (client, id) {
|
|
1142
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1143
|
-
var res;
|
|
1144
|
-
var _a, _b;
|
|
1145
|
-
return __generator(this, function (_c) {
|
|
1146
|
-
switch (_c.label) {
|
|
1147
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
1148
|
-
case 1:
|
|
1149
|
-
res = _c.sent();
|
|
1150
|
-
if (res.error) {
|
|
1151
|
-
throw new Error("error fetching PerTypeList object at id ".concat(id, ": ").concat(res.error.code));
|
|
1152
|
-
}
|
|
1153
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPerTypeList(res.data.bcs.type)) {
|
|
1154
|
-
throw new Error("object at id ".concat(id, " is not a PerTypeList object"));
|
|
1155
|
-
}
|
|
1156
|
-
return [2 /*return*/, PerTypeList.fromSuiObjectData(res.data)];
|
|
1157
|
-
}
|
|
1158
|
-
});
|
|
1159
|
-
});
|
|
1160
|
-
};
|
|
1161
|
-
PerTypeList.$typeName = "".concat(index_1.PKG_V26, "::deny_list::PerTypeList");
|
|
1162
|
-
PerTypeList.$numTypeParams = 0;
|
|
1163
|
-
PerTypeList.$isPhantom = [];
|
|
1164
|
-
return PerTypeList;
|
|
1165
|
-
}());
|
|
1166
|
-
exports.PerTypeList = PerTypeList;
|