Skip to content

Commit

Permalink
solana: Update IDL and TS helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsriram committed Dec 14, 2024
1 parent e9ec944 commit b0a0ecf
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
22 changes: 11 additions & 11 deletions solana/ts/idl/3_0_0/json/example_native_token_transfers.json
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@
]
},
{
"name": "payer",
"name": "rentPayer",
"isMut": true,
"isSigner": true
},
Expand Down Expand Up @@ -819,11 +819,6 @@
"isMut": false,
"isSigner": false
},
{
"name": "payer",
"isMut": true,
"isSigner": false
},
{
"name": "mint",
"isMut": true,
Expand All @@ -834,6 +829,11 @@
"isMut": false,
"isSigner": false
},
{
"name": "rentPayer",
"isMut": true,
"isSigner": false
},
{
"name": "pendingTokenAuthority",
"isMut": true,
Expand Down Expand Up @@ -863,11 +863,6 @@
"isMut": false,
"isSigner": false
},
{
"name": "payer",
"isMut": true,
"isSigner": false
},
{
"name": "mint",
"isMut": true,
Expand All @@ -878,6 +873,11 @@
"isMut": false,
"isSigner": false
},
{
"name": "rentPayer",
"isMut": true,
"isSigner": false
},
{
"name": "pendingTokenAuthority",
"isMut": true,
Expand Down
44 changes: 22 additions & 22 deletions solana/ts/idl/3_0_0/ts/example_native_token_transfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ export type ExampleNativeTokenTransfers = {
]
},
{
"name": "payer",
"name": "rentPayer",
"isMut": true,
"isSigner": true
},
Expand Down Expand Up @@ -819,11 +819,6 @@ export type ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "payer",
"isMut": true,
"isSigner": false
},
{
"name": "mint",
"isMut": true,
Expand All @@ -834,6 +829,11 @@ export type ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "rentPayer",
"isMut": true,
"isSigner": false
},
{
"name": "pendingTokenAuthority",
"isMut": true,
Expand Down Expand Up @@ -863,11 +863,6 @@ export type ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "payer",
"isMut": true,
"isSigner": false
},
{
"name": "mint",
"isMut": true,
Expand All @@ -878,6 +873,11 @@ export type ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "rentPayer",
"isMut": true,
"isSigner": false
},
{
"name": "pendingTokenAuthority",
"isMut": true,
Expand Down Expand Up @@ -2996,7 +2996,7 @@ export const IDL: ExampleNativeTokenTransfers = {
]
},
{
"name": "payer",
"name": "rentPayer",
"isMut": true,
"isSigner": true
},
Expand Down Expand Up @@ -3062,11 +3062,6 @@ export const IDL: ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "payer",
"isMut": true,
"isSigner": false
},
{
"name": "mint",
"isMut": true,
Expand All @@ -3077,6 +3072,11 @@ export const IDL: ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "rentPayer",
"isMut": true,
"isSigner": false
},
{
"name": "pendingTokenAuthority",
"isMut": true,
Expand Down Expand Up @@ -3106,11 +3106,6 @@ export const IDL: ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "payer",
"isMut": true,
"isSigner": false
},
{
"name": "mint",
"isMut": true,
Expand All @@ -3121,6 +3116,11 @@ export const IDL: ExampleNativeTokenTransfers = {
"isMut": false,
"isSigner": false
},
{
"name": "rentPayer",
"isMut": true,
"isSigner": false
},
{
"name": "pendingTokenAuthority",
"isMut": true,
Expand Down
4 changes: 2 additions & 2 deletions solana/ts/lib/ntt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ export namespace NTT {
program: Program<NttBindings.NativeTokenTransfer<IdlVersion>>,
config: NttBindings.Config<IdlVersion>,
args: {
payer: PublicKey;
rentPayer: PublicKey;
owner: PublicKey;
newAuthority: PublicKey;
},
Expand All @@ -734,7 +734,7 @@ export namespace NTT {
owner: args.owner,
newAuthority: args.newAuthority,
},
payer: args.payer,
rentPayer: args.rentPayer,
pendingTokenAuthority: pdas.pendingTokenAuthority(),
systemProgram: SystemProgram.programId,
})
Expand Down

0 comments on commit b0a0ecf

Please sign in to comment.