├── .envrc ├── .eslintignore ├── .eslintrc.js ├── .github ├── dependabot.yml └── workflows │ ├── nix.yml │ ├── programs.yml │ ├── release.yml │ └── rust.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .mocharc.js ├── .prettierignore ├── .vscode ├── extensions.json └── settings.json ├── .yarn ├── plugins │ └── @yarnpkg │ │ ├── plugin-interactive-tools.cjs │ │ ├── plugin-typescript.cjs │ │ └── plugin-version.cjs ├── releases │ └── yarn-3.1.1.cjs └── sdks │ ├── eslint │ ├── bin │ │ └── eslint.js │ ├── lib │ │ └── api.js │ └── package.json │ ├── integrations.yml │ ├── prettier │ ├── index.js │ └── package.json │ └── typescript │ ├── bin │ ├── tsc │ └── tsserver │ ├── lib │ ├── tsc.js │ ├── tsserver.js │ ├── tsserverlibrary.js │ └── typescript.js │ └── package.json ├── .yarnrc.yml ├── Anchor.toml ├── Captain.toml ├── Cargo.lock ├── Cargo.toml ├── LICENSE.txt ├── README.md ├── ci.nix ├── data └── airdrop-amounts.json ├── flake.lock ├── flake.nix ├── images └── merkle-distributor.png ├── package.json ├── programs └── merkle-distributor │ ├── Cargo.toml │ ├── README.md │ ├── README.tpl │ ├── Xargo.toml │ └── src │ ├── lib.rs │ └── merkle_proof.rs ├── scripts ├── create-distributor.ts ├── generate-distributor-info.ts ├── generate-idl-types.sh └── idl.sh ├── shell.nix ├── src ├── constants.ts ├── index.ts ├── pda.ts ├── sdk.ts ├── types.ts ├── utils │ ├── balance-tree.ts │ ├── bytes32.ts │ ├── index.ts │ ├── merkle-tree.ts │ └── parse-balance-map.ts └── wrapper.ts ├── tests ├── big-tree.spec.ts ├── merkle-distributor.spec.ts ├── parse-balance-map.spec.ts ├── png-merkle-distributor.ts ├── test-key.json └── testutils.ts ├── tsconfig.build.json ├── tsconfig.cjs.json ├── tsconfig.json └── yarn.lock /.envrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.envrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | scripts/ 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/nix.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.github/workflows/nix.yml -------------------------------------------------------------------------------- /.github/workflows/programs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.github/workflows/programs.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | yarn lint-staged 5 | -------------------------------------------------------------------------------- /.mocharc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.mocharc.js -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .yarn/ 2 | 3 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs -------------------------------------------------------------------------------- /.yarn/plugins/@yarnpkg/plugin-typescript.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/plugins/@yarnpkg/plugin-typescript.cjs -------------------------------------------------------------------------------- /.yarn/plugins/@yarnpkg/plugin-version.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/plugins/@yarnpkg/plugin-version.cjs -------------------------------------------------------------------------------- /.yarn/releases/yarn-3.1.1.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/releases/yarn-3.1.1.cjs -------------------------------------------------------------------------------- /.yarn/sdks/eslint/bin/eslint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/eslint/bin/eslint.js -------------------------------------------------------------------------------- /.yarn/sdks/eslint/lib/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/eslint/lib/api.js -------------------------------------------------------------------------------- /.yarn/sdks/eslint/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/eslint/package.json -------------------------------------------------------------------------------- /.yarn/sdks/integrations.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/integrations.yml -------------------------------------------------------------------------------- /.yarn/sdks/prettier/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/prettier/index.js -------------------------------------------------------------------------------- /.yarn/sdks/prettier/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/prettier/package.json -------------------------------------------------------------------------------- /.yarn/sdks/typescript/bin/tsc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/typescript/bin/tsc -------------------------------------------------------------------------------- /.yarn/sdks/typescript/bin/tsserver: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/typescript/bin/tsserver -------------------------------------------------------------------------------- /.yarn/sdks/typescript/lib/tsc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/typescript/lib/tsc.js -------------------------------------------------------------------------------- /.yarn/sdks/typescript/lib/tsserver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/typescript/lib/tsserver.js -------------------------------------------------------------------------------- /.yarn/sdks/typescript/lib/tsserverlibrary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/typescript/lib/tsserverlibrary.js -------------------------------------------------------------------------------- /.yarn/sdks/typescript/lib/typescript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/typescript/lib/typescript.js -------------------------------------------------------------------------------- /.yarn/sdks/typescript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarn/sdks/typescript/package.json -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/Anchor.toml -------------------------------------------------------------------------------- /Captain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/Captain.toml -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/README.md -------------------------------------------------------------------------------- /ci.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/ci.nix -------------------------------------------------------------------------------- /data/airdrop-amounts.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/data/airdrop-amounts.json -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/flake.nix -------------------------------------------------------------------------------- /images/merkle-distributor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/images/merkle-distributor.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/package.json -------------------------------------------------------------------------------- /programs/merkle-distributor/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/programs/merkle-distributor/Cargo.toml -------------------------------------------------------------------------------- /programs/merkle-distributor/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/programs/merkle-distributor/README.md -------------------------------------------------------------------------------- /programs/merkle-distributor/README.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/programs/merkle-distributor/README.tpl -------------------------------------------------------------------------------- /programs/merkle-distributor/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/programs/merkle-distributor/Xargo.toml -------------------------------------------------------------------------------- /programs/merkle-distributor/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/programs/merkle-distributor/src/lib.rs -------------------------------------------------------------------------------- /programs/merkle-distributor/src/merkle_proof.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/programs/merkle-distributor/src/merkle_proof.rs -------------------------------------------------------------------------------- /scripts/create-distributor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/scripts/create-distributor.ts -------------------------------------------------------------------------------- /scripts/generate-distributor-info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/scripts/generate-distributor-info.ts -------------------------------------------------------------------------------- /scripts/generate-idl-types.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/scripts/generate-idl-types.sh -------------------------------------------------------------------------------- /scripts/idl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/scripts/idl.sh -------------------------------------------------------------------------------- /shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/shell.nix -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/pda.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/pda.ts -------------------------------------------------------------------------------- /src/sdk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/sdk.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/balance-tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/utils/balance-tree.ts -------------------------------------------------------------------------------- /src/utils/bytes32.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/utils/bytes32.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/merkle-tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/utils/merkle-tree.ts -------------------------------------------------------------------------------- /src/utils/parse-balance-map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/utils/parse-balance-map.ts -------------------------------------------------------------------------------- /src/wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/src/wrapper.ts -------------------------------------------------------------------------------- /tests/big-tree.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tests/big-tree.spec.ts -------------------------------------------------------------------------------- /tests/merkle-distributor.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tests/merkle-distributor.spec.ts -------------------------------------------------------------------------------- /tests/parse-balance-map.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tests/parse-balance-map.spec.ts -------------------------------------------------------------------------------- /tests/png-merkle-distributor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tests/png-merkle-distributor.ts -------------------------------------------------------------------------------- /tests/test-key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tests/test-key.json -------------------------------------------------------------------------------- /tests/testutils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tests/testutils.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tsconfig.cjs.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngfi/merkle-distributor/HEAD/yarn.lock --------------------------------------------------------------------------------