warp-contracts / warp

An implementation of the Arweave SmartWeave smart contracts protocol.
MIT License
159 stars 44 forks source link

fix: refactor wasm-bindgen glue code in the SDK #309

Closed ppedziwiatr closed 1 year ago

ppedziwiatr commented 1 year ago

TBA: https://github.com/warp-contracts/warp/blob/main/src/core/modules/impl/HandlerExecutorFactory.ts#L89 https://github.com/warp-contracts/warp/blob/main/src/core/modules/impl/wasm/rust-wasm-imports.ts#L287

https://github.com/warp-contracts/warp/pull/302#issuecomment-1363871221

Same issue: https://github.com/rustwasm/wasm-bindgen/issues/1128#issue-393781607 Possible solution: https://github.com/rustwasm/wasm-bindgen/issues/1128#issuecomment-449820516

ppedziwiatr commented 1 year ago

@rpiszczatowski not sure if you've found it, but - https://github.com/near/near-sdk-rs#near-sdk , https://docs.near.org/sdk/rust/contract-structure/near-bindgen

ppedziwiatr commented 1 year ago

A lot has been done recently around this area, closing for now.