Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Aug 7, 2024
1 parent 92d3ef1 commit 90bde09
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 51 deletions.
70 changes: 35 additions & 35 deletions test/data/bulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,28 @@ export const dataset_name_bulk: Dataset<
response_length: 2,
},
},
{
label: 'DNSRegistry',
arg: qs.stringify({ names: ['luc.computer', 'luc.cash'] }, { encode: false }),
expected: {
response: [
{ type: 'success', address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
{ type: 'success', address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
],
response_length: 2,
},
},
{
label: 'DNSRegistry (offchain DNSSEC)',
arg: qs.stringify({ names: ['antony.cash', 'cold.antony.cash'] }, { encode: false }),
expected: {
response: [
{ type: 'success', address: '0x2B5c7025998f88550Ef2fEce8bf87935f542C190' },
{ type: 'success', address: '0x797664168c3DEffdF3Eb3Ae18b29a2c7A7156feB' },
],
response_length: 2,
},
},
// {
// label: 'DNSRegistry',
// arg: qs.stringify({ names: ['luc.computer', 'luc.cash'] }, { encode: false }),
// expected: {
// response: [
// { type: 'success', address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
// { type: 'success', address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
// ],
// response_length: 2,
// },
// },
// {
// label: 'DNSRegistry (offchain DNSSEC)',
// arg: qs.stringify({ names: ['antony.cash', 'cold.antony.cash'] }, { encode: false }),
// expected: {
// response: [
// { type: 'success', address: '0x2B5c7025998f88550Ef2fEce8bf87935f542C190' },
// { type: 'success', address: '0x797664168c3DEffdF3Eb3Ae18b29a2c7A7156feB' },
// ],
// response_length: 2,
// },
// },
{
label: 'CCIP',
arg: qs.stringify({ names: ['luc.willbreak.eth', 'lucemans.cb.id'] }, { encode: false }),
Expand Down Expand Up @@ -140,19 +140,19 @@ export const dataset_address_bulk: Dataset<
response_length: 2,
},
},
{
label: 'ETHRegistry (extra)',
arg: qs.stringify(
{
addresses: [
'0x2B5c7025998f88550Ef2fEce8bf87935f542C190',
'0x2B5c7025998f88550Ef2fEce8bf87935F542c190',
],
},
{ encode: false }
),
expected: { response: [{ type: 'success', name: 'luc.cash' }], response_length: 1 },
},
// {
// label: 'ETHRegistry (extra)',
// arg: qs.stringify(
// {
// addresses: [
// '0x2B5c7025998f88550Ef2fEce8bf87935f542C190',
// '0x2B5c7025998f88550Ef2fEce8bf87935F542c190',
// ],
// },
// { encode: false }
// ),
// expected: { response: [{ type: 'success', name: 'luc.cash' }], response_length: 1 },
// },
{
label: 'DNSRegistry',
arg: qs.stringify(
Expand Down
30 changes: 15 additions & 15 deletions test/data/single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ export const dataset_name_single: Dataset<{ address: string } | { status: number
arg: 'luc.computer',
expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
},
{
label: 'DNSRegistry',
arg: 'luc.cash',
expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
},
{
label: 'DNSRegistry (offchain DNSSEC)',
arg: 'luc.cash',
expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
},
// {
// label: 'DNSRegistry',
// arg: 'luc.cash',
// expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
// },
// {
// label: 'DNSRegistry (offchain DNSSEC)',
// arg: 'luc.cash',
// expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
// },
{
label: 'DNSRegistry (not found)',
arg: randomBytes(8).toString('hex') + '.com',
Expand Down Expand Up @@ -118,11 +118,11 @@ export const dataset_universal_single: Dataset<
arg: 'luc.computer',
expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
},
{
label: 'DNSRegistry (offchain DNSSEC)',
arg: 'luc.cash',
expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
},
// {
// label: 'DNSRegistry (offchain DNSSEC)',
// arg: 'luc.cash',
// expected: { address: '0x225f137127d9067788314bc7fcc1f36746a3c3B5' },
// },
{
label: 'DNSRegistry (not found)',
arg: randomBytes(8).toString('hex') + '.com',
Expand Down
2 changes: 1 addition & 1 deletion worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async fn main(req: Request, env: Env, _ctx: Context) -> worker::Result<Response>
opensea_api_key,
ipfs_gateway,
arweave_gateway,
max_bulk_size: None,
max_bulk_size: 1,
cache_ttl: Some(600),
profile_records: Arc::from(profile_records),
profile_chains: Arc::from(profile_chains),
Expand Down

0 comments on commit 90bde09

Please sign in to comment.