├── .gitignore ├── LICENSE.md ├── README.md ├── SECURITY.md ├── security └── audits │ ├── getcode_splitter_audit_final.pdf │ └── getcode_timelock_audit_final.pdf ├── splitter ├── .ammanrc.js ├── .gitignore ├── .prettierignore ├── Anchor.toml ├── Cargo.toml ├── README.md ├── client │ ├── golang │ │ ├── .gitkeep │ │ ├── go.mod │ │ ├── go.sum │ │ └── pkg │ │ │ ├── accounts_pool.go │ │ │ ├── accounts_proof.go │ │ │ ├── address.go │ │ │ ├── errors.go │ │ │ ├── instructions_close_proof.go │ │ │ ├── instructions_close_token_account.go │ │ │ ├── instructions_initialize_pool.go │ │ │ ├── instructions_initialize_proof.go │ │ │ ├── instructions_open_token_account.go │ │ │ ├── instructions_save_recent_root.go │ │ │ ├── instructions_transfer_with_commitment.go │ │ │ ├── instructions_update_proof.go │ │ │ ├── instructions_verify_proof.go │ │ │ ├── program.go │ │ │ ├── types.go │ │ │ ├── types_hash.go │ │ │ ├── types_merkletree.go │ │ │ └── utils.go │ ├── idl │ │ └── splitter.json │ └── typescript │ │ ├── dist │ │ ├── generated │ │ │ ├── accounts │ │ │ │ ├── Pool.js │ │ │ │ ├── Proof.js │ │ │ │ └── index.js │ │ │ ├── errors │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ ├── instructions │ │ │ │ ├── closeProof.js │ │ │ │ ├── closeTokenAccount.js │ │ │ │ ├── index.js │ │ │ │ ├── initializePool.js │ │ │ │ ├── initializeProof.js │ │ │ │ ├── openTokenAccount.js │ │ │ │ ├── saveRecentRoot.js │ │ │ │ ├── transferWithCommitment.js │ │ │ │ ├── uploadProof.js │ │ │ │ └── verifyProof.js │ │ │ └── types │ │ │ │ ├── DataVersion.js │ │ │ │ ├── MerkleTree.js │ │ │ │ └── index.js │ │ └── splitter.js │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── src │ │ ├── generated │ │ │ ├── accounts │ │ │ │ ├── Pool.ts │ │ │ │ ├── Proof.ts │ │ │ │ └── index.ts │ │ │ ├── errors │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── instructions │ │ │ │ ├── closeProof.ts │ │ │ │ ├── closeTokenAccount.ts │ │ │ │ ├── index.ts │ │ │ │ ├── initializePool.ts │ │ │ │ ├── initializeProof.ts │ │ │ │ ├── openTokenAccount.ts │ │ │ │ ├── saveRecentRoot.ts │ │ │ │ ├── transferWithCommitment.ts │ │ │ │ ├── uploadProof.ts │ │ │ │ └── verifyProof.ts │ │ │ └── types │ │ │ │ ├── DataVersion.ts │ │ │ │ ├── MerkleTree.ts │ │ │ │ └── index.ts │ │ └── splitter.ts │ │ ├── tsconfig.build.json │ │ ├── tsconfig.json │ │ └── yarn.lock ├── docs │ └── splitter-banner.png ├── migrations │ └── deploy.ts ├── package-lock.json ├── package.json ├── programs │ └── splitter │ │ ├── Cargo.toml │ │ ├── Xargo.toml │ │ └── src │ │ ├── context.rs │ │ ├── error.rs │ │ ├── lib.rs │ │ ├── state.rs │ │ └── utils.rs ├── provider-key.json ├── scripts │ ├── const.js │ └── typescript-api-gen.js ├── tests │ ├── cases │ │ ├── env.ts │ │ └── happy-path.ts │ ├── main.ts │ └── utils │ │ ├── config.ts │ │ ├── merkle-tree.ts │ │ ├── pda.ts │ │ ├── sha256.ts │ │ ├── spl-instructions.ts │ │ ├── splitter-instructions.ts │ │ ├── test-env.ts │ │ ├── transaction.ts │ │ └── wait.ts ├── tsconfig.json └── yarn.lock ├── swap-validator ├── .gitignore ├── .prettierignore ├── Anchor.toml ├── Cargo.toml ├── client │ └── golang │ │ ├── go.mod │ │ ├── go.sum │ │ └── pkg │ │ ├── address.go │ │ ├── errors.go │ │ ├── instructions_post_swap.go │ │ ├── instructions_pre_swap.go │ │ ├── program.go │ │ └── utils.go ├── migrations │ └── deploy.ts ├── package-lock.json ├── package.json ├── programs │ └── swap-validator │ │ ├── Cargo.toml │ │ ├── Xargo.toml │ │ └── src │ │ ├── context.rs │ │ ├── errors.rs │ │ ├── lib.rs │ │ ├── state.rs │ │ └── utils.rs ├── tests │ ├── cases │ │ ├── additional-user-account.ts │ │ ├── env.ts │ │ ├── happy-path.ts │ │ ├── invalid-swap-amount.ts │ │ └── token-account-update.ts │ ├── main.ts │ └── utils │ │ ├── config.ts │ │ ├── pda.ts │ │ ├── test-env.ts │ │ ├── transaction.ts │ │ └── wait.ts ├── tsconfig.json └── yarn.lock └── timelock ├── .ammanrc.js ├── .gitignore ├── .prettierignore ├── Anchor.toml ├── Cargo.toml ├── README.md ├── client ├── golang │ ├── go.mod │ ├── go.sum │ └── pkg │ │ ├── accounts.go │ │ ├── address.go │ │ ├── constants.go │ │ ├── errors.go │ │ ├── instruction_activate.go │ │ ├── instruction_burndustwithauthority.go │ │ ├── instruction_cancellocktimeout.go │ │ ├── instruction_closeAccounts.go │ │ ├── instruction_deactivate.go │ │ ├── instruction_initialize.go │ │ ├── instruction_revokelockwithauthority.go │ │ ├── instruction_revokelockwithtimeout.go │ │ ├── instruction_transferwithauthority.go │ │ ├── instruction_withdraw.go │ │ ├── program.go │ │ ├── types.go │ │ └── utils.go ├── idl │ └── timelock.json └── typescript │ ├── dist │ ├── generated │ │ ├── accounts │ │ │ ├── TimeLockAccount.js │ │ │ └── index.js │ │ ├── errors │ │ │ └── index.js │ │ ├── index.js │ │ ├── instructions │ │ │ ├── activate.js │ │ │ ├── burnDustWithAuthority.js │ │ │ ├── cancelLockTimeout.js │ │ │ ├── closeAccounts.js │ │ │ ├── deactivate.js │ │ │ ├── index.js │ │ │ ├── initialize.js │ │ │ ├── revokeLockWithAuthority.js │ │ │ ├── revokeLockWithTimeout.js │ │ │ ├── transferWithAuthority.js │ │ │ └── withdraw.js │ │ └── types │ │ │ ├── DataVersion.js │ │ │ ├── TimeLockState.js │ │ │ └── index.js │ └── timelock.js │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── generated │ │ ├── accounts │ │ │ ├── TimeLockAccount.ts │ │ │ └── index.ts │ │ ├── errors │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── instructions │ │ │ ├── activate.ts │ │ │ ├── burnDustWithAuthority.ts │ │ │ ├── cancelLockTimeout.ts │ │ │ ├── closeAccounts.ts │ │ │ ├── deactivate.ts │ │ │ ├── index.ts │ │ │ ├── initialize.ts │ │ │ ├── revokeLockWithAuthority.ts │ │ │ ├── revokeLockWithTimeout.ts │ │ │ ├── transferWithAuthority.ts │ │ │ └── withdraw.ts │ │ └── types │ │ │ ├── DataVersion.ts │ │ │ ├── TimeLockState.ts │ │ │ └── index.ts │ └── timelock.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ └── yarn.lock ├── docs ├── timelock-banner.png ├── timelock-token.png └── timelock.drawio ├── migrations └── deploy.ts ├── package-lock.json ├── package.json ├── programs └── timelock │ ├── Cargo.toml │ ├── Xargo.toml │ └── src │ ├── context.rs │ ├── error.rs │ ├── lib.rs │ ├── state.rs │ └── utils.rs ├── provider-key.json ├── scripts ├── const.js └── typescript-api-gen.js ├── tests ├── cases │ ├── edge-cases.ts │ ├── env.ts │ ├── happy-path.ts │ ├── revoke-with-authority.ts │ ├── revoke-with-cancel.ts │ └── revoke-with-timeout.ts ├── main.ts └── utils │ ├── config.ts │ ├── pda.ts │ ├── spl-instructions.ts │ ├── test-env.ts │ ├── timelock-instructions.ts │ ├── transaction.ts │ └── wait.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/SECURITY.md -------------------------------------------------------------------------------- /security/audits/getcode_splitter_audit_final.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/security/audits/getcode_splitter_audit_final.pdf -------------------------------------------------------------------------------- /security/audits/getcode_timelock_audit_final.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/security/audits/getcode_timelock_audit_final.pdf -------------------------------------------------------------------------------- /splitter/.ammanrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/.ammanrc.js -------------------------------------------------------------------------------- /splitter/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .anchor 3 | .DS_Store 4 | target 5 | **/*.rs.bk 6 | node_modules 7 | test-ledger 8 | -------------------------------------------------------------------------------- /splitter/.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/.prettierignore -------------------------------------------------------------------------------- /splitter/Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/Anchor.toml -------------------------------------------------------------------------------- /splitter/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | members = [ 3 | "programs/*" 4 | ] 5 | -------------------------------------------------------------------------------- /splitter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/README.md -------------------------------------------------------------------------------- /splitter/client/golang/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /splitter/client/golang/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/go.mod -------------------------------------------------------------------------------- /splitter/client/golang/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/go.sum -------------------------------------------------------------------------------- /splitter/client/golang/pkg/accounts_pool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/accounts_pool.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/accounts_proof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/accounts_proof.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/address.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/errors.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_close_proof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_close_proof.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_close_token_account.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_close_token_account.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_initialize_pool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_initialize_pool.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_initialize_proof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_initialize_proof.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_open_token_account.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_open_token_account.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_save_recent_root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_save_recent_root.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_transfer_with_commitment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_transfer_with_commitment.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_update_proof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_update_proof.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/instructions_verify_proof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/instructions_verify_proof.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/program.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/program.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/types.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/types_hash.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/types_hash.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/types_merkletree.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/types_merkletree.go -------------------------------------------------------------------------------- /splitter/client/golang/pkg/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/golang/pkg/utils.go -------------------------------------------------------------------------------- /splitter/client/idl/splitter.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/idl/splitter.json -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/accounts/Pool.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/accounts/Pool.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/accounts/Proof.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/accounts/Proof.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/accounts/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/accounts/index.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/errors/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/errors/index.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/index.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/closeProof.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/closeProof.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/closeTokenAccount.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/closeTokenAccount.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/index.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/initializePool.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/initializePool.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/initializeProof.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/initializeProof.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/openTokenAccount.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/openTokenAccount.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/saveRecentRoot.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/saveRecentRoot.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/transferWithCommitment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/transferWithCommitment.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/uploadProof.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/uploadProof.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/instructions/verifyProof.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/instructions/verifyProof.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/types/DataVersion.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/types/DataVersion.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/types/MerkleTree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/types/MerkleTree.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/generated/types/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/generated/types/index.js -------------------------------------------------------------------------------- /splitter/client/typescript/dist/splitter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/dist/splitter.js -------------------------------------------------------------------------------- /splitter/client/typescript/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/package-lock.json -------------------------------------------------------------------------------- /splitter/client/typescript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/package.json -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/accounts/Pool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/accounts/Pool.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/accounts/Proof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/accounts/Proof.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/accounts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/accounts/index.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/errors/index.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/index.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/closeProof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/closeProof.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/closeTokenAccount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/closeTokenAccount.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/index.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/initializePool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/initializePool.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/initializeProof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/initializeProof.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/openTokenAccount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/openTokenAccount.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/saveRecentRoot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/saveRecentRoot.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/transferWithCommitment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/transferWithCommitment.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/uploadProof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/uploadProof.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/instructions/verifyProof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/instructions/verifyProof.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/types/DataVersion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/types/DataVersion.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/types/MerkleTree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/types/MerkleTree.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/generated/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/src/generated/types/index.ts -------------------------------------------------------------------------------- /splitter/client/typescript/src/splitter.ts: -------------------------------------------------------------------------------- 1 | // @ts-ignore 2 | export * from './generated'; -------------------------------------------------------------------------------- /splitter/client/typescript/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/tsconfig.build.json -------------------------------------------------------------------------------- /splitter/client/typescript/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/tsconfig.json -------------------------------------------------------------------------------- /splitter/client/typescript/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/client/typescript/yarn.lock -------------------------------------------------------------------------------- /splitter/docs/splitter-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/docs/splitter-banner.png -------------------------------------------------------------------------------- /splitter/migrations/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/migrations/deploy.ts -------------------------------------------------------------------------------- /splitter/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/package-lock.json -------------------------------------------------------------------------------- /splitter/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/package.json -------------------------------------------------------------------------------- /splitter/programs/splitter/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/programs/splitter/Cargo.toml -------------------------------------------------------------------------------- /splitter/programs/splitter/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/programs/splitter/Xargo.toml -------------------------------------------------------------------------------- /splitter/programs/splitter/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/programs/splitter/src/context.rs -------------------------------------------------------------------------------- /splitter/programs/splitter/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/programs/splitter/src/error.rs -------------------------------------------------------------------------------- /splitter/programs/splitter/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/programs/splitter/src/lib.rs -------------------------------------------------------------------------------- /splitter/programs/splitter/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/programs/splitter/src/state.rs -------------------------------------------------------------------------------- /splitter/programs/splitter/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/programs/splitter/src/utils.rs -------------------------------------------------------------------------------- /splitter/provider-key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/provider-key.json -------------------------------------------------------------------------------- /splitter/scripts/const.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/scripts/const.js -------------------------------------------------------------------------------- /splitter/scripts/typescript-api-gen.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/scripts/typescript-api-gen.js -------------------------------------------------------------------------------- /splitter/tests/cases/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/cases/env.ts -------------------------------------------------------------------------------- /splitter/tests/cases/happy-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/cases/happy-path.ts -------------------------------------------------------------------------------- /splitter/tests/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/main.ts -------------------------------------------------------------------------------- /splitter/tests/utils/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/config.ts -------------------------------------------------------------------------------- /splitter/tests/utils/merkle-tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/merkle-tree.ts -------------------------------------------------------------------------------- /splitter/tests/utils/pda.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/pda.ts -------------------------------------------------------------------------------- /splitter/tests/utils/sha256.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/sha256.ts -------------------------------------------------------------------------------- /splitter/tests/utils/spl-instructions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/spl-instructions.ts -------------------------------------------------------------------------------- /splitter/tests/utils/splitter-instructions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/splitter-instructions.ts -------------------------------------------------------------------------------- /splitter/tests/utils/test-env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/test-env.ts -------------------------------------------------------------------------------- /splitter/tests/utils/transaction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/transaction.ts -------------------------------------------------------------------------------- /splitter/tests/utils/wait.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tests/utils/wait.ts -------------------------------------------------------------------------------- /splitter/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/tsconfig.json -------------------------------------------------------------------------------- /splitter/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/splitter/yarn.lock -------------------------------------------------------------------------------- /swap-validator/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .anchor 3 | .DS_Store 4 | target 5 | **/*.rs.bk 6 | node_modules 7 | test-ledger 8 | .yarn 9 | -------------------------------------------------------------------------------- /swap-validator/.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/.prettierignore -------------------------------------------------------------------------------- /swap-validator/Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/Anchor.toml -------------------------------------------------------------------------------- /swap-validator/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/Cargo.toml -------------------------------------------------------------------------------- /swap-validator/client/golang/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/go.mod -------------------------------------------------------------------------------- /swap-validator/client/golang/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/go.sum -------------------------------------------------------------------------------- /swap-validator/client/golang/pkg/address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/pkg/address.go -------------------------------------------------------------------------------- /swap-validator/client/golang/pkg/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/pkg/errors.go -------------------------------------------------------------------------------- /swap-validator/client/golang/pkg/instructions_post_swap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/pkg/instructions_post_swap.go -------------------------------------------------------------------------------- /swap-validator/client/golang/pkg/instructions_pre_swap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/pkg/instructions_pre_swap.go -------------------------------------------------------------------------------- /swap-validator/client/golang/pkg/program.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/pkg/program.go -------------------------------------------------------------------------------- /swap-validator/client/golang/pkg/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/client/golang/pkg/utils.go -------------------------------------------------------------------------------- /swap-validator/migrations/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/migrations/deploy.ts -------------------------------------------------------------------------------- /swap-validator/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/package-lock.json -------------------------------------------------------------------------------- /swap-validator/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/package.json -------------------------------------------------------------------------------- /swap-validator/programs/swap-validator/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/programs/swap-validator/Cargo.toml -------------------------------------------------------------------------------- /swap-validator/programs/swap-validator/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/programs/swap-validator/Xargo.toml -------------------------------------------------------------------------------- /swap-validator/programs/swap-validator/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/programs/swap-validator/src/context.rs -------------------------------------------------------------------------------- /swap-validator/programs/swap-validator/src/errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/programs/swap-validator/src/errors.rs -------------------------------------------------------------------------------- /swap-validator/programs/swap-validator/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/programs/swap-validator/src/lib.rs -------------------------------------------------------------------------------- /swap-validator/programs/swap-validator/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/programs/swap-validator/src/state.rs -------------------------------------------------------------------------------- /swap-validator/programs/swap-validator/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/programs/swap-validator/src/utils.rs -------------------------------------------------------------------------------- /swap-validator/tests/cases/additional-user-account.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/cases/additional-user-account.ts -------------------------------------------------------------------------------- /swap-validator/tests/cases/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/cases/env.ts -------------------------------------------------------------------------------- /swap-validator/tests/cases/happy-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/cases/happy-path.ts -------------------------------------------------------------------------------- /swap-validator/tests/cases/invalid-swap-amount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/cases/invalid-swap-amount.ts -------------------------------------------------------------------------------- /swap-validator/tests/cases/token-account-update.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/cases/token-account-update.ts -------------------------------------------------------------------------------- /swap-validator/tests/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/main.ts -------------------------------------------------------------------------------- /swap-validator/tests/utils/config.ts: -------------------------------------------------------------------------------- 1 | export const PREFIX_PRE_SWAP_STATE = "pre_swap_state"; 2 | -------------------------------------------------------------------------------- /swap-validator/tests/utils/pda.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/utils/pda.ts -------------------------------------------------------------------------------- /swap-validator/tests/utils/test-env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/utils/test-env.ts -------------------------------------------------------------------------------- /swap-validator/tests/utils/transaction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/utils/transaction.ts -------------------------------------------------------------------------------- /swap-validator/tests/utils/wait.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tests/utils/wait.ts -------------------------------------------------------------------------------- /swap-validator/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/tsconfig.json -------------------------------------------------------------------------------- /swap-validator/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/swap-validator/yarn.lock -------------------------------------------------------------------------------- /timelock/.ammanrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/.ammanrc.js -------------------------------------------------------------------------------- /timelock/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/.gitignore -------------------------------------------------------------------------------- /timelock/.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/.prettierignore -------------------------------------------------------------------------------- /timelock/Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/Anchor.toml -------------------------------------------------------------------------------- /timelock/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | members = [ 3 | "programs/*" 4 | ] 5 | -------------------------------------------------------------------------------- /timelock/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/README.md -------------------------------------------------------------------------------- /timelock/client/golang/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/go.mod -------------------------------------------------------------------------------- /timelock/client/golang/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/go.sum -------------------------------------------------------------------------------- /timelock/client/golang/pkg/accounts.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/accounts.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/address.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/constants.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/constants.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/errors.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_activate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_activate.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_burndustwithauthority.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_burndustwithauthority.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_cancellocktimeout.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_cancellocktimeout.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_closeAccounts.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_closeAccounts.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_deactivate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_deactivate.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_initialize.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_initialize.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_revokelockwithauthority.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_revokelockwithauthority.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_revokelockwithtimeout.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_revokelockwithtimeout.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_transferwithauthority.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_transferwithauthority.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/instruction_withdraw.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/instruction_withdraw.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/program.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/program.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/types.go -------------------------------------------------------------------------------- /timelock/client/golang/pkg/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/golang/pkg/utils.go -------------------------------------------------------------------------------- /timelock/client/idl/timelock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/idl/timelock.json -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/accounts/TimeLockAccount.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/accounts/TimeLockAccount.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/accounts/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/accounts/index.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/errors/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/errors/index.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/index.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/activate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/activate.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/burnDustWithAuthority.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/burnDustWithAuthority.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/cancelLockTimeout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/cancelLockTimeout.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/closeAccounts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/closeAccounts.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/deactivate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/deactivate.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/index.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/initialize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/initialize.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/revokeLockWithAuthority.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/revokeLockWithAuthority.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/revokeLockWithTimeout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/revokeLockWithTimeout.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/transferWithAuthority.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/transferWithAuthority.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/instructions/withdraw.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/instructions/withdraw.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/types/DataVersion.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/types/DataVersion.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/types/TimeLockState.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/types/TimeLockState.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/generated/types/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/generated/types/index.js -------------------------------------------------------------------------------- /timelock/client/typescript/dist/timelock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/dist/timelock.js -------------------------------------------------------------------------------- /timelock/client/typescript/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/package-lock.json -------------------------------------------------------------------------------- /timelock/client/typescript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/package.json -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/accounts/TimeLockAccount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/accounts/TimeLockAccount.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/accounts/index.ts: -------------------------------------------------------------------------------- 1 | export * from './TimeLockAccount'; -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/errors/index.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/index.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/activate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/activate.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/burnDustWithAuthority.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/burnDustWithAuthority.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/cancelLockTimeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/cancelLockTimeout.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/closeAccounts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/closeAccounts.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/deactivate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/deactivate.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/index.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/initialize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/initialize.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/revokeLockWithAuthority.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/revokeLockWithAuthority.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/revokeLockWithTimeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/revokeLockWithTimeout.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/transferWithAuthority.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/transferWithAuthority.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/instructions/withdraw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/instructions/withdraw.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/types/DataVersion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/types/DataVersion.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/types/TimeLockState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/types/TimeLockState.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/generated/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/src/generated/types/index.ts -------------------------------------------------------------------------------- /timelock/client/typescript/src/timelock.ts: -------------------------------------------------------------------------------- 1 | // @ts-ignore 2 | export * from './generated'; -------------------------------------------------------------------------------- /timelock/client/typescript/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/tsconfig.build.json -------------------------------------------------------------------------------- /timelock/client/typescript/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/tsconfig.json -------------------------------------------------------------------------------- /timelock/client/typescript/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/client/typescript/yarn.lock -------------------------------------------------------------------------------- /timelock/docs/timelock-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/docs/timelock-banner.png -------------------------------------------------------------------------------- /timelock/docs/timelock-token.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/docs/timelock-token.png -------------------------------------------------------------------------------- /timelock/docs/timelock.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/docs/timelock.drawio -------------------------------------------------------------------------------- /timelock/migrations/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/migrations/deploy.ts -------------------------------------------------------------------------------- /timelock/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/package-lock.json -------------------------------------------------------------------------------- /timelock/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/package.json -------------------------------------------------------------------------------- /timelock/programs/timelock/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/programs/timelock/Cargo.toml -------------------------------------------------------------------------------- /timelock/programs/timelock/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/programs/timelock/Xargo.toml -------------------------------------------------------------------------------- /timelock/programs/timelock/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/programs/timelock/src/context.rs -------------------------------------------------------------------------------- /timelock/programs/timelock/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/programs/timelock/src/error.rs -------------------------------------------------------------------------------- /timelock/programs/timelock/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/programs/timelock/src/lib.rs -------------------------------------------------------------------------------- /timelock/programs/timelock/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/programs/timelock/src/state.rs -------------------------------------------------------------------------------- /timelock/programs/timelock/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/programs/timelock/src/utils.rs -------------------------------------------------------------------------------- /timelock/provider-key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/provider-key.json -------------------------------------------------------------------------------- /timelock/scripts/const.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/scripts/const.js -------------------------------------------------------------------------------- /timelock/scripts/typescript-api-gen.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/scripts/typescript-api-gen.js -------------------------------------------------------------------------------- /timelock/tests/cases/edge-cases.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/cases/edge-cases.ts -------------------------------------------------------------------------------- /timelock/tests/cases/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/cases/env.ts -------------------------------------------------------------------------------- /timelock/tests/cases/happy-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/cases/happy-path.ts -------------------------------------------------------------------------------- /timelock/tests/cases/revoke-with-authority.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/cases/revoke-with-authority.ts -------------------------------------------------------------------------------- /timelock/tests/cases/revoke-with-cancel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/cases/revoke-with-cancel.ts -------------------------------------------------------------------------------- /timelock/tests/cases/revoke-with-timeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/cases/revoke-with-timeout.ts -------------------------------------------------------------------------------- /timelock/tests/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/main.ts -------------------------------------------------------------------------------- /timelock/tests/utils/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/utils/config.ts -------------------------------------------------------------------------------- /timelock/tests/utils/pda.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/utils/pda.ts -------------------------------------------------------------------------------- /timelock/tests/utils/spl-instructions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/utils/spl-instructions.ts -------------------------------------------------------------------------------- /timelock/tests/utils/test-env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/utils/test-env.ts -------------------------------------------------------------------------------- /timelock/tests/utils/timelock-instructions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/utils/timelock-instructions.ts -------------------------------------------------------------------------------- /timelock/tests/utils/transaction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/utils/transaction.ts -------------------------------------------------------------------------------- /timelock/tests/utils/wait.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tests/utils/wait.ts -------------------------------------------------------------------------------- /timelock/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/tsconfig.json -------------------------------------------------------------------------------- /timelock/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-payments/code-program-library/HEAD/timelock/yarn.lock --------------------------------------------------------------------------------