-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8826627
commit fcf98c0
Showing
6 changed files
with
140 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Nft Delegation SDK | ||
|
||
{% callout title="Quick tip" %} | ||
If you are looking for a quick start guide, check out the [Getting Started](/docs/learn/getting_started) guide. We also have some react examples [here](/docs/learn/react). | ||
{% /callout %} | ||
|
||
## Instructions | ||
|
||
### delegateV0 | ||
|
||
#### Accounts | ||
|
||
| Name | Mutability | Signer | Docs | | ||
| ----------------- | ---------- | ------ | ---- | | ||
| payer | mut | yes | | | ||
| mint | immut | no | | | ||
| owner | immut | yes | | | ||
| tokenAccount | immut | no | | | ||
| currentDelegation | mut | no | | | ||
| recipient | immut | no | | | ||
| nextDelegation | mut | no | | | ||
| systemProgram | immut | no | | | ||
|
||
#### Args | ||
|
||
| Name | Type | Docs | | ||
| ---- | ---- | ---- | | ||
|
||
### undelegateV0 | ||
|
||
#### Accounts | ||
|
||
| Name | Mutability | Signer | Docs | | ||
| ----------------- | ---------- | ------ | ---- | | ||
| rentRefund | mut | no | | | ||
| owner | immut | yes | | | ||
| currentDelegation | immut | no | | | ||
| prevDelegation | mut | no | | | ||
| delegation | mut | no | | | ||
| systemProgram | immut | no | | | ||
|
||
#### Args | ||
|
||
| Name | Type | Docs | | ||
| ---- | ---- | ---- | | ||
|
||
## Accounts | ||
|
||
### DelegationV0 | ||
|
||
| Field | Type | | ||
| ---------- | --------- | | ||
| owner | publicKey | | ||
| asset | publicKey | | ||
| index | u16 | | ||
| nextOwner | publicKey | | ||
| rentRefund | publicKey | | ||
| bumpSeed | u8 | | ||
|
||
## Types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/modular-governance-idls/packages/modular-governance-idls/tsconfig.esm.tsbuildinfo
Large diffs are not rendered by default.
Oops, something went wrong.