.gitpod.yml
README.md
contract
    Cargo.toml
    README.md
    build.sh
    deploy.sh
    src
        external.rs
        internal.rs
        lib.rs
        nft_callbacks.rs
        raffle.rs
        user.rs
    target
        .rustc_info.json
        debug
            .fingerprint
                Inflector-84cb37dda6c92b84
                    lib-inflector.json
                ahash-60cff0ddeb59dd56
                    build-script-build-script-build.json
                ahash-79f7bc97614578fc
                    run-build-script-build-script-build.json
                ahash-9857dfb662261675
                    lib-ahash.json
                arrayref-030c0d7dcc8071b5
                    lib-arrayref.json
                arrayvec-0614cf7a88b88064
                    lib-arrayvec.json
                arrayvec-ec076cf46d2d1962
                    lib-arrayvec.json
                autocfg-97c6aa19f70cf92f
                    lib-autocfg.json
                base64-9d52f2ed226ebcad
                    lib-base64.json
                base64-f01d4c15166d06cb
                    lib-base64.json
                bitvec-ad8db7876af59c52
                    lib-bitvec.json
                blake2-1d52196c72880ae5
                    lib-blake2.json
                block-buffer-40e1ab093421c8b1
                    lib-block-buffer.json
                block-buffer-673ab4597d3898f0
                    lib-block-buffer.json
                borsh-163f5e21b3e10800
                    lib-borsh.json
                borsh-derive-ed2ae612eba664ae
                    lib-borsh-derive.json
                borsh-derive-internal-9d89329e70fac5a7
                    lib-borsh-derive-internal.json
                borsh-schema-derive-internal-db00620d39fb526e
                    lib-borsh-schema-derive-internal.json
                bs58-bd1583f09fdb6a30
                    lib-bs58.json
                byte-slice-cast-1e2097d8683cf841
                    lib-byte-slice-cast.json
                byteorder-e3ab7b0274affc91
                    lib-byteorder.json
                bytesize-19adb5613754930b
                    lib-bytesize.json
                c2-chacha-4a74e8b1de0aa409
                    lib-c2-chacha.json
                cc-257e8f068d6533fe
                    lib-cc.json
                cfg-if-179f5869cb7141b2
                    lib-cfg-if.json
                cfg-if-297ed353892977fa
                    lib-cfg-if.json
                cfg-if-59f06945e071b94d
                    lib-cfg-if.json
                chrono-fce41f4ff7de6831
                    lib-chrono.json
                cipher-380dd115983e3ee5
                    lib-cipher.json
                convert_case-83cc13d6b7933ee9
                    lib-convert_case.json
                core-foundation-sys-1d5e4ac45cfc4dd9
                    lib-core-foundation-sys.json
                core-foundation-sys-3b62befbf4b7b947
                    build-script-build-script-build.json
                core-foundation-sys-ca3bae7cd55959c8
                    run-build-script-build-script-build.json
                cpufeatures-5018b8c7b836d153
                    lib-cpufeatures.json
                crunchy-17862f8c9361e872
                    lib-crunchy.json
                crunchy-40351912fb310cf8
                    run-build-script-build-script-build.json
                crunchy-56e38ca3cc3a8e33
                    build-script-build-script-build.json
                crypto-common-f1a2f107b05520c9
                    lib-crypto-common.json
                crypto-mac-78047836eaf8b56b
                    lib-crypto-mac.json
                curve25519-dalek-f051d2cd0fcee3dc
                    lib-curve25519-dalek.json
                derive_more-493e42a034cf4ab7
                    lib-derive_more.json
                digest-33e800cf07ef8977
                    lib-digest.json
                digest-b5bd2b2d0ddc10ad
                    lib-digest.json
                dyn-clone-82176927e055821a
                    lib-dyn-clone.json
                easy-ext-d44ea4c016d92e82
                    lib-easy-ext.json
                ed25519-bc966f06e4e48605
                    lib-ed25519.json
                ed25519-dalek-db582353fac3c422
                    lib-ed25519-dalek.json
                fixed-hash-678645d5b61924e0
                    lib-fixed-hash.json
                funty-52b40cc80fcdd5cb
                    lib-funty.json
                generic-array-2b13b51bd8c3f920
                    run-build-script-build-script-build.json
                generic-array-d2f7cdc61af4a978
                    build-script-build-script-build.json
                generic-array-d7017a2452d8421c
                    lib-generic_array.json
                getrandom-44f354298a0f63f4
                    run-build-script-build-script-build.json
                getrandom-8d2d73ec5efe5fa2
                    lib-getrandom.json
                getrandom-b06d7df70a44fda3
                    lib-getrandom.json
                getrandom-f7e06c2dfccd4bbf
                    build-script-build-script-build.json
                hashbrown-268877c406ed81ec
                    lib-hashbrown.json
                hashbrown-713bc40b8fddebf8
                    lib-hashbrown.json
                heck-8ea7ff71d1d12d4d
                    lib-heck.json
                hello_near-4749b43febcddb58
                    test-lib-hello_near.json
                hello_near-4f2428ddfe40ebdb
                    lib-hello_near.json
                hex-22fe2f9d8f2eb66a
                    lib-hex.json
                iana-time-zone-d85801ff0a5b38a6
                    lib-iana-time-zone.json
                impl-codec-77976b4c63d51113
                    lib-impl-codec.json
                impl-trait-for-tuples-efce969a1c1be845
                    lib-impl-trait-for-tuples.json
                indexmap-23270da650874e17
                    run-build-script-build-script-build.json
                indexmap-30ad7faa7dc19675
                    lib-indexmap.json
                indexmap-cc0b3aea946b61eb
                    build-script-build-script-build.json
                itoa-10947ad673f604ab
                    lib-itoa.json
                keccak-00f68f9d600eda35
                    lib-keccak.json
                lazy_static-5ce03617dda0ad29
                    lib-lazy_static.json
                libc-51e9560b81f96792
                    run-build-script-build-script-build.json
                libc-522c0c0527892ed8
                    build-script-build-script-build.json
                libc-609d0b71836c27b6
                    lib-libc.json
                memchr-6a2fab712d59ae17
                    build-script-build-script-build.json
                memchr-7ba6cf6cb90f209d
                    run-build-script-build-script-build.json
                memchr-8efb703a832c8428
                    lib-memchr.json
                memory_units-4a8f03ea72002be5
                    lib-memory_units.json
                near-abi-1e0b2d1c76d22537
                    lib-near-abi.json
                near-account-id-b80cb1ef074029e0
                    lib-near-account-id.json
                near-crypto-08bb575c2977718c
                    lib-near-crypto.json
                near-primitives-core-d9c94e2ff25b711c
                    lib-near-primitives-core.json
                near-primitives-d4072eec871b77c7
                    lib-near-primitives.json
                near-rpc-error-core-4019b1f3c20ea2b5
                    lib-near-rpc-error-core.json
                near-rpc-error-macro-07cde3ec1f64ca09
                    lib-near-rpc-error-macro.json
                near-sdk-e3f6ed49a11926c7
                    lib-near-sdk.json
                near-sdk-macros-8a597ccb067d1c5a
                    lib-near-sdk-macros.json
                near-sys-f50c28171300c262
                    lib-near-sys.json
                near-vm-errors-a30ad75157dba77f
                    lib-near-vm-errors.json
                near-vm-logic-054b7c69dc0eae8e
                    lib-near-vm-logic.json
                nom8-e1fd8f6e384cf277
                    lib-nom8.json
                num-bigint-115d1654eee8194e
                    lib-num-bigint.json
                num-bigint-56cf0dbde0ac5913
                    run-build-script-build-script-build.json
                num-bigint-f949b5dbe0bca2e8
                    build-script-build-script-build.json
                num-integer-0175d704b6716246
                    lib-num-integer.json
                num-integer-5978622214629624
                    run-build-script-build-script-build.json
                num-integer-c63e7b31d0a7339e
                    build-script-build-script-build.json
                num-rational-335acf420ea3d85f
                    run-build-script-build-script-build.json
                num-rational-53827f7faed2006e
                    build-script-build-script-build.json
                num-rational-b3bbd529a857f56c
                    lib-num-rational.json
                num-traits-322cdb582f35d6cc
                    run-build-script-build-script-build.json
                num-traits-35bfe45c3bb3d6f0
                    build-script-build-script-build.json
                num-traits-3cb0aaac021ba279
                    lib-num-traits.json
                once_cell-1619640083499fb9
                    lib-once_cell.json
                once_cell-ef5f02952bb7d86c
                    lib-once_cell.json
                opaque-debug-94b7adbeda0c6165
                    lib-opaque-debug.json
                parity-scale-codec-80203b435723cb53
                    lib-parity-scale-codec.json
                parity-scale-codec-derive-38c5b04864199a6b
                    lib-parity-scale-codec-derive.json
                parity-secp256k1-1aa4f5ef6adcdfd2
                    run-build-script-build-script-build.json
                parity-secp256k1-3e047c8b090e06b1
                    lib-secp256k1.json
                parity-secp256k1-af095bb3222e2f58
                    build-script-build-script-build.json
                ppv-lite86-29ce8453156e255d
                    lib-ppv-lite86.json
                primitive-types-642c305647187620
                    lib-primitive-types.json
                proc-macro-crate-6468a41170c5c007
                    lib-proc-macro-crate.json
                proc-macro-crate-89010cfc95629436
                    lib-proc-macro-crate.json
                proc-macro2-daa9eccc8e6618ab
                    run-build-script-build-script-build.json
                proc-macro2-f249a75e88beccb5
                    build-script-build-script-build.json
                proc-macro2-f303f588722e3526
                    lib-proc-macro2.json
                quote-3b105e93dceca5ac
                    build-script-build-script-build.json
                quote-86c7db1562c867d4
                    run-build-script-build-script-build.json
                quote-e5ba9ba1863e0fb4
                    lib-quote.json
                radium-489279f1d177004f
                    lib-radium.json
                radium-790a3357eb686673
                    run-build-script-build-script-build.json
                radium-c28271bf2f932fa5
                    build-script-build-script-build.json
                rand-982cd2826bb011fd
                    lib-rand.json
                rand-e808f42eb57e01e7
                    lib-rand.json
                rand_chacha-1cc058c9c945eb57
                    lib-rand_chacha.json
                rand_chacha-faad9e0ad0817cbd
                    lib-rand_chacha.json
                rand_core-075ef8cce3dbdf92
                    lib-rand_core.json
                rand_core-35ddde93eeb228a4
                    lib-rand_core.json
                reed-solomon-erasure-2125a63b13b59fe1
                    run-build-script-build-script-build.json
                reed-solomon-erasure-742c873bef878a17
                    lib-reed-solomon-erasure.json
                reed-solomon-erasure-8d8aa88a2d419f6a
                    build-script-build-script-build.json
                ripemd-08bc15809105ff92
                    lib-ripemd.json
                rustc-hex-10f8cbcf10e1e3a9
                    lib-rustc-hex.json
                rustversion-288259ada44bb6d8
                    build-script-build-script-build.json
                rustversion-57a9b88990da4091
                    lib-rustversion.json
                rustversion-fa5e00bb64280221
                    run-build-script-build-script-build.json
                ryu-8255ebbf0ab6565c
                    lib-ryu.json
                schemars-ba542ff66f60a902
                    lib-schemars.json
                schemars-cbf2148d9e6fdf13
                    build-script-build-script-build.json
                schemars-f13f26d28d4561ed
                    run-build-script-build-script-build.json
                schemars_derive-1f76bf2fbc4f1d1d
                    lib-schemars_derive.json
                semver-01ad2172e25326ab
                    lib-semver.json
                semver-6d25caf64e885c02
                    build-script-build-script-build.json
                semver-d59aee9a774d2d26
                    run-build-script-build-script-build.json
                serde-3fd07d23fc8615d2
                    build-script-build-script-build.json
                serde-654d00bb68860f04
                    lib-serde.json
                serde-86bdc091bd967d6b
                    lib-serde.json
                serde-a3a716a629576f9d
                    build-script-build-script-build.json
                serde-b41d82a9534e2ff5
                    run-build-script-build-script-build.json
                serde-c84e01ad6187100c
                    run-build-script-build-script-build.json
                serde_derive-09b6aa384347eeec
                    build-script-build-script-build.json
                serde_derive-3397bee336c410ab
                    run-build-script-build-script-build.json
                serde_derive-61b5f7ce6d691006
                    lib-serde_derive.json
                serde_derive_internals-7e33e943abdd0c33
                    lib-serde_derive_internals.json
                serde_json-94b22ba1b71cc51c
                    run-build-script-build-script-build.json
                serde_json-c87c4bbd4efc702e
                    build-script-build-script-build.json
                serde_json-e584c6413f2fe878
                    lib-serde_json.json
                sha2-3998abd308883397
                    lib-sha2.json
                sha2-8ff89880900cc554
                    lib-sha2.json
                sha3-25206cfdb2ed76f7
                    lib-sha3.json
                signature-c6bd9fa03e077095
                    lib-signature.json
                smallvec-dffa7e6e05b24331
                    lib-smallvec.json
                smart-default-b9d7c7922b049498
                    lib-smart-default.json
                spin-54386419ec039665
                    lib-spin.json
                static_assertions-75b6598be2cba612
                    lib-static_assertions.json
                strum-314687d18a3a4381
                    lib-strum.json
                strum_macros-309b8a58f0c023d7
                    lib-strum_macros.json
                subtle-ee54d555fd1e6869
                    lib-subtle.json
                syn-332af6701faa375b
                    lib-syn.json
                syn-dc0a9fc018d92955
                    run-build-script-build-script-build.json
                syn-f7d5e573ab47820a
                    build-script-build-script-build.json
                synstructure-0f1cf4ed084ca3e3
                    lib-synstructure.json
                tap-53c8d86a4a1500ee
                    lib-tap.json
                thiserror-06c2479c8e2a8d90
                    build-script-build-script-build.json
                thiserror-4b0c0b7a731f8690
                    lib-thiserror.json
                thiserror-a8d636c00c386800
                    run-build-script-build-script-build.json
                thiserror-impl-c2d140faa1bd9497
                    lib-thiserror-impl.json
                time-5df4ffdb034df30f
                    lib-time.json
                toml-a0f9e34509d247e2
                    lib-toml.json
                toml_datetime-19fff1271fff342f
                    lib-toml_datetime.json
                toml_edit-baac08a30f9d357e
                    lib-toml_edit.json
                typenum-987fb764c0269a08
                    lib-typenum.json
                typenum-a280ee4acd5be4bc
                    run-build-script-build-script-main.json
                typenum-b058f4ad1e480be4
                    build-script-build-script-main.json
                uint-d9ea6f54207ed08f
                    lib-uint.json
                unicode-ident-499380be69116285
                    lib-unicode-ident.json
                unicode-xid-4a64e929959d7e3b
                    lib-unicode-xid.json
                version_check-586d7f396dd81bc1
                    lib-version_check.json
                wee_alloc-b8ebc417737ca559
                    lib-wee_alloc.json
                wee_alloc-d714fb1bb3df4462
                    build-script-build-script-build.json
                wee_alloc-e61e3380e8ac9e82
                    run-build-script-build-script-build.json
                wyz-289022b9b7f19cae
                    lib-wyz.json
                zeroize-da0eb4c754e3b72d
                    lib-zeroize.json
                zeroize_derive-61fd8b24eefae94e
                    lib-zeroize_derive.json
                zeropool-bn-dd6c2cfc4df66c10
                    lib-zeropool-bn.json
            build
                crunchy-40351912fb310cf8
                    out
                        lib.rs
                num-bigint-56cf0dbde0ac5913
                    out
                        radix_bases.rs
                parity-secp256k1-1aa4f5ef6adcdfd2
                    out
                        flag_check.c
                reed-solomon-erasure-2125a63b13b59fe1
                    out
                        table.rs
                thiserror-a8d636c00c386800
                    out
                        probe.rs
                typenum-a280ee4acd5be4bc
                    out
                        consts.rs
                        op.rs
                        tests.rs
                wee_alloc-e61e3380e8ac9e82
                    out
                        wee_alloc_static_array_backend_size_bytes.txt
        release
            .fingerprint
                Inflector-11340baeb34954e3
                    lib-inflector.json
                ahash-526c53873737ac0e
                    build-script-build-script-build.json
                borsh-derive-839a8fe180bb93ba
                    lib-borsh-derive.json
                borsh-derive-internal-a712a308f6452120
                    lib-borsh-derive-internal.json
                borsh-schema-derive-internal-234bedd5e65fc2e3
                    lib-borsh-schema-derive-internal.json
                crunchy-a5ef64182a246028
                    build-script-build-script-build.json
                near-sdk-macros-71225a9f518590f2
                    lib-near-sdk-macros.json
                proc-macro-crate-67083aebc326ed13
                    lib-proc-macro-crate.json
                proc-macro2-7309c28ad59b8b0c
                    build-script-build-script-build.json
                proc-macro2-d13e4a8bbbfef8d2
                    lib-proc-macro2.json
                proc-macro2-dfc6f073e99e9f74
                    run-build-script-build-script-build.json
                quote-4ca1bffdeef4d9fe
                    lib-quote.json
                quote-5047796b2d2d15e4
                    run-build-script-build-script-build.json
                quote-b209a7a79cb549f9
                    build-script-build-script-build.json
                schemars-fd0074e7e05a4af8
                    build-script-build-script-build.json
                schemars_derive-970cefd14ca2aa4a
                    lib-schemars_derive.json
                semver-46d2c5328ce3085f
                    build-script-build-script-build.json
                serde-640e523e6bc60051
                    build-script-build-script-build.json
                serde-7d342ad16bfd4827
                    run-build-script-build-script-build.json
                serde-bfbddde82db4e321
                    build-script-build-script-build.json
                serde-cf3a887fb1fa027c
                    lib-serde.json
                serde_derive-02eb18090043fa18
                    lib-serde_derive.json
                serde_derive-3a3995e1e630a9a0
                    run-build-script-build-script-build.json
                serde_derive-4ff5985ce19bdca0
                    build-script-build-script-build.json
                serde_derive_internals-aa758343b604228d
                    lib-serde_derive_internals.json
                serde_json-5132c2b6c70c638f
                    build-script-build-script-build.json
                syn-b08232e406836937
                    run-build-script-build-script-build.json
                syn-d8ad4a388725caf0
                    build-script-build-script-build.json
                syn-ff2c4541a9543390
                    lib-syn.json
                toml-b69f469b50f24b47
                    lib-toml.json
                unicode-ident-a4749c746322ece7
                    lib-unicode-ident.json
                version_check-61dc10ba2a26c799
                    lib-version_check.json
                wee_alloc-97d52a07c3e66d7a
                    build-script-build-script-build.json
        wasm32-unknown-unknown
            release
                .fingerprint
                    ahash-6c4510ecc75b40de
                        run-build-script-build-script-build.json
                    ahash-ab8d941c8a81245f
                        lib-ahash.json
                    base64-35c7e4742ddfd799
                        lib-base64.json
                    borsh-fb21e49152d0e124
                        lib-borsh.json
                    bs58-5bc5532ee4391914
                        lib-bs58.json
                    byteorder-f06d7080cd4711a3
                        lib-byteorder.json
                    cfg-if-bf8bbefe2a319d79
                        lib-cfg-if.json
                    crunchy-2c918894adc72298
                        run-build-script-build-script-build.json
                    crunchy-88b495ab42ca45ba
                        lib-crunchy.json
                    dyn-clone-63f542f09cc6e699
                        lib-dyn-clone.json
                    hashbrown-9495d6f78d689f35
                        lib-hashbrown.json
                    hello_near-00ca379cccdf6430
                        lib-hello_near.json
                    hex-e53eaf741191e5dc
                        lib-hex.json
                    itoa-e09c707077c093cf
                        lib-itoa.json
                    memory_units-4b8287d8561ebf0b
                        lib-memory_units.json
                    near-abi-9cb431dcef3d3382
                        lib-near-abi.json
                    near-sdk-52dfa142a49275e8
                        lib-near-sdk.json
                    near-sys-10b2787850caec36
                        lib-near-sys.json
                    once_cell-ae5e422dae2c2b51
                        lib-once_cell.json
                    ryu-56d63e7e30064dc2
                        lib-ryu.json
                    schemars-37879e701f4eeb35
                        run-build-script-build-script-build.json
                    schemars-7e4d51c450e59b2f
                        lib-schemars.json
                    semver-3b4f281f912b79c1
                        run-build-script-build-script-build.json
                    semver-eb5cff573ddc5f80
                        lib-semver.json
                    serde-07ecad3687f1ed66
                        run-build-script-build-script-build.json
                    serde-b0d134b227057d29
                        lib-serde.json
                    serde_json-6e881b1efdc86632
                        run-build-script-build-script-build.json
                    serde_json-b91d68e00190ead6
                        lib-serde_json.json
                    static_assertions-f429d07d48f2896b
                        lib-static_assertions.json
                    uint-6cb09aa7311b61d2
                        lib-uint.json
                    wee_alloc-362a49f9897adf2e
                        run-build-script-build-script-build.json
                    wee_alloc-90e79c2167168b74
                        lib-wee_alloc.json
                build
                    crunchy-2c918894adc72298
                        out
                            lib.rs
                    wee_alloc-362a49f9897adf2e
                        out
                            wee_alloc_static_array_backend_size_bytes.txt
frontend
    App.js
    assets
        global.css
        logo-black.svg
        logo-white.svg
    index.html
    index.js
    near-wallet.js
    package-lock.json
    package.json
    start.sh
    ui-components.js
integration-tests
    .near-credentials
        workspaces
            testnet
                r-40737-54016.raffle-nft.testnet.json
                r-40776-85760.raffle-nft.testnet.json
                r-44278-45952.raffle-nft.testnet.json
                r-44317-76544.raffle-nft.testnet.json
                r-85042-29664.raffle-nft.testnet.json
                r-85081-78144.raffle-nft.testnet.json
    package-lock.json
    package.json
    src
        main.ava.ts
        testModels.ts
package.json

CONT_ID=raffle-nft4.testnet ime kontrakt ownera Tacnije main wallet
nft-tst.testnet 

deploy comand: near deploy --wasmFile ./contract/target/wasm32-unknown-unknown/release/hello_near.wasm --accountId $CONT_ID

** Kada mi je param deserializovagitn sa serde json (near_sdk::serde_json::from_str(&msg)) pvako pozivam msg param

near call contract-name nft_approve '{"token_id": "2:2", "account_id": "nft-proba.testnet", "msg": "{\"ticket_price\": 100000000000000000000000}" }' --accountId my-account

NEW_CONT=raffle-nft2.testnet
CONT_ID=raffle-nft3.testnet

near call $CONT_ID get_all_raffles --accountId $CONT_ID

