@typus/typus-sdk 1.4.84 → 1.5.0
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/auto-bid/token-user-entry.d.ts +9 -9
- package/dist/src/auto-bid/token-user-entry.js +24 -24
- package/dist/src/auto-bid/user-entry.d.ts +9 -9
- package/dist/src/auto-bid/user-entry.js +46 -46
- package/dist/src/auto-bid/view-function.js +14 -14
- package/dist/src/constants/constant.d.ts +1 -1
- package/dist/src/constants/constant.js +1 -1
- package/dist/src/constants/token.d.ts +4 -1
- package/dist/src/constants/token.js +4 -1
- package/dist/src/dice/fetch.js +1 -1
- package/dist/src/dice/user-entry.d.ts +11 -11
- package/dist/src/dice/user-entry.js +34 -34
- package/dist/src/typus/airdrop/authority-entry.d.ts +5 -5
- package/dist/src/typus/airdrop/authority-entry.js +10 -10
- package/dist/src/typus/airdrop/user-entry.d.ts +3 -3
- package/dist/src/typus/airdrop/user-entry.js +2 -2
- package/dist/src/typus/airdrop/view-function.js +10 -10
- package/dist/src/typus/leaderboard/authority-entry.d.ts +5 -5
- package/dist/src/typus/leaderboard/authority-entry.js +9 -4
- package/dist/src/typus/leaderboard/view-function.js +13 -13
- package/dist/src/typus/tails-staking/authority-entry.d.ts +29 -27
- package/dist/src/typus/tails-staking/authority-entry.js +22 -20
- package/dist/src/typus/tails-staking/user-entry.d.ts +23 -23
- package/dist/src/typus/tails-staking/user-entry.js +30 -30
- package/dist/src/typus/tails-staking/view-function.js +14 -14
- package/dist/src/typus/user/view-function.js +9 -9
- package/dist/src/typus-dov-single-v2/authority-entry.d.ts +4 -4
- package/dist/src/typus-dov-single-v2/authority-entry.js +21 -21
- package/dist/src/typus-dov-single-v2/function/bidding.d.ts +1 -83
- package/dist/src/typus-dov-single-v2/function/bidding.js +9 -182
- package/dist/src/typus-dov-single-v2/function/index.d.ts +0 -1
- package/dist/src/typus-dov-single-v2/function/index.js +1 -1
- package/dist/src/typus-dov-single-v2/function/token.js +3 -1
- package/dist/src/typus-dov-single-v2/history/user-history.d.ts +1 -1
- package/dist/src/typus-dov-single-v2/history/vault-history.d.ts +1 -2
- package/dist/src/typus-dov-single-v2/history/vault-history.js +1 -99
- package/dist/src/typus-dov-single-v2/token-user-entry.d.ts +13 -13
- package/dist/src/typus-dov-single-v2/token-user-entry.js +29 -29
- package/dist/src/typus-dov-single-v2/user-entry.d.ts +20 -20
- package/dist/src/typus-dov-single-v2/user-entry.js +61 -59
- package/dist/src/typus-dov-single-v2/view-function.js +55 -55
- package/dist/src/typus-launch/airdrop/authority-entry.d.ts +3 -3
- package/dist/src/typus-launch/airdrop/authority-entry.js +7 -7
- package/dist/src/typus-launch/airdrop/user-entry.d.ts +2 -2
- package/dist/src/typus-launch/airdrop/user-entry.js +2 -2
- package/dist/src/typus-launch/airdrop/view-function.d.ts +1 -0
- package/dist/src/typus-launch/airdrop/view-function.js +10 -9
- package/dist/src/typus-launch/auction/entry.d.ts +5 -5
- package/dist/src/typus-launch/auction/entry.js +4 -4
- package/dist/src/typus-launch/auction/view-function.js +17 -17
- package/dist/src/typus-launch/funding-vault/authority-entry.d.ts +11 -11
- package/dist/src/typus-launch/funding-vault/authority-entry.js +32 -24
- package/dist/src/typus-launch/funding-vault/user-entry.d.ts +3 -3
- package/dist/src/typus-launch/funding-vault/user-entry.js +6 -6
- package/dist/src/typus-launch/funding-vault/view-function.js +29 -29
- package/dist/src/typus-launch/improvement-proposal/authority-entry.d.ts +11 -9
- package/dist/src/typus-launch/improvement-proposal/authority-entry.js +23 -21
- package/dist/src/typus-launch/improvement-proposal/user-entry.d.ts +3 -3
- package/dist/src/typus-launch/improvement-proposal/user-entry.js +2 -2
- package/dist/src/typus-launch/improvement-proposal/view-function.d.ts +6 -1
- package/dist/src/typus-launch/improvement-proposal/view-function.js +43 -35
- package/dist/src/typus-launch/option-airdrop/authority-entry.d.ts +5 -5
- package/dist/src/typus-launch/option-airdrop/authority-entry.js +6 -6
- package/dist/src/typus-launch/ve-typus/authority-entry.d.ts +5 -5
- package/dist/src/typus-launch/ve-typus/authority-entry.js +10 -10
- package/dist/src/typus-launch/ve-typus/user-entry.d.ts +4 -4
- package/dist/src/typus-launch/ve-typus/user-entry.js +9 -6
- package/dist/src/typus-launch/ve-typus/view-function.js +18 -18
- package/dist/src/typus-nft/fetch.d.ts +2 -2
- package/dist/src/typus-nft/user-entry.d.ts +11 -11
- package/dist/src/typus-nft/user-entry.js +3 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.d.ts +16 -6
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.js +161 -45
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.js +4 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.js +94 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.js +84 -23
- package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.d.ts +46 -0
- package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.js +228 -0
- package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.d.ts +46 -0
- package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.js +228 -0
- package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +5 -0
- package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +8 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +86 -13
- package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +793 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +52 -10
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +105 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +108 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/authenticator-state/structs.d.ts +34 -12
- package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.js +894 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.js +183 -45
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bls12381/structs.d.ts +68 -9
- package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.js +820 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/borrow/structs.d.ts +13 -4
- package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.js +410 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/coin/structs.d.ts +94 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.js +1259 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.d.ts +179 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.js +577 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.d.ts +430 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.js +1177 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/display/structs.d.ts +20 -7
- package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.js +584 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.d.ts +12 -7
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.js +110 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.d.ts +10 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.js +94 -24
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/groth16/structs.d.ts +28 -10
- package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.js +710 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.js +93 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.js +16 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk/structs.d.ts +62 -21
- package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.js +1724 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.js +185 -48
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/linked-table/structs.d.ts +15 -6
- package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.js +166 -45
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.js +101 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/package/structs.d.ts +28 -10
- package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.js +752 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.d.ts +19 -9
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.js +192 -50
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/random/structs.d.ts +22 -8
- package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.js +586 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.js +101 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.js +93 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/token/structs.d.ts +38 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.js +1107 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.js +99 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer-policy/structs.d.ts +38 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.js +1099 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.js +108 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-map/structs.d.ts +23 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.js +436 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.js +94 -24
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.js +177 -49
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.js +113 -29
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.js +98 -26
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +3 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +186 -50
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +40 -14
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +1092 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +15 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +52 -7
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +20 -7
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +643 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +34 -12
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +898 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +8 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +11 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +20 -1
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +227 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +622 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +124 -16
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +1476 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +13 -4
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +438 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +13 -4
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +430 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +1071 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +2275 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +68 -50
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +732 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +34 -12
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +900 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +46 -16
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +1335 -0
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +9 -0
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +12 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +4 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +50 -41
- package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828}/royalty-rule/structs.js +227 -103
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +76 -55
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +886 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +93 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +247 -136
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +2407 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +100 -34
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +3052 -0
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +10 -0
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +13 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +23 -17
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +213 -147
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +2846 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +58 -20
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +1669 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +46 -16
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +1249 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +244 -82
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +1869 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +115 -30
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +534 -74
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +7680 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +87 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +22 -8
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +581 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +109 -27
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +50 -17
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +1735 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +80 -23
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +3 -0
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +6 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +15 -6
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +444 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +172 -58
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +5014 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +40 -14
- package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1229 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +105 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +95 -26
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +10 -4
- package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +322 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.d.ts +22 -12
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.js +202 -54
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.d.ts +21 -12
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.js +172 -48
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.d.ts +12 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.js +91 -26
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.js +171 -47
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.d.ts +14 -8
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.js +96 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.js +100 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.d.ts +12 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.js +94 -24
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.js +90 -25
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +3 -0
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +6 -0
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.js +1 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.js +100 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.js +95 -26
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.js +182 -50
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.d.ts +20 -10
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.js +181 -48
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.js +85 -24
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.js +87 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.d.ts +12 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.js +96 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.js +90 -25
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/state/structs.d.ts +30 -17
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +573 -0
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +130 -0
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +524 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +48 -39
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +217 -97
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +50 -41
- package/dist/src/{_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828 → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/royalty-rule/structs.js +227 -103
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +93 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.d.ts +12 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.js +94 -24
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/emitter/structs.d.ts +29 -16
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +531 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.js +90 -25
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/governance-message/structs.d.ts +20 -10
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +460 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.js +95 -26
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.js +100 -27
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +3 -0
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +6 -0
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/package-utils/structs.d.ts +38 -21
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +680 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/publish-message/structs.d.ts +22 -12
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +449 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.d.ts +52 -43
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.js +232 -103
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.js +165 -45
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/state/structs.d.ts +20 -11
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +455 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.js +174 -47
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.d.ts +31 -17
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.js +252 -69
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/upgrade-contract/structs.d.ts +62 -49
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +532 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.js +125 -32
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.js +165 -45
- package/dist/src/typus-perp/_framework/init-loader.d.ts +2 -0
- package/dist/src/typus-perp/_framework/init-loader.js +63 -0
- package/dist/src/{_framework → typus-perp/_framework}/loader.d.ts +3 -3
- package/dist/src/{_framework → typus-perp/_framework}/loader.js +14 -5
- package/dist/src/{_framework → typus-perp/_framework}/reified.d.ts +28 -20
- package/dist/src/{_framework → typus-perp/_framework}/reified.js +11 -37
- package/dist/src/typus-perp/_framework/util.d.ts +35 -0
- package/dist/src/typus-perp/_framework/util.js +396 -0
- package/dist/src/typus-perp/_framework/vector.d.ts +35 -0
- package/dist/src/typus-perp/_framework/vector.js +112 -0
- package/dist/src/typus-perp/fetch.d.ts +5 -5
- package/dist/src/typus-perp/fetch.js +16 -16
- package/dist/src/typus-perp/index.d.ts +2 -4
- package/dist/src/typus-perp/index.js +5 -64
- package/dist/src/typus-perp/readVec.js +9 -9
- package/dist/src/typus-perp/typus_perp/admin/functions.d.ts +50 -0
- package/dist/src/typus-perp/typus_perp/admin/functions.js +116 -0
- package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.d.ts +49 -27
- package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.js +117 -21
- package/dist/src/typus-perp/typus_perp/index.d.ts +3 -0
- package/dist/src/typus-perp/typus_perp/index.js +6 -0
- package/dist/src/typus-perp/{init.js → typus_perp/init.js} +13 -26
- package/dist/src/typus-perp/typus_perp/lp-pool/functions.d.ts +342 -0
- package/dist/src/typus-perp/typus_perp/lp-pool/functions.js +517 -0
- package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.d.ts +698 -148
- package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.js +1457 -172
- package/dist/src/typus-perp/typus_perp/math/functions.d.ts +18 -0
- package/dist/src/typus-perp/typus_perp/math/functions.js +49 -0
- package/dist/src/typus-perp/typus_perp/oracle/functions.d.ts +13 -0
- package/dist/src/typus-perp/typus_perp/oracle/functions.js +25 -0
- package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.d.ts +20 -11
- package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.js +52 -10
- package/dist/src/typus-perp/typus_perp/position/functions.d.ts +343 -0
- package/dist/src/typus-perp/typus_perp/position/functions.js +659 -0
- package/dist/src/typus-perp/{position → typus_perp/position}/structs.d.ts +73 -43
- package/dist/src/typus-perp/{position → typus_perp/position}/structs.js +177 -38
- package/dist/src/typus-perp/typus_perp/symbol/functions.d.ts +9 -0
- package/dist/src/typus-perp/typus_perp/symbol/functions.js +33 -0
- package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.d.ts +11 -6
- package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.js +23 -4
- package/dist/src/typus-perp/typus_perp/tlp/functions.d.ts +19 -0
- package/dist/src/typus-perp/typus_perp/tlp/functions.js +41 -0
- package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.d.ts +20 -11
- package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.js +61 -13
- package/dist/src/typus-perp/typus_perp/token-interface/functions.d.ts +11 -0
- package/dist/src/typus-perp/{token-interface → typus_perp/token-interface}/functions.js +6 -6
- package/dist/src/typus-perp/typus_perp/trading/functions.d.ts +493 -0
- package/dist/src/typus-perp/typus_perp/trading/functions.js +711 -0
- package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.d.ts +523 -161
- package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.js +1042 -107
- package/dist/src/typus-perp/typus_perp/treasury-caps/functions.d.ts +9 -0
- package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/functions.js +14 -11
- package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.d.ts +11 -6
- package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.js +32 -7
- package/dist/src/typus-perp/typus_stake_pool/admin/functions.d.ts +50 -0
- package/dist/src/typus-perp/typus_stake_pool/admin/functions.js +116 -0
- package/dist/src/typus-perp/typus_stake_pool/admin/structs.d.ts +447 -0
- package/dist/src/typus-perp/typus_stake_pool/admin/structs.js +898 -0
- package/dist/src/typus-perp/typus_stake_pool/index.d.ts +3 -0
- package/dist/src/typus-perp/typus_stake_pool/index.js +6 -0
- package/dist/src/typus-perp/typus_stake_pool/init.d.ts +2 -0
- package/dist/src/typus-perp/typus_stake_pool/init.js +57 -0
- package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.d.ts +175 -0
- package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.js +275 -0
- package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.d.ts +293 -185
- package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.js +659 -235
- package/dist/src/typus-perp/user/order.d.ts +10 -10
- package/dist/src/typus-perp/user/order.js +6 -5
- package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +5 -5
- package/dist/src/typus-perp/user/orderWithBidReceipt.js +3 -3
- package/dist/src/typus-perp/user/tlp.d.ts +12 -12
- package/dist/src/typus-perp/user/tlp.js +13 -11
- package/dist/src/typus-safu/user-entry.d.ts +9 -9
- package/dist/src/typus-safu/user-entry.js +18 -18
- package/dist/src/typus-safu/user-history.d.ts +1 -1
- package/dist/src/typus-safu/user-history.js +1 -1
- package/dist/src/typus-safu/view-function.js +17 -17
- package/dist/src/utils/api/price.js +18 -2
- package/dist/src/utils/api/sentio/reward-generated.d.ts +1 -1
- package/dist/src/utils/mint.d.ts +2 -2
- package/dist/src/utils/mint.js +3 -3
- package/dist/src/utils/pyth/constant.d.ts +2 -0
- package/dist/src/utils/pyth/constant.js +2 -0
- package/dist/src/utils/pyth/pythClient.d.ts +3 -3
- package/dist/src/utils/typusConfig.d.ts +8 -2
- package/package.json +4 -5
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -5
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -377
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -565
- package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -434
- package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -267
- package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -648
- package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -178
- package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -290
- package/dist/src/_dependencies/source/0x2/display/structs.js +0 -362
- package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -464
- package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1033
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -272
- package/dist/src/_dependencies/source/0x2/package/structs.js +0 -478
- package/dist/src/_dependencies/source/0x2/random/structs.js +0 -383
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -651
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -665
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -286
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -669
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -402
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -566
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -5
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -774
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -272
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -276
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -471
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -563
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -789
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -5
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -562
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -1331
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -1706
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -5
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -1643
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -971
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -750
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -933
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -3796
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -382
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -959
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -5
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -274
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -2830
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -711
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -212
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +0 -348
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +0 -298
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +0 -5
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +0 -438
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +0 -297
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +0 -303
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +0 -349
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +0 -5
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +0 -363
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +0 -79
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +0 -256
- package/dist/src/_framework/init-source.d.ts +0 -1
- package/dist/src/_framework/init-source.js +0 -64
- package/dist/src/_framework/util.d.ts +0 -53
- package/dist/src/_framework/util.js +0 -251
- package/dist/src/typus-perp/admin/functions.d.ts +0 -51
- package/dist/src/typus-perp/admin/functions.js +0 -100
- package/dist/src/typus-perp/lp-pool/functions.d.ts +0 -283
- package/dist/src/typus-perp/lp-pool/functions.js +0 -418
- package/dist/src/typus-perp/math/functions.d.ts +0 -18
- package/dist/src/typus-perp/math/functions.js +0 -40
- package/dist/src/typus-perp/oracle/functions.d.ts +0 -14
- package/dist/src/typus-perp/oracle/functions.js +0 -22
- package/dist/src/typus-perp/position/functions.d.ts +0 -339
- package/dist/src/typus-perp/position/functions.js +0 -564
- package/dist/src/typus-perp/stake-pool/functions.d.ts +0 -169
- package/dist/src/typus-perp/stake-pool/functions.js +0 -258
- package/dist/src/typus-perp/symbol/functions.d.ts +0 -10
- package/dist/src/typus-perp/symbol/functions.js +0 -20
- package/dist/src/typus-perp/tlp/functions.d.ts +0 -20
- package/dist/src/typus-perp/tlp/functions.js +0 -35
- package/dist/src/typus-perp/token-interface/functions.d.ts +0 -12
- package/dist/src/typus-perp/trading/functions.d.ts +0 -427
- package/dist/src/typus-perp/trading/functions.js +0 -612
- package/dist/src/typus-perp/treasury-caps/functions.d.ts +0 -10
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -0
- package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.d.ts +0 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +2 -2
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.d.ts +0 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.js +4 -4
- /package/dist/src/typus-perp/{init.d.ts → typus_perp/init.d.ts} +0 -0
|
@@ -1,959 +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 (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
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;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0: case 1: t = op; break;
|
|
56
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
-
default:
|
|
60
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
-
if (t[2]) _.ops.pop();
|
|
65
|
-
_.trys.pop(); continue;
|
|
66
|
-
}
|
|
67
|
-
op = body.call(thisArg, _);
|
|
68
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
73
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
74
|
-
if (!m) return o;
|
|
75
|
-
var i = m.call(o), r, ar = [], e;
|
|
76
|
-
try {
|
|
77
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
78
|
-
}
|
|
79
|
-
catch (error) { e = { error: error }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
83
|
-
}
|
|
84
|
-
finally { if (e) throw e.error; }
|
|
85
|
-
}
|
|
86
|
-
return ar;
|
|
87
|
-
};
|
|
88
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
89
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
90
|
-
if (ar || !(i in from)) {
|
|
91
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
92
|
-
ar[i] = from[i];
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
96
|
-
};
|
|
97
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
98
|
-
exports.UpdateAuctionConfig = exports.RemoveBid = exports.NewBid = exports.DUTCH = exports.Bid = exports.Auction = exports.Terminate = exports.Delivery = void 0;
|
|
99
|
-
exports.isDelivery = isDelivery;
|
|
100
|
-
exports.isTerminate = isTerminate;
|
|
101
|
-
exports.isAuction = isAuction;
|
|
102
|
-
exports.isBid = isBid;
|
|
103
|
-
exports.isDUTCH = isDUTCH;
|
|
104
|
-
exports.isNewBid = isNewBid;
|
|
105
|
-
exports.isRemoveBid = isRemoveBid;
|
|
106
|
-
exports.isUpdateAuctionConfig = isUpdateAuctionConfig;
|
|
107
|
-
var reified = __importStar(require("../../../../_framework/reified"));
|
|
108
|
-
var reified_1 = require("../../../../_framework/reified");
|
|
109
|
-
var util_1 = require("../../../../_framework/util");
|
|
110
|
-
var structs_1 = require("../../0x1/type-name/structs");
|
|
111
|
-
var structs_2 = require("../../0x2/object/structs");
|
|
112
|
-
var structs_3 = require("../big-vector/structs");
|
|
113
|
-
var bcs_1 = require("@mysten/bcs");
|
|
114
|
-
/* ============================== Delivery =============================== */
|
|
115
|
-
function isDelivery(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Delivery"; }
|
|
116
|
-
var Delivery = /** @class */ (function () {
|
|
117
|
-
function Delivery(typeArgs, fields) {
|
|
118
|
-
this.$typeName = Delivery.$typeName;
|
|
119
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Delivery.$typeName], __read(typeArgs), false));
|
|
120
|
-
this.$typeArgs = typeArgs;
|
|
121
|
-
this.signer = fields.signer;
|
|
122
|
-
;
|
|
123
|
-
this.index = fields.index;
|
|
124
|
-
;
|
|
125
|
-
this.token = fields.token;
|
|
126
|
-
;
|
|
127
|
-
this.price = fields.price;
|
|
128
|
-
;
|
|
129
|
-
this.size = fields.size;
|
|
130
|
-
;
|
|
131
|
-
this.bidderBidValue = fields.bidderBidValue;
|
|
132
|
-
;
|
|
133
|
-
this.bidderFee = fields.bidderFee;
|
|
134
|
-
;
|
|
135
|
-
this.incentiveBidValue = fields.incentiveBidValue;
|
|
136
|
-
;
|
|
137
|
-
this.incentiveFee = fields.incentiveFee;
|
|
138
|
-
}
|
|
139
|
-
Delivery.reified = function () {
|
|
140
|
-
var _this = this;
|
|
141
|
-
return { typeName: Delivery.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Delivery.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Delivery.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Delivery.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Delivery.fromBcs(data); }, bcs: Delivery.bcs, fromJSONField: function (field) { return Delivery.fromJSONField(field); }, fromJSON: function (json) { return Delivery.fromJSON(json); }, fromSuiParsedData: function (content) { return Delivery.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
142
|
-
return [2 /*return*/, Delivery.fetch(client, id)];
|
|
143
|
-
}); }); }, new: function (fields) { return new Delivery([], fields); }, kind: "StructClassReified", };
|
|
144
|
-
};
|
|
145
|
-
Object.defineProperty(Delivery, "r", {
|
|
146
|
-
get: function () { return Delivery.reified(); },
|
|
147
|
-
enumerable: false,
|
|
148
|
-
configurable: true
|
|
149
|
-
});
|
|
150
|
-
Delivery.phantom = function () { return (0, reified_1.phantom)(Delivery.reified()); };
|
|
151
|
-
Object.defineProperty(Delivery, "p", {
|
|
152
|
-
get: function () { return Delivery.phantom(); },
|
|
153
|
-
enumerable: false,
|
|
154
|
-
configurable: true
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(Delivery, "bcs", {
|
|
157
|
-
get: function () {
|
|
158
|
-
return bcs_1.bcs.struct("Delivery", {
|
|
159
|
-
signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), index: bcs_1.bcs.u64(), token: structs_1.TypeName.bcs, price: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), bidder_bid_value: bcs_1.bcs.u64(), bidder_fee: bcs_1.bcs.u64(), incentive_bid_value: bcs_1.bcs.u64(), incentive_fee: bcs_1.bcs.u64()
|
|
160
|
-
});
|
|
161
|
-
},
|
|
162
|
-
enumerable: false,
|
|
163
|
-
configurable: true
|
|
164
|
-
});
|
|
165
|
-
;
|
|
166
|
-
Delivery.fromFields = function (fields) { return Delivery.reified().new({ signer: (0, reified_1.decodeFromFields)("address", fields.signer), index: (0, reified_1.decodeFromFields)("u64", fields.index), token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token), price: (0, reified_1.decodeFromFields)("u64", fields.price), size: (0, reified_1.decodeFromFields)("u64", fields.size), bidderBidValue: (0, reified_1.decodeFromFields)("u64", fields.bidder_bid_value), bidderFee: (0, reified_1.decodeFromFields)("u64", fields.bidder_fee), incentiveBidValue: (0, reified_1.decodeFromFields)("u64", fields.incentive_bid_value), incentiveFee: (0, reified_1.decodeFromFields)("u64", fields.incentive_fee) }); };
|
|
167
|
-
Delivery.fromFieldsWithTypes = function (item) {
|
|
168
|
-
if (!isDelivery(item.type)) {
|
|
169
|
-
throw new Error("not a Delivery type");
|
|
170
|
-
}
|
|
171
|
-
return Delivery.reified().new({ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer), index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), bidderBidValue: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bidder_bid_value), bidderFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bidder_fee), incentiveBidValue: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_bid_value), incentiveFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_fee) });
|
|
172
|
-
};
|
|
173
|
-
Delivery.fromBcs = function (data) { return Delivery.fromFields(Delivery.bcs.parse(data)); };
|
|
174
|
-
Delivery.prototype.toJSONField = function () {
|
|
175
|
-
return {
|
|
176
|
-
signer: this.signer, index: this.index.toString(), token: this.token.toJSONField(), price: this.price.toString(), size: this.size.toString(), bidderBidValue: this.bidderBidValue.toString(), bidderFee: this.bidderFee.toString(), incentiveBidValue: this.incentiveBidValue.toString(), incentiveFee: this.incentiveFee.toString(),
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
Delivery.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
180
|
-
Delivery.fromJSONField = function (field) { return Delivery.reified().new({ signer: (0, reified_1.decodeFromJSONField)("address", field.signer), index: (0, reified_1.decodeFromJSONField)("u64", field.index), token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token), price: (0, reified_1.decodeFromJSONField)("u64", field.price), size: (0, reified_1.decodeFromJSONField)("u64", field.size), bidderBidValue: (0, reified_1.decodeFromJSONField)("u64", field.bidderBidValue), bidderFee: (0, reified_1.decodeFromJSONField)("u64", field.bidderFee), incentiveBidValue: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBidValue), incentiveFee: (0, reified_1.decodeFromJSONField)("u64", field.incentiveFee) }); };
|
|
181
|
-
Delivery.fromJSON = function (json) {
|
|
182
|
-
if (json.$typeName !== Delivery.$typeName) {
|
|
183
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
184
|
-
}
|
|
185
|
-
;
|
|
186
|
-
return Delivery.fromJSONField(json);
|
|
187
|
-
};
|
|
188
|
-
Delivery.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
189
|
-
throw new Error("not an object");
|
|
190
|
-
} if (!isDelivery(content.type)) {
|
|
191
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Delivery object"));
|
|
192
|
-
} return Delivery.fromFieldsWithTypes(content); };
|
|
193
|
-
Delivery.fetch = function (client, id) {
|
|
194
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
195
|
-
var res;
|
|
196
|
-
var _a, _b;
|
|
197
|
-
return __generator(this, function (_c) {
|
|
198
|
-
switch (_c.label) {
|
|
199
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
200
|
-
case 1:
|
|
201
|
-
res = _c.sent();
|
|
202
|
-
if (res.error) {
|
|
203
|
-
throw new Error("error fetching Delivery object at id ".concat(id, ": ").concat(res.error.code));
|
|
204
|
-
}
|
|
205
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDelivery(res.data.bcs.type)) {
|
|
206
|
-
throw new Error("object at id ".concat(id, " is not a Delivery object"));
|
|
207
|
-
}
|
|
208
|
-
return [2 /*return*/, Delivery.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
Delivery.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Delivery";
|
|
214
|
-
Delivery.$numTypeParams = 0;
|
|
215
|
-
return Delivery;
|
|
216
|
-
}());
|
|
217
|
-
exports.Delivery = Delivery;
|
|
218
|
-
/* ============================== Terminate =============================== */
|
|
219
|
-
function isTerminate(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Terminate"; }
|
|
220
|
-
var Terminate = /** @class */ (function () {
|
|
221
|
-
function Terminate(typeArgs, fields) {
|
|
222
|
-
this.$typeName = Terminate.$typeName;
|
|
223
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Terminate.$typeName], __read(typeArgs), false));
|
|
224
|
-
this.$typeArgs = typeArgs;
|
|
225
|
-
this.signer = fields.signer;
|
|
226
|
-
;
|
|
227
|
-
this.index = fields.index;
|
|
228
|
-
;
|
|
229
|
-
this.token = fields.token;
|
|
230
|
-
}
|
|
231
|
-
Terminate.reified = function () {
|
|
232
|
-
var _this = this;
|
|
233
|
-
return { typeName: Terminate.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Terminate.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Terminate.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Terminate.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Terminate.fromBcs(data); }, bcs: Terminate.bcs, fromJSONField: function (field) { return Terminate.fromJSONField(field); }, fromJSON: function (json) { return Terminate.fromJSON(json); }, fromSuiParsedData: function (content) { return Terminate.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
234
|
-
return [2 /*return*/, Terminate.fetch(client, id)];
|
|
235
|
-
}); }); }, new: function (fields) { return new Terminate([], fields); }, kind: "StructClassReified", };
|
|
236
|
-
};
|
|
237
|
-
Object.defineProperty(Terminate, "r", {
|
|
238
|
-
get: function () { return Terminate.reified(); },
|
|
239
|
-
enumerable: false,
|
|
240
|
-
configurable: true
|
|
241
|
-
});
|
|
242
|
-
Terminate.phantom = function () { return (0, reified_1.phantom)(Terminate.reified()); };
|
|
243
|
-
Object.defineProperty(Terminate, "p", {
|
|
244
|
-
get: function () { return Terminate.phantom(); },
|
|
245
|
-
enumerable: false,
|
|
246
|
-
configurable: true
|
|
247
|
-
});
|
|
248
|
-
Object.defineProperty(Terminate, "bcs", {
|
|
249
|
-
get: function () {
|
|
250
|
-
return bcs_1.bcs.struct("Terminate", {
|
|
251
|
-
signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), index: bcs_1.bcs.u64(), token: structs_1.TypeName.bcs
|
|
252
|
-
});
|
|
253
|
-
},
|
|
254
|
-
enumerable: false,
|
|
255
|
-
configurable: true
|
|
256
|
-
});
|
|
257
|
-
;
|
|
258
|
-
Terminate.fromFields = function (fields) { return Terminate.reified().new({ signer: (0, reified_1.decodeFromFields)("address", fields.signer), index: (0, reified_1.decodeFromFields)("u64", fields.index), token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token) }); };
|
|
259
|
-
Terminate.fromFieldsWithTypes = function (item) {
|
|
260
|
-
if (!isTerminate(item.type)) {
|
|
261
|
-
throw new Error("not a Terminate type");
|
|
262
|
-
}
|
|
263
|
-
return Terminate.reified().new({ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer), index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token) });
|
|
264
|
-
};
|
|
265
|
-
Terminate.fromBcs = function (data) { return Terminate.fromFields(Terminate.bcs.parse(data)); };
|
|
266
|
-
Terminate.prototype.toJSONField = function () {
|
|
267
|
-
return {
|
|
268
|
-
signer: this.signer, index: this.index.toString(), token: this.token.toJSONField(),
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
Terminate.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
272
|
-
Terminate.fromJSONField = function (field) { return Terminate.reified().new({ signer: (0, reified_1.decodeFromJSONField)("address", field.signer), index: (0, reified_1.decodeFromJSONField)("u64", field.index), token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token) }); };
|
|
273
|
-
Terminate.fromJSON = function (json) {
|
|
274
|
-
if (json.$typeName !== Terminate.$typeName) {
|
|
275
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
276
|
-
}
|
|
277
|
-
;
|
|
278
|
-
return Terminate.fromJSONField(json);
|
|
279
|
-
};
|
|
280
|
-
Terminate.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
281
|
-
throw new Error("not an object");
|
|
282
|
-
} if (!isTerminate(content.type)) {
|
|
283
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Terminate object"));
|
|
284
|
-
} return Terminate.fromFieldsWithTypes(content); };
|
|
285
|
-
Terminate.fetch = function (client, id) {
|
|
286
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
287
|
-
var res;
|
|
288
|
-
var _a, _b;
|
|
289
|
-
return __generator(this, function (_c) {
|
|
290
|
-
switch (_c.label) {
|
|
291
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
292
|
-
case 1:
|
|
293
|
-
res = _c.sent();
|
|
294
|
-
if (res.error) {
|
|
295
|
-
throw new Error("error fetching Terminate object at id ".concat(id, ": ").concat(res.error.code));
|
|
296
|
-
}
|
|
297
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTerminate(res.data.bcs.type)) {
|
|
298
|
-
throw new Error("object at id ".concat(id, " is not a Terminate object"));
|
|
299
|
-
}
|
|
300
|
-
return [2 /*return*/, Terminate.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
});
|
|
304
|
-
};
|
|
305
|
-
Terminate.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Terminate";
|
|
306
|
-
Terminate.$numTypeParams = 0;
|
|
307
|
-
return Terminate;
|
|
308
|
-
}());
|
|
309
|
-
exports.Terminate = Terminate;
|
|
310
|
-
/* ============================== Auction =============================== */
|
|
311
|
-
function isAuction(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Auction"; }
|
|
312
|
-
var Auction = /** @class */ (function () {
|
|
313
|
-
function Auction(typeArgs, fields) {
|
|
314
|
-
this.$typeName = Auction.$typeName;
|
|
315
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Auction.$typeName], __read(typeArgs), false));
|
|
316
|
-
this.$typeArgs = typeArgs;
|
|
317
|
-
this.id = fields.id;
|
|
318
|
-
;
|
|
319
|
-
this.index = fields.index;
|
|
320
|
-
;
|
|
321
|
-
this.token = fields.token;
|
|
322
|
-
;
|
|
323
|
-
this.startTsMs = fields.startTsMs;
|
|
324
|
-
;
|
|
325
|
-
this.endTsMs = fields.endTsMs;
|
|
326
|
-
;
|
|
327
|
-
this.size = fields.size;
|
|
328
|
-
;
|
|
329
|
-
this.decaySpeed = fields.decaySpeed;
|
|
330
|
-
;
|
|
331
|
-
this.initialPrice = fields.initialPrice;
|
|
332
|
-
;
|
|
333
|
-
this.finalPrice = fields.finalPrice;
|
|
334
|
-
;
|
|
335
|
-
this.feeBp = fields.feeBp;
|
|
336
|
-
;
|
|
337
|
-
this.incentiveBp = fields.incentiveBp;
|
|
338
|
-
;
|
|
339
|
-
this.tokenDecimal = fields.tokenDecimal;
|
|
340
|
-
;
|
|
341
|
-
this.sizeDecimal = fields.sizeDecimal;
|
|
342
|
-
;
|
|
343
|
-
this.totalBidSize = fields.totalBidSize;
|
|
344
|
-
;
|
|
345
|
-
this.ableToRemoveBid = fields.ableToRemoveBid;
|
|
346
|
-
;
|
|
347
|
-
this.bids = fields.bids;
|
|
348
|
-
;
|
|
349
|
-
this.bidIndex = fields.bidIndex;
|
|
350
|
-
}
|
|
351
|
-
Auction.reified = function () {
|
|
352
|
-
var _this = this;
|
|
353
|
-
return { typeName: Auction.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Auction.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Auction.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Auction.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Auction.fromBcs(data); }, bcs: Auction.bcs, fromJSONField: function (field) { return Auction.fromJSONField(field); }, fromJSON: function (json) { return Auction.fromJSON(json); }, fromSuiParsedData: function (content) { return Auction.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
354
|
-
return [2 /*return*/, Auction.fetch(client, id)];
|
|
355
|
-
}); }); }, new: function (fields) { return new Auction([], fields); }, kind: "StructClassReified", };
|
|
356
|
-
};
|
|
357
|
-
Object.defineProperty(Auction, "r", {
|
|
358
|
-
get: function () { return Auction.reified(); },
|
|
359
|
-
enumerable: false,
|
|
360
|
-
configurable: true
|
|
361
|
-
});
|
|
362
|
-
Auction.phantom = function () { return (0, reified_1.phantom)(Auction.reified()); };
|
|
363
|
-
Object.defineProperty(Auction, "p", {
|
|
364
|
-
get: function () { return Auction.phantom(); },
|
|
365
|
-
enumerable: false,
|
|
366
|
-
configurable: true
|
|
367
|
-
});
|
|
368
|
-
Object.defineProperty(Auction, "bcs", {
|
|
369
|
-
get: function () {
|
|
370
|
-
return bcs_1.bcs.struct("Auction", {
|
|
371
|
-
id: structs_2.UID.bcs, index: bcs_1.bcs.u64(), token: structs_1.TypeName.bcs, start_ts_ms: bcs_1.bcs.u64(), end_ts_ms: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), decay_speed: bcs_1.bcs.u64(), initial_price: bcs_1.bcs.u64(), final_price: bcs_1.bcs.u64(), fee_bp: bcs_1.bcs.u64(), incentive_bp: bcs_1.bcs.u64(), token_decimal: bcs_1.bcs.u64(), size_decimal: bcs_1.bcs.u64(), total_bid_size: bcs_1.bcs.u64(), able_to_remove_bid: bcs_1.bcs.bool(), bids: structs_3.BigVector.bcs, bid_index: bcs_1.bcs.u64()
|
|
372
|
-
});
|
|
373
|
-
},
|
|
374
|
-
enumerable: false,
|
|
375
|
-
configurable: true
|
|
376
|
-
});
|
|
377
|
-
;
|
|
378
|
-
Auction.fromFields = function (fields) { return Auction.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), index: (0, reified_1.decodeFromFields)("u64", fields.index), token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token), startTsMs: (0, reified_1.decodeFromFields)("u64", fields.start_ts_ms), endTsMs: (0, reified_1.decodeFromFields)("u64", fields.end_ts_ms), size: (0, reified_1.decodeFromFields)("u64", fields.size), decaySpeed: (0, reified_1.decodeFromFields)("u64", fields.decay_speed), initialPrice: (0, reified_1.decodeFromFields)("u64", fields.initial_price), finalPrice: (0, reified_1.decodeFromFields)("u64", fields.final_price), feeBp: (0, reified_1.decodeFromFields)("u64", fields.fee_bp), incentiveBp: (0, reified_1.decodeFromFields)("u64", fields.incentive_bp), tokenDecimal: (0, reified_1.decodeFromFields)("u64", fields.token_decimal), sizeDecimal: (0, reified_1.decodeFromFields)("u64", fields.size_decimal), totalBidSize: (0, reified_1.decodeFromFields)("u64", fields.total_bid_size), ableToRemoveBid: (0, reified_1.decodeFromFields)("bool", fields.able_to_remove_bid), bids: (0, reified_1.decodeFromFields)(structs_3.BigVector.reified(reified.phantom(Bid.reified())), fields.bids), bidIndex: (0, reified_1.decodeFromFields)("u64", fields.bid_index) }); };
|
|
379
|
-
Auction.fromFieldsWithTypes = function (item) {
|
|
380
|
-
if (!isAuction(item.type)) {
|
|
381
|
-
throw new Error("not a Auction type");
|
|
382
|
-
}
|
|
383
|
-
return Auction.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id), index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token), startTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ts_ms), endTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.end_ts_ms), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), decaySpeed: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.decay_speed), initialPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.initial_price), finalPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.final_price), feeBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fee_bp), incentiveBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_bp), tokenDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.token_decimal), sizeDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size_decimal), totalBidSize: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.total_bid_size), ableToRemoveBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.able_to_remove_bid), bids: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.BigVector.reified(reified.phantom(Bid.reified())), item.fields.bids), bidIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_index) });
|
|
384
|
-
};
|
|
385
|
-
Auction.fromBcs = function (data) { return Auction.fromFields(Auction.bcs.parse(data)); };
|
|
386
|
-
Auction.prototype.toJSONField = function () {
|
|
387
|
-
return {
|
|
388
|
-
id: this.id, index: this.index.toString(), token: this.token.toJSONField(), startTsMs: this.startTsMs.toString(), endTsMs: this.endTsMs.toString(), size: this.size.toString(), decaySpeed: this.decaySpeed.toString(), initialPrice: this.initialPrice.toString(), finalPrice: this.finalPrice.toString(), feeBp: this.feeBp.toString(), incentiveBp: this.incentiveBp.toString(), tokenDecimal: this.tokenDecimal.toString(), sizeDecimal: this.sizeDecimal.toString(), totalBidSize: this.totalBidSize.toString(), ableToRemoveBid: this.ableToRemoveBid, bids: this.bids.toJSONField(), bidIndex: this.bidIndex.toString(),
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
Auction.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
392
|
-
Auction.fromJSONField = function (field) { return Auction.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), index: (0, reified_1.decodeFromJSONField)("u64", field.index), token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token), startTsMs: (0, reified_1.decodeFromJSONField)("u64", field.startTsMs), endTsMs: (0, reified_1.decodeFromJSONField)("u64", field.endTsMs), size: (0, reified_1.decodeFromJSONField)("u64", field.size), decaySpeed: (0, reified_1.decodeFromJSONField)("u64", field.decaySpeed), initialPrice: (0, reified_1.decodeFromJSONField)("u64", field.initialPrice), finalPrice: (0, reified_1.decodeFromJSONField)("u64", field.finalPrice), feeBp: (0, reified_1.decodeFromJSONField)("u64", field.feeBp), incentiveBp: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBp), tokenDecimal: (0, reified_1.decodeFromJSONField)("u64", field.tokenDecimal), sizeDecimal: (0, reified_1.decodeFromJSONField)("u64", field.sizeDecimal), totalBidSize: (0, reified_1.decodeFromJSONField)("u64", field.totalBidSize), ableToRemoveBid: (0, reified_1.decodeFromJSONField)("bool", field.ableToRemoveBid), bids: (0, reified_1.decodeFromJSONField)(structs_3.BigVector.reified(reified.phantom(Bid.reified())), field.bids), bidIndex: (0, reified_1.decodeFromJSONField)("u64", field.bidIndex) }); };
|
|
393
|
-
Auction.fromJSON = function (json) {
|
|
394
|
-
if (json.$typeName !== Auction.$typeName) {
|
|
395
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
396
|
-
}
|
|
397
|
-
;
|
|
398
|
-
return Auction.fromJSONField(json);
|
|
399
|
-
};
|
|
400
|
-
Auction.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
401
|
-
throw new Error("not an object");
|
|
402
|
-
} if (!isAuction(content.type)) {
|
|
403
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Auction object"));
|
|
404
|
-
} return Auction.fromFieldsWithTypes(content); };
|
|
405
|
-
Auction.fetch = function (client, id) {
|
|
406
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
407
|
-
var res;
|
|
408
|
-
var _a, _b;
|
|
409
|
-
return __generator(this, function (_c) {
|
|
410
|
-
switch (_c.label) {
|
|
411
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
412
|
-
case 1:
|
|
413
|
-
res = _c.sent();
|
|
414
|
-
if (res.error) {
|
|
415
|
-
throw new Error("error fetching Auction object at id ".concat(id, ": ").concat(res.error.code));
|
|
416
|
-
}
|
|
417
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAuction(res.data.bcs.type)) {
|
|
418
|
-
throw new Error("object at id ".concat(id, " is not a Auction object"));
|
|
419
|
-
}
|
|
420
|
-
return [2 /*return*/, Auction.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
};
|
|
425
|
-
Auction.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Auction";
|
|
426
|
-
Auction.$numTypeParams = 0;
|
|
427
|
-
return Auction;
|
|
428
|
-
}());
|
|
429
|
-
exports.Auction = Auction;
|
|
430
|
-
/* ============================== Bid =============================== */
|
|
431
|
-
function isBid(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Bid"; }
|
|
432
|
-
var Bid = /** @class */ (function () {
|
|
433
|
-
function Bid(typeArgs, fields) {
|
|
434
|
-
this.$typeName = Bid.$typeName;
|
|
435
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Bid.$typeName], __read(typeArgs), false));
|
|
436
|
-
this.$typeArgs = typeArgs;
|
|
437
|
-
this.index = fields.index;
|
|
438
|
-
;
|
|
439
|
-
this.bidder = fields.bidder;
|
|
440
|
-
;
|
|
441
|
-
this.price = fields.price;
|
|
442
|
-
;
|
|
443
|
-
this.size = fields.size;
|
|
444
|
-
;
|
|
445
|
-
this.bidderBalance = fields.bidderBalance;
|
|
446
|
-
;
|
|
447
|
-
this.incentiveBalance = fields.incentiveBalance;
|
|
448
|
-
;
|
|
449
|
-
this.feeDiscount = fields.feeDiscount;
|
|
450
|
-
;
|
|
451
|
-
this.tsMs = fields.tsMs;
|
|
452
|
-
}
|
|
453
|
-
Bid.reified = function () {
|
|
454
|
-
var _this = this;
|
|
455
|
-
return { typeName: Bid.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Bid.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Bid.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Bid.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Bid.fromBcs(data); }, bcs: Bid.bcs, fromJSONField: function (field) { return Bid.fromJSONField(field); }, fromJSON: function (json) { return Bid.fromJSON(json); }, fromSuiParsedData: function (content) { return Bid.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
456
|
-
return [2 /*return*/, Bid.fetch(client, id)];
|
|
457
|
-
}); }); }, new: function (fields) { return new Bid([], fields); }, kind: "StructClassReified", };
|
|
458
|
-
};
|
|
459
|
-
Object.defineProperty(Bid, "r", {
|
|
460
|
-
get: function () { return Bid.reified(); },
|
|
461
|
-
enumerable: false,
|
|
462
|
-
configurable: true
|
|
463
|
-
});
|
|
464
|
-
Bid.phantom = function () { return (0, reified_1.phantom)(Bid.reified()); };
|
|
465
|
-
Object.defineProperty(Bid, "p", {
|
|
466
|
-
get: function () { return Bid.phantom(); },
|
|
467
|
-
enumerable: false,
|
|
468
|
-
configurable: true
|
|
469
|
-
});
|
|
470
|
-
Object.defineProperty(Bid, "bcs", {
|
|
471
|
-
get: function () {
|
|
472
|
-
return bcs_1.bcs.struct("Bid", {
|
|
473
|
-
index: bcs_1.bcs.u64(), bidder: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), bidder_balance: bcs_1.bcs.u64(), incentive_balance: bcs_1.bcs.u64(), fee_discount: bcs_1.bcs.u64(), ts_ms: bcs_1.bcs.u64()
|
|
474
|
-
});
|
|
475
|
-
},
|
|
476
|
-
enumerable: false,
|
|
477
|
-
configurable: true
|
|
478
|
-
});
|
|
479
|
-
;
|
|
480
|
-
Bid.fromFields = function (fields) { return Bid.reified().new({ index: (0, reified_1.decodeFromFields)("u64", fields.index), bidder: (0, reified_1.decodeFromFields)("address", fields.bidder), price: (0, reified_1.decodeFromFields)("u64", fields.price), size: (0, reified_1.decodeFromFields)("u64", fields.size), bidderBalance: (0, reified_1.decodeFromFields)("u64", fields.bidder_balance), incentiveBalance: (0, reified_1.decodeFromFields)("u64", fields.incentive_balance), feeDiscount: (0, reified_1.decodeFromFields)("u64", fields.fee_discount), tsMs: (0, reified_1.decodeFromFields)("u64", fields.ts_ms) }); };
|
|
481
|
-
Bid.fromFieldsWithTypes = function (item) {
|
|
482
|
-
if (!isBid(item.type)) {
|
|
483
|
-
throw new Error("not a Bid type");
|
|
484
|
-
}
|
|
485
|
-
return Bid.reified().new({ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index), bidder: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.bidder), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), bidderBalance: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bidder_balance), incentiveBalance: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_balance), feeDiscount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fee_discount), tsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.ts_ms) });
|
|
486
|
-
};
|
|
487
|
-
Bid.fromBcs = function (data) { return Bid.fromFields(Bid.bcs.parse(data)); };
|
|
488
|
-
Bid.prototype.toJSONField = function () {
|
|
489
|
-
return {
|
|
490
|
-
index: this.index.toString(), bidder: this.bidder, price: this.price.toString(), size: this.size.toString(), bidderBalance: this.bidderBalance.toString(), incentiveBalance: this.incentiveBalance.toString(), feeDiscount: this.feeDiscount.toString(), tsMs: this.tsMs.toString(),
|
|
491
|
-
};
|
|
492
|
-
};
|
|
493
|
-
Bid.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
494
|
-
Bid.fromJSONField = function (field) { return Bid.reified().new({ index: (0, reified_1.decodeFromJSONField)("u64", field.index), bidder: (0, reified_1.decodeFromJSONField)("address", field.bidder), price: (0, reified_1.decodeFromJSONField)("u64", field.price), size: (0, reified_1.decodeFromJSONField)("u64", field.size), bidderBalance: (0, reified_1.decodeFromJSONField)("u64", field.bidderBalance), incentiveBalance: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBalance), feeDiscount: (0, reified_1.decodeFromJSONField)("u64", field.feeDiscount), tsMs: (0, reified_1.decodeFromJSONField)("u64", field.tsMs) }); };
|
|
495
|
-
Bid.fromJSON = function (json) {
|
|
496
|
-
if (json.$typeName !== Bid.$typeName) {
|
|
497
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
498
|
-
}
|
|
499
|
-
;
|
|
500
|
-
return Bid.fromJSONField(json);
|
|
501
|
-
};
|
|
502
|
-
Bid.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
503
|
-
throw new Error("not an object");
|
|
504
|
-
} if (!isBid(content.type)) {
|
|
505
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Bid object"));
|
|
506
|
-
} return Bid.fromFieldsWithTypes(content); };
|
|
507
|
-
Bid.fetch = function (client, id) {
|
|
508
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
509
|
-
var res;
|
|
510
|
-
var _a, _b;
|
|
511
|
-
return __generator(this, function (_c) {
|
|
512
|
-
switch (_c.label) {
|
|
513
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
514
|
-
case 1:
|
|
515
|
-
res = _c.sent();
|
|
516
|
-
if (res.error) {
|
|
517
|
-
throw new Error("error fetching Bid object at id ".concat(id, ": ").concat(res.error.code));
|
|
518
|
-
}
|
|
519
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isBid(res.data.bcs.type)) {
|
|
520
|
-
throw new Error("object at id ".concat(id, " is not a Bid object"));
|
|
521
|
-
}
|
|
522
|
-
return [2 /*return*/, Bid.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
523
|
-
}
|
|
524
|
-
});
|
|
525
|
-
});
|
|
526
|
-
};
|
|
527
|
-
Bid.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::Bid";
|
|
528
|
-
Bid.$numTypeParams = 0;
|
|
529
|
-
return Bid;
|
|
530
|
-
}());
|
|
531
|
-
exports.Bid = Bid;
|
|
532
|
-
/* ============================== DUTCH =============================== */
|
|
533
|
-
function isDUTCH(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::DUTCH"; }
|
|
534
|
-
var DUTCH = /** @class */ (function () {
|
|
535
|
-
function DUTCH(typeArgs, fields) {
|
|
536
|
-
this.$typeName = DUTCH.$typeName;
|
|
537
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DUTCH.$typeName], __read(typeArgs), false));
|
|
538
|
-
this.$typeArgs = typeArgs;
|
|
539
|
-
this.dummyField = fields.dummyField;
|
|
540
|
-
}
|
|
541
|
-
DUTCH.reified = function () {
|
|
542
|
-
var _this = this;
|
|
543
|
-
return { typeName: DUTCH.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DUTCH.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return DUTCH.fromFields(fields); }, fromFieldsWithTypes: function (item) { return DUTCH.fromFieldsWithTypes(item); }, fromBcs: function (data) { return DUTCH.fromBcs(data); }, bcs: DUTCH.bcs, fromJSONField: function (field) { return DUTCH.fromJSONField(field); }, fromJSON: function (json) { return DUTCH.fromJSON(json); }, fromSuiParsedData: function (content) { return DUTCH.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
544
|
-
return [2 /*return*/, DUTCH.fetch(client, id)];
|
|
545
|
-
}); }); }, new: function (fields) { return new DUTCH([], fields); }, kind: "StructClassReified", };
|
|
546
|
-
};
|
|
547
|
-
Object.defineProperty(DUTCH, "r", {
|
|
548
|
-
get: function () { return DUTCH.reified(); },
|
|
549
|
-
enumerable: false,
|
|
550
|
-
configurable: true
|
|
551
|
-
});
|
|
552
|
-
DUTCH.phantom = function () { return (0, reified_1.phantom)(DUTCH.reified()); };
|
|
553
|
-
Object.defineProperty(DUTCH, "p", {
|
|
554
|
-
get: function () { return DUTCH.phantom(); },
|
|
555
|
-
enumerable: false,
|
|
556
|
-
configurable: true
|
|
557
|
-
});
|
|
558
|
-
Object.defineProperty(DUTCH, "bcs", {
|
|
559
|
-
get: function () {
|
|
560
|
-
return bcs_1.bcs.struct("DUTCH", {
|
|
561
|
-
dummy_field: bcs_1.bcs.bool()
|
|
562
|
-
});
|
|
563
|
-
},
|
|
564
|
-
enumerable: false,
|
|
565
|
-
configurable: true
|
|
566
|
-
});
|
|
567
|
-
;
|
|
568
|
-
DUTCH.fromFields = function (fields) { return DUTCH.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) }); };
|
|
569
|
-
DUTCH.fromFieldsWithTypes = function (item) {
|
|
570
|
-
if (!isDUTCH(item.type)) {
|
|
571
|
-
throw new Error("not a DUTCH type");
|
|
572
|
-
}
|
|
573
|
-
return DUTCH.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
|
|
574
|
-
};
|
|
575
|
-
DUTCH.fromBcs = function (data) { return DUTCH.fromFields(DUTCH.bcs.parse(data)); };
|
|
576
|
-
DUTCH.prototype.toJSONField = function () {
|
|
577
|
-
return {
|
|
578
|
-
dummyField: this.dummyField,
|
|
579
|
-
};
|
|
580
|
-
};
|
|
581
|
-
DUTCH.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
582
|
-
DUTCH.fromJSONField = function (field) { return DUTCH.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) }); };
|
|
583
|
-
DUTCH.fromJSON = function (json) {
|
|
584
|
-
if (json.$typeName !== DUTCH.$typeName) {
|
|
585
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
586
|
-
}
|
|
587
|
-
;
|
|
588
|
-
return DUTCH.fromJSONField(json);
|
|
589
|
-
};
|
|
590
|
-
DUTCH.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
591
|
-
throw new Error("not an object");
|
|
592
|
-
} if (!isDUTCH(content.type)) {
|
|
593
|
-
throw new Error("object at ".concat(content.fields.id, " is not a DUTCH object"));
|
|
594
|
-
} return DUTCH.fromFieldsWithTypes(content); };
|
|
595
|
-
DUTCH.fetch = function (client, id) {
|
|
596
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
597
|
-
var res;
|
|
598
|
-
var _a, _b;
|
|
599
|
-
return __generator(this, function (_c) {
|
|
600
|
-
switch (_c.label) {
|
|
601
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
602
|
-
case 1:
|
|
603
|
-
res = _c.sent();
|
|
604
|
-
if (res.error) {
|
|
605
|
-
throw new Error("error fetching DUTCH object at id ".concat(id, ": ").concat(res.error.code));
|
|
606
|
-
}
|
|
607
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDUTCH(res.data.bcs.type)) {
|
|
608
|
-
throw new Error("object at id ".concat(id, " is not a DUTCH object"));
|
|
609
|
-
}
|
|
610
|
-
return [2 /*return*/, DUTCH.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
});
|
|
614
|
-
};
|
|
615
|
-
DUTCH.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::DUTCH";
|
|
616
|
-
DUTCH.$numTypeParams = 0;
|
|
617
|
-
return DUTCH;
|
|
618
|
-
}());
|
|
619
|
-
exports.DUTCH = DUTCH;
|
|
620
|
-
/* ============================== NewBid =============================== */
|
|
621
|
-
function isNewBid(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::NewBid"; }
|
|
622
|
-
var NewBid = /** @class */ (function () {
|
|
623
|
-
function NewBid(typeArgs, fields) {
|
|
624
|
-
this.$typeName = NewBid.$typeName;
|
|
625
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewBid.$typeName], __read(typeArgs), false));
|
|
626
|
-
this.$typeArgs = typeArgs;
|
|
627
|
-
this.signer = fields.signer;
|
|
628
|
-
;
|
|
629
|
-
this.index = fields.index;
|
|
630
|
-
;
|
|
631
|
-
this.token = fields.token;
|
|
632
|
-
;
|
|
633
|
-
this.bidIndex = fields.bidIndex;
|
|
634
|
-
;
|
|
635
|
-
this.price = fields.price;
|
|
636
|
-
;
|
|
637
|
-
this.size = fields.size;
|
|
638
|
-
;
|
|
639
|
-
this.bidderBalance = fields.bidderBalance;
|
|
640
|
-
;
|
|
641
|
-
this.incentiveBalance = fields.incentiveBalance;
|
|
642
|
-
;
|
|
643
|
-
this.tsMs = fields.tsMs;
|
|
644
|
-
}
|
|
645
|
-
NewBid.reified = function () {
|
|
646
|
-
var _this = this;
|
|
647
|
-
return { typeName: NewBid.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewBid.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NewBid.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NewBid.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NewBid.fromBcs(data); }, bcs: NewBid.bcs, fromJSONField: function (field) { return NewBid.fromJSONField(field); }, fromJSON: function (json) { return NewBid.fromJSON(json); }, fromSuiParsedData: function (content) { return NewBid.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
648
|
-
return [2 /*return*/, NewBid.fetch(client, id)];
|
|
649
|
-
}); }); }, new: function (fields) { return new NewBid([], fields); }, kind: "StructClassReified", };
|
|
650
|
-
};
|
|
651
|
-
Object.defineProperty(NewBid, "r", {
|
|
652
|
-
get: function () { return NewBid.reified(); },
|
|
653
|
-
enumerable: false,
|
|
654
|
-
configurable: true
|
|
655
|
-
});
|
|
656
|
-
NewBid.phantom = function () { return (0, reified_1.phantom)(NewBid.reified()); };
|
|
657
|
-
Object.defineProperty(NewBid, "p", {
|
|
658
|
-
get: function () { return NewBid.phantom(); },
|
|
659
|
-
enumerable: false,
|
|
660
|
-
configurable: true
|
|
661
|
-
});
|
|
662
|
-
Object.defineProperty(NewBid, "bcs", {
|
|
663
|
-
get: function () {
|
|
664
|
-
return bcs_1.bcs.struct("NewBid", {
|
|
665
|
-
signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), index: bcs_1.bcs.u64(), token: structs_1.TypeName.bcs, bid_index: bcs_1.bcs.u64(), price: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), bidder_balance: bcs_1.bcs.u64(), incentive_balance: bcs_1.bcs.u64(), ts_ms: bcs_1.bcs.u64()
|
|
666
|
-
});
|
|
667
|
-
},
|
|
668
|
-
enumerable: false,
|
|
669
|
-
configurable: true
|
|
670
|
-
});
|
|
671
|
-
;
|
|
672
|
-
NewBid.fromFields = function (fields) { return NewBid.reified().new({ signer: (0, reified_1.decodeFromFields)("address", fields.signer), index: (0, reified_1.decodeFromFields)("u64", fields.index), token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token), bidIndex: (0, reified_1.decodeFromFields)("u64", fields.bid_index), price: (0, reified_1.decodeFromFields)("u64", fields.price), size: (0, reified_1.decodeFromFields)("u64", fields.size), bidderBalance: (0, reified_1.decodeFromFields)("u64", fields.bidder_balance), incentiveBalance: (0, reified_1.decodeFromFields)("u64", fields.incentive_balance), tsMs: (0, reified_1.decodeFromFields)("u64", fields.ts_ms) }); };
|
|
673
|
-
NewBid.fromFieldsWithTypes = function (item) {
|
|
674
|
-
if (!isNewBid(item.type)) {
|
|
675
|
-
throw new Error("not a NewBid type");
|
|
676
|
-
}
|
|
677
|
-
return NewBid.reified().new({ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer), index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token), bidIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_index), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), bidderBalance: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bidder_balance), incentiveBalance: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_balance), tsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.ts_ms) });
|
|
678
|
-
};
|
|
679
|
-
NewBid.fromBcs = function (data) { return NewBid.fromFields(NewBid.bcs.parse(data)); };
|
|
680
|
-
NewBid.prototype.toJSONField = function () {
|
|
681
|
-
return {
|
|
682
|
-
signer: this.signer, index: this.index.toString(), token: this.token.toJSONField(), bidIndex: this.bidIndex.toString(), price: this.price.toString(), size: this.size.toString(), bidderBalance: this.bidderBalance.toString(), incentiveBalance: this.incentiveBalance.toString(), tsMs: this.tsMs.toString(),
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
NewBid.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
686
|
-
NewBid.fromJSONField = function (field) { return NewBid.reified().new({ signer: (0, reified_1.decodeFromJSONField)("address", field.signer), index: (0, reified_1.decodeFromJSONField)("u64", field.index), token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token), bidIndex: (0, reified_1.decodeFromJSONField)("u64", field.bidIndex), price: (0, reified_1.decodeFromJSONField)("u64", field.price), size: (0, reified_1.decodeFromJSONField)("u64", field.size), bidderBalance: (0, reified_1.decodeFromJSONField)("u64", field.bidderBalance), incentiveBalance: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBalance), tsMs: (0, reified_1.decodeFromJSONField)("u64", field.tsMs) }); };
|
|
687
|
-
NewBid.fromJSON = function (json) {
|
|
688
|
-
if (json.$typeName !== NewBid.$typeName) {
|
|
689
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
690
|
-
}
|
|
691
|
-
;
|
|
692
|
-
return NewBid.fromJSONField(json);
|
|
693
|
-
};
|
|
694
|
-
NewBid.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
695
|
-
throw new Error("not an object");
|
|
696
|
-
} if (!isNewBid(content.type)) {
|
|
697
|
-
throw new Error("object at ".concat(content.fields.id, " is not a NewBid object"));
|
|
698
|
-
} return NewBid.fromFieldsWithTypes(content); };
|
|
699
|
-
NewBid.fetch = function (client, id) {
|
|
700
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
701
|
-
var res;
|
|
702
|
-
var _a, _b;
|
|
703
|
-
return __generator(this, function (_c) {
|
|
704
|
-
switch (_c.label) {
|
|
705
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
706
|
-
case 1:
|
|
707
|
-
res = _c.sent();
|
|
708
|
-
if (res.error) {
|
|
709
|
-
throw new Error("error fetching NewBid object at id ".concat(id, ": ").concat(res.error.code));
|
|
710
|
-
}
|
|
711
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewBid(res.data.bcs.type)) {
|
|
712
|
-
throw new Error("object at id ".concat(id, " is not a NewBid object"));
|
|
713
|
-
}
|
|
714
|
-
return [2 /*return*/, NewBid.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
715
|
-
}
|
|
716
|
-
});
|
|
717
|
-
});
|
|
718
|
-
};
|
|
719
|
-
NewBid.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::NewBid";
|
|
720
|
-
NewBid.$numTypeParams = 0;
|
|
721
|
-
return NewBid;
|
|
722
|
-
}());
|
|
723
|
-
exports.NewBid = NewBid;
|
|
724
|
-
/* ============================== RemoveBid =============================== */
|
|
725
|
-
function isRemoveBid(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::RemoveBid"; }
|
|
726
|
-
var RemoveBid = /** @class */ (function () {
|
|
727
|
-
function RemoveBid(typeArgs, fields) {
|
|
728
|
-
this.$typeName = RemoveBid.$typeName;
|
|
729
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveBid.$typeName], __read(typeArgs), false));
|
|
730
|
-
this.$typeArgs = typeArgs;
|
|
731
|
-
this.signer = fields.signer;
|
|
732
|
-
;
|
|
733
|
-
this.index = fields.index;
|
|
734
|
-
;
|
|
735
|
-
this.token = fields.token;
|
|
736
|
-
;
|
|
737
|
-
this.bidIndex = fields.bidIndex;
|
|
738
|
-
;
|
|
739
|
-
this.price = fields.price;
|
|
740
|
-
;
|
|
741
|
-
this.size = fields.size;
|
|
742
|
-
;
|
|
743
|
-
this.bidderBalance = fields.bidderBalance;
|
|
744
|
-
;
|
|
745
|
-
this.incentiveBalance = fields.incentiveBalance;
|
|
746
|
-
;
|
|
747
|
-
this.feeDiscount = fields.feeDiscount;
|
|
748
|
-
;
|
|
749
|
-
this.tsMs = fields.tsMs;
|
|
750
|
-
}
|
|
751
|
-
RemoveBid.reified = function () {
|
|
752
|
-
var _this = this;
|
|
753
|
-
return { typeName: RemoveBid.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveBid.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return RemoveBid.fromFields(fields); }, fromFieldsWithTypes: function (item) { return RemoveBid.fromFieldsWithTypes(item); }, fromBcs: function (data) { return RemoveBid.fromBcs(data); }, bcs: RemoveBid.bcs, fromJSONField: function (field) { return RemoveBid.fromJSONField(field); }, fromJSON: function (json) { return RemoveBid.fromJSON(json); }, fromSuiParsedData: function (content) { return RemoveBid.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
754
|
-
return [2 /*return*/, RemoveBid.fetch(client, id)];
|
|
755
|
-
}); }); }, new: function (fields) { return new RemoveBid([], fields); }, kind: "StructClassReified", };
|
|
756
|
-
};
|
|
757
|
-
Object.defineProperty(RemoveBid, "r", {
|
|
758
|
-
get: function () { return RemoveBid.reified(); },
|
|
759
|
-
enumerable: false,
|
|
760
|
-
configurable: true
|
|
761
|
-
});
|
|
762
|
-
RemoveBid.phantom = function () { return (0, reified_1.phantom)(RemoveBid.reified()); };
|
|
763
|
-
Object.defineProperty(RemoveBid, "p", {
|
|
764
|
-
get: function () { return RemoveBid.phantom(); },
|
|
765
|
-
enumerable: false,
|
|
766
|
-
configurable: true
|
|
767
|
-
});
|
|
768
|
-
Object.defineProperty(RemoveBid, "bcs", {
|
|
769
|
-
get: function () {
|
|
770
|
-
return bcs_1.bcs.struct("RemoveBid", {
|
|
771
|
-
signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), index: bcs_1.bcs.u64(), token: structs_1.TypeName.bcs, bid_index: bcs_1.bcs.u64(), price: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), bidder_balance: bcs_1.bcs.u64(), incentive_balance: bcs_1.bcs.u64(), fee_discount: bcs_1.bcs.u64(), ts_ms: bcs_1.bcs.u64()
|
|
772
|
-
});
|
|
773
|
-
},
|
|
774
|
-
enumerable: false,
|
|
775
|
-
configurable: true
|
|
776
|
-
});
|
|
777
|
-
;
|
|
778
|
-
RemoveBid.fromFields = function (fields) { return RemoveBid.reified().new({ signer: (0, reified_1.decodeFromFields)("address", fields.signer), index: (0, reified_1.decodeFromFields)("u64", fields.index), token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token), bidIndex: (0, reified_1.decodeFromFields)("u64", fields.bid_index), price: (0, reified_1.decodeFromFields)("u64", fields.price), size: (0, reified_1.decodeFromFields)("u64", fields.size), bidderBalance: (0, reified_1.decodeFromFields)("u64", fields.bidder_balance), incentiveBalance: (0, reified_1.decodeFromFields)("u64", fields.incentive_balance), feeDiscount: (0, reified_1.decodeFromFields)("u64", fields.fee_discount), tsMs: (0, reified_1.decodeFromFields)("u64", fields.ts_ms) }); };
|
|
779
|
-
RemoveBid.fromFieldsWithTypes = function (item) {
|
|
780
|
-
if (!isRemoveBid(item.type)) {
|
|
781
|
-
throw new Error("not a RemoveBid type");
|
|
782
|
-
}
|
|
783
|
-
return RemoveBid.reified().new({ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer), index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token), bidIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_index), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), bidderBalance: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bidder_balance), incentiveBalance: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_balance), feeDiscount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fee_discount), tsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.ts_ms) });
|
|
784
|
-
};
|
|
785
|
-
RemoveBid.fromBcs = function (data) { return RemoveBid.fromFields(RemoveBid.bcs.parse(data)); };
|
|
786
|
-
RemoveBid.prototype.toJSONField = function () {
|
|
787
|
-
return {
|
|
788
|
-
signer: this.signer, index: this.index.toString(), token: this.token.toJSONField(), bidIndex: this.bidIndex.toString(), price: this.price.toString(), size: this.size.toString(), bidderBalance: this.bidderBalance.toString(), incentiveBalance: this.incentiveBalance.toString(), feeDiscount: this.feeDiscount.toString(), tsMs: this.tsMs.toString(),
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
RemoveBid.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
792
|
-
RemoveBid.fromJSONField = function (field) { return RemoveBid.reified().new({ signer: (0, reified_1.decodeFromJSONField)("address", field.signer), index: (0, reified_1.decodeFromJSONField)("u64", field.index), token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token), bidIndex: (0, reified_1.decodeFromJSONField)("u64", field.bidIndex), price: (0, reified_1.decodeFromJSONField)("u64", field.price), size: (0, reified_1.decodeFromJSONField)("u64", field.size), bidderBalance: (0, reified_1.decodeFromJSONField)("u64", field.bidderBalance), incentiveBalance: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBalance), feeDiscount: (0, reified_1.decodeFromJSONField)("u64", field.feeDiscount), tsMs: (0, reified_1.decodeFromJSONField)("u64", field.tsMs) }); };
|
|
793
|
-
RemoveBid.fromJSON = function (json) {
|
|
794
|
-
if (json.$typeName !== RemoveBid.$typeName) {
|
|
795
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
796
|
-
}
|
|
797
|
-
;
|
|
798
|
-
return RemoveBid.fromJSONField(json);
|
|
799
|
-
};
|
|
800
|
-
RemoveBid.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
801
|
-
throw new Error("not an object");
|
|
802
|
-
} if (!isRemoveBid(content.type)) {
|
|
803
|
-
throw new Error("object at ".concat(content.fields.id, " is not a RemoveBid object"));
|
|
804
|
-
} return RemoveBid.fromFieldsWithTypes(content); };
|
|
805
|
-
RemoveBid.fetch = function (client, id) {
|
|
806
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
807
|
-
var res;
|
|
808
|
-
var _a, _b;
|
|
809
|
-
return __generator(this, function (_c) {
|
|
810
|
-
switch (_c.label) {
|
|
811
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
812
|
-
case 1:
|
|
813
|
-
res = _c.sent();
|
|
814
|
-
if (res.error) {
|
|
815
|
-
throw new Error("error fetching RemoveBid object at id ".concat(id, ": ").concat(res.error.code));
|
|
816
|
-
}
|
|
817
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveBid(res.data.bcs.type)) {
|
|
818
|
-
throw new Error("object at id ".concat(id, " is not a RemoveBid object"));
|
|
819
|
-
}
|
|
820
|
-
return [2 /*return*/, RemoveBid.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
821
|
-
}
|
|
822
|
-
});
|
|
823
|
-
});
|
|
824
|
-
};
|
|
825
|
-
RemoveBid.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::RemoveBid";
|
|
826
|
-
RemoveBid.$numTypeParams = 0;
|
|
827
|
-
return RemoveBid;
|
|
828
|
-
}());
|
|
829
|
-
exports.RemoveBid = RemoveBid;
|
|
830
|
-
/* ============================== UpdateAuctionConfig =============================== */
|
|
831
|
-
function isUpdateAuctionConfig(type) { type = (0, util_1.compressSuiType)(type); return type === "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::UpdateAuctionConfig"; }
|
|
832
|
-
var UpdateAuctionConfig = /** @class */ (function () {
|
|
833
|
-
function UpdateAuctionConfig(typeArgs, fields) {
|
|
834
|
-
this.$typeName = UpdateAuctionConfig.$typeName;
|
|
835
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateAuctionConfig.$typeName], __read(typeArgs), false));
|
|
836
|
-
this.$typeArgs = typeArgs;
|
|
837
|
-
this.signer = fields.signer;
|
|
838
|
-
;
|
|
839
|
-
this.index = fields.index;
|
|
840
|
-
;
|
|
841
|
-
this.prevStartTsMs = fields.prevStartTsMs;
|
|
842
|
-
;
|
|
843
|
-
this.prevEndTsMs = fields.prevEndTsMs;
|
|
844
|
-
;
|
|
845
|
-
this.prevDecaySpeed = fields.prevDecaySpeed;
|
|
846
|
-
;
|
|
847
|
-
this.prevInitialPrice = fields.prevInitialPrice;
|
|
848
|
-
;
|
|
849
|
-
this.prevFinalPrice = fields.prevFinalPrice;
|
|
850
|
-
;
|
|
851
|
-
this.prevFeeBp = fields.prevFeeBp;
|
|
852
|
-
;
|
|
853
|
-
this.prevIncentiveBp = fields.prevIncentiveBp;
|
|
854
|
-
;
|
|
855
|
-
this.prevTokenDecimal = fields.prevTokenDecimal;
|
|
856
|
-
;
|
|
857
|
-
this.prevSizeDecimal = fields.prevSizeDecimal;
|
|
858
|
-
;
|
|
859
|
-
this.prevAbleToRemoveBid = fields.prevAbleToRemoveBid;
|
|
860
|
-
;
|
|
861
|
-
this.startTsMs = fields.startTsMs;
|
|
862
|
-
;
|
|
863
|
-
this.endTsMs = fields.endTsMs;
|
|
864
|
-
;
|
|
865
|
-
this.decaySpeed = fields.decaySpeed;
|
|
866
|
-
;
|
|
867
|
-
this.initialPrice = fields.initialPrice;
|
|
868
|
-
;
|
|
869
|
-
this.finalPrice = fields.finalPrice;
|
|
870
|
-
;
|
|
871
|
-
this.feeBp = fields.feeBp;
|
|
872
|
-
;
|
|
873
|
-
this.incentiveBp = fields.incentiveBp;
|
|
874
|
-
;
|
|
875
|
-
this.tokenDecimal = fields.tokenDecimal;
|
|
876
|
-
;
|
|
877
|
-
this.sizeDecimal = fields.sizeDecimal;
|
|
878
|
-
;
|
|
879
|
-
this.ableToRemoveBid = fields.ableToRemoveBid;
|
|
880
|
-
}
|
|
881
|
-
UpdateAuctionConfig.reified = function () {
|
|
882
|
-
var _this = this;
|
|
883
|
-
return { typeName: UpdateAuctionConfig.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateAuctionConfig.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return UpdateAuctionConfig.fromFields(fields); }, fromFieldsWithTypes: function (item) { return UpdateAuctionConfig.fromFieldsWithTypes(item); }, fromBcs: function (data) { return UpdateAuctionConfig.fromBcs(data); }, bcs: UpdateAuctionConfig.bcs, fromJSONField: function (field) { return UpdateAuctionConfig.fromJSONField(field); }, fromJSON: function (json) { return UpdateAuctionConfig.fromJSON(json); }, fromSuiParsedData: function (content) { return UpdateAuctionConfig.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
884
|
-
return [2 /*return*/, UpdateAuctionConfig.fetch(client, id)];
|
|
885
|
-
}); }); }, new: function (fields) { return new UpdateAuctionConfig([], fields); }, kind: "StructClassReified", };
|
|
886
|
-
};
|
|
887
|
-
Object.defineProperty(UpdateAuctionConfig, "r", {
|
|
888
|
-
get: function () { return UpdateAuctionConfig.reified(); },
|
|
889
|
-
enumerable: false,
|
|
890
|
-
configurable: true
|
|
891
|
-
});
|
|
892
|
-
UpdateAuctionConfig.phantom = function () { return (0, reified_1.phantom)(UpdateAuctionConfig.reified()); };
|
|
893
|
-
Object.defineProperty(UpdateAuctionConfig, "p", {
|
|
894
|
-
get: function () { return UpdateAuctionConfig.phantom(); },
|
|
895
|
-
enumerable: false,
|
|
896
|
-
configurable: true
|
|
897
|
-
});
|
|
898
|
-
Object.defineProperty(UpdateAuctionConfig, "bcs", {
|
|
899
|
-
get: function () {
|
|
900
|
-
return bcs_1.bcs.struct("UpdateAuctionConfig", {
|
|
901
|
-
signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), index: bcs_1.bcs.u64(), prev_start_ts_ms: bcs_1.bcs.u64(), prev_end_ts_ms: bcs_1.bcs.u64(), prev_decay_speed: bcs_1.bcs.u64(), prev_initial_price: bcs_1.bcs.u64(), prev_final_price: bcs_1.bcs.u64(), prev_fee_bp: bcs_1.bcs.u64(), prev_incentive_bp: bcs_1.bcs.u64(), prev_token_decimal: bcs_1.bcs.u64(), prev_size_decimal: bcs_1.bcs.u64(), prev_able_to_remove_bid: bcs_1.bcs.bool(), start_ts_ms: bcs_1.bcs.u64(), end_ts_ms: bcs_1.bcs.u64(), decay_speed: bcs_1.bcs.u64(), initial_price: bcs_1.bcs.u64(), final_price: bcs_1.bcs.u64(), fee_bp: bcs_1.bcs.u64(), incentive_bp: bcs_1.bcs.u64(), token_decimal: bcs_1.bcs.u64(), size_decimal: bcs_1.bcs.u64(), able_to_remove_bid: bcs_1.bcs.bool()
|
|
902
|
-
});
|
|
903
|
-
},
|
|
904
|
-
enumerable: false,
|
|
905
|
-
configurable: true
|
|
906
|
-
});
|
|
907
|
-
;
|
|
908
|
-
UpdateAuctionConfig.fromFields = function (fields) { return UpdateAuctionConfig.reified().new({ signer: (0, reified_1.decodeFromFields)("address", fields.signer), index: (0, reified_1.decodeFromFields)("u64", fields.index), prevStartTsMs: (0, reified_1.decodeFromFields)("u64", fields.prev_start_ts_ms), prevEndTsMs: (0, reified_1.decodeFromFields)("u64", fields.prev_end_ts_ms), prevDecaySpeed: (0, reified_1.decodeFromFields)("u64", fields.prev_decay_speed), prevInitialPrice: (0, reified_1.decodeFromFields)("u64", fields.prev_initial_price), prevFinalPrice: (0, reified_1.decodeFromFields)("u64", fields.prev_final_price), prevFeeBp: (0, reified_1.decodeFromFields)("u64", fields.prev_fee_bp), prevIncentiveBp: (0, reified_1.decodeFromFields)("u64", fields.prev_incentive_bp), prevTokenDecimal: (0, reified_1.decodeFromFields)("u64", fields.prev_token_decimal), prevSizeDecimal: (0, reified_1.decodeFromFields)("u64", fields.prev_size_decimal), prevAbleToRemoveBid: (0, reified_1.decodeFromFields)("bool", fields.prev_able_to_remove_bid), startTsMs: (0, reified_1.decodeFromFields)("u64", fields.start_ts_ms), endTsMs: (0, reified_1.decodeFromFields)("u64", fields.end_ts_ms), decaySpeed: (0, reified_1.decodeFromFields)("u64", fields.decay_speed), initialPrice: (0, reified_1.decodeFromFields)("u64", fields.initial_price), finalPrice: (0, reified_1.decodeFromFields)("u64", fields.final_price), feeBp: (0, reified_1.decodeFromFields)("u64", fields.fee_bp), incentiveBp: (0, reified_1.decodeFromFields)("u64", fields.incentive_bp), tokenDecimal: (0, reified_1.decodeFromFields)("u64", fields.token_decimal), sizeDecimal: (0, reified_1.decodeFromFields)("u64", fields.size_decimal), ableToRemoveBid: (0, reified_1.decodeFromFields)("bool", fields.able_to_remove_bid) }); };
|
|
909
|
-
UpdateAuctionConfig.fromFieldsWithTypes = function (item) {
|
|
910
|
-
if (!isUpdateAuctionConfig(item.type)) {
|
|
911
|
-
throw new Error("not a UpdateAuctionConfig type");
|
|
912
|
-
}
|
|
913
|
-
return UpdateAuctionConfig.reified().new({ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer), index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index), prevStartTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_start_ts_ms), prevEndTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_end_ts_ms), prevDecaySpeed: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_decay_speed), prevInitialPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_initial_price), prevFinalPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_final_price), prevFeeBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_fee_bp), prevIncentiveBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_incentive_bp), prevTokenDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_token_decimal), prevSizeDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_size_decimal), prevAbleToRemoveBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.prev_able_to_remove_bid), startTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ts_ms), endTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.end_ts_ms), decaySpeed: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.decay_speed), initialPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.initial_price), finalPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.final_price), feeBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fee_bp), incentiveBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_bp), tokenDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.token_decimal), sizeDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size_decimal), ableToRemoveBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.able_to_remove_bid) });
|
|
914
|
-
};
|
|
915
|
-
UpdateAuctionConfig.fromBcs = function (data) { return UpdateAuctionConfig.fromFields(UpdateAuctionConfig.bcs.parse(data)); };
|
|
916
|
-
UpdateAuctionConfig.prototype.toJSONField = function () {
|
|
917
|
-
return {
|
|
918
|
-
signer: this.signer, index: this.index.toString(), prevStartTsMs: this.prevStartTsMs.toString(), prevEndTsMs: this.prevEndTsMs.toString(), prevDecaySpeed: this.prevDecaySpeed.toString(), prevInitialPrice: this.prevInitialPrice.toString(), prevFinalPrice: this.prevFinalPrice.toString(), prevFeeBp: this.prevFeeBp.toString(), prevIncentiveBp: this.prevIncentiveBp.toString(), prevTokenDecimal: this.prevTokenDecimal.toString(), prevSizeDecimal: this.prevSizeDecimal.toString(), prevAbleToRemoveBid: this.prevAbleToRemoveBid, startTsMs: this.startTsMs.toString(), endTsMs: this.endTsMs.toString(), decaySpeed: this.decaySpeed.toString(), initialPrice: this.initialPrice.toString(), finalPrice: this.finalPrice.toString(), feeBp: this.feeBp.toString(), incentiveBp: this.incentiveBp.toString(), tokenDecimal: this.tokenDecimal.toString(), sizeDecimal: this.sizeDecimal.toString(), ableToRemoveBid: this.ableToRemoveBid,
|
|
919
|
-
};
|
|
920
|
-
};
|
|
921
|
-
UpdateAuctionConfig.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
922
|
-
UpdateAuctionConfig.fromJSONField = function (field) { return UpdateAuctionConfig.reified().new({ signer: (0, reified_1.decodeFromJSONField)("address", field.signer), index: (0, reified_1.decodeFromJSONField)("u64", field.index), prevStartTsMs: (0, reified_1.decodeFromJSONField)("u64", field.prevStartTsMs), prevEndTsMs: (0, reified_1.decodeFromJSONField)("u64", field.prevEndTsMs), prevDecaySpeed: (0, reified_1.decodeFromJSONField)("u64", field.prevDecaySpeed), prevInitialPrice: (0, reified_1.decodeFromJSONField)("u64", field.prevInitialPrice), prevFinalPrice: (0, reified_1.decodeFromJSONField)("u64", field.prevFinalPrice), prevFeeBp: (0, reified_1.decodeFromJSONField)("u64", field.prevFeeBp), prevIncentiveBp: (0, reified_1.decodeFromJSONField)("u64", field.prevIncentiveBp), prevTokenDecimal: (0, reified_1.decodeFromJSONField)("u64", field.prevTokenDecimal), prevSizeDecimal: (0, reified_1.decodeFromJSONField)("u64", field.prevSizeDecimal), prevAbleToRemoveBid: (0, reified_1.decodeFromJSONField)("bool", field.prevAbleToRemoveBid), startTsMs: (0, reified_1.decodeFromJSONField)("u64", field.startTsMs), endTsMs: (0, reified_1.decodeFromJSONField)("u64", field.endTsMs), decaySpeed: (0, reified_1.decodeFromJSONField)("u64", field.decaySpeed), initialPrice: (0, reified_1.decodeFromJSONField)("u64", field.initialPrice), finalPrice: (0, reified_1.decodeFromJSONField)("u64", field.finalPrice), feeBp: (0, reified_1.decodeFromJSONField)("u64", field.feeBp), incentiveBp: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBp), tokenDecimal: (0, reified_1.decodeFromJSONField)("u64", field.tokenDecimal), sizeDecimal: (0, reified_1.decodeFromJSONField)("u64", field.sizeDecimal), ableToRemoveBid: (0, reified_1.decodeFromJSONField)("bool", field.ableToRemoveBid) }); };
|
|
923
|
-
UpdateAuctionConfig.fromJSON = function (json) {
|
|
924
|
-
if (json.$typeName !== UpdateAuctionConfig.$typeName) {
|
|
925
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
926
|
-
}
|
|
927
|
-
;
|
|
928
|
-
return UpdateAuctionConfig.fromJSONField(json);
|
|
929
|
-
};
|
|
930
|
-
UpdateAuctionConfig.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
931
|
-
throw new Error("not an object");
|
|
932
|
-
} if (!isUpdateAuctionConfig(content.type)) {
|
|
933
|
-
throw new Error("object at ".concat(content.fields.id, " is not a UpdateAuctionConfig object"));
|
|
934
|
-
} return UpdateAuctionConfig.fromFieldsWithTypes(content); };
|
|
935
|
-
UpdateAuctionConfig.fetch = function (client, id) {
|
|
936
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
937
|
-
var res;
|
|
938
|
-
var _a, _b;
|
|
939
|
-
return __generator(this, function (_c) {
|
|
940
|
-
switch (_c.label) {
|
|
941
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
942
|
-
case 1:
|
|
943
|
-
res = _c.sent();
|
|
944
|
-
if (res.error) {
|
|
945
|
-
throw new Error("error fetching UpdateAuctionConfig object at id ".concat(id, ": ").concat(res.error.code));
|
|
946
|
-
}
|
|
947
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateAuctionConfig(res.data.bcs.type)) {
|
|
948
|
-
throw new Error("object at id ".concat(id, " is not a UpdateAuctionConfig object"));
|
|
949
|
-
}
|
|
950
|
-
return [2 /*return*/, UpdateAuctionConfig.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
951
|
-
}
|
|
952
|
-
});
|
|
953
|
-
});
|
|
954
|
-
};
|
|
955
|
-
UpdateAuctionConfig.$typeName = "0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::dutch::UpdateAuctionConfig";
|
|
956
|
-
UpdateAuctionConfig.$numTypeParams = 0;
|
|
957
|
-
return UpdateAuctionConfig;
|
|
958
|
-
}());
|
|
959
|
-
exports.UpdateAuctionConfig = UpdateAuctionConfig;
|