Skip to content

Commit 466767d

Browse files
chore(synapse-core): update filecoin-services ref to v1.3.1 (#911)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 811163e commit 466767d

2 files changed

Lines changed: 207 additions & 38 deletions

File tree

packages/synapse-core/src/abis/generated.ts

Lines changed: 206 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,6 @@ export const errorsAbi = [
248248
],
249249
name: 'InvalidEpochRange',
250250
},
251-
{
252-
type: 'error',
253-
inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
254-
name: 'InvalidServiceDescriptionLength',
255-
},
256-
{
257-
type: 'error',
258-
inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
259-
name: 'InvalidServiceNameLength',
260-
},
261251
{
262252
type: 'error',
263253
inputs: [
@@ -424,11 +414,6 @@ export const errorsAbi = [
424414
],
425415
name: 'ProvingPeriodPassed',
426416
},
427-
{
428-
type: 'error',
429-
inputs: [{ name: 'railId', internalType: 'uint256', type: 'uint256' }],
430-
name: 'RailNotAssociated',
431-
},
432417
{
433418
type: 'error',
434419
inputs: [
@@ -1808,6 +1793,16 @@ export const filecoinWarmStorageServiceAbi = [
18081793
outputs: [],
18091794
stateMutability: 'nonpayable',
18101795
},
1796+
{
1797+
type: 'function',
1798+
inputs: [
1799+
{ name: 'nextImplementation', internalType: 'address', type: 'address' },
1800+
{ name: 'delayEpochs', internalType: 'uint96', type: 'uint96' },
1801+
],
1802+
name: 'announceUpgradePlan',
1803+
outputs: [],
1804+
stateMutability: 'nonpayable',
1805+
},
18111806
{
18121807
type: 'function',
18131808
inputs: [
@@ -1844,6 +1839,13 @@ export const filecoinWarmStorageServiceAbi = [
18441839
outputs: [],
18451840
stateMutability: 'nonpayable',
18461841
},
1842+
{
1843+
type: 'function',
1844+
inputs: [],
1845+
name: 'description',
1846+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
1847+
stateMutability: 'pure',
1848+
},
18471849
{
18481850
type: 'function',
18491851
inputs: [],
@@ -1944,6 +1946,13 @@ export const filecoinWarmStorageServiceAbi = [
19441946
],
19451947
stateMutability: 'view',
19461948
},
1949+
{
1950+
type: 'function',
1951+
inputs: [],
1952+
name: 'homepage',
1953+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
1954+
stateMutability: 'pure',
1955+
},
19471956
{
19481957
type: 'function',
19491958
inputs: [
@@ -1958,8 +1967,6 @@ export const filecoinWarmStorageServiceAbi = [
19581967
internalType: 'address',
19591968
type: 'address',
19601969
},
1961-
{ name: '_name', internalType: 'string', type: 'string' },
1962-
{ name: '_description', internalType: 'string', type: 'string' },
19631970
],
19641971
name: 'initialize',
19651972
outputs: [],
@@ -1974,6 +1981,13 @@ export const filecoinWarmStorageServiceAbi = [
19741981
outputs: [],
19751982
stateMutability: 'nonpayable',
19761983
},
1984+
{
1985+
type: 'function',
1986+
inputs: [],
1987+
name: 'name',
1988+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
1989+
stateMutability: 'pure',
1990+
},
19771991
{
19781992
type: 'function',
19791993
inputs: [
@@ -2138,7 +2152,7 @@ export const filecoinWarmStorageServiceAbi = [
21382152
],
21392153
name: 'storageProviderChanged',
21402154
outputs: [],
2141-
stateMutability: 'nonpayable',
2155+
stateMutability: 'view',
21422156
},
21432157
{
21442158
type: 'function',
@@ -2827,16 +2841,6 @@ export const filecoinWarmStorageServiceAbi = [
28272841
name: 'InvalidEpochRange',
28282842
},
28292843
{ type: 'error', inputs: [], name: 'InvalidInitialization' },
2830-
{
2831-
type: 'error',
2832-
inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
2833-
name: 'InvalidServiceDescriptionLength',
2834-
},
2835-
{
2836-
type: 'error',
2837-
inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
2838-
name: 'InvalidServiceNameLength',
2839-
},
28402844
{ type: 'error', inputs: [], name: 'MaxProvingPeriodZero' },
28412845
{
28422846
type: 'error',
@@ -2963,11 +2967,6 @@ export const filecoinWarmStorageServiceAbi = [
29632967
],
29642968
name: 'ProvingPeriodPassed',
29652969
},
2966-
{
2967-
type: 'error',
2968-
inputs: [{ name: 'railId', internalType: 'uint256', type: 'uint256' }],
2969-
name: 'RailNotAssociated',
2970-
},
29712970
{
29722971
type: 'error',
29732972
inputs: [
@@ -3004,6 +3003,130 @@ export const filecoinWarmStorageServiceAbi = [
30043003
],
30053004
name: 'ZeroAddress',
30063005
},
3006+
{
3007+
type: 'event',
3008+
anonymous: false,
3009+
inputs: [
3010+
{
3011+
name: 'dataSetId',
3012+
internalType: 'uint256',
3013+
type: 'uint256',
3014+
indexed: true,
3015+
},
3016+
{
3017+
name: 'cdnAmountAdded',
3018+
internalType: 'uint256',
3019+
type: 'uint256',
3020+
indexed: false,
3021+
},
3022+
{
3023+
name: 'totalCdnLockup',
3024+
internalType: 'uint256',
3025+
type: 'uint256',
3026+
indexed: false,
3027+
},
3028+
{
3029+
name: 'cacheMissAmountAdded',
3030+
internalType: 'uint256',
3031+
type: 'uint256',
3032+
indexed: false,
3033+
},
3034+
{
3035+
name: 'totalCacheMissLockup',
3036+
internalType: 'uint256',
3037+
type: 'uint256',
3038+
indexed: false,
3039+
},
3040+
],
3041+
name: 'CDNPaymentRailsToppedUp',
3042+
},
3043+
{
3044+
type: 'event',
3045+
anonymous: false,
3046+
inputs: [
3047+
{
3048+
name: 'caller',
3049+
internalType: 'address',
3050+
type: 'address',
3051+
indexed: true,
3052+
},
3053+
{
3054+
name: 'dataSetId',
3055+
internalType: 'uint256',
3056+
type: 'uint256',
3057+
indexed: true,
3058+
},
3059+
{
3060+
name: 'cacheMissRailId',
3061+
internalType: 'uint256',
3062+
type: 'uint256',
3063+
indexed: false,
3064+
},
3065+
{
3066+
name: 'cdnRailId',
3067+
internalType: 'uint256',
3068+
type: 'uint256',
3069+
indexed: false,
3070+
},
3071+
],
3072+
name: 'CDNServiceTerminated',
3073+
},
3074+
{
3075+
type: 'event',
3076+
anonymous: false,
3077+
inputs: [
3078+
{
3079+
name: 'dataSetId',
3080+
internalType: 'uint256',
3081+
type: 'uint256',
3082+
indexed: true,
3083+
},
3084+
{
3085+
name: 'pdpRailId',
3086+
internalType: 'uint256',
3087+
type: 'uint256',
3088+
indexed: false,
3089+
},
3090+
{
3091+
name: 'cacheMissRailId',
3092+
internalType: 'uint256',
3093+
type: 'uint256',
3094+
indexed: false,
3095+
},
3096+
{
3097+
name: 'cdnRailId',
3098+
internalType: 'uint256',
3099+
type: 'uint256',
3100+
indexed: false,
3101+
},
3102+
],
3103+
name: 'DataSetAbandoned',
3104+
},
3105+
{
3106+
type: 'event',
3107+
anonymous: false,
3108+
inputs: [
3109+
{
3110+
name: 'dataSetId',
3111+
internalType: 'uint256',
3112+
type: 'uint256',
3113+
indexed: true,
3114+
},
3115+
{
3116+
name: 'railId',
3117+
internalType: 'uint256',
3118+
type: 'uint256',
3119+
indexed: false,
3120+
},
3121+
{
3122+
name: 'newRate',
3123+
internalType: 'uint256',
3124+
type: 'uint256',
3125+
indexed: false,
3126+
},
3127+
],
3128+
name: 'RailRateUpdated',
3129+
},
30073130
] as const
30083131

30093132
/**
@@ -3030,7 +3153,7 @@ export const filecoinWarmStorageServiceConfig = {
30303153

30313154
/**
30323155
* - [__View Contract on Filecoin Mainnet Filfox__](https://filfox.info/en/address/0xAD28BBF18A72f728Ed816D07F5a1d7Ec40D68b5e)
3033-
* - [__View Contract on Filecoin Calibration Filscan__](https://calibration.filscan.io/address/0xF4B446171b3677fD2B9b183a9fB76d517365700a)
3156+
* - [__View Contract on Filecoin Calibration Filscan__](https://calibration.filscan.io/address/0x9BF9e67e83EC8613883FDdDec4D3b38AEE937177)
30343157
*/
30353158
export const filecoinWarmStorageServiceStateViewAbi = [
30363159
{
@@ -3520,16 +3643,16 @@ export const filecoinWarmStorageServiceStateViewAbi = [
35203643

35213644
/**
35223645
* - [__View Contract on Filecoin Mainnet Filfox__](https://filfox.info/en/address/0xAD28BBF18A72f728Ed816D07F5a1d7Ec40D68b5e)
3523-
* - [__View Contract on Filecoin Calibration Filscan__](https://calibration.filscan.io/address/0xF4B446171b3677fD2B9b183a9fB76d517365700a)
3646+
* - [__View Contract on Filecoin Calibration Filscan__](https://calibration.filscan.io/address/0x9BF9e67e83EC8613883FDdDec4D3b38AEE937177)
35243647
*/
35253648
export const filecoinWarmStorageServiceStateViewAddress = {
35263649
314: '0xAD28BBF18A72f728Ed816D07F5a1d7Ec40D68b5e',
3527-
314159: '0xF4B446171b3677fD2B9b183a9fB76d517365700a',
3650+
314159: '0x9BF9e67e83EC8613883FDdDec4D3b38AEE937177',
35283651
} as const
35293652

35303653
/**
35313654
* - [__View Contract on Filecoin Mainnet Filfox__](https://filfox.info/en/address/0xAD28BBF18A72f728Ed816D07F5a1d7Ec40D68b5e)
3532-
* - [__View Contract on Filecoin Calibration Filscan__](https://calibration.filscan.io/address/0xF4B446171b3677fD2B9b183a9fB76d517365700a)
3655+
* - [__View Contract on Filecoin Calibration Filscan__](https://calibration.filscan.io/address/0x9BF9e67e83EC8613883FDdDec4D3b38AEE937177)
35333656
*/
35343657
export const filecoinWarmStorageServiceStateViewConfig = {
35353658
address: filecoinWarmStorageServiceStateViewAddress,
@@ -3640,6 +3763,16 @@ export const pdpVerifierAbi = [
36403763
outputs: [],
36413764
stateMutability: 'nonpayable',
36423765
},
3766+
{
3767+
type: 'function',
3768+
inputs: [
3769+
{ name: 'nextImplementation', internalType: 'address', type: 'address' },
3770+
{ name: 'delayEpochs', internalType: 'uint96', type: 'uint96' },
3771+
],
3772+
name: 'announceUpgradePlan',
3773+
outputs: [],
3774+
stateMutability: 'nonpayable',
3775+
},
36433776
{
36443777
type: 'function',
36453778
inputs: [{ name: 'setId', internalType: 'uint256', type: 'uint256' }],
@@ -4255,6 +4388,25 @@ export const pdpVerifierAbi = [
42554388
],
42564389
name: 'PiecesRemoved',
42574390
},
4391+
{
4392+
type: 'event',
4393+
anonymous: false,
4394+
inputs: [
4395+
{
4396+
name: 'setId',
4397+
internalType: 'uint256',
4398+
type: 'uint256',
4399+
indexed: true,
4400+
},
4401+
{
4402+
name: 'pieceIds',
4403+
internalType: 'uint256[]',
4404+
type: 'uint256[]',
4405+
indexed: false,
4406+
},
4407+
],
4408+
name: 'PiecesScheduledForRemoval',
4409+
},
42584410
{
42594411
type: 'event',
42604412
anonymous: false,
@@ -4395,6 +4547,13 @@ export const pdpVerifierAbi = [
43954547
],
43964548
name: 'InsufficientChallengeDelay',
43974549
},
4550+
{
4551+
type: 'error',
4552+
inputs: [
4553+
{ name: 'implementation', internalType: 'address', type: 'address' },
4554+
],
4555+
name: 'InvalidImplementation',
4556+
},
43984557
{ type: 'error', inputs: [], name: 'InvalidInitialization' },
43994558
{ type: 'error', inputs: [], name: 'MaxPiecesMustBePositive' },
44004559
{ type: 'error', inputs: [], name: 'NotInitializing' },
@@ -4682,6 +4841,16 @@ export const serviceProviderRegistryAbi = [
46824841
outputs: [],
46834842
stateMutability: 'nonpayable',
46844843
},
4844+
{
4845+
type: 'function',
4846+
inputs: [
4847+
{ name: 'nextImplementation', internalType: 'address', type: 'address' },
4848+
{ name: 'delayEpochs', internalType: 'uint96', type: 'uint96' },
4849+
],
4850+
name: 'announceUpgradePlan',
4851+
outputs: [],
4852+
stateMutability: 'nonpayable',
4853+
},
46854854
{
46864855
type: 'function',
46874856
inputs: [],

packages/synapse-core/wagmi.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ZodValidationError } from './src/errors/base.ts'
77
import { zAddress } from './src/utils/schemas.ts'
88

99
// GIT_REF can be one of: '<branch name>', '<commit>' or 'tags/<tag>'
10-
const FILECOIN_SERVICES_GIT_REF = '3f3eceb47ce235cdbf3fb59cd919fcb4d483b08d' // v1.3.0
10+
const FILECOIN_SERVICES_GIT_REF = '69b8ef77b792c70582008c4c262de5a13403f224' // v1.3.1
1111
const FILECOIN_SERVICES_REF = FILECOIN_SERVICES_GIT_REF.replace(/^(?![a-f0-9]{40}$)/, 'refs/')
1212
const BASE_URL = `https://raw.githubusercontent.com/FilOzone/filecoin-services/${FILECOIN_SERVICES_REF}/service_contracts/abi`
1313
const DEPLOYMENTS_URL = `https://raw.githubusercontent.com/FilOzone/filecoin-services/${FILECOIN_SERVICES_REF}/service_contracts/deployments.json`

0 commit comments

Comments
 (0)