Comments (4)
Here is another example where things are made more difficult by the incompatibility of SIP009 and SIP010.
https://github.com/MarvinJanssen/stx-atomic-swap/blob/master/stx/contracts/sip009-sip010-htlc.clar
Edit:
And a transferable-trait
for reference.
(define-trait transferable-trait
(
(transfer (uint principal principal) (response bool uint))
)
)
from sips.
Native nfts and fts are incompatible by nature because the further are transferred by identifier, the latter by amount. However, for NFTs that use a uint as identifier, the same method signature for transfer can be used as FTs.
from sips.
Sure, but in the case of SIP009 and SIP010 the above used to work which is pretty powerful. It is not out of the ordinary to represent either an amount or a token ID in a single uint
.
from sips.
Closing this in favor of #52
from sips.
Related Issues (20)
- Create template for CAB minutes HOT 1
- Draft SIP for apps requesting BTC transactions from wallet HOT 1
- SIP001, SIP002 and SIP004 still refer to Blockstack, should that be changed to Stacks? HOT 1
- sBTC has token ticker collisions, should it be changed? HOT 3
- Wallet client API HOT 7
- Updated Harberger Tax Model for BNS HOT 18
- NFT(s) Staking SIP Research
- Draft SIP for ZK Verification Clarity Primitive HOT 1
- Documenting the SIP approval process
- Stacks addresses and Bitcoin addresses in Wallets HOT 2
- SIP specifying Clarity `slice` function HOT 3
- First step towards submitting a SIP HOT 6
- Weekly SIP Meeting Agenda & Notes HOT 32
- Use more GitHub labels
- Document members of the Steering Committee HOT 3
- Steering Committee Monthly SIP call - Agenda & Notes HOT 7
- SIP describing Stacks message signing HOT 6
- Draft for Standard trait definition for extending tokens HOT 16
- Quick test - please disregard HOT 3
- Reference List of Traits for Mainnet and Testnet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sips.