Skip to content

Commit 2561a78

Browse files
Kubuxurvagg
authored andcommitted
chore: update ABIs for next contracts
Signed-off-by: Jakub Sztandera <[email protected]>
1 parent b128a91 commit 2561a78

File tree

3 files changed

+31
-208
lines changed

3 files changed

+31
-208
lines changed

packages/synapse-sdk/src/abis/gen.ts

Lines changed: 29 additions & 206 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ export const filecoinWarmStorageServiceAbi = [
415415
{
416416
type: 'function',
417417
inputs: [
418-
{ name: 'dataSetId', internalType: 'uint256', type: 'uint256' },
419-
{ name: 'oldServiceProvider', internalType: 'address', type: 'address' },
420-
{ name: 'newServiceProvider', internalType: 'address', type: 'address' },
418+
{ name: '', internalType: 'uint256', type: 'uint256' },
419+
{ name: '', internalType: 'address', type: 'address' },
420+
{ name: '', internalType: 'address', type: 'address' },
421421
{ name: '', internalType: 'bytes', type: 'bytes' },
422422
],
423423
name: 'storageProviderChanged',
@@ -519,7 +519,7 @@ export const filecoinWarmStorageServiceAbi = [
519519
],
520520
},
521521
],
522-
stateMutability: 'nonpayable',
522+
stateMutability: 'view',
523523
},
524524
{
525525
type: 'function',
@@ -538,12 +538,24 @@ export const filecoinWarmStorageServiceAbi = [
538538
type: 'uint256',
539539
indexed: true,
540540
},
541+
{
542+
name: 'cdnAmountAdded',
543+
internalType: 'uint256',
544+
type: 'uint256',
545+
indexed: false,
546+
},
541547
{
542548
name: 'totalCdnLockup',
543549
internalType: 'uint256',
544550
type: 'uint256',
545551
indexed: false,
546552
},
553+
{
554+
name: 'cacheMissAmountAdded',
555+
internalType: 'uint256',
556+
type: 'uint256',
557+
indexed: false,
558+
},
547559
{
548560
name: 'totalCacheMissLockup',
549561
internalType: 'uint256',
@@ -842,43 +854,6 @@ export const filecoinWarmStorageServiceAbi = [
842854
],
843855
name: 'PDPPaymentTerminated',
844856
},
845-
{
846-
type: 'event',
847-
anonymous: false,
848-
inputs: [
849-
{
850-
name: 'railId',
851-
internalType: 'uint256',
852-
type: 'uint256',
853-
indexed: false,
854-
},
855-
{
856-
name: 'dataSetId',
857-
internalType: 'uint256',
858-
type: 'uint256',
859-
indexed: false,
860-
},
861-
{
862-
name: 'originalAmount',
863-
internalType: 'uint256',
864-
type: 'uint256',
865-
indexed: false,
866-
},
867-
{
868-
name: 'modifiedAmount',
869-
internalType: 'uint256',
870-
type: 'uint256',
871-
indexed: false,
872-
},
873-
{
874-
name: 'faultedEpochs',
875-
internalType: 'uint256',
876-
type: 'uint256',
877-
indexed: false,
878-
},
879-
],
880-
name: 'PaymentArbitrated',
881-
},
882857
{
883858
type: 'event',
884859
anonymous: false,
@@ -1052,17 +1027,6 @@ export const filecoinWarmStorageServiceAbi = [
10521027
],
10531028
name: 'ViewContractSet',
10541029
},
1055-
{
1056-
type: 'error',
1057-
inputs: [
1058-
{
1059-
name: 'field',
1060-
internalType: 'enum Errors.AddressField',
1061-
type: 'uint8',
1062-
},
1063-
],
1064-
name: 'AddressAlreadySet',
1065-
},
10661030
{
10671031
type: 'error',
10681032
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
@@ -1233,22 +1197,6 @@ export const filecoinWarmStorageServiceAbi = [
12331197
inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
12341198
name: 'InvalidServiceNameLength',
12351199
},
1236-
{
1237-
type: 'error',
1238-
inputs: [
1239-
{ name: 'expected', internalType: 'address', type: 'address' },
1240-
{ name: 'actual', internalType: 'address', type: 'address' },
1241-
],
1242-
name: 'InvalidSignature',
1243-
},
1244-
{
1245-
type: 'error',
1246-
inputs: [
1247-
{ name: 'expectedLength', internalType: 'uint256', type: 'uint256' },
1248-
{ name: 'actualLength', internalType: 'uint256', type: 'uint256' },
1249-
],
1250-
name: 'InvalidSignatureLength',
1251-
},
12521200
{
12531201
type: 'error',
12541202
inputs: [{ name: 'dataSetId', internalType: 'uint256', type: 'uint256' }],
@@ -1304,15 +1252,6 @@ export const filecoinWarmStorageServiceAbi = [
13041252
name: 'NoPDPPaymentRail',
13051253
},
13061254
{ type: 'error', inputs: [], name: 'NotInitializing' },
1307-
{
1308-
type: 'error',
1309-
inputs: [
1310-
{ name: 'dataSetId', internalType: 'uint256', type: 'uint256' },
1311-
{ name: 'expected', internalType: 'address', type: 'address' },
1312-
{ name: 'actual', internalType: 'address', type: 'address' },
1313-
],
1314-
name: 'OldServiceProviderMismatch',
1315-
},
13161255
{
13171256
type: 'error',
13181257
inputs: [
@@ -1357,14 +1296,6 @@ export const filecoinWarmStorageServiceAbi = [
13571296
inputs: [{ name: 'providerId', internalType: 'uint256', type: 'uint256' }],
13581297
name: 'ProviderAlreadyApproved',
13591298
},
1360-
{
1361-
type: 'error',
1362-
inputs: [
1363-
{ name: 'provider', internalType: 'address', type: 'address' },
1364-
{ name: 'providerId', internalType: 'uint256', type: 'uint256' },
1365-
],
1366-
name: 'ProviderNotApproved',
1367-
},
13681299
{
13691300
type: 'error',
13701301
inputs: [{ name: 'providerId', internalType: 'uint256', type: 'uint256' }],
@@ -1409,11 +1340,6 @@ export const filecoinWarmStorageServiceAbi = [
14091340
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
14101341
name: 'UUPSUnsupportedProxiableUUID',
14111342
},
1412-
{
1413-
type: 'error',
1414-
inputs: [{ name: 'v', internalType: 'uint8', type: 'uint8' }],
1415-
name: 'UnsupportedSignatureV',
1416-
},
14171343
{
14181344
type: 'error',
14191345
inputs: [
@@ -1786,13 +1712,6 @@ export const filecoinWarmStorageServiceStateViewConfig = {
17861712
*/
17871713
export const pdpVerifierAbi = [
17881714
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
1789-
{
1790-
type: 'function',
1791-
inputs: [],
1792-
name: 'EXTRA_DATA_MAX_SIZE',
1793-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1794-
stateMutability: 'view',
1795-
},
17961715
{
17971716
type: 'function',
17981717
inputs: [],
@@ -1861,7 +1780,7 @@ export const pdpVerifierAbi = [
18611780
},
18621781
{
18631782
type: 'function',
1864-
inputs: [{ name: 'rawSize', internalType: 'uint256', type: 'uint256' }],
1783+
inputs: [{ name: 'proofSize', internalType: 'uint256', type: 'uint256' }],
18651784
name: 'calculateProofFeeForSize',
18661785
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
18671786
stateMutability: 'view',
@@ -1962,7 +1881,6 @@ export const pdpVerifierAbi = [
19621881
components: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
19631882
},
19641883
{ name: 'pieceIds', internalType: 'uint256[]', type: 'uint256[]' },
1965-
{ name: 'rawSizes', internalType: 'uint256[]', type: 'uint256[]' },
19661884
{ name: 'hasMore', internalType: 'bool', type: 'bool' },
19671885
],
19681886
stateMutability: 'view',
@@ -3795,13 +3713,6 @@ export const paymentsConfig = {
37953713
*/
37963714
export const serviceProviderRegistryAbi = [
37973715
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
3798-
{
3799-
type: 'function',
3800-
inputs: [],
3801-
name: 'BURN_ACTOR',
3802-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
3803-
stateMutability: 'view',
3804-
},
38053716
{
38063717
type: 'function',
38073718
inputs: [],
@@ -3889,50 +3800,6 @@ export const serviceProviderRegistryAbi = [
38893800
outputs: [{ name: 'providerId', internalType: 'uint256', type: 'uint256' }],
38903801
stateMutability: 'view',
38913802
},
3892-
{
3893-
type: 'function',
3894-
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
3895-
name: 'decodePDPOffering',
3896-
outputs: [
3897-
{
3898-
name: '',
3899-
internalType: 'struct ServiceProviderRegistryStorage.PDPOffering',
3900-
type: 'tuple',
3901-
components: [
3902-
{ name: 'serviceURL', internalType: 'string', type: 'string' },
3903-
{
3904-
name: 'minPieceSizeInBytes',
3905-
internalType: 'uint256',
3906-
type: 'uint256',
3907-
},
3908-
{
3909-
name: 'maxPieceSizeInBytes',
3910-
internalType: 'uint256',
3911-
type: 'uint256',
3912-
},
3913-
{ name: 'ipniPiece', internalType: 'bool', type: 'bool' },
3914-
{ name: 'ipniIpfs', internalType: 'bool', type: 'bool' },
3915-
{
3916-
name: 'storagePricePerTibPerMonth',
3917-
internalType: 'uint256',
3918-
type: 'uint256',
3919-
},
3920-
{
3921-
name: 'minProvingPeriodInEpochs',
3922-
internalType: 'uint256',
3923-
type: 'uint256',
3924-
},
3925-
{ name: 'location', internalType: 'string', type: 'string' },
3926-
{
3927-
name: 'paymentTokenAddress',
3928-
internalType: 'contract IERC20',
3929-
type: 'address',
3930-
},
3931-
],
3932-
},
3933-
],
3934-
stateMutability: 'pure',
3935-
},
39363803
{
39373804
type: 'function',
39383805
inputs: [],
@@ -3948,50 +3815,6 @@ export const serviceProviderRegistryAbi = [
39483815
],
39493816
stateMutability: 'view',
39503817
},
3951-
{
3952-
type: 'function',
3953-
inputs: [
3954-
{
3955-
name: 'pdpOffering',
3956-
internalType: 'struct ServiceProviderRegistryStorage.PDPOffering',
3957-
type: 'tuple',
3958-
components: [
3959-
{ name: 'serviceURL', internalType: 'string', type: 'string' },
3960-
{
3961-
name: 'minPieceSizeInBytes',
3962-
internalType: 'uint256',
3963-
type: 'uint256',
3964-
},
3965-
{
3966-
name: 'maxPieceSizeInBytes',
3967-
internalType: 'uint256',
3968-
type: 'uint256',
3969-
},
3970-
{ name: 'ipniPiece', internalType: 'bool', type: 'bool' },
3971-
{ name: 'ipniIpfs', internalType: 'bool', type: 'bool' },
3972-
{
3973-
name: 'storagePricePerTibPerMonth',
3974-
internalType: 'uint256',
3975-
type: 'uint256',
3976-
},
3977-
{
3978-
name: 'minProvingPeriodInEpochs',
3979-
internalType: 'uint256',
3980-
type: 'uint256',
3981-
},
3982-
{ name: 'location', internalType: 'string', type: 'string' },
3983-
{
3984-
name: 'paymentTokenAddress',
3985-
internalType: 'contract IERC20',
3986-
type: 'address',
3987-
},
3988-
],
3989-
},
3990-
],
3991-
name: 'encodePDPOffering',
3992-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
3993-
stateMutability: 'pure',
3994-
},
39953818
{
39963819
type: 'function',
39973820
inputs: [
@@ -4714,18 +4537,18 @@ export const serviceProviderRegistryAbi = [
47144537
type: 'uint8',
47154538
indexed: true,
47164539
},
4717-
{
4718-
name: 'serviceUrl',
4719-
internalType: 'string',
4720-
type: 'string',
4721-
indexed: false,
4722-
},
47234540
{
47244541
name: 'serviceProvider',
47254542
internalType: 'address',
47264543
type: 'address',
47274544
indexed: false,
47284545
},
4546+
{
4547+
name: 'productData',
4548+
internalType: 'bytes',
4549+
type: 'bytes',
4550+
indexed: false,
4551+
},
47294552
{
47304553
name: 'capabilityKeys',
47314554
internalType: 'string[]',
@@ -4776,18 +4599,18 @@ export const serviceProviderRegistryAbi = [
47764599
type: 'uint8',
47774600
indexed: true,
47784601
},
4779-
{
4780-
name: 'serviceUrl',
4781-
internalType: 'string',
4782-
type: 'string',
4783-
indexed: false,
4784-
},
47854602
{
47864603
name: 'serviceProvider',
47874604
internalType: 'address',
47884605
type: 'address',
47894606
indexed: false,
47904607
},
4608+
{
4609+
name: 'productData',
4610+
internalType: 'bytes',
4611+
type: 'bytes',
4612+
indexed: false,
4613+
},
47914614
{
47924615
name: 'capabilityKeys',
47934616
internalType: 'string[]',

packages/synapse-sdk/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export const CONTRACT_ADDRESSES = {
319319
*/
320320
WARM_STORAGE: {
321321
mainnet: '0x81DFD9813aDd354f03704F31419b0c6268d46232',
322-
calibration: '0x468342072e0dc86AFFBe15519bc5B1A1aa86e4dc',
322+
calibration: '0xD3De778C05f89e1240ef70100Fb0d9e5b2eFD258',
323323
} as const satisfies Record<FilecoinNetworkType, string>,
324324

325325
/**

packages/synapse-sdk/wagmi.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fetch } from '@wagmi/cli/plugins'
33
import type { Address } from 'viem'
44

55
// GIT_REF can be one of: '<branch name>', '<commit>' or 'tags/<tag>'
6-
const GIT_REF = 'c041cf494e104a6492c8816914e44be62eff8ea7'
6+
const GIT_REF = 'c77dfedebae55078102b45564a59914dea5338b3'
77
const BASE_URL = `https://raw.githubusercontent.com/FilOzone/filecoin-services/${GIT_REF.replace(/^(?![a-f0-9]{40}$)/, 'refs/')}/service_contracts/abi`
88

99
const config = defineConfig(() => {

0 commit comments

Comments
 (0)