-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
32 changed files
with
8,463 additions
and
44 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
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
import ntt from "./2_0_0/example_native_token_transfers.json"; | ||
import quoter from "./2_0_0/ntt_quoter.json"; | ||
import governance from "./2_0_0/wormhole_governance.json"; | ||
|
||
import type { ExampleNativeTokenTransfers } from "./2_0_0/example_native_token_transfers.js"; | ||
import type { NttQuoter } from "./2_0_0/ntt_quoter.js"; | ||
import type { WormholeGovernance } from "./2_0_0/wormhole_governance.js"; | ||
|
||
export namespace _2_0_0 { | ||
export const idl = { ntt, quoter, governance }; | ||
|
||
export type RawExampleNativeTokenTransfers = ExampleNativeTokenTransfers; | ||
export type RawNttQuoter = NttQuoter; | ||
export type RawWormholeGovernance = WormholeGovernance; | ||
} |
110 changes: 110 additions & 0 deletions
110
sdk/solana/src/anchor-idl/2_0_0/dummy_transfer_hook.json
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,110 @@ | ||
{ | ||
"version": "2.0.0", | ||
"name": "dummy_transfer_hook", | ||
"instructions": [ | ||
{ | ||
"name": "initializeExtraAccountMetaList", | ||
"accounts": [ | ||
{ | ||
"name": "payer", | ||
"isMut": true, | ||
"isSigner": true | ||
}, | ||
{ | ||
"name": "extraAccountMetaList", | ||
"isMut": true, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "mint", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "tokenProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "associatedTokenProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "counter", | ||
"isMut": true, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "systemProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
} | ||
], | ||
"args": [] | ||
}, | ||
{ | ||
"name": "transferHook", | ||
"accounts": [ | ||
{ | ||
"name": "sourceToken", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "mint", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "destinationToken", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "authority", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "extraAccountMetaList", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "dummyAccount", | ||
"isMut": false, | ||
"isSigner": false, | ||
"docs": [ | ||
"computes and the on-chain code correctly passes on the PDA." | ||
] | ||
}, | ||
{ | ||
"name": "counter", | ||
"isMut": true, | ||
"isSigner": false | ||
} | ||
], | ||
"args": [ | ||
{ | ||
"name": "amount", | ||
"type": "u64" | ||
} | ||
] | ||
} | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "Counter", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ | ||
"name": "count", | ||
"type": "u64" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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,221 @@ | ||
export type DummyTransferHook = { | ||
"version": "2.0.0", | ||
"name": "dummy_transfer_hook", | ||
"instructions": [ | ||
{ | ||
"name": "initializeExtraAccountMetaList", | ||
"accounts": [ | ||
{ | ||
"name": "payer", | ||
"isMut": true, | ||
"isSigner": true | ||
}, | ||
{ | ||
"name": "extraAccountMetaList", | ||
"isMut": true, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "mint", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "tokenProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "associatedTokenProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "counter", | ||
"isMut": true, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "systemProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
} | ||
], | ||
"args": [] | ||
}, | ||
{ | ||
"name": "transferHook", | ||
"accounts": [ | ||
{ | ||
"name": "sourceToken", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "mint", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "destinationToken", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "authority", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "extraAccountMetaList", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "dummyAccount", | ||
"isMut": false, | ||
"isSigner": false, | ||
"docs": [ | ||
"computes and the on-chain code correctly passes on the PDA." | ||
] | ||
}, | ||
{ | ||
"name": "counter", | ||
"isMut": true, | ||
"isSigner": false | ||
} | ||
], | ||
"args": [ | ||
{ | ||
"name": "amount", | ||
"type": "u64" | ||
} | ||
] | ||
} | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "counter", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ | ||
"name": "count", | ||
"type": "u64" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}; | ||
|
||
export const IDL: DummyTransferHook = { | ||
"version": "2.0.0", | ||
"name": "dummy_transfer_hook", | ||
"instructions": [ | ||
{ | ||
"name": "initializeExtraAccountMetaList", | ||
"accounts": [ | ||
{ | ||
"name": "payer", | ||
"isMut": true, | ||
"isSigner": true | ||
}, | ||
{ | ||
"name": "extraAccountMetaList", | ||
"isMut": true, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "mint", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "tokenProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "associatedTokenProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "counter", | ||
"isMut": true, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "systemProgram", | ||
"isMut": false, | ||
"isSigner": false | ||
} | ||
], | ||
"args": [] | ||
}, | ||
{ | ||
"name": "transferHook", | ||
"accounts": [ | ||
{ | ||
"name": "sourceToken", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "mint", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "destinationToken", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "authority", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "extraAccountMetaList", | ||
"isMut": false, | ||
"isSigner": false | ||
}, | ||
{ | ||
"name": "dummyAccount", | ||
"isMut": false, | ||
"isSigner": false, | ||
"docs": [ | ||
"computes and the on-chain code correctly passes on the PDA." | ||
] | ||
}, | ||
{ | ||
"name": "counter", | ||
"isMut": true, | ||
"isSigner": false | ||
} | ||
], | ||
"args": [ | ||
{ | ||
"name": "amount", | ||
"type": "u64" | ||
} | ||
] | ||
} | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "counter", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ | ||
"name": "count", | ||
"type": "u64" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}; |
Oops, something went wrong.