diff --git a/.stats.yml b/.stats.yml index bb6a0f27..371120ae 100755 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 19 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-9fc564e9983fc5b76a1807b0f40fe7d17bf2280cc5cc8bf33725a566268663c7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-afd7650fff0657b156f89de7dfc8bab51082063f79392c1241486fe77e1deb14.yml diff --git a/tests/api-resources/starknet/transaction.test.ts b/tests/api-resources/starknet/transaction.test.ts index 6742deac..a851cd64 100755 --- a/tests/api-resources/starknet/transaction.test.ts +++ b/tests/api-resources/starknet/transaction.test.ts @@ -11,10 +11,30 @@ const client = new Blockaid({ describe('resource transaction', () => { test('scan: only required params', async () => { const responsePromise = client.starknet.transaction.scan({ - account_address: 'account_address', + account_address: '0x62a2959fa6502b30cbfb51199fbbe72e72ee4f5a86ec754b4172c7d7beb6ff4', chain: 'mainnet', - metadata: { type: 'wallet', url: 'url' }, - transaction: { max_fee: 'max_fee', nonce: 'nonce', sender_address: 'sender_address', version: 1 }, + metadata: { type: 'wallet', url: 'giftnostra.com' }, + transaction: { + calldata: [ + '0x1', + '0x4b33a775b537a39c8960120806e815764f173e4fa76546e6706c31aa1b0ac4a', + '0x994f23fef04108984d50a4f870723cd46f95d592ed3de9a13f97d5c55846fb', + '0x9', + '0x1', + '0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8', + '0x1', + '0x62a2959fa6502b30cbfb51199fbbe72e72ee4f5a86ec754b4172c7d7beb6ff4', + '0x1', + '0x5f612ce', + '0x0', + '0x0', + '0x0', + ], + chain_id: '0x534e5f4d41494e', + nonce: '0xc', + sender_address: '0x1840b3c89a446c74a3962647a2a7fb449d83905c4511027dfa9e099c6886691', + version: 3, + }, }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -27,18 +47,35 @@ describe('resource transaction', () => { test('scan: required and optional params', async () => { const response = await client.starknet.transaction.scan({ - account_address: 'account_address', + account_address: '0x62a2959fa6502b30cbfb51199fbbe72e72ee4f5a86ec754b4172c7d7beb6ff4', chain: 'mainnet', - metadata: { type: 'wallet', url: 'url' }, + metadata: { type: 'wallet', url: 'giftnostra.com' }, transaction: { - max_fee: 'max_fee', - nonce: 'nonce', - sender_address: 'sender_address', - version: 1, - calldata: ['string', 'string', 'string'], + calldata: [ + '0x1', + '0x4b33a775b537a39c8960120806e815764f173e4fa76546e6706c31aa1b0ac4a', + '0x994f23fef04108984d50a4f870723cd46f95d592ed3de9a13f97d5c55846fb', + '0x9', + '0x1', + '0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8', + '0x1', + '0x62a2959fa6502b30cbfb51199fbbe72e72ee4f5a86ec754b4172c7d7beb6ff4', + '0x1', + '0x5f612ce', + '0x0', + '0x0', + '0x0', + ], + chain_id: '0x534e5f4d41494e', + nonce: '0xc', + sender_address: '0x1840b3c89a446c74a3962647a2a7fb449d83905c4511027dfa9e099c6886691', + version: 3, + account_deployment_data: ['string', 'string', 'string'], + nonce_data_availability_mode: 0, + paymaster_data: ['string', 'string', 'string'], }, - block_number: 'block_number', - options: ['validation'], + block_number: '0xa12e3', + options: ['validation', 'simulation'], }); }); });