Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export async function erc1155airdrop(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;
const chainId = await getChainIdFromChain(chain);
const contract = await getContract({
Expand All @@ -98,6 +99,7 @@ export async function erc1155airdrop(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});
reply.status(StatusCodes.OK).send({
result: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export async function erc1155burnBatch(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -87,6 +88,7 @@ export async function erc1155burnBatch(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
2 changes: 2 additions & 0 deletions src/server/routes/contract/extensions/erc1155/write/burn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export async function erc1155burn(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -81,6 +82,7 @@ export async function erc1155burn(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export async function erc1155lazyMint(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -87,6 +88,7 @@ export async function erc1155lazyMint(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export async function erc1155mintAdditionalSupplyTo(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -92,6 +93,7 @@ export async function erc1155mintAdditionalSupplyTo(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export async function erc1155mintBatchTo(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -107,6 +108,7 @@ export async function erc1155mintBatchTo(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export async function erc1155SetApprovalForAll(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -87,6 +88,7 @@ export async function erc1155SetApprovalForAll(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export async function erc1155SetBatchClaimConditions(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -118,6 +119,7 @@ export async function erc1155SetBatchClaimConditions(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export async function erc1155SetClaimCondition(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -105,6 +106,7 @@ export async function erc1155SetClaimCondition(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export async function erc1155SignatureMint(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -91,6 +92,7 @@ export async function erc1155SignatureMint(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export async function erc1155UpdateClaimConditions(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -105,6 +106,7 @@ export async function erc1155UpdateClaimConditions(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export async function erc1155UpdateTokenMetadata(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -77,6 +78,7 @@ export async function erc1155UpdateTokenMetadata(fastify: FastifyInstance) {
extension: "erc1155",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export async function erc20burnFrom(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -85,6 +86,7 @@ export async function erc20burnFrom(fastify: FastifyInstance) {
extension: "erc20",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
2 changes: 2 additions & 0 deletions src/server/routes/contract/extensions/erc20/write/burn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export async function erc20burn(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -78,6 +79,7 @@ export async function erc20burn(fastify: FastifyInstance) {
extension: "erc20",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export async function erc20mintBatchTo(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -95,6 +96,7 @@ export async function erc20mintBatchTo(fastify: FastifyInstance) {
extension: "erc20",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export async function erc20SetAlowance(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -87,6 +88,7 @@ export async function erc20SetAlowance(fastify: FastifyInstance) {
extension: "erc20",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export async function erc20SetClaimConditions(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -96,6 +97,7 @@ export async function erc20SetClaimConditions(fastify: FastifyInstance) {
extension: "erc20",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export async function erc20SignatureMint(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -90,6 +91,7 @@ export async function erc20SignatureMint(fastify: FastifyInstance) {
extension: "erc20",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export async function erc20UpdateClaimConditions(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -101,6 +102,7 @@ export async function erc20UpdateClaimConditions(fastify: FastifyInstance) {
extension: "erc20",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
2 changes: 2 additions & 0 deletions src/server/routes/contract/extensions/erc721/write/burn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export async function erc721burn(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -77,6 +78,7 @@ export async function erc721burn(fastify: FastifyInstance) {
extension: "erc721",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export async function erc721lazyMint(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -87,6 +88,7 @@ export async function erc721lazyMint(fastify: FastifyInstance) {
extension: "erc721",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export async function erc721mintBatchTo(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -93,6 +94,7 @@ export async function erc721mintBatchTo(fastify: FastifyInstance) {
extension: "erc721",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export async function erc721SetApprovalForAll(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -85,6 +86,7 @@ export async function erc721SetApprovalForAll(fastify: FastifyInstance) {
extension: "erc721",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export async function erc721SetApprovalForToken(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand All @@ -85,6 +86,7 @@ export async function erc721SetApprovalForToken(fastify: FastifyInstance) {
extension: "erc721",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export async function erc721SetClaimConditions(fastify: FastifyInstance) {
"x-backend-wallet-address": walletAddress,
"x-account-address": accountAddress,
"x-idempotency-key": idempotencyKey,
"x-transaction-mode": transactionMode,
} = request.headers as Static<typeof walletWithAAHeaderSchema>;

const chainId = await getChainIdFromChain(chain);
Expand Down Expand Up @@ -96,6 +97,7 @@ export async function erc721SetClaimConditions(fastify: FastifyInstance) {
extension: "erc721",
idempotencyKey,
txOverrides,
transactionMode,
});

reply.status(StatusCodes.OK).send({
Expand Down
Loading
Loading