bafnetwork / bafnetwork/baf-badges
Add type definition for TransferArgs
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
In [global.d.ts](https://github.com/bafnetwork/baf-badges/blob/5dcb954c59c9f438578bdf28611b34dbf8e262e3/global.d.ts#L17), types are defined for the arguments the various methods in our smart contracts on NEAR. We still need a type definition for the [`nft_transfer`](https://github.com/near/near-sdk-rs/blob/1a706b2eb0dd3e96e2ba4f6e74b0ef972c4bbbdf/near-contract-standards/src/non_fungible_token/core/mod.rs#L46) method in the smart contract.
Tasks:
- [ ] Define an interface `TransferArgs` in `global.d.ts`
- [ ] update the type of `nft_transfer` in `ContractMethods`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in global.d.ts around line 17 and compare the nft_transfer arguments with the linked NEAR non-fungible-token definition. Define TransferArgs and update its ContractMethods entry; done means both tasks are reflected in the TypeScript declarations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100