;; Satoshibles Bridge Pass
;; One-time use free bridge pass for ids that already paid escrow before

(define-constant ERR-NOT-AUTHORIZED (err u410))
(define-map bridge-pass uint bool)

;; Public
(define-public (bridge-pass-set-used (id uint))
    (begin
        (asserts! (is-eq contract-caller .stacksbridge-satoshibles-v4) ERR-NOT-AUTHORIZED)
        (map-set bridge-pass id true)
        (ok true)
    )
)

;; Read Only
(define-read-only (bridge-pass-is-used (id uint))
  (default-to true (map-get? bridge-pass id))
)

;; Init Passes (NFTs currently locked on ETH)
(map-set bridge-pass u3536 false)
(map-set bridge-pass u1230 false)
(map-set bridge-pass u2222 false)
(map-set bridge-pass u990 false)
(map-set bridge-pass u4929 false)
(map-set bridge-pass u4743 false)
(map-set bridge-pass u50 false)
(map-set bridge-pass u1458 false)
(map-set bridge-pass u3140 false)
(map-set bridge-pass u1305 false)
(map-set bridge-pass u2777 false)
(map-set bridge-pass u1270 false)
(map-set bridge-pass u1956 false)
(map-set bridge-pass u4592 false)
(map-set bridge-pass u3801 false)
(map-set bridge-pass u187 false)
(map-set bridge-pass u985 false)
(map-set bridge-pass u2203 false)
(map-set bridge-pass u1924 false)
(map-set bridge-pass u4133 false)
(map-set bridge-pass u4393 false)
(map-set bridge-pass u2966 false)
(map-set bridge-pass u462 false)
(map-set bridge-pass u3570 false)
(map-set bridge-pass u1410 false)
(map-set bridge-pass u2211 false)
(map-set bridge-pass u3011 false)
(map-set bridge-pass u2731 false)
(map-set bridge-pass u3189 false)
(map-set bridge-pass u1227 false)
(map-set bridge-pass u4223 false)
(map-set bridge-pass u2869 false)
(map-set bridge-pass u27 false)
(map-set bridge-pass u1420 false)
(map-set bridge-pass u4650 false)
(map-set bridge-pass u1051 false)
(map-set bridge-pass u5 false)
(map-set bridge-pass u4974 false)
(map-set bridge-pass u1635 false)
(map-set bridge-pass u4096 false)
(map-set bridge-pass u4276 false)
(map-set bridge-pass u3715 false)
(map-set bridge-pass u4857 false)
(map-set bridge-pass u838 false)
(map-set bridge-pass u4122 false)
(map-set bridge-pass u3081 false)
(map-set bridge-pass u4043 false)
(map-set bridge-pass u3338 false)
(map-set bridge-pass u4589 false)
(map-set bridge-pass u2729 false)
(map-set bridge-pass u1023 false)
(map-set bridge-pass u4985 false)
(map-set bridge-pass u1092 false)
(map-set bridge-pass u2748 false)
(map-set bridge-pass u1570 false)
(map-set bridge-pass u1099 false)
(map-set bridge-pass u2779 false)
(map-set bridge-pass u820 false)
(map-set bridge-pass u3703 false)
(map-set bridge-pass u1572 false)
(map-set bridge-pass u1573 false)
(map-set bridge-pass u3028 false)
(map-set bridge-pass u1569 false)
(map-set bridge-pass u1571 false)
(map-set bridge-pass u2161 false)
(map-set bridge-pass u2791 false)
(map-set bridge-pass u806 false)
(map-set bridge-pass u3583 false)
(map-set bridge-pass u2283 false)
(map-set bridge-pass u209 false)
(map-set bridge-pass u2652 false)
(map-set bridge-pass u2970 false)
(map-set bridge-pass u4112 false)
(map-set bridge-pass u450 false)
(map-set bridge-pass u2138 false)
(map-set bridge-pass u1101 false)
(map-set bridge-pass u179 false)
(map-set bridge-pass u1093 false)
(map-set bridge-pass u3879 false)
(map-set bridge-pass u66 false)
(map-set bridge-pass u1095 false)
(map-set bridge-pass u3800 false)
(map-set bridge-pass u4845 false)
(map-set bridge-pass u4827 false)
(map-set bridge-pass u280 false)
(map-set bridge-pass u215 false)
(map-set bridge-pass u379 false)
(map-set bridge-pass u418 false)
(map-set bridge-pass u232 false)
(map-set bridge-pass u4486 false)
(map-set bridge-pass u4447 false)
(map-set bridge-pass u3985 false)
(map-set bridge-pass u2219 false)
(map-set bridge-pass u2333 false)
(map-set bridge-pass u4714 false)
(map-set bridge-pass u1927 false)
(map-set bridge-pass u3622 false)
(map-set bridge-pass u3497 false)
(map-set bridge-pass u180 false)
(map-set bridge-pass u2578 false)
(map-set bridge-pass u4567 false)
(map-set bridge-pass u4056 false)
(map-set bridge-pass u852 false)
(map-set bridge-pass u238 false)
(map-set bridge-pass u4135 false)
(map-set bridge-pass u4684 false)
(map-set bridge-pass u3767 false)
(map-set bridge-pass u3389 false)
(map-set bridge-pass u4015 false)
(map-set bridge-pass u2721 false)
(map-set bridge-pass u4720 false)
(map-set bridge-pass u3845 false)
(map-set bridge-pass u2036 false)
(map-set bridge-pass u713 false)
(map-set bridge-pass u1670 false)
(map-set bridge-pass u4450 false)
(map-set bridge-pass u1242 false)
(map-set bridge-pass u735 false)
(map-set bridge-pass u862 false)
(map-set bridge-pass u3144 false)
(map-set bridge-pass u3932 false)
(map-set bridge-pass u99 false)
(map-set bridge-pass u72 false)
(map-set bridge-pass u4445 false)
(map-set bridge-pass u639 false)
(map-set bridge-pass u597 false)
(map-set bridge-pass u168 false)
(map-set bridge-pass u1116 false)
(map-set bridge-pass u1532 false)
(map-set bridge-pass u3408 false)
(map-set bridge-pass u4955 false)
(map-set bridge-pass u4011 false)
(map-set bridge-pass u3148 false)
(map-set bridge-pass u2297 false)
(map-set bridge-pass u3229 false)
(map-set bridge-pass u3750 false)
(map-set bridge-pass u1464 false)
(map-set bridge-pass u840 false)
(map-set bridge-pass u2265 false)
(map-set bridge-pass u645 false)
(map-set bridge-pass u3110 false)
(map-set bridge-pass u2980 false)
(map-set bridge-pass u4964 false)
(map-set bridge-pass u2837 false)
(map-set bridge-pass u4566 false)
(map-set bridge-pass u3506 false)
(map-set bridge-pass u804 false)
(map-set bridge-pass u3050 false)
(map-set bridge-pass u48 false)
(map-set bridge-pass u3207 false)
(map-set bridge-pass u1909 false)
(map-set bridge-pass u4141 false)
(map-set bridge-pass u4508 false)
(map-set bridge-pass u1120 false)
(map-set bridge-pass u887 false)
(map-set bridge-pass u4100 false)
(map-set bridge-pass u378 false)
(map-set bridge-pass u38 false)
(map-set bridge-pass u39 false)
(map-set bridge-pass u31 false)
(map-set bridge-pass u33 false)
(map-set bridge-pass u1974 false)
(map-set bridge-pass u3163 false)
(map-set bridge-pass u4138 false)
(map-set bridge-pass u4830 false)
(map-set bridge-pass u4806 false)
(map-set bridge-pass u1280 false)
(map-set bridge-pass u4168 false)
(map-set bridge-pass u4386 false)
(map-set bridge-pass u2264 false)
(map-set bridge-pass u4908 false)
(map-set bridge-pass u1808 false)
(map-set bridge-pass u223 false)
(map-set bridge-pass u3067 false)
(map-set bridge-pass u649 false)
(map-set bridge-pass u101 false)
(map-set bridge-pass u4405 false)
(map-set bridge-pass u308 false)
(map-set bridge-pass u100 false)
(map-set bridge-pass u4282 false)
(map-set bridge-pass u3069 false)
(map-set bridge-pass u4689 false)
(map-set bridge-pass u1342 false)
(map-set bridge-pass u3794 false)
(map-set bridge-pass u3553 false)
(map-set bridge-pass u4032 false)
(map-set bridge-pass u3734 false)
(map-set bridge-pass u3749 false)
(map-set bridge-pass u2755 false)
(map-set bridge-pass u3691 false)
(map-set bridge-pass u1021 false)
(map-set bridge-pass u1628 false)
(map-set bridge-pass u4426 false)
(map-set bridge-pass u4368 false)
(map-set bridge-pass u1142 false)
(map-set bridge-pass u4346 false)
(map-set bridge-pass u1557 false)
(map-set bridge-pass u772 false)
(map-set bridge-pass u3698 false)
(map-set bridge-pass u4333 false)
(map-set bridge-pass u485 false)
(map-set bridge-pass u2232 false)
(map-set bridge-pass u3388 false)
(map-set bridge-pass u1560 false)
(map-set bridge-pass u404 false)
(map-set bridge-pass u3924 false)
(map-set bridge-pass u242 false)
(map-set bridge-pass u744 false)
(map-set bridge-pass u2030 false)
(map-set bridge-pass u4578 false)
(map-set bridge-pass u1752 false)
(map-set bridge-pass u4394 false)
(map-set bridge-pass u520 false)
(map-set bridge-pass u672 false)
(map-set bridge-pass u4149 false)
(map-set bridge-pass u3605 false)
(map-set bridge-pass u1257 false)
(map-set bridge-pass u4049 false)
(map-set bridge-pass u302 false)
(map-set bridge-pass u732 false)
(map-set bridge-pass u4471 false)
(map-set bridge-pass u4147 false)
(map-set bridge-pass u4467 false)
(map-set bridge-pass u2965 false)
(map-set bridge-pass u4449 false)
(map-set bridge-pass u3007 false)
(map-set bridge-pass u1272 false)
(map-set bridge-pass u4439 false)
(map-set bridge-pass u4711 false)
(map-set bridge-pass u3663 false)
(map-set bridge-pass u4564 false)
(map-set bridge-pass u4098 false)
(map-set bridge-pass u3442 false)
(map-set bridge-pass u3656 false)
(map-set bridge-pass u4076 false)
(map-set bridge-pass u3021 false)
(map-set bridge-pass u2251 false)
(map-set bridge-pass u4441 false)
(map-set bridge-pass u1969 false)
(map-set bridge-pass u4818 false)
(map-set bridge-pass u1773 false)
(map-set bridge-pass u1528 false)
(map-set bridge-pass u537 false)
(map-set bridge-pass u3771 false)
(map-set bridge-pass u699 false)
(map-set bridge-pass u642 false)
(map-set bridge-pass u3813 false)
(map-set bridge-pass u4316 false)
(map-set bridge-pass u3747 false)
(map-set bridge-pass u4271 false)
(map-set bridge-pass u4094 false)
(map-set bridge-pass u4087 false)
(map-set bridge-pass u294 false)
(map-set bridge-pass u3512 false)
(map-set bridge-pass u2456 false)
(map-set bridge-pass u2576 false)
(map-set bridge-pass u3236 false)
(map-set bridge-pass u2785 false)
(map-set bridge-pass u805 false)
(map-set bridge-pass u2552 false)
(map-set bridge-pass u2225 false)
(map-set bridge-pass u792 false)
(map-set bridge-pass u3812 false)
(map-set bridge-pass u4491 false)
(map-set bridge-pass u3621 false)
(map-set bridge-pass u4026 false)
(map-set bridge-pass u1612 false)
(map-set bridge-pass u3699 false)
(map-set bridge-pass u451 false)
(map-set bridge-pass u1813 false)
(map-set bridge-pass u4796 false)
(map-set bridge-pass u1567 false)
(map-set bridge-pass u1519 false)
(map-set bridge-pass u3252 false)
(map-set bridge-pass u4928 false)
(map-set bridge-pass u2395 false)
(map-set bridge-pass u3118 false)
(map-set bridge-pass u2727 false)
(map-set bridge-pass u1290 false)
(map-set bridge-pass u1904 false)
(map-set bridge-pass u1951 false)
(map-set bridge-pass u2428 false)
(map-set bridge-pass u30 false)
(map-set bridge-pass u4227 false)
(map-set bridge-pass u2034 false)
(map-set bridge-pass u4926 false)
(map-set bridge-pass u2245 false)
(map-set bridge-pass u1876 false)
(map-set bridge-pass u283 false)
(map-set bridge-pass u1887 false)
(map-set bridge-pass u1061 false)
(map-set bridge-pass u4561 false)
(map-set bridge-pass u3751 false)
(map-set bridge-pass u3064 false)
(map-set bridge-pass u2035 false)
(map-set bridge-pass u2012 false)
(map-set bridge-pass u4221 false)
(map-set bridge-pass u65 false)
(map-set bridge-pass u1986 false)
(map-set bridge-pass u3196 false)
(map-set bridge-pass u2509 false)
(map-set bridge-pass u3818 false)
(map-set bridge-pass u539 false)
(map-set bridge-pass u1074 false)
(map-set bridge-pass u3458 false)
(map-set bridge-pass u2585 false)
(map-set bridge-pass u2895 false)
(map-set bridge-pass u453 false)
(map-set bridge-pass u1045 false)
(map-set bridge-pass u1503 false)
(map-set bridge-pass u261 false)
(map-set bridge-pass u159 false)
(map-set bridge-pass u609 false)
(map-set bridge-pass u866 false)
(map-set bridge-pass u3099 false)
(map-set bridge-pass u2156 false)
(map-set bridge-pass u2867 false)
(map-set bridge-pass u3823 false)
(map-set bridge-pass u55 false)
(map-set bridge-pass u1706 false)
(map-set bridge-pass u326 false)
(map-set bridge-pass u1594 false)
(map-set bridge-pass u4127 false)
(map-set bridge-pass u2172 false)
(map-set bridge-pass u4325 false)
(map-set bridge-pass u4849 false)
(map-set bridge-pass u278 false)
(map-set bridge-pass u4651 false)
(map-set bridge-pass u571 false)
(map-set bridge-pass u4434 false)
(map-set bridge-pass u1117 false)
(map-set bridge-pass u4025 false)
(map-set bridge-pass u1541 false)
(map-set bridge-pass u3428 false)
(map-set bridge-pass u2189 false)
(map-set bridge-pass u2581 false)
(map-set bridge-pass u1277 false)
(map-set bridge-pass u793 false)
(map-set bridge-pass u1474 false)
(map-set bridge-pass u4657 false)
(map-set bridge-pass u2504 false)
(map-set bridge-pass u1985 false)
(map-set bridge-pass u534 false)
(map-set bridge-pass u43 false)
(map-set bridge-pass u16 false)
(map-set bridge-pass u22 false)
(map-set bridge-pass u25 false)
(map-set bridge-pass u821 false)
(map-set bridge-pass u3765 false)
(map-set bridge-pass u2529 false)
(map-set bridge-pass u3049 false)
(map-set bridge-pass u3435 false)
(map-set bridge-pass u1135 false)
(map-set bridge-pass u32 false)
(map-set bridge-pass u6 false)
(map-set bridge-pass u623 false)
(map-set bridge-pass u855 false)
(map-set bridge-pass u1703 false)
(map-set bridge-pass u1328 false)
(map-set bridge-pass u3460 false)
(map-set bridge-pass u1718 false)
(map-set bridge-pass u1190 false)
(map-set bridge-pass u3413 false)
(map-set bridge-pass u3262 false)
(map-set bridge-pass u637 false)
(map-set bridge-pass u3552 false)
(map-set bridge-pass u1298 false)
(map-set bridge-pass u2553 false)
(map-set bridge-pass u1448 false)
(map-set bridge-pass u1548 false)
(map-set bridge-pass u4340 false)
(map-set bridge-pass u4509 false)
(map-set bridge-pass u4362 false)
(map-set bridge-pass u2725 false)
(map-set bridge-pass u3182 false)
(map-set bridge-pass u4821 false)
(map-set bridge-pass u23 false)
(map-set bridge-pass u1770 false)
(map-set bridge-pass u4082 false)
(map-set bridge-pass u3542 false)
(map-set bridge-pass u3108 false)
(map-set bridge-pass u4913 false)
(map-set bridge-pass u4088 false)
(map-set bridge-pass u4154 false)
(map-set bridge-pass u4979 false)
(map-set bridge-pass u4241 false)
(map-set bridge-pass u4900 false)
(map-set bridge-pass u4199 false)
(map-set bridge-pass u247 false)
(map-set bridge-pass u738 false)
(map-set bridge-pass u1966 false)
(map-set bridge-pass u3706 false)
(map-set bridge-pass u1611 false)
(map-set bridge-pass u3817 false)
(map-set bridge-pass u2151 false)
(map-set bridge-pass u689 false)
(map-set bridge-pass u4248 false)
(map-set bridge-pass u186 false)
(map-set bridge-pass u868 false)
(map-set bridge-pass u3430 false)
(map-set bridge-pass u906 false)
(map-set bridge-pass u937 false)
(map-set bridge-pass u891 false)
(map-set bridge-pass u3712 false)
(map-set bridge-pass u4342 false)
(map-set bridge-pass u2771 false)
(map-set bridge-pass u58 false)
(map-set bridge-pass u2482 false)
(map-set bridge-pass u4674 false)
(map-set bridge-pass u1535 false)
(map-set bridge-pass u4194 false)
(map-set bridge-pass u542 false)
(map-set bridge-pass u2753 false)
(map-set bridge-pass u1676 false)
(map-set bridge-pass u678 false)
(map-set bridge-pass u2029 false)
(map-set bridge-pass u1691 false)
(map-set bridge-pass u3244 false)
(map-set bridge-pass u2483 false)
(map-set bridge-pass u1553 false)
(map-set bridge-pass u4507 false)
(map-set bridge-pass u4050 false)
(map-set bridge-pass u4834 false)
(map-set bridge-pass u1952 false)
(map-set bridge-pass u2011 false)
(map-set bridge-pass u3766 false)
(map-set bridge-pass u1208 false)
(map-set bridge-pass u808 false)
(map-set bridge-pass u1289 false)
(map-set bridge-pass u905 false)
(map-set bridge-pass u2204 false)
(map-set bridge-pass u3844 false)
(map-set bridge-pass u4791 false)
(map-set bridge-pass u4788 false)
(map-set bridge-pass u4920 false)
(map-set bridge-pass u4762 false)
(map-set bridge-pass u4729 false)
(map-set bridge-pass u4760 false)
(map-set bridge-pass u4801 false)
(map-set bridge-pass u4905 false)
(map-set bridge-pass u4812 false)
(map-set bridge-pass u4781 false)
(map-set bridge-pass u3848 false)
(map-set bridge-pass u4798 false)
(map-set bridge-pass u3696 false)
(map-set bridge-pass u4803 false)
(map-set bridge-pass u4757 false)
(map-set bridge-pass u4273 false)
(map-set bridge-pass u2129 false)
(map-set bridge-pass u362 false)
(map-set bridge-pass u3925 false)
(map-set bridge-pass u741 false)
(map-set bridge-pass u1143 false)
(map-set bridge-pass u4662 false)
(map-set bridge-pass u1660 false)
(map-set bridge-pass u3409 false)
(map-set bridge-pass u3488 false)
(map-set bridge-pass u3015 false)
(map-set bridge-pass u2978 false)
(map-set bridge-pass u2159 false)
(map-set bridge-pass u1279 false)
(map-set bridge-pass u733 false)
(map-set bridge-pass u3568 false)
(map-set bridge-pass u1189 false)
(map-set bridge-pass u2784 false)
(map-set bridge-pass u1486 false)
(map-set bridge-pass u3770 false)
(map-set bridge-pass u4057 false)
(map-set bridge-pass u3569 false)
(map-set bridge-pass u2086 false)
(map-set bridge-pass u4924 false)
(map-set bridge-pass u2787 false)
(map-set bridge-pass u1584 false)
(map-set bridge-pass u1680 false)
(map-set bridge-pass u3158 false)
(map-set bridge-pass u432 false)
(map-set bridge-pass u3732 false)
(map-set bridge-pass u2142 false)
(map-set bridge-pass u1065 false)
(map-set bridge-pass u3177 false)
(map-set bridge-pass u3179 false)
(map-set bridge-pass u3180 false)
(map-set bridge-pass u3102 false)
(map-set bridge-pass u739 false)
(map-set bridge-pass u4638 false)
(map-set bridge-pass u3273 false)
(map-set bridge-pass u4204 false)
(map-set bridge-pass u190 false)
(map-set bridge-pass u1238 false)
(map-set bridge-pass u1460 false)
(map-set bridge-pass u2205 false)
(map-set bridge-pass u2335 false)
(map-set bridge-pass u2231 false)
(map-set bridge-pass u3883 false)
(map-set bridge-pass u4108 false)
(map-set bridge-pass u4704 false)
(map-set bridge-pass u3329 false)
(map-set bridge-pass u2431 false)
(map-set bridge-pass u466 false)
(map-set bridge-pass u3134 false)
(map-set bridge-pass u3858 false)
(map-set bridge-pass u3072 false)
(map-set bridge-pass u3096 false)
(map-set bridge-pass u4707 false)
(map-set bridge-pass u3660 false)
(map-set bridge-pass u3539 false)
(map-set bridge-pass u842 false)
(map-set bridge-pass u669 false)