@ensnode/datasources 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/devnet/index.d.ts +181 -0
- package/dist/devnet/index.js +110 -0
- package/dist/devnet/index.js.map +1 -0
- package/dist/index.d.ts +3601 -499
- package/dist/index.js +775 -19
- package/dist/index.js.map +1 -1
- package/package.json +14 -7
package/dist/index.js
CHANGED
|
@@ -3152,6 +3152,649 @@ var Registry = [
|
|
|
3152
3152
|
}
|
|
3153
3153
|
];
|
|
3154
3154
|
|
|
3155
|
+
// src/abis/root/L2ReverseRegistrar.ts
|
|
3156
|
+
var L2ReverseRegistrar = [
|
|
3157
|
+
{
|
|
3158
|
+
type: "constructor",
|
|
3159
|
+
inputs: [
|
|
3160
|
+
{
|
|
3161
|
+
name: "chainId",
|
|
3162
|
+
type: "uint256",
|
|
3163
|
+
internalType: "uint256"
|
|
3164
|
+
},
|
|
3165
|
+
{
|
|
3166
|
+
name: "label",
|
|
3167
|
+
type: "string",
|
|
3168
|
+
internalType: "string"
|
|
3169
|
+
}
|
|
3170
|
+
],
|
|
3171
|
+
stateMutability: "nonpayable"
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
type: "function",
|
|
3175
|
+
name: "CHAIN_ID",
|
|
3176
|
+
inputs: [],
|
|
3177
|
+
outputs: [
|
|
3178
|
+
{
|
|
3179
|
+
name: "",
|
|
3180
|
+
type: "uint256",
|
|
3181
|
+
internalType: "uint256"
|
|
3182
|
+
}
|
|
3183
|
+
],
|
|
3184
|
+
stateMutability: "view"
|
|
3185
|
+
},
|
|
3186
|
+
{
|
|
3187
|
+
type: "function",
|
|
3188
|
+
name: "PARENT_NODE",
|
|
3189
|
+
inputs: [],
|
|
3190
|
+
outputs: [
|
|
3191
|
+
{
|
|
3192
|
+
name: "",
|
|
3193
|
+
type: "bytes32",
|
|
3194
|
+
internalType: "bytes32"
|
|
3195
|
+
}
|
|
3196
|
+
],
|
|
3197
|
+
stateMutability: "view"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
type: "function",
|
|
3201
|
+
name: "inceptionOf",
|
|
3202
|
+
inputs: [
|
|
3203
|
+
{
|
|
3204
|
+
name: "addr",
|
|
3205
|
+
type: "address",
|
|
3206
|
+
internalType: "address"
|
|
3207
|
+
}
|
|
3208
|
+
],
|
|
3209
|
+
outputs: [
|
|
3210
|
+
{
|
|
3211
|
+
name: "inception",
|
|
3212
|
+
type: "uint256",
|
|
3213
|
+
internalType: "uint256"
|
|
3214
|
+
}
|
|
3215
|
+
],
|
|
3216
|
+
stateMutability: "view"
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
type: "function",
|
|
3220
|
+
name: "name",
|
|
3221
|
+
inputs: [
|
|
3222
|
+
{
|
|
3223
|
+
name: "node",
|
|
3224
|
+
type: "bytes32",
|
|
3225
|
+
internalType: "bytes32"
|
|
3226
|
+
}
|
|
3227
|
+
],
|
|
3228
|
+
outputs: [
|
|
3229
|
+
{
|
|
3230
|
+
name: "",
|
|
3231
|
+
type: "string",
|
|
3232
|
+
internalType: "string"
|
|
3233
|
+
}
|
|
3234
|
+
],
|
|
3235
|
+
stateMutability: "view"
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
type: "function",
|
|
3239
|
+
name: "nameForAddr",
|
|
3240
|
+
inputs: [
|
|
3241
|
+
{
|
|
3242
|
+
name: "addr",
|
|
3243
|
+
type: "address",
|
|
3244
|
+
internalType: "address"
|
|
3245
|
+
}
|
|
3246
|
+
],
|
|
3247
|
+
outputs: [
|
|
3248
|
+
{
|
|
3249
|
+
name: "",
|
|
3250
|
+
type: "string",
|
|
3251
|
+
internalType: "string"
|
|
3252
|
+
}
|
|
3253
|
+
],
|
|
3254
|
+
stateMutability: "view"
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
type: "function",
|
|
3258
|
+
name: "resolve",
|
|
3259
|
+
inputs: [
|
|
3260
|
+
{
|
|
3261
|
+
name: "name_",
|
|
3262
|
+
type: "bytes",
|
|
3263
|
+
internalType: "bytes"
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
name: "data",
|
|
3267
|
+
type: "bytes",
|
|
3268
|
+
internalType: "bytes"
|
|
3269
|
+
}
|
|
3270
|
+
],
|
|
3271
|
+
outputs: [
|
|
3272
|
+
{
|
|
3273
|
+
name: "",
|
|
3274
|
+
type: "bytes",
|
|
3275
|
+
internalType: "bytes"
|
|
3276
|
+
}
|
|
3277
|
+
],
|
|
3278
|
+
stateMutability: "view"
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
type: "function",
|
|
3282
|
+
name: "setName",
|
|
3283
|
+
inputs: [
|
|
3284
|
+
{
|
|
3285
|
+
name: "name",
|
|
3286
|
+
type: "string",
|
|
3287
|
+
internalType: "string"
|
|
3288
|
+
}
|
|
3289
|
+
],
|
|
3290
|
+
outputs: [],
|
|
3291
|
+
stateMutability: "nonpayable"
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
type: "function",
|
|
3295
|
+
name: "setNameForAddr",
|
|
3296
|
+
inputs: [
|
|
3297
|
+
{
|
|
3298
|
+
name: "addr",
|
|
3299
|
+
type: "address",
|
|
3300
|
+
internalType: "address"
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
name: "name",
|
|
3304
|
+
type: "string",
|
|
3305
|
+
internalType: "string"
|
|
3306
|
+
}
|
|
3307
|
+
],
|
|
3308
|
+
outputs: [],
|
|
3309
|
+
stateMutability: "nonpayable"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
type: "function",
|
|
3313
|
+
name: "setNameForAddrWithSignature",
|
|
3314
|
+
inputs: [
|
|
3315
|
+
{
|
|
3316
|
+
name: "claim",
|
|
3317
|
+
type: "tuple",
|
|
3318
|
+
internalType: "struct IL2ReverseRegistrar.NameClaim",
|
|
3319
|
+
components: [
|
|
3320
|
+
{
|
|
3321
|
+
name: "name",
|
|
3322
|
+
type: "string",
|
|
3323
|
+
internalType: "string"
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
name: "addr",
|
|
3327
|
+
type: "address",
|
|
3328
|
+
internalType: "address"
|
|
3329
|
+
},
|
|
3330
|
+
{
|
|
3331
|
+
name: "chainIds",
|
|
3332
|
+
type: "uint256[]",
|
|
3333
|
+
internalType: "uint256[]"
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
name: "signedAt",
|
|
3337
|
+
type: "uint256",
|
|
3338
|
+
internalType: "uint256"
|
|
3339
|
+
}
|
|
3340
|
+
]
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
name: "signature",
|
|
3344
|
+
type: "bytes",
|
|
3345
|
+
internalType: "bytes"
|
|
3346
|
+
}
|
|
3347
|
+
],
|
|
3348
|
+
outputs: [],
|
|
3349
|
+
stateMutability: "nonpayable"
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
type: "function",
|
|
3353
|
+
name: "setNameForOwnableWithSignature",
|
|
3354
|
+
inputs: [
|
|
3355
|
+
{
|
|
3356
|
+
name: "claim",
|
|
3357
|
+
type: "tuple",
|
|
3358
|
+
internalType: "struct IL2ReverseRegistrar.NameClaim",
|
|
3359
|
+
components: [
|
|
3360
|
+
{
|
|
3361
|
+
name: "name",
|
|
3362
|
+
type: "string",
|
|
3363
|
+
internalType: "string"
|
|
3364
|
+
},
|
|
3365
|
+
{
|
|
3366
|
+
name: "addr",
|
|
3367
|
+
type: "address",
|
|
3368
|
+
internalType: "address"
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
name: "chainIds",
|
|
3372
|
+
type: "uint256[]",
|
|
3373
|
+
internalType: "uint256[]"
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
name: "signedAt",
|
|
3377
|
+
type: "uint256",
|
|
3378
|
+
internalType: "uint256"
|
|
3379
|
+
}
|
|
3380
|
+
]
|
|
3381
|
+
},
|
|
3382
|
+
{
|
|
3383
|
+
name: "owner",
|
|
3384
|
+
type: "address",
|
|
3385
|
+
internalType: "address"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
name: "signature",
|
|
3389
|
+
type: "bytes",
|
|
3390
|
+
internalType: "bytes"
|
|
3391
|
+
}
|
|
3392
|
+
],
|
|
3393
|
+
outputs: [],
|
|
3394
|
+
stateMutability: "nonpayable"
|
|
3395
|
+
},
|
|
3396
|
+
{
|
|
3397
|
+
type: "function",
|
|
3398
|
+
name: "supportsInterface",
|
|
3399
|
+
inputs: [
|
|
3400
|
+
{
|
|
3401
|
+
name: "interfaceID",
|
|
3402
|
+
type: "bytes4",
|
|
3403
|
+
internalType: "bytes4"
|
|
3404
|
+
}
|
|
3405
|
+
],
|
|
3406
|
+
outputs: [
|
|
3407
|
+
{
|
|
3408
|
+
name: "",
|
|
3409
|
+
type: "bool",
|
|
3410
|
+
internalType: "bool"
|
|
3411
|
+
}
|
|
3412
|
+
],
|
|
3413
|
+
stateMutability: "view"
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
type: "function",
|
|
3417
|
+
name: "syncName",
|
|
3418
|
+
inputs: [
|
|
3419
|
+
{
|
|
3420
|
+
name: "addr",
|
|
3421
|
+
type: "address",
|
|
3422
|
+
internalType: "address"
|
|
3423
|
+
}
|
|
3424
|
+
],
|
|
3425
|
+
outputs: [],
|
|
3426
|
+
stateMutability: "nonpayable"
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
type: "event",
|
|
3430
|
+
name: "ExpiryUpdated",
|
|
3431
|
+
inputs: [
|
|
3432
|
+
{
|
|
3433
|
+
name: "tokenId",
|
|
3434
|
+
type: "uint256",
|
|
3435
|
+
indexed: true,
|
|
3436
|
+
internalType: "uint256"
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
name: "newExpiry",
|
|
3440
|
+
type: "uint64",
|
|
3441
|
+
indexed: true,
|
|
3442
|
+
internalType: "uint64"
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
name: "sender",
|
|
3446
|
+
type: "address",
|
|
3447
|
+
indexed: true,
|
|
3448
|
+
internalType: "address"
|
|
3449
|
+
}
|
|
3450
|
+
],
|
|
3451
|
+
anonymous: false
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
type: "event",
|
|
3455
|
+
name: "LabelRegistered",
|
|
3456
|
+
inputs: [
|
|
3457
|
+
{
|
|
3458
|
+
name: "tokenId",
|
|
3459
|
+
type: "uint256",
|
|
3460
|
+
indexed: true,
|
|
3461
|
+
internalType: "uint256"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
name: "labelHash",
|
|
3465
|
+
type: "bytes32",
|
|
3466
|
+
indexed: true,
|
|
3467
|
+
internalType: "bytes32"
|
|
3468
|
+
},
|
|
3469
|
+
{
|
|
3470
|
+
name: "label",
|
|
3471
|
+
type: "string",
|
|
3472
|
+
indexed: false,
|
|
3473
|
+
internalType: "string"
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
name: "owner",
|
|
3477
|
+
type: "address",
|
|
3478
|
+
indexed: false,
|
|
3479
|
+
internalType: "address"
|
|
3480
|
+
},
|
|
3481
|
+
{
|
|
3482
|
+
name: "expiry",
|
|
3483
|
+
type: "uint64",
|
|
3484
|
+
indexed: false,
|
|
3485
|
+
internalType: "uint64"
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
name: "sender",
|
|
3489
|
+
type: "address",
|
|
3490
|
+
indexed: true,
|
|
3491
|
+
internalType: "address"
|
|
3492
|
+
}
|
|
3493
|
+
],
|
|
3494
|
+
anonymous: false
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
type: "event",
|
|
3498
|
+
name: "LabelReserved",
|
|
3499
|
+
inputs: [
|
|
3500
|
+
{
|
|
3501
|
+
name: "tokenId",
|
|
3502
|
+
type: "uint256",
|
|
3503
|
+
indexed: true,
|
|
3504
|
+
internalType: "uint256"
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
name: "labelHash",
|
|
3508
|
+
type: "bytes32",
|
|
3509
|
+
indexed: true,
|
|
3510
|
+
internalType: "bytes32"
|
|
3511
|
+
},
|
|
3512
|
+
{
|
|
3513
|
+
name: "label",
|
|
3514
|
+
type: "string",
|
|
3515
|
+
indexed: false,
|
|
3516
|
+
internalType: "string"
|
|
3517
|
+
},
|
|
3518
|
+
{
|
|
3519
|
+
name: "expiry",
|
|
3520
|
+
type: "uint64",
|
|
3521
|
+
indexed: false,
|
|
3522
|
+
internalType: "uint64"
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
name: "sender",
|
|
3526
|
+
type: "address",
|
|
3527
|
+
indexed: true,
|
|
3528
|
+
internalType: "address"
|
|
3529
|
+
}
|
|
3530
|
+
],
|
|
3531
|
+
anonymous: false
|
|
3532
|
+
},
|
|
3533
|
+
{
|
|
3534
|
+
type: "event",
|
|
3535
|
+
name: "LabelUnregistered",
|
|
3536
|
+
inputs: [
|
|
3537
|
+
{
|
|
3538
|
+
name: "tokenId",
|
|
3539
|
+
type: "uint256",
|
|
3540
|
+
indexed: true,
|
|
3541
|
+
internalType: "uint256"
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
name: "sender",
|
|
3545
|
+
type: "address",
|
|
3546
|
+
indexed: true,
|
|
3547
|
+
internalType: "address"
|
|
3548
|
+
}
|
|
3549
|
+
],
|
|
3550
|
+
anonymous: false
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
type: "event",
|
|
3554
|
+
name: "NameChanged",
|
|
3555
|
+
inputs: [
|
|
3556
|
+
{
|
|
3557
|
+
name: "node",
|
|
3558
|
+
type: "bytes32",
|
|
3559
|
+
indexed: true,
|
|
3560
|
+
internalType: "bytes32"
|
|
3561
|
+
},
|
|
3562
|
+
{
|
|
3563
|
+
name: "name",
|
|
3564
|
+
type: "string",
|
|
3565
|
+
indexed: false,
|
|
3566
|
+
internalType: "string"
|
|
3567
|
+
}
|
|
3568
|
+
],
|
|
3569
|
+
anonymous: false
|
|
3570
|
+
},
|
|
3571
|
+
{
|
|
3572
|
+
type: "event",
|
|
3573
|
+
name: "NameForAddrChanged",
|
|
3574
|
+
inputs: [
|
|
3575
|
+
{
|
|
3576
|
+
name: "addr",
|
|
3577
|
+
type: "address",
|
|
3578
|
+
indexed: true,
|
|
3579
|
+
internalType: "address"
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
name: "name",
|
|
3583
|
+
type: "string",
|
|
3584
|
+
indexed: false,
|
|
3585
|
+
internalType: "string"
|
|
3586
|
+
}
|
|
3587
|
+
],
|
|
3588
|
+
anonymous: false
|
|
3589
|
+
},
|
|
3590
|
+
{
|
|
3591
|
+
type: "event",
|
|
3592
|
+
name: "ParentUpdated",
|
|
3593
|
+
inputs: [
|
|
3594
|
+
{
|
|
3595
|
+
name: "parent",
|
|
3596
|
+
type: "address",
|
|
3597
|
+
indexed: true,
|
|
3598
|
+
internalType: "contract IRegistry"
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
name: "label",
|
|
3602
|
+
type: "string",
|
|
3603
|
+
indexed: false,
|
|
3604
|
+
internalType: "string"
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
name: "sender",
|
|
3608
|
+
type: "address",
|
|
3609
|
+
indexed: true,
|
|
3610
|
+
internalType: "address"
|
|
3611
|
+
}
|
|
3612
|
+
],
|
|
3613
|
+
anonymous: false
|
|
3614
|
+
},
|
|
3615
|
+
{
|
|
3616
|
+
type: "event",
|
|
3617
|
+
name: "ResolverUpdated",
|
|
3618
|
+
inputs: [
|
|
3619
|
+
{
|
|
3620
|
+
name: "tokenId",
|
|
3621
|
+
type: "uint256",
|
|
3622
|
+
indexed: true,
|
|
3623
|
+
internalType: "uint256"
|
|
3624
|
+
},
|
|
3625
|
+
{
|
|
3626
|
+
name: "resolver",
|
|
3627
|
+
type: "address",
|
|
3628
|
+
indexed: true,
|
|
3629
|
+
internalType: "address"
|
|
3630
|
+
},
|
|
3631
|
+
{
|
|
3632
|
+
name: "sender",
|
|
3633
|
+
type: "address",
|
|
3634
|
+
indexed: true,
|
|
3635
|
+
internalType: "address"
|
|
3636
|
+
}
|
|
3637
|
+
],
|
|
3638
|
+
anonymous: false
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
type: "event",
|
|
3642
|
+
name: "SubregistryUpdated",
|
|
3643
|
+
inputs: [
|
|
3644
|
+
{
|
|
3645
|
+
name: "tokenId",
|
|
3646
|
+
type: "uint256",
|
|
3647
|
+
indexed: true,
|
|
3648
|
+
internalType: "uint256"
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
name: "subregistry",
|
|
3652
|
+
type: "address",
|
|
3653
|
+
indexed: true,
|
|
3654
|
+
internalType: "contract IRegistry"
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
name: "sender",
|
|
3658
|
+
type: "address",
|
|
3659
|
+
indexed: true,
|
|
3660
|
+
internalType: "address"
|
|
3661
|
+
}
|
|
3662
|
+
],
|
|
3663
|
+
anonymous: false
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
type: "event",
|
|
3667
|
+
name: "TokenRegenerated",
|
|
3668
|
+
inputs: [
|
|
3669
|
+
{
|
|
3670
|
+
name: "oldTokenId",
|
|
3671
|
+
type: "uint256",
|
|
3672
|
+
indexed: true,
|
|
3673
|
+
internalType: "uint256"
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
name: "newTokenId",
|
|
3677
|
+
type: "uint256",
|
|
3678
|
+
indexed: true,
|
|
3679
|
+
internalType: "uint256"
|
|
3680
|
+
}
|
|
3681
|
+
],
|
|
3682
|
+
anonymous: false
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
type: "error",
|
|
3686
|
+
name: "ChainIdsNotAscending",
|
|
3687
|
+
inputs: []
|
|
3688
|
+
},
|
|
3689
|
+
{
|
|
3690
|
+
type: "error",
|
|
3691
|
+
name: "CurrentChainNotFound",
|
|
3692
|
+
inputs: [
|
|
3693
|
+
{
|
|
3694
|
+
name: "chainId",
|
|
3695
|
+
type: "uint256",
|
|
3696
|
+
internalType: "uint256"
|
|
3697
|
+
}
|
|
3698
|
+
]
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
type: "error",
|
|
3702
|
+
name: "InvalidSignature",
|
|
3703
|
+
inputs: []
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
type: "error",
|
|
3707
|
+
name: "LabelIsEmpty",
|
|
3708
|
+
inputs: []
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
type: "error",
|
|
3712
|
+
name: "LabelIsTooLong",
|
|
3713
|
+
inputs: [
|
|
3714
|
+
{
|
|
3715
|
+
name: "label",
|
|
3716
|
+
type: "string",
|
|
3717
|
+
internalType: "string"
|
|
3718
|
+
}
|
|
3719
|
+
]
|
|
3720
|
+
},
|
|
3721
|
+
{
|
|
3722
|
+
type: "error",
|
|
3723
|
+
name: "NotOwnerOfContract",
|
|
3724
|
+
inputs: []
|
|
3725
|
+
},
|
|
3726
|
+
{
|
|
3727
|
+
type: "error",
|
|
3728
|
+
name: "SignatureNotValidYet",
|
|
3729
|
+
inputs: [
|
|
3730
|
+
{
|
|
3731
|
+
name: "signedAt",
|
|
3732
|
+
type: "uint256",
|
|
3733
|
+
internalType: "uint256"
|
|
3734
|
+
},
|
|
3735
|
+
{
|
|
3736
|
+
name: "currentTime",
|
|
3737
|
+
type: "uint256",
|
|
3738
|
+
internalType: "uint256"
|
|
3739
|
+
}
|
|
3740
|
+
]
|
|
3741
|
+
},
|
|
3742
|
+
{
|
|
3743
|
+
type: "error",
|
|
3744
|
+
name: "StaleSignature",
|
|
3745
|
+
inputs: [
|
|
3746
|
+
{
|
|
3747
|
+
name: "signedAt",
|
|
3748
|
+
type: "uint256",
|
|
3749
|
+
internalType: "uint256"
|
|
3750
|
+
},
|
|
3751
|
+
{
|
|
3752
|
+
name: "inception",
|
|
3753
|
+
type: "uint256",
|
|
3754
|
+
internalType: "uint256"
|
|
3755
|
+
}
|
|
3756
|
+
]
|
|
3757
|
+
},
|
|
3758
|
+
{
|
|
3759
|
+
type: "error",
|
|
3760
|
+
name: "TimestampOutOfRange",
|
|
3761
|
+
inputs: [
|
|
3762
|
+
{
|
|
3763
|
+
name: "timestamp",
|
|
3764
|
+
type: "uint256",
|
|
3765
|
+
internalType: "uint256"
|
|
3766
|
+
}
|
|
3767
|
+
]
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
type: "error",
|
|
3771
|
+
name: "Unauthorized",
|
|
3772
|
+
inputs: []
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
type: "error",
|
|
3776
|
+
name: "UnreachableName",
|
|
3777
|
+
inputs: [
|
|
3778
|
+
{
|
|
3779
|
+
name: "name",
|
|
3780
|
+
type: "bytes",
|
|
3781
|
+
internalType: "bytes"
|
|
3782
|
+
}
|
|
3783
|
+
]
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
type: "error",
|
|
3787
|
+
name: "UnsupportedResolverProfile",
|
|
3788
|
+
inputs: [
|
|
3789
|
+
{
|
|
3790
|
+
name: "selector",
|
|
3791
|
+
type: "bytes4",
|
|
3792
|
+
internalType: "bytes4"
|
|
3793
|
+
}
|
|
3794
|
+
]
|
|
3795
|
+
}
|
|
3796
|
+
];
|
|
3797
|
+
|
|
3155
3798
|
// src/abis/shared/StandaloneReverseRegistrar.ts
|
|
3156
3799
|
var StandaloneReverseRegistrar = [
|
|
3157
3800
|
{
|
|
@@ -10557,8 +11200,6 @@ var AnyRegistrarControllerABI = mergeAbis3([
|
|
|
10557
11200
|
import { anvil, sepolia } from "viem/chains";
|
|
10558
11201
|
var ensTestEnvChain = {
|
|
10559
11202
|
...anvil,
|
|
10560
|
-
// NOTE: devnet uses anvil's default chain id of 31337, but we over-specify it here for documentation
|
|
10561
|
-
// https://github.com/ensdomains/contracts-v2/blob/580c60a20e80decce21cf15aafd762f96a96d544/contracts/script/setup.ts#L55
|
|
10562
11203
|
id: 31337,
|
|
10563
11204
|
name: "ens-test-env"
|
|
10564
11205
|
};
|
|
@@ -14524,6 +15165,110 @@ var Registry2 = [
|
|
|
14524
15165
|
}
|
|
14525
15166
|
];
|
|
14526
15167
|
|
|
15168
|
+
// src/devnet/constants.ts
|
|
15169
|
+
import { asNormalizedAddress, toNormalizedAddress } from "enssdk";
|
|
15170
|
+
import { mnemonicToAccount } from "viem/accounts";
|
|
15171
|
+
var contracts = {
|
|
15172
|
+
// -- DNS --
|
|
15173
|
+
DNSSECGatewayProvider: "0x5fbdb2315678afecb367f032d93f642f64180aa3",
|
|
15174
|
+
DNSTXTResolver: "0xe7f1725e7734ce288f8367e1bb143e90bb3f0512",
|
|
15175
|
+
DNSAliasResolver: "0x322813fd9a801c5507c9de605d63cea4f2ce6c44",
|
|
15176
|
+
DNSTLDResolver: "0x998abeb3e57409262ae5b751f60747921b33613e",
|
|
15177
|
+
OffchainDNSResolver: "0x851356ae760d987e095750cceb3bc6014560891c",
|
|
15178
|
+
SimplePublicSuffixList: "0xf5059a5d33d5853360d16c683c16e67980206f36",
|
|
15179
|
+
DNSRegistrar: "0xf4b146fba71f41e0592668ffbf264f1d186b2ca8",
|
|
15180
|
+
ExtendedDNSResolver: "0x86a2ee8faf9a840f7a2c64ca3d51209f9a02081d",
|
|
15181
|
+
// -- Registries --
|
|
15182
|
+
LegacyENSRegistry: "0x9fe46736679d2d9a65f0992f2272de9f3c7fa6e0",
|
|
15183
|
+
ENSRegistry: "0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9",
|
|
15184
|
+
RootRegistry: "0x2279b7a0a67db372996a5fab50d91eaa73d2ebe6",
|
|
15185
|
+
ETHRegistry: "0x8f86403a4de0bb5791fa46b8e795c547942fe4cf",
|
|
15186
|
+
ReverseRegistry: "0xcd8a1c3ba11cf5ecfa6267617243239504a98d90",
|
|
15187
|
+
// -- Registrars & Controllers --
|
|
15188
|
+
BaseRegistrarImplementation: "0x8a791620dd6260079bf849dc5567adc3f2fdc318",
|
|
15189
|
+
ETHRegistrar: "0x21df544947ba3e8b3c32561399e88b52dc8b2823",
|
|
15190
|
+
LegacyETHRegistrarController: "0x46b142dd1e924fab83ecc3c08e4d46e82f005e0e",
|
|
15191
|
+
WrappedETHRegistrarController: "0x253553366da8546fc250f225fe3d25d0c782303b",
|
|
15192
|
+
ETHRegistrarController: "0x367761085bf3c12e5da2df99ac6e1a824612b8fb",
|
|
15193
|
+
BatchRegistrar: "0xdc11f7e700a4c898ae5caddb1082cffa76512add",
|
|
15194
|
+
// -- Reverse Resolution --
|
|
15195
|
+
ETHReverseRegistrar: "0x59b670e9fa9d0a427751af201d676719a970857b",
|
|
15196
|
+
DefaultReverseRegistrar: "0x4c5859f0f772848b2d91f1d83e2fe57935348029",
|
|
15197
|
+
DefaultReverseResolver: "0x5f3f1dbd7b74c6b46e8c44f98792a1daf8d69154",
|
|
15198
|
+
ETHReverseResolver: "0x7bc06c482dead17c0e297afbc32f6e63d3846650",
|
|
15199
|
+
ReverseRegistrar: "0x162a433068f51e18b7d13932f27e66a3f99e6890",
|
|
15200
|
+
L2ReverseRegistrar: "0x4631bcabd6df18d94796344963cb60d44a4136b6",
|
|
15201
|
+
// -- Resolvers --
|
|
15202
|
+
ENSV1Resolver: "0x5fc8d32690cc91d4c39d9d3abcbd16989f875707",
|
|
15203
|
+
ENSV2Resolver: "0xc6e7df5e7b4f2a278906862b61205850344d4e7d",
|
|
15204
|
+
OwnedResolver: "0x68b1d87f95878fe05b998f19b66f4baba5de1aed",
|
|
15205
|
+
PermissionedResolver: "0x5ea90acf6555276660760fe629d72932c91f4b8e",
|
|
15206
|
+
LegacyPublicResolver: "0xa4899d35897033b927acfcf422bc745916139776",
|
|
15207
|
+
PublicResolver: "0xf953b3a269d80e3eb0f2947630da976b896a8c5b",
|
|
15208
|
+
PermissionedResolverImpl: "0x809d550fca64d94bd9f66e60752a544199cfac3d",
|
|
15209
|
+
UniversalResolver: "0xaa292e8611adf267e563f334ee42320ac96d0463",
|
|
15210
|
+
UniversalResolverV2: "0x0355b7b8cb128fa5692729ab3aaa199c1753f726",
|
|
15211
|
+
UpgradableUniversalResolverProxy: "0x202cce504e04bed6fc0521238ddf04bc9e8e15ab",
|
|
15212
|
+
// -- Infrastructure --
|
|
15213
|
+
BatchGatewayProvider: "0xdc64a140aa3e981100a9beca4e685f962f0cf6c9",
|
|
15214
|
+
HCAFactory: "0x0165878a594ca255338adfa4d48449f69242eb8f",
|
|
15215
|
+
SimpleRegistryMetadata: "0xa513e6e4b8f2a923d98304ec87f64353c4d5c853",
|
|
15216
|
+
Root: "0x610178da211fef7d417bc0e6fed39f05609ad788",
|
|
15217
|
+
RootSecurityController: "0xb7f8bc63bbcad18155201308c8f3540b07f84f5e",
|
|
15218
|
+
RegistrarSecurityController: "0x0b306bf915c4d645ff596e518faf3f9669b97016",
|
|
15219
|
+
VerifiableFactory: "0x4ed7c70f96b99c776995fb64377f0d4ab3b0e1c1",
|
|
15220
|
+
NameWrapper: "0x5081a39b8a5f0e35a8d959395a630b68b74dd30f",
|
|
15221
|
+
UnlockedMigrationController: "0xdbc43ba45381e02825b14322cddd15ec4b3164e6",
|
|
15222
|
+
WrapperRegistry: "0xd8a5a9b31c3c0232e196d518e89fd8bf83acad43",
|
|
15223
|
+
LockedMigrationController: "0x36b58f5c1969b7b6591d752ea6f5486d069010ab",
|
|
15224
|
+
UserRegistryImpl: "0x7969c5ed335650692bc04293b07f5bf2e7a673c0",
|
|
15225
|
+
StaticMetadataService: "0xb0d4afd8879ed9f52b28595d31b441d079b2ca07",
|
|
15226
|
+
Multicall3: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
15227
|
+
MigrationHelper: "0x5c74c94173f05da1720953407cbb920f3df9f887",
|
|
15228
|
+
// -- DNSSEC Algorithms & Digests --
|
|
15229
|
+
RSASHA1Algorithm: "0xa85233c63b9ee964add6f2cffe00fd84eb32338f",
|
|
15230
|
+
RSASHA256Algorithm: "0x4a679253410272dd5232b3ff7cf5dbb88f295319",
|
|
15231
|
+
P256SHA256Algorithm: "0x7a2088a1bfc9d81c55368ae168c2c02570cb814f",
|
|
15232
|
+
SHA1Digest: "0x09635f643e140090a9a8dcd712ed6285858cebef",
|
|
15233
|
+
SHA256Digest: "0xc5a5c42992decbae36851359345fe25997f5c42d",
|
|
15234
|
+
DNSSECImpl: "0x67d269191c92caf3cd7723f116c85e6e9bf55933",
|
|
15235
|
+
// -- Pricing --
|
|
15236
|
+
StandardRentPriceOracle: "0x1429859428c0abc9c2c47c8ee9fbaf82cfa0f20f",
|
|
15237
|
+
StaticBulkRenewal: "0x7a9ec1d04904907de0ed7b6839ccdd59c3716ac9",
|
|
15238
|
+
DummyOracle: "0x2b0d36facd61b71cc05ab8f3d2355ec3631c0dd5",
|
|
15239
|
+
ExponentialPremiumPriceOracle: "0xfbc22278a96299d91d41c453234d97b4f5eb9b2d",
|
|
15240
|
+
// -- Mock Tokens --
|
|
15241
|
+
MockUSDC: "0xfd471836031dc5108809d173a067e8486b9047a3",
|
|
15242
|
+
MockDAI: "0xcbeaf3bde82155f56486fb5a1072cb8baaf547cc"
|
|
15243
|
+
};
|
|
15244
|
+
var mnemonic = "test test test test test test test test test test test junk";
|
|
15245
|
+
function createAccount(addressIndex, resolver) {
|
|
15246
|
+
const account = mnemonicToAccount(mnemonic, { addressIndex });
|
|
15247
|
+
return {
|
|
15248
|
+
...account,
|
|
15249
|
+
address: toNormalizedAddress(account.address),
|
|
15250
|
+
resolver
|
|
15251
|
+
};
|
|
15252
|
+
}
|
|
15253
|
+
var accounts = {
|
|
15254
|
+
deployer: createAccount(0, asNormalizedAddress("0x1f2ce8886692b90f5754a7d428a2336800a5911b")),
|
|
15255
|
+
owner: createAccount(1, asNormalizedAddress("0x5ea90acf6555276660760fe629d72932c91f4b8e")),
|
|
15256
|
+
user: createAccount(2, asNormalizedAddress("0xb63ae54076c1c281ec9395b290add470e69140c6")),
|
|
15257
|
+
user2: createAccount(3, asNormalizedAddress("0x5380066832977eb36353fd2b01fb92e751636b84"))
|
|
15258
|
+
};
|
|
15259
|
+
var addresses = {
|
|
15260
|
+
one: asNormalizedAddress(`0x${"1".repeat(40)}`)
|
|
15261
|
+
};
|
|
15262
|
+
var fixtures = {
|
|
15263
|
+
abiBytes: `0x${"01".repeat(32)}`,
|
|
15264
|
+
fourBytesInterface: "0x11100111",
|
|
15265
|
+
publicKeyX: `0x${"02".repeat(32)}`,
|
|
15266
|
+
publicKeyY: `0x${"03".repeat(32)}`,
|
|
15267
|
+
contenthash: `0x${"04".repeat(32)}`,
|
|
15268
|
+
bitcoinAddress: `0x${"05".repeat(25)}`,
|
|
15269
|
+
litecoinAddress: `0x${"06".repeat(25)}`
|
|
15270
|
+
};
|
|
15271
|
+
|
|
14527
15272
|
// src/ens-test-env.ts
|
|
14528
15273
|
var ens_test_env_default = {
|
|
14529
15274
|
/**
|
|
@@ -14539,14 +15284,14 @@ var ens_test_env_default = {
|
|
|
14539
15284
|
ENSv1RegistryOld: {
|
|
14540
15285
|
abi: Registry2,
|
|
14541
15286
|
// Registry was redeployed, same abi
|
|
14542
|
-
address:
|
|
15287
|
+
address: contracts.LegacyENSRegistry,
|
|
14543
15288
|
startBlock: 0
|
|
14544
15289
|
},
|
|
14545
15290
|
// NOTE: named ENSRegistry in devnet
|
|
14546
15291
|
ENSv1Registry: {
|
|
14547
15292
|
abi: Registry2,
|
|
14548
15293
|
// Registry was redeployed, same abi
|
|
14549
|
-
address:
|
|
15294
|
+
address: contracts.ENSRegistry,
|
|
14550
15295
|
startBlock: 0
|
|
14551
15296
|
},
|
|
14552
15297
|
Resolver: {
|
|
@@ -14556,41 +15301,41 @@ var ens_test_env_default = {
|
|
|
14556
15301
|
// NOTE: named BaseRegistrarImplementation in devnet
|
|
14557
15302
|
BaseRegistrar: {
|
|
14558
15303
|
abi: BaseRegistrar3,
|
|
14559
|
-
address:
|
|
15304
|
+
address: contracts.BaseRegistrarImplementation,
|
|
14560
15305
|
startBlock: 0
|
|
14561
15306
|
},
|
|
14562
15307
|
// NOTE: named LegacyETHRegistrarController in devnet
|
|
14563
15308
|
LegacyEthRegistrarController: {
|
|
14564
15309
|
abi: LegacyEthRegistrarController,
|
|
14565
|
-
address:
|
|
15310
|
+
address: contracts.LegacyETHRegistrarController,
|
|
14566
15311
|
startBlock: 0
|
|
14567
15312
|
},
|
|
14568
15313
|
// NOTE: named WrappedETHRegistrarController in devnet
|
|
14569
15314
|
WrappedEthRegistrarController: {
|
|
14570
15315
|
abi: WrappedEthRegistrarController,
|
|
14571
|
-
address:
|
|
15316
|
+
address: contracts.WrappedETHRegistrarController,
|
|
14572
15317
|
startBlock: 0
|
|
14573
15318
|
},
|
|
14574
15319
|
// NOTE: named ETHRegistrarController in devnet
|
|
14575
15320
|
UnwrappedEthRegistrarController: {
|
|
14576
15321
|
abi: UnwrappedEthRegistrarController,
|
|
14577
|
-
address:
|
|
15322
|
+
address: contracts.ETHRegistrarController,
|
|
14578
15323
|
startBlock: 0
|
|
14579
15324
|
},
|
|
14580
15325
|
NameWrapper: {
|
|
14581
15326
|
abi: NameWrapper,
|
|
14582
|
-
address:
|
|
15327
|
+
address: contracts.NameWrapper,
|
|
14583
15328
|
startBlock: 0
|
|
14584
15329
|
},
|
|
14585
15330
|
UniversalResolver: {
|
|
14586
15331
|
abi: UniversalResolverV1,
|
|
14587
|
-
address:
|
|
15332
|
+
address: contracts.UniversalResolver,
|
|
14588
15333
|
startBlock: 0
|
|
14589
15334
|
},
|
|
14590
15335
|
// NOTE: named UniversalResolverV2 in devnet
|
|
14591
15336
|
UniversalResolverV2: {
|
|
14592
15337
|
abi: UniversalResolverV2,
|
|
14593
|
-
address:
|
|
15338
|
+
address: contracts.UniversalResolverV2,
|
|
14594
15339
|
startBlock: 0
|
|
14595
15340
|
}
|
|
14596
15341
|
}
|
|
@@ -14603,22 +15348,22 @@ var ens_test_env_default = {
|
|
|
14603
15348
|
EnhancedAccessControl: { abi: EnhancedAccessControl, startBlock: 0 },
|
|
14604
15349
|
RootRegistry: {
|
|
14605
15350
|
abi: Registry,
|
|
14606
|
-
address:
|
|
15351
|
+
address: contracts.RootRegistry,
|
|
14607
15352
|
startBlock: 0
|
|
14608
15353
|
},
|
|
14609
15354
|
ETHRegistry: {
|
|
14610
15355
|
abi: Registry,
|
|
14611
|
-
address:
|
|
15356
|
+
address: contracts.ETHRegistry,
|
|
14612
15357
|
startBlock: 0
|
|
14613
15358
|
},
|
|
14614
15359
|
ETHRegistrar: {
|
|
14615
15360
|
abi: ETHRegistrar,
|
|
14616
|
-
address:
|
|
15361
|
+
address: contracts.ETHRegistrar,
|
|
14617
15362
|
startBlock: 0
|
|
14618
15363
|
},
|
|
14619
15364
|
ENSv1Resolver: {
|
|
14620
15365
|
abi: ResolverABI,
|
|
14621
|
-
address:
|
|
15366
|
+
address: contracts.ENSV1Resolver,
|
|
14622
15367
|
startBlock: 0
|
|
14623
15368
|
},
|
|
14624
15369
|
ENSv2Resolver: {
|
|
@@ -14633,25 +15378,25 @@ var ens_test_env_default = {
|
|
|
14633
15378
|
contracts: {
|
|
14634
15379
|
DefaultReverseRegistrar: {
|
|
14635
15380
|
abi: StandaloneReverseRegistrar,
|
|
14636
|
-
address:
|
|
15381
|
+
address: contracts.DefaultReverseRegistrar,
|
|
14637
15382
|
startBlock: 0
|
|
14638
15383
|
},
|
|
14639
15384
|
// NOTE: named DefaultReverseResolver in devnet
|
|
14640
15385
|
DefaultReverseResolver3: {
|
|
14641
15386
|
abi: ResolverABI,
|
|
14642
|
-
address:
|
|
15387
|
+
address: contracts.DefaultReverseResolver,
|
|
14643
15388
|
startBlock: 0
|
|
14644
15389
|
},
|
|
14645
15390
|
// NOTE: named LegacyPublicResolver in devnet
|
|
14646
15391
|
DefaultPublicResolver4: {
|
|
14647
15392
|
abi: ResolverABI,
|
|
14648
|
-
address:
|
|
15393
|
+
address: contracts.LegacyPublicResolver,
|
|
14649
15394
|
startBlock: 0
|
|
14650
15395
|
},
|
|
14651
15396
|
// NOTE: named PublicResolver in devnet
|
|
14652
15397
|
DefaultPublicResolver5: {
|
|
14653
15398
|
abi: ResolverABI,
|
|
14654
|
-
address:
|
|
15399
|
+
address: contracts.PublicResolver,
|
|
14655
15400
|
startBlock: 0
|
|
14656
15401
|
}
|
|
14657
15402
|
}
|
|
@@ -18324,6 +19069,16 @@ var sepolia_default = {
|
|
|
18324
19069
|
abi: UniversalResolverV1,
|
|
18325
19070
|
address: "0xb7b7dadf4d42a08b3ec1d3a1079959dfbc8cffcc",
|
|
18326
19071
|
startBlock: 8515717
|
|
19072
|
+
},
|
|
19073
|
+
BasenamesL1Resolver: {
|
|
19074
|
+
abi: ResolverABI,
|
|
19075
|
+
address: "0x084d10c07efeecd9ffc73deb38ecb72f9eeb65ab",
|
|
19076
|
+
startBlock: 6501252
|
|
19077
|
+
},
|
|
19078
|
+
LineanamesL1Resolver: {
|
|
19079
|
+
abi: ResolverABI,
|
|
19080
|
+
address: "0xb4b2748f543265e7e0d471f5d1bda81da4e74624",
|
|
19081
|
+
startBlock: 10415742
|
|
18327
19082
|
}
|
|
18328
19083
|
}
|
|
18329
19084
|
},
|
|
@@ -18748,6 +19503,7 @@ export {
|
|
|
18748
19503
|
ENSNamespaceIds,
|
|
18749
19504
|
ETHRegistrar as ETHRegistrarABI,
|
|
18750
19505
|
EnhancedAccessControl as EnhancedAccessControlABI,
|
|
19506
|
+
L2ReverseRegistrar as L2ReverseRegistrarABI,
|
|
18751
19507
|
Registry as RegistryABI,
|
|
18752
19508
|
ResolverABI,
|
|
18753
19509
|
StandaloneReverseRegistrar as StandaloneReverseRegistrarABI,
|